Skip to content

fix: Show correct 'no results' message on workspace filters#2103

Merged
f0ssel merged 7 commits into
mainfrom
f0ssel/fix-no-results
Jun 7, 2022
Merged

fix: Show correct 'no results' message on workspace filters#2103
f0ssel merged 7 commits into
mainfrom
f0ssel/fix-no-results

Conversation

@f0ssel
Copy link
Copy Markdown
Member

@f0ssel f0ssel commented Jun 6, 2022

Fixes #2042.

Open to suggestions on what to display here, right now there's currently no description text.

chrome_99vpCmpq2c

@f0ssel f0ssel requested a review from a team as a code owner June 6, 2022 20:47
</TableCell>
</TableRow>
<>
{query === "owner:me" || query === "" ? (
Copy link
Copy Markdown
Contributor

@greyscaled greyscaled Jun 6, 2022

Choose a reason for hiding this comment

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

Suggestion: I'd make these constants and re-use those constants here and in the form menu. Maybe in utils/workspaces.ts

@greyscaled
Copy link
Copy Markdown
Contributor

greyscaled commented Jun 6, 2022

Suggestion: Can we adjust the storybook so that there's a case for each the paths?

See what I mean here: https://www.chromatic.com/test?appId=624de63c6aacee003aa84340&id=629e690bcbc710004ad776c9

@f0ssel
Copy link
Copy Markdown
Member Author

f0ssel commented Jun 6, 2022

Will need some guidance on the story stuff, I'm looking at https://github.com/coder/coder/blob/main/site/src/pages/WorkspacesPage/WorkspacesPageView.stories.tsx and I'm pretty lost on how to add my query stuff.

@presleyp
Copy link
Copy Markdown
Contributor

presleyp commented Jun 7, 2022

@f0ssel happy to get on discord sometime today and figure out the storybook stuff

@BrunoQuaresma
Copy link
Copy Markdown
Contributor

Probably some of these conflicts are related to this PR #2097 basically what I made to cause this was to move all the logic from WorkspacePage to the WorkspacePageView so we could easily test that using Storybook. Please, let me know if you need help to solve the conflict.

@f0ssel f0ssel force-pushed the f0ssel/fix-no-results branch from 2b69691 to b0d1bb0 Compare June 7, 2022 16:20
@f0ssel f0ssel merged commit 7258d6a into main Jun 7, 2022
@f0ssel f0ssel deleted the f0ssel/fix-no-results branch June 7, 2022 18:55
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.

Empty workspace search results should clarify that there are no results

4 participants