-
Notifications
You must be signed in to change notification settings - Fork 135
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
Notification Drawer Update #2571
Notification Drawer Update #2571
Conversation
3ca4569
to
5aaf9e6
Compare
Note :) |
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.
Looking good! A couple of changes and we'll be golden!
2a44e1f
to
e09c99b
Compare
ffb9320
to
c4e188e
Compare
src/redux/notificationTestData.js
Outdated
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.
Can we update these tests to reflect what actual notifications would look like?
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.
Well im taking those out once i get the green light on everything else (just to save time), but if we have live examples somewhere I'm happy to replace them for screenshots or what not
Should be good to go now, everything tested before last commit. Once the green light is given for the overall changes, test data will be taken out |
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.
Looking hella good! Just a few nitpicks and we are golden!
2b335d3
to
e971de9
Compare
Codecov Report
@@ Coverage Diff @@
## master #2571 +/- ##
==========================================
- Coverage 57.38% 57.19% -0.20%
==========================================
Files 91 92 +1
Lines 2783 2815 +32
Branches 648 581 -67
==========================================
+ Hits 1597 1610 +13
- Misses 1111 1204 +93
+ Partials 75 1 -74
|
I'm seeing a bunch of new errors after rebasing, trying to figure out what that all is about. |
2957739
to
9f63bc5
Compare
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.
Let's use lodash's sortBy instead of manual sort to have proper sorting and once the commented out feature flag options are removed and eslint if fixed we can merge it!
I take it back, this is way better/easier lol |
9f63bc5
to
5fa9ff3
Compare
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.
Looking good! Just nitpick about DateFormat and importing testing data, but overall looks good
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.
Looking good, just remove the filter by source dropdown a it's done in other ticket.
/retest |
2 similar comments
/retest |
/retest |
d7c831f
to
cd35821
Compare
cd35821
to
58dcec0
Compare
Unsure if I did something to cause that new failing test, seems to complaint about missing dockerfile 😕 |
a75ba08
to
d40694e
Compare
<DropdownList> | ||
{filterConfig.map((source) => ( | ||
<DropdownItem key={source.value} onClick={() => onFilterSelect(source.value)} isDisabled={notifications.length === 0}> | ||
<Checkbox isChecked={activeFilters.includes(source.value)} id={source.value} className="pf-v5-u-mr-sm" /> |
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.
The checkbox is partially uncontrolled which prints an error in a console.
Warning: A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components
There is a build in PF way of creating menu item checkboxes: https://www.patternfly.org/components/menus/menu
DropdownItem shares props with MenuItems. It's just a wrapper around it.
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.
Thanks, I misunderstood what you meant with the menu wrapper before 👍
Addressing the following JIRA card
Note: This PR nor card are intended to address getting real data in. This is purely UI based for now with dummy data hard-coded in.