-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add multi-filtering to tables; refactor details pages into tabs #63
Conversation
Signed-off-by: Tyler Ohlsen <[email protected]>
Signed-off-by: Tyler Ohlsen <[email protected]>
Signed-off-by: Tyler Ohlsen <[email protected]>
return; | ||
} | ||
const newFilters = [...filters]; | ||
// @ts-ignore |
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.
TLDR of adding all of these ignores is due to IDE complaints that the type fields don't match. This is due to differences in EUI vs. OUI and their respective documentation. This follows the latest OUI documentation.
interface MultiSelectFilterProps { | ||
title: string; | ||
filters: EuiFilterSelectItem[]; | ||
setSelectedFilters: (filters: EuiFilterSelectItem[]) => void; |
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.
We have this setter as a prop since typically any filter changes will need to be propagated to the parent component(s).
@@ -11,6 +11,7 @@ import { saveWorkflow } from '../utils'; | |||
import { rfContext, AppState, removeDirty } from '../../../store'; | |||
|
|||
interface WorkflowDetailHeaderProps { | |||
tabs: any[]; |
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.
Tab
isn't exposed by EUI/OUI library so we set as any
.
Signed-off-by: Tyler Ohlsen <[email protected]>
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.
Overall LGTM, maybe try to make sure we can still reproduce same video as in description with latest main OSD branch
Signed-off-by: Tyler Ohlsen <[email protected]> (cherry picked from commit edcd453)
…#83) Signed-off-by: Tyler Ohlsen <[email protected]> (cherry picked from commit edcd453) Co-authored-by: Tyler Ohlsen <[email protected]>
Description
This PR achieves 4 main things:
MultiSelectFilter
component that can be added to tables for filtering by subset of available options (e.g., workflow status).With the refactoring, this also does some minor styling & padding changes for consistency, and adds boilerplate pages for the unfinished Launches and Prototypes pages under their respective tabs
Demo video (table enhancements):
screen-capture.21.webm
Demo video (new workflow details tabs):
screen-capture.22.webm
Issues Resolved
Makes progress on #8, #13, #15
Check List
--signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.