Skip to content

Conversation

Forfold
Copy link
Contributor

@Forfold Forfold commented May 20, 2021

  • Identified the issue which this PR solves.
  • Read the CONTRIBUTING document.
  • Code builds clean without any errors or warnings.
  • Added appropriate tests for any new functionality.
  • All new and existing tests passed.
  • Added comments in the code, where necessary.
  • Ran make check to catch common errors. Fixed any that came up.

Description:
Moves the remaining page actions out of the toolbar and into the content view. This opens up work in enhancing the toolbar for things like the profile avatar, logout button, dark/light theme button, and searching on mobile.

With the changing of some grid layouts, there was a good amount of whitespace changes so I recommend hiding that while reviewing. 🙂

Which issue(s) this PR fixes:
Closes #1517

Additional Info:

Out of Scope:
Override List causes the filter popover to close after choosing a selection (rather than the usual process of waiting for the user to select "Done"). I spent a significant amount of time trying to compensate for this, but couldn't come up with a solid solution without rewriting QueryList and other similar components. This can be addressed in a future issue regarding layout within the content view.

Screenshots:
Screen Shot 2021-05-20 at 11 59 31 AM

Screen Shot 2021-05-20 at 12 01 27 PM

Screen Shot 2021-05-20 at 12 01 36 PM

Screen Shot 2021-05-20 at 12 01 46 PM

Screen Shot 2021-05-20 at 12 02 57 PM

Screen Shot 2021-05-20 at 12 03 07 PM

@dctalbot
Copy link
Contributor

Can we remove the "acknowledge all alerts" and "close all alerts" buttons? Same functionality can be achieved using the checkbox flow

@Forfold
Copy link
Contributor Author

Forfold commented May 24, 2021

@dctalbot While they share the same general functionality, with checkboxes being paginated you'll never be able to confidently ack or close all alerts for a service- those two buttons use a different mutation: UpdateAlertsByServiceMutation given the new status and ServiceID

@dctalbot
Copy link
Contributor

Ah interesting, I wondered if that was the case. Thanks for the context!

pnengchu
pnengchu previously approved these changes May 27, 2021
Copy link
Contributor

@dctalbot dctalbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks great besides the header action issue you mentioned. We may want to separate out the header from the list components entirely, similar to what we did with the calendar toolbar. That would hopefully reduce the repetition of having to add headernote/headeraction props to each list. Otherwise, just a couple comments on design ideas

pnengchu
pnengchu previously approved these changes May 28, 2021
pnengchu
pnengchu previously approved these changes Jun 2, 2021
@Forfold
Copy link
Contributor Author

Forfold commented Jun 2, 2021

Thanks for the reviews helping kick off CI @pnengchu! Sorry for all the spin. @dctalbot, the Cypress integration tests should be good to go now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: move remaining action buttons out of toolbar
3 participants