-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fetch available source types via the rest API - Added picker in the user preference configuration step - Unit tests - Logic filtering is: - Minimum one source type must be selected - If all of the source types are selected, no filter is applied in case we add new source type categories/sub types in the future - If all of the subtypes of a category is selected, the name of the category will be passed in the filter instead of each children in case the sub types are changed in the future - Otherwise, pass the source types selected as a filter when fetching the events
- Loading branch information
Marc-Antoine Hinse
committed
Nov 27, 2024
1 parent
c6b1ba1
commit 5c3679c
Showing
20 changed files
with
700 additions
and
9 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
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
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
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
56 changes: 56 additions & 0 deletions
56
packages/react-components/src/components/SourceTypeCategoryOption.css
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,56 @@ | ||
.source-types-category-container { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.source-types-children-container { | ||
margin-left: 2rem; | ||
margin-top: 0.25rem; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: start; | ||
gap: 0.25rem; | ||
} | ||
|
||
.source-types-children-container[hidden] { | ||
display: none; | ||
} | ||
|
||
.source-types-category-header { | ||
width: 14rem; | ||
display: flex; | ||
flex-direction: row; | ||
} | ||
|
||
.source-types-category-count { | ||
user-select: none; | ||
color: var(--secondary-text-color); | ||
flex: 1; | ||
text-align: end; | ||
} | ||
|
||
.source-types-category { | ||
width: 1rem; | ||
height: 1rem; | ||
margin-left: 0.5rem; | ||
cursor: pointer; | ||
align-self: center; | ||
} | ||
|
||
.source-types-category > span { | ||
display: inline-table; | ||
width: 0.5rem; | ||
height: 0.5rem; | ||
border: solid white; | ||
border-width: 0 0 0.125rem 0.125rem; | ||
} | ||
|
||
.source-types-category-expand > span { | ||
transform: rotate(-45deg); | ||
margin-bottom: 0.5rem; | ||
} | ||
|
||
.source-types-category-collapse > span { | ||
transform: rotate(135deg); | ||
margin-top: 0.25rem; | ||
} |
Oops, something went wrong.