-
Notifications
You must be signed in to change notification settings - Fork 648
SelectPanel: Implement empty state #5142
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 all commits
Commits
Show all changes
104 commits
Select commit
Hold shift + click to select a range
14dbae0
initial commit
broccolinisoup 245a841
Revert "Revert "Select panel loading states (#4929)" (#5136)"
broccolinisoup 2bf2821
Merge branch 'revert-5136-revert-4929-select_panel_loading_states' in…
broccolinisoup 654de86
Both internally and externally managed logic
broccolinisoup af26d78
Merge branch 'main' into revert-5136-revert-4929-select_panel_loading…
broccolinisoup e2336ea
do not display error if it is on empty state - I am not sure about th…
broccolinisoup 49c7005
Use published primer/behaviors
camertron 3f33d6e
Merge upstream
camertron d80d5f1
Merge upstream again
camertron 2bed50b
Revert snapshot change to TextInput
camertron 121718b
Huh ok never mind
camertron 1906413
Use role in test
camertron 97d367d
return variants based on priority order
broccolinisoup b0a2d0e
add default messages
broccolinisoup f0b8e3c
delete eslint cache
broccolinisoup cc2fa9a
Prevent active descendant from resetting when items change
camertron 20228a1
Clean up and add tests
broccolinisoup bcba97d
Merge branch 'main' into revert-5136-revert-4929-select_panel_loading…
broccolinisoup 26cc0a1
Merge branch 'revert-5136-revert-4929-select_panel_loading_states' in…
broccolinisoup af2a4b1
update stories and add a comment
broccolinisoup ee94d5c
Create new-mangos-fold.md
broccolinisoup b2e6d65
Allow loading state to be managed by the user
camertron 1d47771
Merge branch 'revert-5136-revert-4929-select_panel_loading_states' of…
camertron 1898b28
Merge branch 'main' into revert-5136-revert-4929-select_panel_loading…
camertron 15d81f5
Merge branch 'main' into revert-5136-revert-4929-select_panel_loading…
broccolinisoup 543ff54
Encounter the loading state for the initial state announcement
broccolinisoup 9a4a628
Merge upstream changes
camertron 549d98b
It's working
camertron 6f0d035
Cleanup
camertron f31f3fa
Merge main
camertron b1457cd
Merge upstream changes
camertron a00e399
Merging upstream
camertron 0f6b5dd
Fix linting issues
camertron 36ca499
Merge branch 'main' into revert-5136-revert-4929-select_panel_loading…
camertron ca34373
Revert snapshots
camertron 1ddf03e
Merge branch 'revert-5136-revert-4929-select_panel_loading_states' of…
camertron 30c1134
test(vrt): update snapshots
francinelucca da05622
Backport #5551 to this PR
camertron 9b14f3e
Merge branch 'revert-5136-revert-4929-select_panel_loading_states' of…
camertron 3c8826b
Merge branch 'main' into revert-5136-revert-4929-select_panel_loading…
francinelucca 74765d0
Merge branch 'main' into revert-5136-revert-4929-select_panel_loading…
camertron b1773dc
Merge branch 'main' into revert-5136-revert-4929-select_panel_loading…
camertron 30cd041
Fix auto-focus behavior
camertron e409c49
Merge upstream changes
camertron 4b1ac99
Add test to ensure focus behavior
camertron 8b41ec0
Merge branch 'main' into revert-5136-revert-4929-select_panel_loading…
camertron 97b50ba
Allow consumers to pass an inputRef; DRY up timeout cleanup; simplify…
camertron 0cd6dbd
DRY up announcement code; restore useAnnouncements hook for non-Selec…
camertron 986dd49
Fix types tests
camertron d49d955
Remove testing ID
camertron 7215b43
Merge upstream
camertron e2b8446
Remove confusing componentManagesLoading control in async story
camertron e91e434
Merge upstream changes
camertron e890eb5
Merging upstream changes
camertron d367d96
Merge branch 'main' of github.com:primer/react into select-panel-empt…
francinelucca 2d4c81b
minor tweaks
francinelucca 8a0d362
remove sx usage
francinelucca 2e7a35f
css fixes
francinelucca 46ba4c5
format
francinelucca 3e3478a
fix type errors
francinelucca d8c3d66
remove unnecessary css rule override
francinelucca f8cba5d
css fix
francinelucca 1f29357
format
francinelucca 46a150a
lint fix
francinelucca 3d768e6
document new SelectPanel.Message subcomponent
francinelucca 7e19c26
fix(SelectPanel): rename no-results variant
francinelucca fe9c4db
fix(SelectPanel): messages refactor
francinelucca 8a1ff82
Update packages/react/src/SelectPanel/SelectPanel.module.css
francinelucca 5b2f4fe
fix(SelectPanel): styling fixes
francinelucca 14d0f6c
Merge branch 'select-panel-empty-state' of github.com:primer/react in…
francinelucca e012b26
Merge branch 'main' into select-panel-empty-state
francinelucca df0b2c7
chore(SelectPanel): remove circular dependency
francinelucca 0674475
Merge branch 'select-panel-empty-state' of github.com:primer/react in…
francinelucca 5e6674d
aat fix
francinelucca 310ea1d
fix: remove extra space
francinelucca d6cddfe
Merge branch 'main' into select-panel-empty-state
francinelucca 7c9a00b
Merge branch 'main' into select-panel-empty-state
francinelucca 4c771a3
fix(SelectPanel): empty state refactor
francinelucca 63330fa
Merge branch 'main' into select-panel-empty-state
francinelucca c6fc0eb
fix(SelectPanel): remove outdated tests
francinelucca f290156
fix: remove unused variable
francinelucca 272b0d5
fix typo
francinelucca cbfdb35
test(vrt): update snapshots
francinelucca 743e88f
fix(SelectPanel): re-add default empty messages tests
francinelucca b456833
Merge branch 'select-panel-empty-state' of github.com:primer/react in…
francinelucca 2a18aa3
story fix
francinelucca 29e4477
update SelectPanel.docs.json
francinelucca f1a5ec3
revert story changes
francinelucca ebc0939
update SelectPanel.docs.json
francinelucca 8a6c703
correct selection announcement
francinelucca 4ddba4a
Update packages/react/src/FilteredActionList/FilteredActionListWithMo…
francinelucca 1a36119
Update packages/react/src/SelectPanel/SelectPanel.dev.stories.tsx
francinelucca 498632b
Update packages/react/src/SelectPanel/SelectPanel.dev.stories.tsx
francinelucca 6b6224d
address review comments
francinelucca 78d744f
use strict equality in SelectPanel stories
francinelucca c187e40
Merge branch 'main' of github.com:primer/react into select-panel-empt…
francinelucca 23a1be1
remove duplicate import
francinelucca 5006680
Merge branch 'main' of github.com:primer/react into select-panel-empt…
francinelucca 4c3d636
fix(SelectPanel): align message API with notice
francinelucca 80743d6
Merge branch 'main' of github.com:primer/react into select-panel-empt…
francinelucca 238ecd1
test(vrt): update snapshots
francinelucca 07a4fab
fix(SelectPanel): remove liveregion
francinelucca 70e4b30
Merge branch 'select-panel-empty-state' of github.com:primer/react in…
francinelucca d3d6875
remove unused var
francinelucca 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
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@primer/react": minor | ||
| --- | ||
|
|
||
| SelectPanel: Implement empty state (behind ff) |
Binary file added
BIN
+27.5 KB
...ts-snapshots/SelectPanel-Height-Variations-and-Scroll-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.3 KB
...Height-Variations-and-Scroll-dark-colorblind-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29 KB
...est.ts-snapshots/SelectPanel-Height-Variations-and-Scroll-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+28.9 KB
...nel-Height-Variations-and-Scroll-dark-dimmed-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.8 KB
...snapshots/SelectPanel-Height-Variations-and-Scroll-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+26.6 KB
...ght-Variations-and-Scroll-dark-high-contrast-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.5 KB
...Panel.test.ts-snapshots/SelectPanel-Height-Variations-and-Scroll-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.3 KB
...electPanel-Height-Variations-and-Scroll-dark-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.5 KB
...ts-snapshots/SelectPanel-Height-Variations-and-Scroll-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.3 KB
...Height-Variations-and-Scroll-dark-tritanopia-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.2 KB
...s-snapshots/SelectPanel-Height-Variations-and-Scroll-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.1 KB
...eight-Variations-and-Scroll-light-colorblind-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.3 KB
...napshots/SelectPanel-Height-Variations-and-Scroll-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.2 KB
...ht-Variations-and-Scroll-light-high-contrast-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.2 KB
...anel.test.ts-snapshots/SelectPanel-Height-Variations-and-Scroll-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.1 KB
...lectPanel-Height-Variations-and-Scroll-light-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.2 KB
...s-snapshots/SelectPanel-Height-Variations-and-Scroll-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+27.1 KB
...eight-Variations-and-Scroll-light-tritanopia-modern-action-list--true-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
packages/react/src/FilteredActionList/FilteredActionList.module.css
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| .Container { | ||
| display: flex; | ||
| height: 100%; | ||
| overflow: auto; | ||
| flex-grow: 1; | ||
| } |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
test