-
-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: connect search and filter with server api #5297
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
columns?: string[]; | ||
} = { id: 'createdAt' }; | ||
|
||
export const PaginatedProjectFeatureToggles = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is same as ProjectFeatureToggles, but pulling out a lot of dependencies. Not using frontend search/filtering anymore, but features coming in from backend
@@ -45,7 +45,7 @@ const handleFilter = ( | |||
|
|||
if (isStatusFilter(key, values)) { | |||
return addStatusFilters(key, values, filterParams); | |||
} else if (key === 'tag') { | |||
} else if (key === 'tags') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing key, because from FE we are putting in tags not tag
@@ -45,7 +52,7 @@ export const useFeatureSearch = ( | |||
const returnData = data || fallbackData; | |||
return { | |||
...returnData, | |||
loading: !error && !data, | |||
loading: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is temporary until we find a better solution for loading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.