Commit Graph
4843 Commits
Author SHA1 Message Date
Denys Vuika 3a8a15af82 refactor: enhance file-uploading-dialog component for improved focus handling
- Added a template reference variable to the file-uploading-dialog component for better access to the dialog element.
- Updated focus handling in ngOnInit to use the new reference, simplifying the code and improving clarity.
- Streamlined property initializations for consistency.
2026-02-26 13:10:57 +00:00
Denys Vuika 86524ed15c refactor: improve template syntax in file upload components for clarity
- Reorganized conditional rendering in file-uploading-dialog.component.html to enhance readability by using if-else statements.
- Updated upload-button.component.html to streamline the label rendering logic, ensuring consistent display of static titles and translated text.
2026-02-26 12:49:48 +00:00
Denys Vuika beb00b22ec refactor: simplify breadcrumb component template syntax for clarity
- Replaced switch-case syntax with if-else statements in breadcrumb.component.html to enhance readability and maintainability of the template logic.
- Streamlined the rendering of breadcrumb items while preserving functionality.
2026-02-26 11:05:49 +00:00
Denys Vuika bdb197b520 refactor: fix template syntax in breadcrumb component for improved rendering
- Corrected the closing tag syntax in breadcrumb.component.html to ensure proper rendering of the breadcrumb items.
2026-02-26 10:52:19 +00:00
Denys Vuika 06c1e6c594 refactor: update file-uploading-list template to track file IDs
- Modified the file-uploading-list.component.html to track file IDs instead of file objects for improved performance and clarity in rendering.
2026-02-26 10:51:43 +00:00
Denys Vuika 620580a851 refactor: improve dropdown-breadcrumb and file-uploading-list-row templates for clarity
- Updated dropdown-breadcrumb.component.html to track node IDs instead of nodes for better performance.
- Refactored file-uploading-list-row.component.html to enhance readability by restructuring conditional rendering and simplifying the template logic.
2026-02-26 10:51:11 +00:00
Denys Vuika af82c9c4fc refactor: remove ecm-user.service.mock and update references
- Deleted the ecm-user.service.mock file to eliminate unused mock data, enhancing code clarity.
- Updated public API exports to remove the reference to the deleted mock file.
- Introduced the fakeEcmUser object directly in the people-content.service.spec.ts for improved test isolation and maintainability.
2026-02-26 10:08:26 +00:00
Denys Vuika 94fc14b40a refactor: remove BreadcrumbModule export from public API
- Deleted the export statement for BreadcrumbModule in public-api.ts to reflect its removal from the codebase, enhancing clarity and maintainability.
2026-02-26 09:59:15 +00:00
Denys Vuika 9f3bd8ff53 refactor: remove BreadcrumbModule and its references from ContentModule
- Deleted the BreadcrumbModule and its associated directives to streamline the ContentModule.
- Updated ContentModule imports and exports to reflect the removal, enhancing maintainability.
2026-02-26 09:57:51 +00:00
Denys Vuika 40862091bd refactor: improve breadcrumb component structure and remove unused imports
- Enhanced the breadcrumb.component.html for better readability by restructuring the template and using structural directives.
- Streamlined the rendering logic for previous and last nodes in the breadcrumb.
- Removed the unused CommonModule import from breadcrumb.component.ts to simplify dependencies.
2026-02-26 09:55:44 +00:00
Denys Vuika 6ce65aeb4e refactor: enhance breadcrumb component templates for improved readability and functionality
- Updated breadcrumb.component.html and dropdown-breadcrumb.component.html to use structural directives for better readability and maintainability.
- Simplified the rendering of previous nodes and last nodes in the breadcrumb, ensuring proper handling of optional values.
- Removed unnecessary imports in dropdown-breadcrumb.component.ts to streamline the component's dependencies.
2026-02-26 09:47:42 +00:00
Denys Vuika 710fa104bd refactor: clean up ContentModule by removing unused components
- Removed several unused components from the ContentModule, including TreeViewComponent, ContentTypeDialogComponent, and others, to streamline the module.
- Updated the module's exports and imports accordingly to reflect these changes, enhancing maintainability.
2026-02-26 09:25:36 +00:00
Denys Vuika cc3716200d refactor: remove DecimalNumberModel and update related references
- Deleted the DecimalNumberModel class from the models directory to streamline the codebase.
- Updated public API exports to remove references to DecimalNumberModel.
- Replaced the class with an interface in the decimal-number.pipe.ts file to maintain functionality while simplifying the implementation.
2026-02-26 09:15:46 +00:00
Denys Vuika 31ac216bf9 test: add unit tests for getFileUploadErrorKey method
- Introduced unit tests for the getFileUploadErrorKey method in the file uploading list row component.
- Added tests for various error codes (500, 404, 403) and scenarios for null, undefined, and zero values to ensure correct key format retrieval. [ci:force]
2026-02-26 08:38:18 +00:00
Denys Vuika de21706f7d fix: handle optional error code in file upload error key retrieval
- Updated the getFileUploadErrorKey method to accept an optional errorCode parameter, allowing for better handling of undefined or null values.
- This change improves the robustness of error message generation in the file uploading list row component.
2026-02-25 17:43:52 +00:00
Denys Vuika d2c2b07676 fix: update aria-label translation for upload error status
- Modified the aria-label attribute in the file uploading list row component to improve translation handling for upload error messages.
- Removed unnecessary translation parameter to streamline the error message retrieval process.
2026-02-25 17:42:51 +00:00
Denys Vuika 06801292b6 test: add toggle icon state tests for mouse events and focus handling
- Introduced unit tests for the toggle icon state in the file uploading list row component.
- Added tests for mouse enter, mouse leave, focus, and blur events to ensure correct state management.
- Verified independent state handling for toggleIconState and toggleIconCancelState. [ci:force]
2026-02-25 17:25:02 +00:00
Denys Vuika 5f26e6dd53 chore: remove Toggle Icon directive and related references
- Deleted the Toggle Icon directive implementation and its associated tests.
- Updated documentation to reflect the removal of the directive.
- Adjusted components to eliminate dependencies on the Toggle Icon directive.
2026-02-25 15:57:14 +00:00
Denys Vuika 7f19c6661c refactor: clean up upload error handling and improve UI translations
- Removed the FileUploadErrorPipe and its associated tests to streamline error handling.
- Updated the upload button and file uploading list row components to enhance translation handling for error messages.
- Adjusted HTML templates to ensure consistent spacing in static titles.
- Minor refactoring in the file uploading list row component to introduce a new method for error key retrieval.
2026-02-25 15:42:14 +00:00
Denys Vuika 5194777451 migrate upload dialog to control flow 2026-02-25 15:19:35 +00:00
Enrico Hilgendorf 4cc56421ee AAE-42658 Remove check for outcome.id as name based outcomes are valid (#11685) 2026-02-25 15:23:25 +01:00
Darren Thornton 1061e762f8 Apply Copilot suggestion 2026-02-24 17:15:18 -05:00
Darren Thornton 358367bcb1 AAE-42643 Fix long error messages overlapping with icon 2026-02-24 17:15:18 -05:00
Denys Vuika 52ad50fbc7 refactor: update PDF viewer component imports and types for better compatibility (#11686) 2026-02-24 12:17:06 +00:00
Denys Vuika 7405b2d2e4 fix pdf import for the Viewer (#11684) 2026-02-24 09:57:33 +00:00
Mykyta Maliarchuk 7a3650e6a7 [ACS-11204] Fix: Duplicated site name is displayed instead of id when there are two libraries with the same name (#11682) 2026-02-24 10:25:24 +01:00
Darren Thornton de34579038 AAE-42156 Update text and multiline fields to show custom regex validation message. (#11670)
* AAE-42156 Custom RegExp Validation message.

* code review update - variable rename
2026-02-23 11:25:15 -06:00
Denys Vuika 2f8d8c2007 chore: update ESLint and cspell configurations to ignore story files (#11681)
* chore: update ESLint and cspell configurations to ignore story files

* fix: update custom widget identifiers in form renderer tests and mock data
2026-02-23 13:58:51 +00:00
Denys Vuika 303a9efb3e chore: eslint fixes for @typescript-eslint/no-explicit-any (#11672) 2026-02-23 13:11:44 +00:00
Michal Kinas 7f8b49cb07 Remove excess disabled attribute (#11680) 2026-02-23 09:53:42 +01:00
Tomek Hanaj f1f2000db8 AAE-42525 Updated condition for mat-error (#11669)
* [AAE-42525] updated condition for mat-error

* [AAE-42525] removed color primary
2026-02-23 08:42:57 +01:00
Mykyta Maliarchuk cfb9a505e4 [ACS-10847] Location filter breaks the page when user value used (#11667)
* [ACS-10847] Location filter breaks the page when user value used

* [ACS-10847] simplify the ternary
2026-02-19 14:18:56 +01:00
Michal Kinas e5471c8741 Add missing input type (#11668) 2026-02-19 13:45:58 +01:00
Tomasz Nastaly 1baddb2b37 AAE-42291 Double-click to copy to clipboard does not work on disabled/read-only fields in card-view-textitem (#11656) 2026-02-19 10:44:07 +01:00
AleksanderSklorz e48950b200 [MNT-25123] Fixed incorrectly displayed some annotations (#11662) 2026-02-19 09:41:59 +01:00
AleksanderSklorz 4581f714d7 [ACS-11153] remove the usage of ng reflect from the unit tests (#11666)
* [ACS-11153] Removed usages of ng reflect from card view dateitem and diagram activities

* [ACS-11153] Removed usages of ng-reflect

* [ACS-11153] Added eslint rule
2026-02-19 07:58:31 +01:00
David Olson bc30b74213 AAE-39679 Counting click event twice for attach file widget (#11645) 2026-02-18 09:45:22 -06:00
Denys Vuika 3f542d99ba Migrate to @angular-eslint/prefer-inject and @typescript-eslint/prefer-readonly (#11665) 2026-02-18 15:38:01 +00:00
Soumyajit Chakraborty f8fa996b04 AAE-33828 Fix for the runtime errors on data-table should be handled (#11639)
* AAE-33828 fix for the runtime errors on datatable should be handled in runtime

* AAE-33828 removing the unwanted try catches

* AAE-33828 adding units to test the number value is a valid value
2026-02-18 19:00:50 +05:30
Robert Duda 93fc7c166c AAE-41605 Add ability to filter by linked processes (#11664) 2026-02-18 11:50:14 +01:00
Anton Ramanovich b6a6c1bc86 [MNT-24175]: fixes non node values handling (#11641) 2026-02-17 15:41:23 +01:00
Anton Ramanovich 5850dafca7 [ACS-11158]: removes mat selectors for tooltips (#11659) 2026-02-17 15:39:30 +01:00
Denys Vuika fafa5d6c41 ACS-11160: improve context menu overlay service implementation (#11661)
* refactor: improve context menu overlay service implementation

- Introduced a new interface for overlay references with backdrop handling.
- Updated event listener for backdrop clicks to use the new interface, enhancing type safety.
- Refactored the injector creation method to utilize the Injector.create method for better clarity and maintainability.
- Improved the fake element's type definition in the getOverlayConfig method for better type inference.

These changes enhance the overall robustness and readability of the context menu overlay service.

* refactor: enhance type safety in context menu components

- Introduced the ContextMenuItem interface to improve type definitions for context menu items.
- Updated the ContextMenuListComponent to use ContextMenuItem for links and menu item parameters, enhancing clarity and maintainability.
- Modified CONTEXT_MENU_DATA injection token to specify ContextMenuItem[] for better type safety.
- Adjusted the ContextMenuOverlayConfig interface to accept an array of ContextMenuItem, ensuring consistent data handling.

These changes improve the overall robustness and readability of the context menu implementation.
[ci:force]

* refactor: remove unnecessary eslint-disable comments in category management and search components

- Eliminated eslint-disable comments related to no-underscore-dangle in the CategoriesManagementComponent and SearchControlComponent tests, improving code clarity and adherence to linting rules.
- This change enhances the overall readability of the test files by ensuring consistent coding standards.

* refactor: simplify backdrop click handling in context menu overlay service

- Removed the unnecessary backdrop click handling logic, replacing it with a direct call to close the overlay reference. This change enhances code clarity and reduces complexity in the event listener implementation.

* refactor: streamline backdrop handling in context menu overlay service

- Removed the custom interface for overlay references with backdrop handling, simplifying the code.
- Updated the event listener for backdrop clicks to directly use the overlay's backdropElement, enhancing clarity and maintainability.
- This change improves the overall robustness of the context menu overlay service.
2026-02-17 13:18:41 +00:00
Denys VuikaandCursor 1f49af4c8f ACS-11154 Viewer stabilisation, lint fixes (#11660)
* refactor: clean up code in SuperagentHttpClient and upload.spec

- Removed unnecessary eslint-disable comment in SuperagentHttpClient for improved code clarity.
- Refactored promise handling in upload.spec to utilize an array for better management of multiple promises during file upload error handling.

* chore: update cspell and ESLint configurations

- Added "webscript" to the cspell dictionary for improved spell checking.
- Updated ESLint configuration to disable the "@typescript-eslint/no-explicit-any" rule, allowing more flexibility in type definitions.

* fix: enhance ImgViewerComponent to handle cleanup and prevent errors after destruction

- Added a `destroyed` flag to manage component lifecycle and prevent operations on a destroyed instance.
- Implemented `afterEach` hooks in tests to ensure proper fixture cleanup.
- Updated key event handlers and methods to check for the `destroyed` state before executing actions, improving stability and preventing errors.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: add aria-hidden attribute to notification history button for accessibility

- Updated the notification history button to include the `aria-hidden` attribute, improving accessibility for screen readers and enhancing user experience.

* fix: improve key event handling in ImgViewerComponent

- Updated key event handlers to check for the presence of the cropper before executing actions, enhancing stability and preventing errors when the component is destroyed.
- Removed redundant checks from individual arrow key handlers, streamlining the code.

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-17 12:16:49 +00:00
Denys Vuika 84affe9f37 ACS-11155: update conditional checks to use optional chaining (#11658)
- Modified several components to use optional chaining for safer property access, enhancing code robustness.
- Updated ESLint configuration to enforce stricter rules on the use of optional chaining.
- Adjusted tests to reflect changes in property access patterns.
2026-02-17 09:13:57 +00:00
Alfresco BuildandCrowdin Bot 766b66d509 New Crowdin translations by GitHub Action (#11644)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2026-02-16 10:05:18 +00:00
dependabot[bot] 1372bb5281 build(deps): bump qs from 6.14.1 to 6.14.2 in /lib/cli (#11646)
Bumps [qs](https://github.com/ljharb/qs) from 6.14.1 to 6.14.2.
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.14.1...v6.14.2)

---
updated-dependencies:
- dependency-name: qs
  dependency-version: 6.14.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-16 09:47:57 +00:00
Denys Vuika 40b15689d5 AAE-21047 Get rid of enums (#11643)
* Refactor enums to const objects and update ESLint rules

- Converted several TypeScript enums to const objects for better type inference and immutability.
- Updated ESLint configuration to disable 'no-redeclare' rule and added new restrictions on schema usage.
- Adjusted package-lock.json to mark several dependencies as peer dependencies.

* Refactor enums to const objects in site-dropdown and new-version-uploader models

- Converted TypeScript enums to const objects for improved type safety and immutability in `sites-dropdown.component.ts` and `new-version-uploader.model.ts`.
- Updated related types to reflect the changes in both files.
- Enhanced error handling in the `DropdownSitesComponent` by using the `subscribe` method with an object for better readability.

* Refactor TypeScript types and improve error handling in component tests

- Updated type annotations in `upload.service.ts` and `node-actions.service.ts` for better type safety.
- Enhanced error handling in various component tests by using more descriptive error messages in `task-attachment-list.component.spec.ts`, `attach-file-widget-dialog.component.spec.ts`, and `task-form.component.spec.ts`.
- Removed unnecessary schemas from test configurations in several component spec files to streamline the testing setup.

* Refactor TypeScript enums to const objects for improved type safety

- Converted multiple TypeScript enums to const objects across various models, including `AppConfigValues`, `Status`, `ShowHeaderMode`, `WidgetTypeEnum`, and others.
- Updated related type definitions to enhance type inference and immutability.
- Adjusted ESLint configurations by removing the 'no-redeclare' rule to streamline code quality checks.

* Refactor TypeScript types for improved type safety and consistency

- Updated type annotations in `document-list.component.ts`, `document-actions.service.ts`, and `node-actions.service.ts` to use `Observable` instead of `Subject` for better reactive programming practices.
- Enhanced type definitions in `search-date-range.component.ts` and related spec files to allow `inLastValue` to be either a string or a number, improving flexibility in handling date range inputs.
- Adjusted test cases to reflect these type changes, ensuring consistency across the application.

* Enhance type safety in ViewerComponent by specifying type for closeButtonPosition

- Updated the type annotation for `closeButtonPosition` in `viewer.component.ts` to explicitly define it as `CloseButtonPosition`, improving type safety and clarity.

* Enhance type safety in DataTableComponent by specifying type for showHeader

- Updated the type annotation for `showHeader` in `datatable.component.ts` to explicitly define it as `ShowHeaderMode`, improving type safety and clarity.

* Update PDF viewer test to accommodate varying date formats

- Modified the test for the annotation popup in `pdf-viewer.component.spec.ts` to check for the presence of date components instead of a specific date format, enhancing test robustness across different locales.
2026-02-12 16:28:45 +00:00
Darren Thornton d274d62d73 AAE-40604 Fix edge case for REST/Variable for dropdown showing required message (#11638) 2026-02-12 09:25:46 -06:00
Dominik Iwanek 1fa683e2a9 Fix for ACA upstream (#11642) 2026-02-11 18:46:57 +01:00