Standardize the sync/suspend/edit buttons#4080
Conversation
8b79682 to
c919c50
Compare
41f1db5 to
77bf81d
Compare
|
There is an enterprise counterpart to this PR: |
|
@foot merged a small PR updating enterprise with the latest OSS main ✨ , so I will continue working on the enterprise counterpart of the current PR. But the current PR can be reviewed already. |
|
Add links to the latest video and Figma. |
|
Changed the format of my screen recording to MP4. |
|
@jpellizzari thank you! 🎉 |
joshri
left a comment
There was a problem hiding this comment.
This is awesome! Great code!
I noticed my sync requests in the ImageAutomations section are timing out, but I don't have enough faith in the objs on my cluster to say for sure if it's because of this PR - were you able to test img repos and update automations?
|
@joshri thank for testing it and notifying me about the issue! ✨ I don't think it is related to the current PR, because it should not affect the backend. But there was another PR merged in a few days ago which introduced some major changes to the sync/suspend backend code. I will re-test my PR now with some ImageAutomations objects. |
|
Yep - figured as much. I think this is safe to merge and we should address whatever's happening/not happening there in a follow up |
|
@joshri tested several requests, have not been able to receive a request timeout or an error for iamge repos or image update automations, works fine for me.
|
…nd `CheckboxActions` components, with the new Sync/Suspend/Resume controls (the `SyncControl` component). (#4080). * Create the new `SyncControls` component for Sync/Suspend/Resume controls. * Move all components, related to syncing and suspending objects (existing `SyncActions` and `CheckboxActions` and new `SyncControls` and `ResumeIcon`), to the `Sync` folder. * Update the related UI snapshot. * Add `SyncControls` to exports. * Move custom actions to the start (left) of `SyncControls` buttons. * Re-arrange icons in `IconType` alphabetically.
98edb43 to
9bb7c2f
Compare
…nd `CheckboxActions` components, with the new Sync/Suspend/Resume controls (the `SyncControl` component) (#4080) * Create the new `SyncControls` component for Sync/Suspend/Resume controls. * Move all components, related to syncing and suspending objects (existing `SyncActions` and `CheckboxActions` and new `SyncControls` and `ResumeIcon`), to the `Sync` folder. * Update the related UI snapshot. * Add `SyncControls` to exports. * Move custom actions to the start (left) of `SyncControls` buttons. * Re-arrange icons in `IconType` alphabetically.
9bb7c2f to
91db5c3
Compare
…nd `CheckboxActions` components, with the new Sync/Suspend/Resume controls (the `SyncControl` component) (#4080) * Create the new `SyncControls` component for Sync/Suspend/Resume controls. * Move all components, related to syncing and suspending objects (existing `SyncActions` and `CheckboxActions` and new `SyncControls` and `ResumeIcon`), to the `Sync` folder. * Update the related UI snapshot. * Add `SyncControls` to exports. * Move custom actions to the start (left) of `SyncControls` buttons. * Re-arrange icons in `IconType` alphabetically.
91db5c3 to
fe336d6
Compare
…nd `CheckboxActions` components, with the new Sync/Suspend/Resume controls (the `SyncControl` component) (#4080) * Create the new `SyncControls` component for Sync/Suspend/Resume controls. * Move all components, related to syncing and suspending objects (existing `SyncActions` and `CheckboxActions` and new `SyncControls` and `ResumeIcon`), to the `Sync` folder. * Update the related UI snapshot. * Add `SyncControls` to exports. * Move custom actions to the start (left) of `SyncControls` buttons. * Re-arrange icons in `IconType` alphabetically.
56289e8 to
dd4c5fc
Compare
…nd `CheckboxActions` components, with the new Sync/Suspend/Resume controls (the `SyncControl` component) (#4080) * Create the new `SyncControls` component for Sync/Suspend/Resume controls. * Move all components, related to syncing and suspending objects (existing `SyncActions` and `CheckboxActions` and new `SyncControls` and `ResumeIcon`), to the `Sync` folder. * Update the related UI snapshot. * Add `SyncControls` to exports. * Move custom actions to the start (left) of `SyncControls` buttons. * Re-arrange icons in `IconType` alphabetically.
dd4c5fc to
496ddb2
Compare
…nd `CheckboxActions` components, with the new Sync/Suspend/Resume controls (the `SyncControl` component) (#4080) * Create the new `SyncControls` component for Sync/Suspend/Resume controls. * Move all components, related to syncing and suspending objects (existing `SyncActions` and `CheckboxActions` and new `SyncControls` and `ResumeIcon`), to the `Sync` folder. * Update the related UI snapshot. * Add `SyncControls` to exports. * Move custom actions to the start (left) of `SyncControls` buttons. * Re-arrange icons in `IconType` alphabetically.
496ddb2 to
b2d13d1
Compare
…nd `CheckboxActions` components, with the new Sync/Suspend/Resume controls (the `SyncControl` component) (#4080) * Create the new `SyncControls` component for Sync/Suspend/Resume controls. * Move all components, related to syncing and suspending objects (existing `SyncActions` and `CheckboxActions` and new `SyncControls` and `ResumeIcon`), to the `Sync` folder. * Update the related UI snapshot. * Add `SyncControls` to exports. * Move custom actions to the start (left) of `SyncControls` buttons. * Re-arrange icons in `IconType` alphabetically.
b2d13d1 to
859747a
Compare
|
Re-tested the current PR, works fine, so I am merging it. Will merge the enterprise part of this issue when enterprise is updated for the main OSS branch. |








Part of weaveworks/weave-gitops-enterprise#3374
Replaced the Sync/Suspend/Resume controls, used in the
SyncActionsandCheckboxActionscomponents, with the new Sync/Suspend/Resume controls (theSyncControlcomponent).Moved all components, related to syncing and suspending objects (existing
SyncActionsandCheckboxActionsand newSyncControlsandResumeIcon), to theSyncfolder.Updated the related UI snapshot.
Added
SyncControlsto exports.Moved custom actions to the start (left) of
SyncControlsbuttons.Re-arranged icons in
IconTypealphabetically (because it was hard to add new icons – to decide to which part of the list of icons or select cases to add new icon and to check if they already exist in the project, now it's somewhat easier).Notes:
I've kept the original logic of creating sync/suspend handlers in general. Only added passing them to the new standartized
SyncControlscomponent and passing with/without source sync options (set with the new radio buttons) to the handlers.We decided not to add Sync/Suspend notifications to enterprise for the time being. Notifications will be covered in the follow-up issues.
Screen recording of the new controls working in OSS:
Screen.Recording.2023-10-29.at.21.20.16.mp4
Design (there might be some differences between video and Figma design or design system, I tried to combine it in the most logical way):
The latest video with the design:
weaveworks/weave-gitops-enterprise#3374 (comment)
Figma:
https://www.figma.com/file/IVHnM9iyeFWpd11evtY8ux/Weave-GitOps?type=design&node-id=20086-71968&mode=design&t=46JWHoVfIwzQyShI-0