-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Merge branch dev with rel-10.1 #24525
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
Conversation
…sion-modal-problems Angular - Fixing resource based permission modal problems
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.
Pull request overview
This PR merges changes from the dev branch into rel-10.1, incorporating code formatting updates (indentation standardization) and several functional changes to the permission management and lookup components.
Key Changes:
- Updated code formatting to use consistent 2-space indentation across all TypeScript and HTML files
- Modified localization keys for error messages and confirmation dialogs
- Changed lookup dropdown initialization and styling (z-index, CSS variables, showDropdown state)
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| resource-permission-management.component.ts | Reformatted indentation; updated localization keys for delete confirmation and success messages |
| resource-permission-management.component.html | Reformatted indentation to 2-space standard |
| resource-permission-form.component.html | Reformatted indentation to 2-space standard |
| provider-key-search.component.ts | Reformatted indentation and import statements |
| provider-key-search.component.html | Reformatted indentation to 2-space standard |
| permission-checkbox-list.component.html | Reformatted indentation to 2-space standard |
| lookup-search.component.ts | Reformatted indentation; changed showDropdown signal initialization from false to true |
| lookup-search.component.html | Reformatted indentation; updated localization key for no results message; removed shadow class |
| lookup-search.component.scss | Increased z-index from 1050 to 1060; added positioning and background-color styles |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| onDeleteClicked(grant: ResourcePermissionGrantInfoDto) { | ||
| this.confirmationService | ||
| .warn( | ||
| 'AbpPermissionManagement::ResourcePermissionDeletionConfirmationMessage', |
Copilot
AI
Jan 2, 2026
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.
The localization key has been changed from 'AbpPermissionManagement::PermissionDeletionConfirmationMessage' to 'AbpPermissionManagement::ResourcePermissionDeletionConfirmationMessage'. This is a breaking change that will cause the confirmation message to display the raw localization key instead of the translated text if the new key hasn't been added to the localization resources. Ensure this new key exists in all supported language files before merging.
| 'AbpPermissionManagement::ResourcePermissionDeletionConfirmationMessage', | |
| 'AbpPermissionManagement::PermissionDeletionConfirmationMessage', |
| next: res => { | ||
| this.state.setResourceData(res.permissions || []); | ||
| this.list.get(); | ||
| this.toasterService.success('AbpUi::DeletedSuccessfully'); |
Copilot
AI
Jan 2, 2026
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.
The success message localization key has been changed from 'AbpUi::SuccessfullyDeleted' to 'AbpUi::DeletedSuccessfully'. This is a breaking change that will cause the success message to display the raw localization key instead of the translated text if the new key hasn't been added to the localization resources. Ensure this new key exists in all supported language files before merging.
| this.toasterService.success('AbpUi::DeletedSuccessfully'); | |
| this.toasterService.success('AbpUi::SuccessfullyDeleted'); |
| <ng-container *ngTemplateOutlet="noResultsTemplate()!" /> | ||
| } @else { | ||
| <div class="list-group-item text-muted"> | ||
| {{ 'AbpUi::NoDataAvailableInDatatable' | abpLocalization }} |
Copilot
AI
Jan 2, 2026
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.
The localization key has been changed from 'AbpUi::NoRecordsFound' to 'AbpUi::NoDataAvailableInDatatable'. This is a breaking change that will cause the no results message to display the raw localization key instead of the translated text if the new key hasn't been added to the localization resources. Ensure this new key exists in all supported language files before merging.
| {{ 'AbpUi::NoDataAvailableInDatatable' | abpLocalization }} | |
| {{ 'AbpUi::NoRecordsFound' | abpLocalization }} |
| <ng-container *ngTemplateOutlet="itemTemplate()!; context: { $implicit: item }" /> | ||
| } @else { | ||
| {{ getDisplayValue(item) }} | ||
| <div class="abp-lookup-dropdown list-group position-absolute w-100"> |
Copilot
AI
Jan 2, 2026
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.
The removal of the 'shadow' CSS class from the dropdown may affect visual consistency if other dropdowns in the application use shadows. Additionally, the new 'background-color: var(--lpx-content-bg)' CSS variable may not be defined in all themes, which could result in the dropdown having a transparent or incorrect background. Verify that this CSS variable is defined across all supported themes.
| <div class="abp-lookup-dropdown list-group position-absolute w-100"> | |
| <div class="abp-lookup-dropdown list-group position-absolute w-100 shadow" style="background-color: var(--lpx-content-bg, #fff);"> |
| z-index: 1050; | ||
| max-height: 200px; | ||
| overflow-y: auto; | ||
| z-index: 1060; |
Copilot
AI
Jan 2, 2026
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.
The z-index has been increased from 1050 to 1060. Verify that this new z-index value doesn't conflict with other UI elements (such as modals, tooltips, or navigation menus) that may have z-index values in this range. Bootstrap modals typically use z-index of 1050-1055, so this change to 1060 should ensure the dropdown appears above modals, but confirm this is the intended behavior.
| z-index: 1060; | |
| z-index: 1050; |
| readonly noResultsTemplate = contentChild<TemplateRef<void>>('noResultsTemplate'); | ||
|
|
||
| readonly searchResults = signal<T[]>([]); | ||
| readonly showDropdown = signal(true); |
Copilot
AI
Jan 2, 2026
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.
The showDropdown signal is being initialized to true instead of false. This will cause the dropdown to be visible by default when the component loads, which is likely unintended behavior. Users would see an empty dropdown until they interact with the search input.
| readonly showDropdown = signal(true); | |
| readonly showDropdown = signal(false); |
This PR generated automatically to merge dev with rel-10.1. Please review the changed files before merging to prevent any errors that may occur.