Skip to content
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

Merged
merged 3 commits into from
Nov 8, 2023
Merged

feat: connect search and filter with server api #5297

merged 3 commits into from
Nov 8, 2023

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Nov 8, 2023

No description provided.

Copy link

vercel bot commented Nov 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2023 9:37am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Nov 8, 2023 9:37am

columns?: string[];
} = { id: 'createdAt' };

export const PaginatedProjectFeatureToggles = ({
Copy link
Contributor Author

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') {
Copy link
Contributor Author

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,
Copy link
Contributor Author

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.

Copy link
Contributor

@FredrikOseberg FredrikOseberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sjaanus sjaanus merged commit 24f9fa3 into main Nov 8, 2023
13 checks passed
@sjaanus sjaanus deleted the search-ui branch November 8, 2023 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants