-
Notifications
You must be signed in to change notification settings - Fork 894
feat(site): add WorkspacesButton component #10011
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f0a2aae
chore: Add OverflowY component
Parkreiner 2420167
chore: Add PopoverContainer component
Parkreiner 88d73af
chore: Add SearchBox
Parkreiner 209eed4
feat: add WorkspacesButton
Parkreiner 9300b11
chore: Install MUI utils package
Parkreiner 2b13f1e
chore: integrate WorkspacesButton
Parkreiner e86207e
chore: reorganize files
Parkreiner 5b249d5
fix: resolve hover state visual glitch
Parkreiner b1e1271
chore: Add story for OverflowY
Parkreiner b367495
fix: remove dynamic name from OverflowY story
Parkreiner 5a34769
chore: update stories again
Parkreiner b9f6cb8
fix: remove all references to icons (for now)
Parkreiner 1996e2b
refactor: move flex shrink to be OverflowY concern
Parkreiner 5ecbbe6
fix: remove needless render key
Parkreiner 55ab10a
fix: make sure popover closes before navigation
Parkreiner 1a01127
refactor: clean up WorkspacesButton to use more native MUI
Parkreiner 80928c6
Merge branch 'main' into mes/workspace-button-2
Parkreiner 55c6061
fix: update integration into rest of view
Parkreiner 5aea06f
fix: remove JS security concern
Parkreiner 2aee4fe
refactor: parameterize button language
Parkreiner 12ac56f
revert: undo sql/go file change
Parkreiner 99f2656
fix: remove permissions dependency
Parkreiner 430e30c
fix: simplify button prop types
Parkreiner ff37ab5
fix: lift data dependencies to page component
Parkreiner 1b934ab
refactor: clean up props
Parkreiner 84c6642
fix: update dependencies again for Storybook
Parkreiner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: reorganize files
- Loading branch information
commit e86207ed8a4daf08b7c310cef44fc79a30171154
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...components/WorkspacesButton/OverflowY.tsx → site/src/components/OverflowY/OverflowY.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...nts/WorkspacesButton/PopoverContainer.tsx → ...nts/PopoverContainer/PopoverContainer.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...components/WorkspacesButton/SearchBox.tsx → ...es/WorkspacesPage/WorkspacesSearchBox.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Might be useful to hint at some of the wonkier API parts of MUI, or maybe link to their docs.
Uh oh!
There was an error while loading. Please reload this page.
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.
Yeah, good point. I guess if I had to summarize up my concern, it feels to me like their current API (as in, the entire conceit of it) defeats the point of React?
Like, the point of JSX is that you don't have to touch live DOM nodes during actual render logic, and only have to worry about them when you use effects and event handlers as escape hatches. But MUI has you take a whole real DOM node (which is physically incapable of existing on the first render), and store it in React state, to be accessed in renders
It feels backwards to me, and I've seen the component get set up multiple different ways in the codebase to make it happy, when it feels like there should be one obvious way of doing things
Uh oh!
There was an error while loading. Please reload this page.
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.
lolol
Your abstraction makes sense to me. Maybe you could make a contribution!