Commit Graph
103 Commits
Author SHA1 Message Date
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 303a9efb3e chore: eslint fixes for @typescript-eslint/no-explicit-any (#11672) 2026-02-23 13:11:44 +00:00
Denys Vuika 3f542d99ba Migrate to @angular-eslint/prefer-inject and @typescript-eslint/prefer-readonly (#11665) 2026-02-18 15:38:01 +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
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
Denys Vuika 572231bf49 AAE-41225 update typescript target to es2022 and fix FormService propagation (#11508)
* update targets

* update targets

* fixed FormService propagation [ci:force]

* fixed FormService propagation [ci:force]
2026-01-13 08:47:07 +00:00
Wojciech Duda 5f9de1fde8 AAE-40269 Add storybook v10 (#11401) 2026-01-09 18:17:43 +00:00
Denys Vuika ab0cb46065 AAE-40641 Upgarde Nx Workspace to latest (v22) (#11440) 2025-12-08 12:34:33 +00:00
Michal Kinas 03f67c861f [ACS-10740] Adjust Karma and Jest config (#11365) 2025-11-20 14:24:22 +01:00
Grzegorz Jaśkowski 9fd304b66d post release version bump (#11366) 2025-11-20 05:57:43 -05:00
Grzegorz Jaśkowski fbc647459f Release 8.2.1 (#11364)
* Release 8.2.1.

* Release 8.2.1.
2025-11-20 10:47:38 +01:00
Grzegorz Jaśkowski dec8fcfb91 Release 8.2.0 (#11352)
* Release 8.2.0

* Release 8.2.0

* Release 8.2.0

* Release 8.2.0
2025-11-18 15:31:06 +01:00
dominikiwanekhyland d298d92214 [ACS-10592] Remove 'secret' field from OAUTH config across ADF/ACA/ADW (#11332) 2025-11-14 08:31:31 +01:00
MichalKinas 1c8af0467e [ACS-9980] Add SSO integration API (#11297)
* [ACS-9980] Add SSO integration API

* [ACS-9980] CR fixes

* [ACS-9980] CR fix
2025-10-23 12:58:08 +02:00
Vito Albano 731443ca1c Fixed js-api dep for superagent (#11212) 2025-09-19 14:07:49 +01:00
Vito Albano 91d6b80965 Revert "AAE-30882 Replace superagent (#11134)" (#11210)
* Revert "AAE-30882 Replace superagent (#11134)"

This reverts commit a347b20f20.

* AAE-0000 - Fixed lock for cli and adf
2025-09-19 12:44:06 +01:00
dominikiwanekhyland 591934db0e [ACS-10117] Deprecate ADF Storybook and custom Docker builds (#11207) 2025-09-18 15:13:01 +02:00
Vito Albano d230176e7f AAE 38257 fixing js-api deps and bump some security versions (#11203)
* [AAE-38257] - removing superagent deps

* [AAE-38257] - removing superagent deps
2025-09-17 13:36:35 +01:00
Vito Albano a347b20f20 AAE-30882 Replace superagent (#11134)
* [AAE-30878] - Migrating from event-emitter to eventemitter3 which is ESM and commonJs compatibile

* [AAE-30878] - Using types to avoid compilation isues with the new ruels

* AAE-30878 - fixed lint issue on js-api

* AAE-30878 - reverted misplaced changes

* [AAE-30882] - migrating from superagent to axios

* AAE-30882 - Fixed unit test for js-api

* AAE-30882 - Fixed unit test for js-api

* AAE-30882 - Fixed unit test for js-api

* AAE-30882 - Improved some unit tests

* [ci:force]

* AAE-30882 - Checking why is ok locally but fails on CI

* AAE-30882 - Start fixing some unit tests - check 1

* AAE-30882 - Start fixing some unit tests - check 2

* [AAE-30882] - rebased

* [AAE-30882] - added missing import
2025-09-16 11:31:07 +01:00
Vito Albano b400757ad1 AAE-30878 Migrating from event-emitter to eventemitter3 (#11187)
* AAE-30878 Migrating from event-emitter to eventemitter3 which is … (#11116)

* [AAE-30878] - have a single place for the EventEmitter types
2025-09-16 09:33:06 +01:00
Vito Albano fd29e953d6 Revert "AAE-30878 Migrating from event-emitter to eventemitter3 which is … (#11116)" (#11186)
This reverts commit 49375181e4.
2025-09-10 15:57:01 +01:00
Vito Albano 49375181e4 AAE-30878 Migrating from event-emitter to eventemitter3 which is … (#11116) 2025-09-02 08:33:35 -04:00
Ehsan Rezaei dabab63f78 Fix Post release version bump to align with ACA (#11153) 2025-08-29 14:24:59 +02:00
dominikiwanekhyland f205cbc33c Post release version bump (#11147) 2025-08-26 15:58:18 +02:00
dominikiwanekhyland e0f0486e66 Release 8.1.1 (#11145) 2025-08-26 11:35:21 +02:00
dominikiwanekhyland de537f0a0d Release 8.1.0 (#11143) 2025-08-25 14:25:56 +02:00
Shivangi Shree 9a0b75caa1 [ADF-5582] Fix avatar rendering logic in adf-node-comments (#10995)
* [ADF-5582] Update NodeCommentsService to take userId as an argument in getUserImage

* [ADF-5582] Add unit tests for avatar caching and retrieval in NodeCommentsService

* Refactor NodeCommentsService unit tests to avoid accessing private members

* [ADF-5582] Remove picture Id from getUserImage

* [ADF-5582] Add comment to getAvatarCache and fix sonarcloud issues

* Update node-comments.service.spec.ts

* Trigger sonar

* [ADF-5582] Add method to return avatar url in people api

* [ADF-5582] Fix sonar cloud issue

* [ADF-5582] Add comment to getUserImage and fix request address for getAvatarImageUrl
2025-08-05 16:54:58 +05:30
Denys Vuika c8f0860514 AAE-35934 Cleanup dependencies (#11089) 2025-07-31 12:57:38 -04:00
AleksanderSklorz e5fcfde2ec Post release version bump (#11021)
* Trigger Build

* Post release bump
2025-07-15 16:16:03 +02:00
dominikiwanekhyland 951b22e098 Angular 19 migration (#10795) 2025-07-03 12:09:53 +02:00
AleksanderSklorz cdc7553915 [MNT-24923] legal hold hold capabilities are not verified properly (#10930)
* [MNT-24923] Added possibility to filter capabilities by person id

* [MNT-24923] Documentation and unit tests
2025-06-12 08:21:49 -04:00
AleksanderSklorz cdb65bf204 [ACS-9377] remove the join button for records management library for user s without permissions for that library (#10901)
* [ACS-9377] Added function for file plans to get file plan roles

* [ACS-9377] Types and documentation

* [ACS-9377] Unit tests

* [ACS-9377] Fixed sonar cloud issue
2025-06-02 10:15:19 +02:00
AleksanderSklorz 2cc3ba4d6b [ACS-7706] create tags return promise tag paging instead of tag entry (#10869)
* [ACS-7706] Corrected returned type for createTags function

* [ACS-7706] Updated documentation for createTags and fixed unit tests
2025-05-21 08:08:49 +02:00
6257510056 Ng18 migration (#10683)
* [MIGRATION] - Angular 18

* [ci:force][MIGRATION] - fixed Apollo new import

* [MIGRATION] - rebased to lastest

* [MIGRATION] - updated style to use still material 2 and postpone material migration

* [AAE-32974] - sync lock with version 8

* [AAE-33014] - Fixed m2 material issue

* Rebased to latest

* Rebased to latest

* [ACS-9159] Upgraded node version (#10782)

* [MIGRATION] - Added missing package

* [MIGRATION] - check if hte module mapping hide the warning

* [MIGRATION] - Readded wrongly removed package

* Upgrade TS

---------

Co-authored-by: AleksanderSklorz <115619721+AleksanderSklorz@users.noreply.github.com>
Co-authored-by: DominikIwanek <dominik.iwanek@hyland.com>
2025-05-15 12:33:07 +01:00
AleksanderSklorz 50ad04aeb3 [ACS-9564] Corrected models after change of Knowledge Retrieval answer structure (#10817)
* [ACS-9564] Corrected models after change of Knowledge Retrieval answer structure

* [ACS-9564] Changed id

* [ACS-9564] Fixed unit tests
2025-04-25 08:56:12 +02:00
Wojciech Duda fdd4f6c081 AAE-22975 update to the latest version of pdfjs-dist library (#10780)
* AAE-30877 squash-merged improvement/AAE-30877-update-package-pdfjs-dist

* AAE-30877 statically import pdf_viewer

* AAE-30877 fix failing worker load

* AAE-22975 attempt without excessive logs

* AAE-22975 remove pdf_viewer from karma includes

* AAE-22975 remove incorrect firstValueFrom

* AAE-22975 await rendered event callback

* AAE-22975 change pdf mock code

* AAE-22975 change pdf mock code

* AAE-22975 mock pdfjs-dist package in tests to improve performance

* AAE-22975 fix pagesLoaded test

* AAE-22975 fix insights tests

* AAE-22975 un-focus pdf-viewer tests, remove logs

* AAE-22975 add defer block

* AAE-22975 add pdfjsLib injection token

* AAE-22975 remove defer block

* AAE-22975 change pdfjs import path

* AAE-22975 change pdfjsviewer import path

* AAE-22975 limit usage of direct PDFViewer

* AAE-22975 cleanup
2025-04-22 10:05:44 +02:00
MichalKinas e8d1328244 Post-release version bump (#10726)
* Post-release version bump

* Reset cache
2025-03-17 17:03:58 +01:00
MichalKinas 25f7351b63 Release 7.0.0 (#10725)
* Release 7.0.0

* Cli js-api version fix
2025-03-17 11:06:16 +01:00
MichalKinas 1f0f8dc6fd [ACS-9371] Migrate docs from docs.alfresco to support.hyland (#10708) 2025-03-12 14:25:28 +01:00
Vito Albano 430ca84c77 [AAE-0000] - bumping the prerelease version (#10645) 2025-02-12 12:49:49 +00:00
5d64c7f0ed Ng17 migration (#10295)
* Migrate to NG17

* [ci:force] - fixed deps

* [ci:force] - fixed build for testing 1

* Fixed build for all the packages

* [ci:force] - fixing lint

* [ci:force] - Fixed lint

* AAE-26163 Fix infinite loop when authentication error event occured (#10272)

* AAE-26163 Logout user after 3 login attempts failed, avoiding infinite loop when an authentication error occured, like when a user machine clock is significantly out of sync

* AAE-26163 Wait to discovery document to be loaded and user not authenticated to perform a ssoLogin, logout user if login fails after 3 attempts

* AAE-26163 Fix missed id_token_hint invoking logout when a login error occured due to a clock significantly out of sync

* AAE-26163 Add fake observable to unit test

* AAE-26163 Show oauth event logs if showDebugInformation is enabled, remove auth items if access token is not valid

* AAE-26163 Improve tryLogin error message

* AAE-26163 Check if token has expired to fix case when user access the application after the token is expired and with a clock significantly out of sync

* AAE-26163 Test logout when clock is out of sync

* AAE-26163 Create a service to check if local machine time is out of sync

* AAE-26163 Update oauthErrorEvent$ and combinedOAuthErrorsStream$ to return errors

* AAE-26163 Output error within combined oauth error event subscription

* AAE-26163 Fix lint problems

* AAE-26163 Logout user when token refresh error happens for the second time, if the token is not refreshed properly after first refresh error

* AAE-26163 Logout user once an oauth error event occur due to clock out of sync

* AAE-26163 Fix retry login error message if the OAuthErrorEvent doesn t return reason

* AAE-26163 Fix the issue where the logout API call is canceled by the authorize call when login fails due to clock synchronization problems, causing an infinite loop.

* remove console.log

* AAE-26163 Fix retry login error message if the OAuthErrorEvent reason is an empty object

* Cherry picked commit from oidc and run fix lint

* [MIGRATION] - fixed build and lint

* [MIGRATION] - Added injectionContext to avoid error NG0203 for unit tests

* [MIGRATION] - Moving mocha to jest

* [MIGRATION] - Fixing failing migrated tests

* [MIGRATION] - Migrating to Jest - working but some tests fails

* Trying to fix js-api unit tests

* Removing testing lib to sync with develop

* Fixed two excluded unit tests

* Removed unused project parts

* Removed unused project parts

* Reduced tserrors on building storybook

* Fixed sonarqube errors

* Removing temporarily eslint rule from publishing

* [MIGRATION] - Fixed lint

* [MIGRATION] - Fixed type

* [MIGRATION] - Rebased

* [MIGRATION] - Readded removed action

* [MIGRATION] - Checking deps

* [MIGRATION] - updated lock

* [ACS-9052] manage versions close button is too low (#10466)

* [ci:force] - Fixed lint

* [ACS-9052] Fixed close button in version manager position

* [ACS-9052] Reverted unwanted changes

---------

Co-authored-by: VitoAlbano <vito.albano.123@gmail.com>

* [MIGRATION] - fixed storybook builds

* [MIGRATION] - Checking if now eslint is releasable

* [MIGRATION] - Changing the building executor for eslint-rules

* Readded rule for peer deps

* Fixed wrong rule

* [ACS-9075] Fixed incorrect buttons labels color (#10489)

* Update package.json

* Fix ACA pipeline

* [ACS-9084] Fixed incorrect color for notification bell icon (#10513)

* Change dialog label padding

* [AAE-26767] - Fixed lint

* [AAE-26767] - Fixed lint

* updated dependencies

* AAE-30733 Fix incorrect alignment of icons in permission list header

* [MIGRATION] - sync package-lock

* [MIGRATION] - Fixed package on core lib

* [MIGRATION] - Removed unused lock

* Fixed licence

* [MIGRATION] - sync lock file

* [MIGRATION] - fixed lint issues

* [ACS-9271][ACA] Login page input labels are cut if the input is not empty (#10637)

* AAE-31453 Override card-view-textitem readonly color

---------

Co-authored-by: Amedeo Lepore <amedeo.lepore@hyland.com>
Co-authored-by: Ehsan Rezaei <ehsan.rezaei@hyland.com>
Co-authored-by: AleksanderSklorz <115619721+AleksanderSklorz@users.noreply.github.com>
Co-authored-by: DominikIwanek <dominik.iwanek@hyland.com>
Co-authored-by: swapnil-verma-gl <92505353+swapnil-verma-gl@users.noreply.github.com>
Co-authored-by: Wojciech Duda <69160975+wojd0@users.noreply.github.com>
Co-authored-by: dominikiwanekhyland <141320833+dominikiwanekhyland@users.noreply.github.com>
2025-02-12 11:58:57 +00:00
Mykyta Maliarchuk e62c0587b6 [ACS-9215] Update license headers (#10625)
* [ACS-9215] Update license headers

* [ACS-9215] Update license headers
2025-02-06 13:18:56 +01:00
MichalKinas 35aec24c0f Revert "Revert "[ACS-9166] Migrate Saved Searches to preferences API from con…" (#10594)
This reverts commit fcd6e25dc6.
2025-01-28 08:41:23 +01:00
AleksanderSklorz 35a1f0b885 Post release version bump (#10589) 2025-01-27 13:14:58 +01:00
MichalKinas fcd6e25dc6 Revert "[ACS-9166] Migrate Saved Searches to preferences API from config file…" (#10566)
This reverts commit 184a38a0ef.
2025-01-20 12:38:27 +01:00
MichalKinas 184a38a0ef [ACS-9166] Migrate Saved Searches to preferences API from config file (#10559)
* [ACS-9166] Migrate Saved Searches to preferences API from config file

* [ACS-9166][ci:force] Unit test coverage

* [ACS-9166] Unit test fixes

* [ACS-9166] Remove obsolete comment
2025-01-20 08:22:02 +01:00
swapnil-verma-gl 4787470707 [MNT-24575] Added APIS and models folder information dialog (#10460)
* [MNT-24575] Added APIs folder information

* [MNT-24575] Added models

* [MNT-24575] Added constructors to model

* [MNT-24575] Added documentation

* [MNT-24575] Added documentation

* [MNT-24575] Addressed Code review comments

* [MNT-24575] Added unit tests. Fixed typo

* [MNT-24575] Fixed accesibility issue in DialogComponent. Fixed typo in enum

* [MNT-24575] Fixed typo, incorrect ACS version, and incorrect imports

* [MNT-24575] Added unit tests to js-api

* Empty commit to trigger GHA

* [ci:force] Empty force commit to trigger GHA

* [MNT-24575] Fixed linting issue

* [MNT-24575] Removed redundant *

* [ci:force] Empty force commit to trigger GHA
2025-01-07 15:21:44 +05:30
Vito Albano 872fb16b62 AAE-29442 moving to node 20.18.1 (#10500)
* AAE-0000 - moving to node 20.18.1

* AAE-29442 Adjusted to the new eslint rule
2024-12-18 12:14:52 +01:00
swapnil-verma-gl 356260b5d1 Post release version bump (#10417)
* Post release version bump

* Post release version bump

* Release notes and docs cleanup for v7.0.0-alpha.6

* Fixed js-api version in cli package.json
2024-11-21 16:30:58 +05:30