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

refactor(27113): Ensure a single policy used in the Designer #743

Merged
merged 17 commits into from
Jan 15, 2025

Conversation

vanch3d
Copy link
Contributor

@vanch3d vanch3d commented Jan 13, 2025

See https://hivemq.kanbanize.com/ctrl_board/57/cards/27113/details/

The PR refactors the designer's UX so that a single police node (either Data Policy or Behavior Policy) can be present in the canvas at a given time.

The restriction applies to the loading of policies and to the creation of a new draft: the toolbox is disabled when one of the two nodes is added, and the contextual connection (when a node is created by dragging a handle) cannot create a new node on drop.

The PR also redesigns the toolbox to improve usability and accessibility, and also to make it more future-friendly (e.g. adding new construction inodes)

Out-of-scope

  • Several aspects of the Designer will be refactored in a subsequent ticket, to reflect comments and suggestions made on this epic

Before

screenshot-localhost_3000-2025_01_13-12_12_31

After

screenshot-localhost_3000-2025_01_13-12_10_55

screenshot-localhost_3000-2025_01_13-12_11_27

screenshot-localhost_3000-2025_01_13-12_12_01

@vanch3d vanch3d self-assigned this Jan 13, 2025
@cla-bot cla-bot bot added the cla-signed label Jan 13, 2025
@vanch3d vanch3d marked this pull request as ready for review January 13, 2025 13:28
@vanch3d vanch3d requested review from schaebo and sfrehse and removed request for schaebo January 13, 2025 16:32
Copy link
Contributor

@tolumq tolumq left a comment

Choose a reason for hiding this comment

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

LGTM

@vanch3d vanch3d force-pushed the refactor/27113/designer-single-policy branch from 38946ac to e44bf36 Compare January 14, 2025 12:47
@vanch3d vanch3d merged commit 3c31db5 into master Jan 15, 2025
9 of 10 checks passed
@vanch3d vanch3d deleted the refactor/27113/designer-single-policy branch January 15, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants