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

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

Merged
merged 7 commits into from Jun 7, 2022

Conversation

f0ssel
Copy link
Contributor

@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
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
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
Contributor 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
Contributor

presleyp commented Jun 7, 2022

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

@BrunoQuaresma
Copy link
Collaborator

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.

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