Skip to content

Edit label and Add label frontend fixes - #644

Merged
noahtalerman merged 2 commits into
fleetdm:masterfrom
noahtalerman:edit-and-add-label-bug-fixes
Apr 16, 2021
Merged

Edit label and Add label frontend fixes#644
noahtalerman merged 2 commits into
fleetdm:masterfrom
noahtalerman:edit-and-add-label-bug-fixes

Conversation

@noahtalerman

Copy link
Copy Markdown
Member

The "Edit label" mode, while an interesting idea for power label users, isn't a great experience.

  • Selecting "Edit" for a particular label and then navigating to a built-in label would result in a "Built-in labels can't be edited" message.

  • Moves isEditLabel out of <ManageHostPage />'s state and into its props. The implementation is now similar to isAddLabel.

  • Add selectedFilter to the URL path when editing or adding labels. This helps navigate the user back to the selected label after they click "Cancel" when editing or adding.

Loom demo
https://www.loom.com/share/0f2f81611b3d4893a3dd7815c18a0775?sharedAppSource=team_library

Closes #215
Closes #85

@noahtalerman
noahtalerman merged commit 568efc9 into fleetdm:master Apr 16, 2021
@noahtalerman
noahtalerman deleted the edit-and-add-label-bug-fixes branch April 16, 2021 17:55
RachelElysia pushed a commit to RachelElysia/fleet that referenced this pull request Apr 21, 2021
- Moves `isEditLabel` out of `<ManageHostPage />`'s state and into its props. The implementation is now similar to `isAddLabel`.
- Add `selectedFilter` to the URL path when editing or adding labels. This helps navigate the user back to the selected label after they click "Cancel" when editing or adding.
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.

Clicking a different label during edit should cancel editing ui edge case: Wrong empty state and filter sidebar after canceling "Add new label"

2 participants