Commit Graph

28 Commits

Author SHA1 Message Date
Thomas Hunter
e354ec3891 [ACS-3744] Folder rules styling fixes (#2753)
* Folder rules styling fixes

* Fix not showing isInheritable in read only
2022-11-02 12:51:40 +00:00
Thomas Hunter
2b12fa983c [ACS-3886] Fix edit button being disabled when opening edit rule dialog initially (#2754)
* [ACS-3886] Fix edit button being disabled when opening edit rule dialog initially

* Fix test
2022-11-02 09:35:52 +00:00
Thomas Hunter
2bdad0bce7 [ACS-3872] Disable boolean mode dropdown due to lack of OR in ACS (#2744) 2022-10-27 12:37:19 +01:00
Nikita Maliarchuk
441df71885 renamed comparator's value (#2733) 2022-10-21 14:43:41 +01:00
Nikita Maliarchuk
77c5ac0c96 [ACS-3576] Map aspect actions with the aspect picker dropdown (#2713)
* rebased

* rebased

* unit tests

* linting

* publicApiCall

* renamed method formatAspects to parseAspectsToSelectOptions

* added getter cardViewStyle

* removing business logic from the ui component

* moved 'loadAspects()' to actions.service.ts

* preview fix

* removed duplicate
2022-10-18 15:49:20 +01:00
Thomas Hunter
a66226992e [ACS-3721] Change folder rules endpoints to private (#2710) 2022-10-13 14:14:48 +01:00
Thomas Hunter
9549a6c098 [ACS-3698] Add some validation to the actions section of the folder rules create / update dialog (#2712)
* Action definition ID required

* Unit tests

* Lint
2022-10-13 11:31:20 +01:00
Nikita Maliarchuk
a804dceade [ACS-3511] Update rules (#2701)
* rebase

* fixed a bug conserning isEnabled checkbox

* removed addFakeApect, added unit tests

* linting

* renamed openNewRuleDialog to openCreateUpdateRuleDialog
2022-10-11 09:24:37 +01:00
Thomas Hunter
59c7d68299 [ACA-3258] Edit rule dialog actions section (#2692)
* Add actions service

* Create components

* Rebasing

* Add card view component

* Moved actions definition call outside of actions list component

* Localisation of parameter and action labels + read only mode for components

* Remove action option

* Default to one item in array

* Handle change of cardview

* Linting

* Add unit tests

* Fix broken unit tests

* Fix unknown word

* Add private to property
2022-10-06 14:07:47 +01:00
Nikita Maliarchuk
cd6a2cc238 [ACS-3596] Create / Update rule dialog - display errors (#2685)
* folder-rules.service - createRule method

* add temp method addFakeAction

* [ACS-3596] Create / Update rule dialog - display errors

* comments removed
2022-10-04 12:18:36 +02:00
Nikita Maliarchuk
4a6725133d [ACS-3359] Rename boolean fields in rule API. (#2672)
* [ACS-3359] Rename boolean fields in rule API.

* renamed some other fields

Co-authored-by: Tom Page <thomas.page@alfresco.com>
2022-09-28 16:51:46 +02:00
Nikita Maliarchuk
aaa1914263 [ACS-3575] Update FolderRulesService to provide a list of available aspects (#2669)
* first commit

* [ACS-3575] Update FolderRulesService to provide a list of available aspects

* rebase
2022-09-26 11:11:49 +02:00
Nikita Maliarchuk
1f0d590a84 [ACS-3586] ACA/Folder Rules: Adding a rule to a Folder seems to break the Folder Rules UI (#2663)
* [ACS-3586] ACA/Folder Rules: Adding a rule to a Folder seems to break the Folder Rules UI

* refactored condition statement

* linter

* parseSimpleCondition fn
2022-09-23 09:29:46 +01:00
Nikita Maliarchuk
c2b9c6cc55 [ACS-3259] Create / Update rule dialog - options section (#2651)
* first commit

* intermediate commit

* some progress

* [ACS-3259] Create / Update rule dialog - options section
2022-09-20 10:14:49 +01:00
Gloria Camino
f48a5b8483 LOC-391 Fix for ACA-4606 - Updated strings in 16 languages (#2647) 2022-09-16 12:38:49 +01:00
Nikita Maliarchuk
3b9eae677c [ACS-3512] - ACA enable/disable rule from listing (#2636)
* initial html layout

* toggleRule method

* [ACS-3512] - ACA enable/disable rule from listing

* useless crutch was deleted
2022-09-16 11:14:32 +02:00
Gloria Camino
402a14368d LOC-383 - Updated UI files in 16 languages for ACA 2.13 release (#2619) 2022-09-02 15:46:12 +01:00
Nikita Maliarchuk
db47d862e3 [ACS-3219] Delete Rule (#2609)
* [ACS-3219] Delete Rule

* rebased + added unsubscribe()

* small fix

* a couple more fixes

* manage-rules css formatting fix
2022-08-30 10:18:10 +01:00
Denys Vuika
69cb107dd9 Angular 14 upgrade (#2598)
* angular 14

* material 14 and ADF 14

* latest ADF 5.x and theme import fixes

* use latest ADF 5.x

* update build command

* update travis command

* upgrade ngrx to v14

* upgrade flex layout lib

* fix after rebase

* fix after rebase

* upgrade to latest ADF
2022-08-25 12:05:00 +01:00
Thomas Hunter
9cd616ff8c [ACS-3256] Add trigger / "when" section to rule details & edit rule dialog (#2603)
* Add triggers section with checkboxes

* Add some unit tests

* Changed Input property of rule details so that it takes a changeable value rather than just an initial value

* Made separate component with control value accessor for triggers

* Linting

* Change trigger values to lowercase to be in sync with the API

* Minor styling changes and add new rule button to manage rules screen

* Add option for unknown field to be selected

* Add read only to nested composite and simple conditions

* Added unknown field tests for simple condition

* Linting

* Change how the triggers component displays when disabled
2022-08-23 09:54:08 +01:00
Nikita Maliarchuk
5f009e89fa [ACS-3339] Manage Rules screen / listing - Manage rules screen template & minimal listing (#2596)
* First commit: rules listing

* [ACS-3339] Manage Rules screen / listing - Manage rules screen template & minimal listing

* some changes for rule model

* some changes requested for PR

* a couple more fixes

* removed initial value from aca-rule-details

* spelling error fixed
2022-08-19 18:27:21 +02:00
Thomas Hunter
9a650f5265 [ACS-3257] Create / Update rules dialog condition section (#2585)
* First commit: simple and composite condition UI

* Styling, readonly mode, etc...

* Unit tests for RuleSimpleConditionUiComponent

* Validation for composite condition

* Add unit tests for composite conditions

* Revert manage rules screen

* Reset karma conf singleRun to true

* Couple of small changes

* Typo
2022-08-18 17:39:36 +01:00
Nikita Maliarchuk
0577f35e29 [ACS-3338] Manage Rules screen / listing - Folder rules service (#2577)
* created service for rules

* progress on folder-rule service

* some progress with folder-rules service unit testing

* [ACS-3339] Manage Rules screen / listing - Folder rules service

* Review comments

* Review comments
2022-08-12 09:31:51 +01:00
Denys Vuika
e237e373eb remove unused project files (#2583)
* remove unused project files

* restore package for shared testing lib
2022-08-11 13:55:18 +01:00
Thomas Hunter
38cae75476 [ACS-3379] Fix unit tests for the visibility rules of the folder rules (#2576)
* [ACS-3379] Fix unit tests for the visibility rules of the folder rules

* Add stage to .travis.yml so unit tests run on Travis

* Karma singleRun: true so that Travis doesn't stall
2022-08-03 16:22:42 +01:00
Thomas Hunter
30eebfa1e2 [ACA-3379] Routing & skeleton for manage rules screen (#2575)
* [ACA-3379] Routing & skeleton for manage rules screen

* Linting

* Update routing so it's no longer lazy loaded

* Reverted to using lazy-loaded routes

* Remove action visibility from favourites, update e2e test data
2022-08-02 12:46:47 +01:00
Thomas Hunter
a9f1946a0a [ACS-3255] Add basic dialog for create / update rule (#2568)
* [ACS-3255] Add basic dialog for create / update rule

* Remove test data

* Fix import

* Fix linting
2022-07-15 16:37:41 +01:00
Denys Vuika
8312bf8d84 [ACS-3217] initial project scaffold for the Folder Rules (#2566)
* initial project scaffold

* visibility rules placeholders

* custom scope for rules evaluators

* unit tests and minor improvements

* update e2e

* add write permission check

* update e2e

* update e2e

* enable the env variable

* fix tests

* update e2e

* fix e2e
2022-07-08 10:53:53 +01:00