Skip to content
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

Edit label and Add label frontend fixes #644

Merged

Conversation

noahtalerman
Copy link
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
2 participants