-
Notifications
You must be signed in to change notification settings - Fork 119
Filter pattern docs #4013
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
Filter pattern docs #4013
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
97923bb
feat(filter): add form pills
PixeledCode 456f71b
feat(filter): add different filter types
PixeledCode 9aa1076
feat(filter): add selected state for filter pills
PixeledCode d8b6273
feat(filter): add clear all button
PixeledCode 0e34345
feat(filter): add selected value label to pills
PixeledCode 31ab2a4
feat(filter): add logic for room type filtering
PixeledCode 369bdd9
feat(filter): add logic for participants and date-time filtering
PixeledCode 967a889
feat(filter): fix popover opening on dismiss button
PixeledCode 3fbe6c8
feat(filter): add ts-expect-error for borderRadius
PixeledCode be9d7a4
feat(intellisense): add intellisense to recommended extensions
PixeledCode ece0ab6
feat(filter): refactor codebase
PixeledCode d9fa76d
feat(filter): fix ts issue
PixeledCode 29e83f2
feat(filter): remove test for 'all' room type
PixeledCode 9944e62
feat(filter): add search filter example
PixeledCode 155dad4
feat(filter): update search filter to include multiple columns
PixeledCode f4c334d
feat(filter): refactor to remove search filter file
PixeledCode d3b7432
feat(filter): update DefaultFilterGroup to accept filterList
PixeledCode 82b8c46
feat(filter): add ConditionalFilterGroupExample story
PixeledCode 972467e
feat(filter): refactor FilterPill component
PixeledCode 0df5bef
feat(filter): add Addfilter component
PixeledCode 5eea311
feat(filter): fix dismiss button not working
PixeledCode 693d712
feat(filter): remove validation on non selection of filter items
PixeledCode 71db659
feat(filter): add ability to choose only one date
PixeledCode 210a078
feat(filter): refactor date/time to date-range
PixeledCode 8fd98fc
feat(filter): satisfy typescript for multiselect
PixeledCode 3c04de4
feat(filter): add functionality to add filters
PixeledCode 1f67454
feat(filter): add logic for add filter pill
PixeledCode 7eff647
feat(filter): replace add filter pill with button
PixeledCode edef567
feat(filter): add badge to add filter
PixeledCode 2d5f489
feat(filter): add FilterAction
PixeledCode 82587eb
feat(filter): add unique name filter
PixeledCode 49bc9d5
feat(filter): add room sid filter
PixeledCode 492ce6f
feat(filter): update example file
PixeledCode abd1868
fix(website): add missing { for sidepanel docs
PixeledCode 762ecea
feat(filter): add host name filter
PixeledCode 4049cc0
feat(filter): add status filter
PixeledCode 51ebeda
feat(filter): add tags filter
PixeledCode 8093073
feat(filter): add logic for more filters
PixeledCode 76ccb12
feat(filter): improve state logic for sidepanel
PixeledCode 286bce0
feat(filter): fix count badge issue
PixeledCode 5cff6be
feat(filter): add badge count for more filter button
PixeledCode a2733eb
feat(filter): add department and platform filter
PixeledCode a0be423
feat(filter): fix padding issue on story
PixeledCode 8e4e0d9
feat(filter): rename filter group to filter
PixeledCode fc0f607
feat(filter): add docs
PixeledCode f275fb0
feat(filter): add code demos in docs
PixeledCode 7da033a
feat(filter): format files
PixeledCode ed1c550
feat(filter): rename FilterGroup to Filter
PixeledCode b8564c0
feat(filter): remove clearCondition prop
PixeledCode a133f90
feat(filter): bring back the Filter group files
PixeledCode 7da84a2
feat(filter): website clean build
PixeledCode 422eaf3
feat(filter): add filter to sitemap-vrt
PixeledCode 117f3f8
feat(filter): add changeset
PixeledCode 863fbe0
feat(filter): remove changeset
PixeledCode 3575179
Apply suggestions from code review by @sara
PixeledCode ae95de5
feat(website): add link to filter pattern doc
PixeledCode a31472d
feat(filter): implement changes from review
PixeledCode 3f70037
feat(website): add redirect for filter-group to filter
PixeledCode 5f6f8c0
fix(filter): prevent filterbar overwriting sidebar filters
PixeledCode 22efe92
fix(filter): improve state management
PixeledCode dbe5634
feat(tokens): remove old filter-group tests
PixeledCode 5864a63
fix(filter): update date format
PixeledCode cfd6033
fix(filter): update images
PixeledCode dce9c5c
fix(filter): remove filter on click of "apply all" and "clear all"
PixeledCode f2856ae
fix(filter): update content
PixeledCode a77996e
fix(filter): add comparision validation for filters
PixeledCode 73d01d7
fix(filter): remove filter-group from vrt
PixeledCode 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
160 changes: 0 additions & 160 deletions
160
cypress/integration/filter-group-examples/index.spec.ts
This file was deleted.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
+80.5 KB
packages/paste-website/src/assets/images/patterns/filter-fetching.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
+61.7 KB
packages/paste-website/src/assets/images/patterns/filter-filter_bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
+169 KB
packages/paste-website/src/assets/images/patterns/filter-responsive.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
+123 KB
packages/paste-website/src/assets/images/patterns/filter-responsive_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions
18
packages/paste-website/src/component-examples/filter/Examples.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* DISCLAIMER: this is an example, not meant to be used in production */ | ||
import { Anchor } from "@twilio-paste/anchor"; | ||
import { Box } from "@twilio-paste/box"; | ||
|
||
import { DefaultFilter } from "./components/DefaultFilter"; | ||
import { TABLE_DATA } from "./constants"; | ||
import type { FilterListType } from "./types"; | ||
|
||
const filterList: FilterListType = ["roomType", "participants", "dateCompleted"]; | ||
|
||
export const DefaultFilterGroupExample = (): JSX.Element => ( | ||
<Box marginBottom="space70" data-cy="filter-default-example"> | ||
<DefaultFilter data={TABLE_DATA} filterList={filterList} /> | ||
<Anchor showExternal href="https://codesandbox.io/s/default-filter-group-rloskb?file=/src/App.tsx"> | ||
<strong>View example in CodeSandbox</strong> | ||
</Anchor> | ||
</Box> | ||
); |
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.
Uh oh!
There was an error while loading. Please reload this page.