Skip to content

refactor: [M3-6412, M3-6413, M3-6650] - MUI v5 - Components > TagCell, Tags, AddTag#9186

Merged
hana-akamai merged 6 commits intolinode:developfrom
hana-akamai:M3-6412-tag-cell
Jun 2, 2023
Merged

refactor: [M3-6412, M3-6413, M3-6650] - MUI v5 - Components > TagCell, Tags, AddTag#9186
hana-akamai merged 6 commits intolinode:developfrom
hana-akamai:M3-6412-tag-cell

Conversation

@hana-akamai
Copy link
Contributor

@hana-akamai hana-akamai commented May 26, 2023

Description 📝

Migrate styles for the TagCell and AddTag component
Update Tags component to match our current patterns

Preview 📷

image

How to test 🧪

  • Check tags around the app for regressions
  • Ensure the Tags story renders in Storybook

@hana-akamai hana-akamai changed the title refactor: [M3-6412] - MUI v5 - Components > TagCell refactor: [M3-6412] - MUI v5 - Components > TagCell, Tags May 26, 2023
@cypress
Copy link

cypress bot commented May 26, 2023

1 flaky tests on run #3953 ↗︎

0 167 3 0 Flakiness 1

Details:

Added changeset: MUI v5 Migration -
Project: Cloud Manager E2E Commit: 42a70a4f58
Status: Passed Duration: 13:47 💡
Started: Jun 1, 2023 9:09 PM Ended: Jun 1, 2023 9:23 PM
Flakiness  cypress/e2e/linodes/rescue-linode.spec.ts • 1 flaky test

View Output Video

Test Artifacts
Rescue Linodes > Cannot reboot a provisioning Linode into rescue mode Output Screenshots Video

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@dwiley-akamai dwiley-akamai self-requested a review May 31, 2023 14:57
Copy link
Contributor

@dwiley-akamai dwiley-akamai left a comment

Choose a reason for hiding this comment

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

Tags LGTM in the app. Left a comment re: additional file cleanup in the src/components/TagCell directory

@hana-akamai hana-akamai changed the title refactor: [M3-6412] - MUI v5 - Components > TagCell, Tags refactor: [M3-6412, M3-6413, M3-6650] - MUI v5 - Components > TagCell, Tags, AddTag Jun 1, 2023
@hana-akamai hana-akamai added Add'tl Approval Needed Waiting on another approval! and removed Work in Progress labels Jun 1, 2023
@hana-akamai hana-akamai requested a review from dwiley-akamai June 1, 2023 19:01
@hana-akamai hana-akamai merged commit 3bc1758 into linode:develop Jun 2, 2023
@hana-akamai hana-akamai deleted the M3-6412-tag-cell branch June 2, 2023 15:15
hkhalil-akamai added a commit that referenced this pull request Jun 2, 2023
…sLanding (#9046)

* Initial idea for RQ events

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Initial working version of useEventsPolling hook

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Re-implementation of useEventsPolling hook

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Completed initial implementation of useEvents hook

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Invalidate events cache when new events are fetched

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Use read instead of seen flag for polling

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Implement polling interval

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Switch to RQ hook for notifications menu

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Switch EventsLanding to RQ hook and enhance top-menu

Fixes notification menu button background color disappearing on hover in dark mode

Fix Notification menu doesn't close when navigating to EventsLanding

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Implement markEventsAsSeen mutation

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Temporarily re-enable redux polling

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Track previously existing in-progress events

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Remove old test

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Move NotificationMenu styled component to dedicated file

* Follow style guide in EventsLanding

* Rename TopMenuIconWrapper

* fix: Re-add `fs` import to Cypress config (#9199)

* add `fs` import

* use cleaner import

---------

Co-authored-by: Banks Nussman <banks@nussman.us>

* refactor: [M3-6382] - MUI v5 - `Components > Radio` (#9185)

* move styles to theme and update stories

* remove incorrect color

---------

Co-authored-by: Banks Nussman <banks@nussman.us>

* refactor: [M3-6411] - MUI v5 - `Components > Tag` (#9164)

## Description 📝
Migrate styles for the Tag component

## How to test 🧪
Confirm that there have been no Tag regressions across the app

Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com>

* refactor: [M3-6412, M3-6413, M3-6650] - MUI v5 - `Components > TagCell, Tags, AddTag` (#9186)

## Description 📝
Migrate styles for the TagCell and AddTag component
Update Tags component to match our current patterns

## How to test 🧪
- Check tags around the app for regressions
- Ensure the Tags story renders in Storybook

---------

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>
Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com>
Co-authored-by: Banks Nussman <banks@nussman.us>
Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com>
hkhalil-akamai added a commit that referenced this pull request Jul 20, 2023
* refactor: [M3-6570] - RQ-ify Events - Part 1: NotificationMenu, EventsLanding (#9046)

* Initial idea for RQ events

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Initial working version of useEventsPolling hook

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Re-implementation of useEventsPolling hook

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Completed initial implementation of useEvents hook

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Invalidate events cache when new events are fetched

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Use read instead of seen flag for polling

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Implement polling interval

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Switch to RQ hook for notifications menu

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Switch EventsLanding to RQ hook and enhance top-menu

Fixes notification menu button background color disappearing on hover in dark mode

Fix Notification menu doesn't close when navigating to EventsLanding

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Implement markEventsAsSeen mutation

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Temporarily re-enable redux polling

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Track previously existing in-progress events

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Remove old test

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>

* Move NotificationMenu styled component to dedicated file

* Follow style guide in EventsLanding

* Rename TopMenuIconWrapper

* fix: Re-add `fs` import to Cypress config (#9199)

* add `fs` import

* use cleaner import

---------

Co-authored-by: Banks Nussman <banks@nussman.us>

* refactor: [M3-6382] - MUI v5 - `Components > Radio` (#9185)

* move styles to theme and update stories

* remove incorrect color

---------

Co-authored-by: Banks Nussman <banks@nussman.us>

* refactor: [M3-6411] - MUI v5 - `Components > Tag` (#9164)

## Description 📝
Migrate styles for the Tag component

## How to test 🧪
Confirm that there have been no Tag regressions across the app

Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com>

* refactor: [M3-6412, M3-6413, M3-6650] - MUI v5 - `Components > TagCell, Tags, AddTag` (#9186)

## Description 📝
Migrate styles for the TagCell and AddTag component
Update Tags component to match our current patterns

## How to test 🧪
- Check tags around the app for regressions
- Ensure the Tags story renders in Storybook

---------

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>
Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com>
Co-authored-by: Banks Nussman <banks@nussman.us>
Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com>

* Undo no-longer needed changes to top menu icons

* refactor: [M3-6571] - RQ-ify Events - Part 2: Event Handlers (#9293)

* Make polling part of EventsInfiniteQuery

* Move event utilities to utilities folder

* Create events query container

* Migrate App events handlers to new events hook

* Migrate toast notifications to new hook

* Move app event handlers to hook

* Finish migrating event handlers

* Remove events redux store

* Fix failing test

* Fix issue causing multiple pages of events to refresh

* implement page zero for new events

* Optimize/reduce calls to events endpoint

* Implement rolling-time polling

* Fix events being duplicated

* Fix unsupported API filter

* Fix index out of bounds bug

* Fix broken in-progress events polling

* Get rid of separate page zero cache and store new events in first page instead

* Undo accidental changes to cachedData

* remove leftover pageZero stuff

* Fix undefined recent event

* Start from page 1

* Feedback @jaalah-akamai

* New hook for synchronizing polling intervals

* Remove unused exports

* Custom implementation of partition util

* Sort in-progress events to top

* Use events instead of data

* Use React.useMemo

* Fix state accidental deletion

* Clean up useToastNotifications

* Add changesets

* Remove Redux connector in EventsLanding

* Rename to NotificationMenu.styles.ts

* nodebalanacer -> nodebalancer

* Import from src/components instead of MUI

* Replace CombinedProps with EventsLandingProps

---------

Co-authored-by: Hussain Khalil <hussain@sanpilot.co>
Co-authored-by: Banks Nussman <115251059+bnussman-akamai@users.noreply.github.com>
Co-authored-by: Banks Nussman <banks@nussman.us>
Co-authored-by: Hana Xu <115299789+hana-linode@users.noreply.github.com>
Co-authored-by: Jaalah Ramos <jaalah.ramos@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Add'tl Approval Needed Waiting on another approval!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants