-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(filter): add form pills * feat(filter): add different filter types * feat(filter): add selected state for filter pills * feat(filter): add clear all button * feat(filter): add selected value label to pills * feat(filter): add logic for room type filtering * feat(filter): add logic for participants and date-time filtering * feat(filter): fix popover opening on dismiss button * feat(filter): add ts-expect-error for borderRadius * feat(intellisense): add intellisense to recommended extensions * feat(filter): refactor codebase * feat(filter): fix ts issue * feat(filter): remove test for 'all' room type * feat(filter): add search filter example * feat(filter): update search filter to include multiple columns * feat(filter): refactor to remove search filter file * feat(filter): update DefaultFilterGroup to accept filterList * feat(filter): add ConditionalFilterGroupExample story * feat(filter): refactor FilterPill component * feat(filter): add Addfilter component * feat(filter): fix dismiss button not working * feat(filter): remove validation on non selection of filter items * feat(filter): add ability to choose only one date * feat(filter): refactor date/time to date-range * feat(filter): satisfy typescript for multiselect * feat(filter): add functionality to add filters * feat(filter): add logic for add filter pill * feat(filter): replace add filter pill with button * feat(filter): add badge to add filter * feat(filter): add FilterAction * feat(filter): add unique name filter * feat(filter): add room sid filter * feat(filter): update example file * fix(website): add missing { for sidepanel docs * feat(filter): add host name filter * feat(filter): add status filter * feat(filter): add tags filter * feat(filter): add logic for more filters * feat(filter): improve state logic for sidepanel * feat(filter): fix count badge issue * feat(filter): add badge count for more filter button * feat(filter): add department and platform filter * feat(filter): fix padding issue on story * feat(filter): rename filter group to filter * feat(filter): add docs * feat(filter): add code demos in docs * feat(filter): format files * feat(filter): rename FilterGroup to Filter * feat(filter): remove clearCondition prop * feat(filter): bring back the Filter group files * feat(filter): website clean build * feat(filter): add filter to sitemap-vrt * feat(filter): add changeset * feat(filter): remove changeset * Apply suggestions from code review by @sara Co-authored-by: Sarah <[email protected]> * feat(website): add link to filter pattern doc * feat(filter): implement changes from review * feat(website): add redirect for filter-group to filter * fix(filter): prevent filterbar overwriting sidebar filters * fix(filter): improve state management * feat(tokens): remove old filter-group tests * fix(filter): update date format * fix(filter): update images * fix(filter): remove filter on click of "apply all" and "clear all" * fix(filter): update content * fix(filter): add comparision validation for filters * fix(filter): remove filter-group from vrt --------- Co-authored-by: Sarah <[email protected]>
- Loading branch information
1 parent
a5117c1
commit 4d2e5e3
Showing
48 changed files
with
3,803 additions
and
181 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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.