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-8325] [Bulk Legal Hold] Create Bulk Actions Dropdown #3956

Merged

Conversation

DaryaBalvanovich
Copy link
Contributor

Please check if the PR fulfills these requirements

https://hyland.atlassian.net/browse/ACS-8325

  • 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)

What is the new behaviour?
Add dropdown to the search bar

disable mode when no search results:
Screenshot 2024-07-18 at 14 04 58

when there are search results:
Screenshot 2024-07-18 at 14 04 40

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:

@DaryaBalvanovich DaryaBalvanovich changed the title [ACS-8036] [Bulk Legal Hold] Create Bulk Actions Dropdown [ACS-8325] [Bulk Legal Hold] Create Bulk Actions Dropdown Jul 18, 2024
@DaryaBalvanovich DaryaBalvanovich requested review from MichalKinas and DenysVuika and removed request for MichalKinas July 18, 2024 12:19
Comment on lines 2 to 7
.aca-bulk-select {
margin-top: 31px;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

will be removed after Angular migration

margin-top: 1.4375em;
width: 295px;

.mat-form-field-flex,
Copy link
Contributor

@swapnil-verma-gl swapnil-verma-gl Jul 19, 2024

Choose a reason for hiding this comment

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

As part of the angular migration, we also added a mat-selectors file, that contains all angular material selectors. The plan is to use the references from that file, instead of directly referring to .mat selectors in our css (I assume that is what @DaryaBalvanovich meant when they said 'will be removed after Angular migration).

However, I am wondering how we will keep track of all the material selectors that were added/are being added after the angular migration was started (such as this one). Maybe we can add TODO statements, and then do a project wide search after the ng migration merge. Or we can keep references in a sepearate single file.
@MichalKinas @DenysVuika what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good, fortunately ADF should be merged today and ACA will be next so this PR will be merged after migration one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added TODO and created story for it that will be done in the end of Legal Hold development ACS-8458

@@ -56,7 +56,8 @@ export const INITIAL_APP_STATE: AppState = {
status: {
isQuickShareEnabled: true
}
} as any
} as any,
searchItemsTotalCount: null
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you check if these changes still work on the latest develop, or need to be moved to a different file? I think this file was completely wiped recently, with just a single export statement as part of #3952 (changes here)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you for this catch!
I will try to update all our branches with the latest changes.
It's not easy to develop a feature without merging into development and keep it only in feature branches when there are so many important architecture changes in 3 repositories.
There are 3 developers who are working on the feature and we have a lot of nested branches.

@@ -854,6 +854,12 @@
"items": { "$ref": "#/definitions/contentActionRef" },
"minItems": 1
},
"bulk-actions-dropdown": {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a generic feature since we will add new bulk actions in the future so I would call it bulk-actions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

these actions appears in dropdown only. But it's ok for me to rename

Copy link
Contributor

Choose a reason for hiding this comment

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

For now but this is supposed to be the generic feature for loading bulk actions, in future they might be used in other places too, please keep that in mind

Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed to bulk-actions and remove component property

extension.schema.json Outdated Show resolved Hide resolved
margin-top: 1.4375em;
width: 295px;

.mat-form-field-flex,
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good, fortunately ADF should be merged today and ACA will be next so this PR will be merged after migration one

@DaryaBalvanovich DaryaBalvanovich force-pushed the ACS-8325-bulk-create-bulk-actions-dropdown branch from 7f6ab2c to 3898c21 Compare July 23, 2024 20:35
@swapnil-verma-gl swapnil-verma-gl dismissed their stale review July 24, 2024 05:43

Approved by mistake

<mat-select
[formControl]="disableControl"
[placeholder]="placeholder"
panelClass="aca-bulk-select"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
panelClass="aca-bulk-select"
panelClass="aca-bulk-actions-select"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

*ngIf="option.icon"
[title]="option.title | translate"
[value]="option.icon"
[attr.data-automation-id]="'aca-option-icon-' + option.id"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
[attr.data-automation-id]="'aca-option-icon-' + option.id"
[attr.data-automation-id]="'aca-bulk-action-icon-' + option.id"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link

@DaryaBalvanovich DaryaBalvanovich merged commit 8e7a80b into ACS-8036-bulk-update Jul 30, 2024
2 checks passed
@DaryaBalvanovich DaryaBalvanovich deleted the ACS-8325-bulk-create-bulk-actions-dropdown branch July 30, 2024 08:14
DaryaBalvanovich added a commit that referenced this pull request Aug 9, 2024
* ACS-8036 create bulk-actions-dropdown

* ACS-8325 update names and add unit tests

* ACS-8325 added icon and unit tests

* ACS-8325 fix translation

* ACS-8325 add and refactor tests in app extension service

* ACS-8325 resolve conversations: remove loadBulkActions, rename bulk schema, add translations

* ACS-8325 update state

* ACS-8325 temporary remove disabled state as it doesn't work after Angular migration

* ACS-8325 add formControl and tests

* ACS-8325 clean code

* ACS-8325 place create component to one place

* ACS-8325 add condition to use title if no description provided and cover with test

* ACS-8325 add tooltip and update Badge interface

* ACS-8325 rename class names and mockItem object
DaryaBalvanovich added a commit that referenced this pull request Aug 12, 2024
* ACS-8036 create bulk-actions-dropdown

* ACS-8325 update names and add unit tests

* ACS-8325 added icon and unit tests

* ACS-8325 fix translation

* ACS-8325 add and refactor tests in app extension service

* ACS-8325 resolve conversations: remove loadBulkActions, rename bulk schema, add translations

* ACS-8325 update state

* ACS-8325 temporary remove disabled state as it doesn't work after Angular migration

* ACS-8325 add formControl and tests

* ACS-8325 clean code

* ACS-8325 place create component to one place

* ACS-8325 add condition to use title if no description provided and cover with test

* ACS-8325 add tooltip and update Badge interface

* ACS-8325 rename class names and mockItem object
DaryaBalvanovich added a commit that referenced this pull request Aug 14, 2024
* ACS-8036 create bulk-actions-dropdown

* ACS-8325 update names and add unit tests

* ACS-8325 added icon and unit tests

* ACS-8325 fix translation

* ACS-8325 add and refactor tests in app extension service

* ACS-8325 resolve conversations: remove loadBulkActions, rename bulk schema, add translations

* ACS-8325 update state

* ACS-8325 temporary remove disabled state as it doesn't work after Angular migration

* ACS-8325 add formControl and tests

* ACS-8325 clean code

* ACS-8325 place create component to one place

* ACS-8325 add condition to use title if no description provided and cover with test

* ACS-8325 add tooltip and update Badge interface

* ACS-8325 rename class names and mockItem object
DaryaBalvanovich added a commit that referenced this pull request Aug 14, 2024
…ialog with Manage Existing Holds/Apply New Hold tabs (#4019)

* [ACS-8325] [Bulk Legal Hold] Create Bulk Actions Dropdown (#3956)

* ACS-8036 create bulk-actions-dropdown

* ACS-8325 update names and add unit tests

* ACS-8325 added icon and unit tests

* ACS-8325 fix translation

* ACS-8325 add and refactor tests in app extension service

* ACS-8325 resolve conversations: remove loadBulkActions, rename bulk schema, add translations

* ACS-8325 update state

* ACS-8325 temporary remove disabled state as it doesn't work after Angular migration

* ACS-8325 add formControl and tests

* ACS-8325 clean code

* ACS-8325 place create component to one place

* ACS-8325 add condition to use title if no description provided and cover with test

* ACS-8325 add tooltip and update Badge interface

* ACS-8325 rename class names and mockItem object

* [ACS-8326] enable running actions from bulk dropdown and resetting selection (#3971)

* ACS-8036 create bulk-actions-dropdown

* ACS-8325 update names and add unit tests

* ACS-8325 fix translation

* ACS-8325 resolve conversations: remove loadBulkActions, rename bulk schema, add translations

* ACS-8325 temporary remove disabled state as it doesn't work after Angular migration

* ACS-8325 add formControl and tests

* ACS-8325 add condition to use title if no description provided and cover with test

* ACS-8325 add tooltip and update Badge interface

* ACS-8326 enable running actions from bulk dropdown and resetting dropdown selection

* ACS-8326 review remarks - use select control, fix naming

* ACS-8326 fix unit test selectors

* ACS-8326 review remarks - change property name to more universal, adjust unit tests

---------

Co-authored-by: Darya Balvanovich <[email protected]>

* [ACS-8424][Bulk Legal Hold] Add Badge for items (#3985)

* [ACS-8424] display badges in search result

* [ACS-8424] display badges in search result

* ACS-8424 create separate badge component, add/move unit tests, undo highlight change failing tests

* ACS-8424 template cleanup

* ACS-8424 template cleanup cleanup

* ACS-8424 revert single deletion in template

* ACS-8424 rename new component, change property order

---------

Co-authored-by: g-jaskowski <[email protected]>

* ACS-8458 refactor styles (#4018)

* [ACS-8489] Legal Holds keyboard accessibility (#4009)

* ACS-8489 handle keyboard accessibility

* ACS-8489 wording fix

* ACS-8489 change function name

* ACS-8489 fix typo

* ACS-8489 review remarks - simplify keyboard event handling, improve unit tests

* ACS-8489 move duplicated code to method

* ACS-8489 change type name to more precise

* [ACS-8036] fix icon visibility in mat-select

* ACS-8036 fix styles and import

* ACS-8036 remove async from test

* ACS-8036 handle event when dropdown closed

* ACS-8036 fix rebase issues

* ACS-8036 fix rebase issues

* ACS-8036 fix rebase

---------

Co-authored-by: Grzegorz Jaśkowski <[email protected]>
Co-authored-by: tamaragruszka <[email protected]>
Co-authored-by: g-jaskowski <[email protected]>
Co-authored-by: tamaragruszka <[email protected]>
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.

9 participants