-
Notifications
You must be signed in to change notification settings - Fork 150
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
[ACS-8325] [Bulk Legal Hold] Create Bulk Actions Dropdown #3956
Conversation
.aca-bulk-select { | ||
margin-top: 31px; | ||
} |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
...aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.spec.ts
Outdated
Show resolved
Hide resolved
@@ -56,7 +56,8 @@ export const INITIAL_APP_STATE: AppState = { | |||
status: { | |||
isQuickShareEnabled: true | |||
} | |||
} as any | |||
} as any, | |||
searchItemsTotalCount: null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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.
...ts/aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.html
Outdated
Show resolved
Hide resolved
extension.schema.json
Outdated
@@ -854,6 +854,12 @@ | |||
"items": { "$ref": "#/definitions/contentActionRef" }, | |||
"minItems": 1 | |||
}, | |||
"bulk-actions-dropdown": { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
margin-top: 1.4375em; | ||
width: 295px; | ||
|
||
.mat-form-field-flex, |
There was a problem hiding this comment.
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
...aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.spec.ts
Outdated
Show resolved
Hide resolved
...aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.spec.ts
Outdated
Show resolved
Hide resolved
...ects/aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.ts
Outdated
Show resolved
Hide resolved
…chema, add translations
7f6ab2c
to
3898c21
Compare
...aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.spec.ts
Show resolved
Hide resolved
...ts/aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.html
Outdated
Show resolved
Hide resolved
<mat-select | ||
[formControl]="disableControl" | ||
[placeholder]="placeholder" | ||
panelClass="aca-bulk-select" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
panelClass="aca-bulk-select" | |
panelClass="aca-bulk-actions-select" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
...ts/aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.html
Outdated
Show resolved
Hide resolved
*ngIf="option.icon" | ||
[title]="option.title | translate" | ||
[value]="option.icon" | ||
[attr.data-automation-id]="'aca-option-icon-' + option.id" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[attr.data-automation-id]="'aca-option-icon-' + option.id" | |
[attr.data-automation-id]="'aca-bulk-action-icon-' + option.id" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
...aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.spec.ts
Outdated
Show resolved
Hide resolved
...aca-content/src/lib/components/bulk-actions-dropdown/bulk-actions-dropdown.component.spec.ts
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
* 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-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-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
…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]>
Please check if the PR fulfills these requirements
https://hyland.atlassian.net/browse/ACS-8325
What kind of change does this PR introduce? (check one with "x")
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:
when there are search results:
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: