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

[ACS-3513] [ACS-3515] Create, edit and delete rule set link #2810

Merged

Conversation

TomikaArome
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

What is the current behaviour? (You can also link to an open issue here)

https://alfresco.atlassian.net/browse/ACS-3513
https://alfresco.atlassian.net/browse/ACS-3515

What is the new behaviour?

A new dialog for linking & editing the linked rule set.
Button in the toolbar of the manage rule screen for linking a rule that opens the dialog.
Button in the header of the linked rule set to edit the link which opens the same dialog.
Button also in the header of the linked rule set to remove the link which opens a confirmation dialog.

image

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

@@ -38,7 +38,8 @@ export interface EditRuleDialogOptions {
templateUrl: './edit-rule-dialog.smart-component.html',
styleUrls: ['./edit-rule-dialog.smart-component.scss'],
encapsulation: ViewEncapsulation.None,
host: { class: 'aca-edit-rule-dialog' }
host: { class: 'aca-edit-rule-dialog' },
providers: [{ provide: ActionsService, useClass: ActionsService }]
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably can be shorter:
providers: [ActionsService]

@@ -0,0 +1,59 @@
<div mat-dialog-title class="aca-rule-set-picker__header">
<div class="aca-rule-set-picker__header__title">
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if you want to cover accessibility problems here but I think that if you run axe tool then you will get issue that you should to use h1 tag because you need some header on page.

Copy link
Contributor

@AleksanderSklorz AleksanderSklorz left a comment

Choose a reason for hiding this comment

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

I'm approving that PR because my comments are very small. Feel free to correct these comments which I added if you want or merge it without changes.

@TomikaArome TomikaArome merged commit d9d2441 into develop Nov 24, 2022
@TomikaArome TomikaArome deleted the feature/dev-thunter-ACS-3513-create-rule-set-link branch November 24, 2022 15:37
@TomikaArome
Copy link
Contributor Author

Unit tests have been split from this ticket to make the code freeze deadline. They will be covered in https://alfresco.atlassian.net/browse/ACS-4070

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.

4 participants