Skip to content
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-5645] Property Panel Feature #8995

Merged
merged 204 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
9a24da9
[ACS-5645]Added edit functionality for each panel and updated test cases
Yasa-Nataliya Aug 10, 2023
d4c0f60
metadata e2e fix
Yasa-Nataliya Aug 13, 2023
806064a
[ACS-5725]fixed failing e2es
Yasa-Nataliya Aug 17, 2023
82a330c
added unit test cases for new functionality
Yasa-Nataliya Aug 19, 2023
0dd002f
minor fixes
Yasa-Nataliya Aug 19, 2023
dae1f16
minor fixes
Yasa-Nataliya Aug 21, 2023
3c0b6a4
minor fixes
Yasa-Nataliya Aug 21, 2023
ef25310
[ACS-5645]code modification
Yasa-Nataliya Aug 25, 2023
d0f43d2
[ACS-5645]removed unwanted code
Yasa-Nataliya Aug 25, 2023
e97e44f
[ACS-5645]modified the changes
Yasa-Nataliya Aug 25, 2023
f1b02b7
[ACS-5645]removed unwanted space
Yasa-Nataliya Aug 25, 2023
6d55abb
[ACS-5645]removed unwanted code
Yasa-Nataliya Aug 29, 2023
a665634
[ACS-5645]Implemented changes as per the review comments
Yasa-Nataliya Aug 31, 2023
6c50066
linting fixes
Yasa-Nataliya Aug 31, 2023
9b0e0b3
[ACS-5645]minor fixes
Yasa-Nataliya Aug 31, 2023
4e3faae
[ACS-5645] removed unwanted code
Yasa-Nataliya Sep 2, 2023
c231b41
[ACS-5645]modified the change
Yasa-Nataliya Sep 4, 2023
8a11d59
[ACS-5645]aligned input
Yasa-Nataliya Sep 4, 2023
cfcd90c
[ACS-5645]modified changes
Yasa-Nataliya Sep 4, 2023
9d1cc84
[ACS-5645]Implemented the changes as per the review comments
Yasa-Nataliya Sep 5, 2023
c1f3417
[ACS-5645]linting fixes
Yasa-Nataliya Sep 5, 2023
2556685
[ACS-5645]fixed sonarcloud issue
Yasa-Nataliya Sep 5, 2023
6fd4a78
[ACS-5645]fixed errors
Yasa-Nataliya Sep 5, 2023
71b3590
[ACS-5645]rename the function
Yasa-Nataliya Sep 6, 2023
98231d8
[ACS-5645]fixes linting
Yasa-Nataliya Sep 6, 2023
c37e3b1
[ACS-5540]lint fixes
Yasa-Nataliya Sep 6, 2023
c1ee988
[ACS-5645]Implemented the changes as per review comments
Yasa-Nataliya Sep 7, 2023
90cad83
[ACS-5645] Removed unused code
Yasa-Nataliya Sep 7, 2023
b220870
[ACS-5645]linting fixes
Yasa-Nataliya Sep 7, 2023
83c2af7
[ACS-5645]fixes for lint
Yasa-Nataliya Sep 7, 2023
8a0102e
[ACS-5645] e2e fixes
Yasa-Nataliya Sep 7, 2023
14babcd
[ACS-5645]Added translation
Yasa-Nataliya Sep 8, 2023
fe71693
[ACS-5645]fixes for e2e
Yasa-Nataliya Sep 8, 2023
eade92f
[ACS-5645]fixes for e2e
Yasa-Nataliya Sep 9, 2023
8e5cb11
[ACS-5645]e2e fixes
Yasa-Nataliya Sep 10, 2023
af97c8b
[ACS-5645] Renamed the theme
Yasa-Nataliya Sep 11, 2023
1060e3e
[ACS-5645]modified changes
Yasa-Nataliya Sep 13, 2023
d010965
[ACS-5645] fixed lock-file bug
Yasa-Nataliya Sep 20, 2023
656259e
[ACS-5645] added tooltips for save and cancel icons
Yasa-Nataliya Sep 20, 2023
be289bd
[ACS-5645] Modified the changes
Yasa-Nataliya Sep 22, 2023
af1cad3
[ACS-5645]Modified the changes
Yasa-Nataliya Sep 22, 2023
8371be6
[ACS-5645] Implemented the changes as per the review comments
Yasa-Nataliya Sep 22, 2023
a8dca98
[ACS-5645] Implemented the changes as per the review comments
Yasa-Nataliya Sep 22, 2023
269bde8
[ACS-5645]Modified the changes
Yasa-Nataliya Sep 22, 2023
9f9ae9c
[ACS-5645] added group panel lock changes
Yasa-Nataliya Sep 22, 2023
2de342c
[ACS-5645] Resolved sonarcloud issue
Yasa-Nataliya Sep 22, 2023
05200b6
[ACS-5645] added test cases for tags component
Yasa-Nataliya Sep 25, 2023
15eed0d
[ACS-5645] updated the documentation
Yasa-Nataliya Sep 25, 2023
72e128d
[ACS-5645] updated the documentation
Yasa-Nataliya Sep 25, 2023
2a1fe85
[ACS-5645] updated the documentation
Yasa-Nataliya Sep 25, 2023
f25a3ed
[ACS-5645] Implemented changes as per review comments
Yasa-Nataliya Sep 28, 2023
df3ad2c
[ACS-5645] lint fixes
Yasa-Nataliya Sep 28, 2023
6245a05
[ACS-5645] Implemented the review comments
Yasa-Nataliya Oct 3, 2023
ee88a6e
[ACS-5645] added focus
Yasa-Nataliya Oct 4, 2023
a08ce5f
[ACS-5645] modified the changes
Yasa-Nataliya Oct 9, 2023
6d2000e
[ACS-5645] Lint fixes
Yasa-Nataliya Oct 9, 2023
86ad0d0
[ACS-5645] Lint fixes
Yasa-Nataliya Oct 9, 2023
3472cef
[ACS-5645] Lint fixes
Yasa-Nataliya Oct 9, 2023
2767c3e
[ACS-5645] Removed unwanted code
Yasa-Nataliya Oct 9, 2023
1f0f140
[ACS-5645] fixed sonarcloud issue
Yasa-Nataliya Oct 9, 2023
14c1222
[ACS-5645] Added missing translation key
Yasa-Nataliya Oct 10, 2023
d81f1c4
[ACS-5645] renamed the methods
Yasa-Nataliya Oct 10, 2023
5267304
[ACS-5645]Added edit functionality for each panel and updated test cases
Yasa-Nataliya Aug 10, 2023
fbc9882
[ACS-5645]code modification
Yasa-Nataliya Aug 25, 2023
d60948d
[ACS-5645]removed unwanted code
Yasa-Nataliya Aug 29, 2023
d0f69ee
[ACS-5645]Implemented changes as per the review comments
Yasa-Nataliya Aug 31, 2023
730f651
[ACS-5645]Implemented the changes as per review comments
Yasa-Nataliya Sep 7, 2023
afee83e
[ACS-5645]linting fixes
Yasa-Nataliya Sep 7, 2023
7364ad4
[ACS-5645] fixed lock-file bug
Yasa-Nataliya Sep 20, 2023
f2b2bbd
[ACS-5645] Modified the changes
Yasa-Nataliya Sep 22, 2023
ca93a8c
[ACS-5645] added group panel lock changes
Yasa-Nataliya Sep 22, 2023
964fe15
[ACS-5645]Added edit functionality for each panel and updated test cases
Yasa-Nataliya Aug 10, 2023
78c25ab
minor fixes
Yasa-Nataliya Aug 21, 2023
133d3a0
[ACS-5645] Modified the changes
Yasa-Nataliya Sep 22, 2023
3be5959
[ACS-5645] added group panel lock changes
Yasa-Nataliya Sep 22, 2023
dbcc55c
[ACS-5645]Added edit functionality for each panel and updated test cases
Yasa-Nataliya Aug 10, 2023
3c12ad1
metadata e2e fix
Yasa-Nataliya Aug 13, 2023
e2f6b9e
[ACS-5725]fixed failing e2es
Yasa-Nataliya Aug 17, 2023
a73dbc4
minor fixes
Yasa-Nataliya Aug 21, 2023
9fa65f6
[ACS-5645]removed unwanted code
Yasa-Nataliya Aug 29, 2023
8d70021
[ACS-5645]Implemented changes as per the review comments
Yasa-Nataliya Aug 31, 2023
35a71b3
[ACS-5551] property panel design
AnukritiGL Sep 13, 2023
f80ee37
[ACS-5551] minor changes
AnukritiGL Sep 14, 2023
6b420c4
[ACS-5551]minor change
AnukritiGL Sep 20, 2023
21037b1
[ACS-5551] updated checks for non -editable field
AnukritiGL Sep 27, 2023
77b42be
[ACS-5551] modified the changes
AnukritiGL Sep 28, 2023
a8a9c4b
[ACS-5551] modified changes
AnukritiGL Sep 28, 2023
f3e85c6
[ACS-5551] content-metadata updated
AnukritiGL Oct 11, 2023
ab640ed
[ACS-5551] code updated
AnukritiGL Oct 11, 2023
5031107
[ACS-5551] remove extra space
AnukritiGL Oct 11, 2023
d6dca4b
fixed scrollbar issue
pkunduGL Oct 12, 2023
2d81b3e
[ACS-5551] margin adjusted
AnukritiGL Oct 12, 2023
5c4a754
Fixed ACS-6110
pkunduGL Oct 12, 2023
37830cc
[ACS-5551] design updated
AnukritiGL Oct 12, 2023
4cb40dd
[ACCS-5551] unit test added
AnukritiGL Oct 12, 2023
0871b7e
[ACS-5551] margin issue fixed
AnukritiGL Oct 12, 2023
72244bc
scroll issue fixed
pkunduGL Oct 13, 2023
95111bb
[ACS-5551] color updated
AnukritiGL Oct 13, 2023
bc68424
[ACS-5551] design modify
AnukritiGL Oct 13, 2023
c50f5ba
[ACS-5551] add missing methods
AnukritiGL Oct 13, 2023
b2873ca
[ACS-5654] translation added
AnukritiGL Oct 16, 2023
455cbd1
[ACS-5645] style updated
AnukritiGL Oct 16, 2023
56f9fcc
[ACS-5654] hide toggle button for aspects
AnukritiGL Oct 16, 2023
ffec96a
[ACS-5645] theme updated
AnukritiGL Oct 16, 2023
14b662a
[ACS-5645] tags and category tyle update
AnukritiGL Oct 16, 2023
8de34e8
[ACS-5645] unit test update
AnukritiGL Oct 16, 2023
4a0aefa
[ACS-5645] code updated as per comments
AnukritiGL Oct 16, 2023
a36191a
[ACS-5645] linting issue fix
AnukritiGL Oct 17, 2023
7081950
[ACS-5645] fixed the failed unit test cases
Yasa-Nataliya Oct 17, 2023
0275667
[ACS-5645] e2e fixes
rbahirsheth Oct 17, 2023
db25732
[ACS-5645] e2e modify
AnukritiGL Oct 17, 2023
9d74f83
[ACS-5645] aspect issue resolved
AnukritiGL Oct 17, 2023
57005c4
[ACS-5645] Address the comments
rbahirsheth Oct 17, 2023
c393ae3
[ACS-5645] Address the comments
rbahirsheth Oct 17, 2023
b13b4df
[ACS-5645] tags list design modify
AnukritiGL Oct 18, 2023
7244683
[ACS-5645] design modify for chips
AnukritiGL Oct 18, 2023
eef7d31
[ACS-5645] Removed unused property
rbahirsheth Oct 19, 2023
88191f4
[ACS-5645] Stop reload on panel cancel changes
rbahirsheth Oct 19, 2023
d22b55f
[ACS-5645] Linting issue fixed
rbahirsheth Oct 19, 2023
573e5b1
revert file change
DenysVuika Oct 20, 2023
78689d0
[ACS-5645] update aspect issue fix
AnukritiGL Oct 20, 2023
387e3cf
Revert "[ACS-5645] update aspect issue fix"
DenysVuika Oct 20, 2023
768f518
reduce layout duplicates, header panel component
DenysVuika Oct 20, 2023
bf8bf9d
code improvements
DenysVuika Oct 20, 2023
f150ef5
remove useless logging
DenysVuika Oct 20, 2023
5e58108
cleanup css, remove mat-divider, fix tests
DenysVuika Oct 20, 2023
8730fcc
remove useless styles
DenysVuika Oct 20, 2023
02f45b3
cleanup e2e
DenysVuika Oct 21, 2023
001dd07
cleanup useless events
DenysVuika Oct 21, 2023
72010dc
rename nodeIcon to just icon
DenysVuika Oct 21, 2023
1590770
disable transition animation for tabs
DenysVuika Oct 21, 2023
eb0af14
remove "editable" hacks
DenysVuika Oct 21, 2023
8dbc139
improved naming for state properties
DenysVuika Oct 21, 2023
e29c84d
bug fixes for process cloud
DenysVuika Oct 21, 2023
ac28c5e
css stylelint fixes
DenysVuika Oct 21, 2023
04ad31d
rework component, cleanup useless code
DenysVuika Oct 21, 2023
37d2aae
fix allowable operations and readonly state
DenysVuika Oct 21, 2023
de296e8
wait for button
DenysVuika Oct 23, 2023
ba67e7a
cleanup css, disable e2e
DenysVuika Oct 23, 2023
ae8f013
remove demo-shell only content, fix metadata
DenysVuika Oct 23, 2023
7f4fa37
restore reset date functionality
DenysVuika Oct 23, 2023
c7d5483
fix incorrect styling
DenysVuika Oct 23, 2023
54de3a1
fix clear date button styles
DenysVuika Oct 23, 2023
902f6c7
cleanup text item styles
DenysVuika Oct 23, 2023
8fb1044
remove useless classes
DenysVuika Oct 23, 2023
d727158
text item rework, code cleanup
DenysVuika Oct 23, 2023
b9d2e02
style bug fixes
DenysVuika Oct 23, 2023
92fd7cc
cleanup useless tests
DenysVuika Oct 23, 2023
41ddf29
fix styles and tests
DenysVuika Oct 23, 2023
f08fd46
bug fixes for select item styles, revert PR changes
DenysVuika Oct 23, 2023
8f16bf4
rework categories styles
DenysVuika Oct 23, 2023
1c2359a
rework tags creator styles
DenysVuika Oct 23, 2023
fc11073
rollback divider module
DenysVuika Oct 23, 2023
50efe24
fix css variable naming
DenysVuika Oct 23, 2023
a337ff2
fix issue with hidden properties
DenysVuika Oct 23, 2023
eca70f2
fix key value pairs layout and styles
DenysVuika Oct 23, 2023
7635b22
fix tag creator validation
DenysVuika Oct 23, 2023
6f4216e
remove incorrect styles, raise proper errors
DenysVuika Oct 23, 2023
f5bcb36
fix unit tests
DenysVuika Oct 23, 2023
2afcaab
fix theme vars naming
DenysVuika Oct 24, 2023
d6b2c9c
remove css hacks for date items
DenysVuika Oct 24, 2023
09f4dd2
fix error borders
DenysVuika Oct 24, 2023
d913a93
fix css bugs
DenysVuika Oct 24, 2023
e770da7
reduce code
DenysVuika Oct 24, 2023
8d15aae
cleanup e2e and en.json
DenysVuika Oct 24, 2023
7533b5f
fix css linting
DenysVuika Oct 24, 2023
1737e06
cleanup unused template refs
DenysVuika Oct 24, 2023
f2000f4
remove useless div for metadata container
DenysVuika Oct 24, 2023
6f124be
cleanup expanders api
DenysVuika Oct 24, 2023
5a5ab9f
cleanup and remove useless tests
DenysVuika Oct 24, 2023
2432e3c
cleanup i18n
DenysVuika Oct 24, 2023
a2b2ce0
cleanup tests
DenysVuika Oct 24, 2023
c265d91
cleanup css
DenysVuika Oct 24, 2023
c1ca1a8
cleanup css
DenysVuika Oct 24, 2023
b5fbfbc
[ACS-5654] added the missing theme variables
AnukritiGL Nov 16, 2023
02307a9
review comments resolved
pkunduGL Nov 23, 2023
74e83f3
fixed css issue
pkunduGL Nov 24, 2023
c9cae85
[ACS-5654] removesd extra div
AnukritiGL Nov 27, 2023
210306a
[ACS-5654] save and cancel button bug fix
AnukritiGL Nov 28, 2023
70bb6f2
[ACS-5654] unit test fix for expand the panel
AnukritiGL Nov 28, 2023
dd5f1d9
[ACS-5645] design issues fix
AnukritiGL Nov 29, 2023
7577306
[ACS-5654] cards design fixed
AnukritiGL Nov 29, 2023
a083352
[ACS-5654] node icon added to thumbnail service
AnukritiGL Nov 29, 2023
900e99d
[ACS-5645] linting issue fixed
AnukritiGL Nov 30, 2023
43ab9ec
[ACS-5645] thumbnail unit test updated
AnukritiGL Nov 30, 2023
3641038
[ACS-5645] linting updated
AnukritiGL Nov 30, 2023
5772a4a
[ACS-5645] removed extra div
AnukritiGL Nov 30, 2023
e2734fb
[ACS-5645] important removed
AnukritiGL Dec 1, 2023
7b7af3b
[ACS-5645] tags text issue fix
AnukritiGL Dec 4, 2023
453fa0d
[ACS-5645] add missed class
AnukritiGL Dec 4, 2023
66e9ff2
[ACS-5645] removed unused classes
AnukritiGL Dec 11, 2023
1a11c34
[ACS-5645] removed unused code
AnukritiGL Dec 12, 2023
3c4a968
revert flags to original state
DenysVuika Dec 12, 2023
61d20f2
fix missing semicolon
DenysVuika Dec 12, 2023
9ba9e68
fix linting issues
DenysVuika Dec 12, 2023
6cd1a8d
reduce code duplication
DenysVuika Dec 12, 2023
afe693d
code cleanup
DenysVuika Dec 13, 2023
e86fd49
[ACS-5645] unit test fix
AnukritiGL Dec 13, 2023
17c6688
[ACS-5645] e2e fix for edit button
AnukritiGL Dec 13, 2023
6ed246c
fix linting issue for e2e
DenysVuika Dec 13, 2023
8c717b4
Replaced getNodeIcon from thumbnail to content service
rbahirsheth Dec 18, 2023
ade318b
fix indentation
rbahirsheth Dec 18, 2023
4bf6dbf
refactor css variable
rbahirsheth Dec 19, 2023
d17f9c2
use rgba color value
rbahirsheth Dec 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions demo-shell/src/app/components/file-view/file-view.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,17 @@
</adf-info-drawer-tab>

<adf-info-drawer-tab label="Properties">
<adf-content-metadata-card *ngIf="isPreset" [node]="node"
[multi]="multi"
[preset]="customPreset"
[readOnly]="isReadOnly"
[displayAspect]="showAspect"
[displayDefaultProperties]="displayDefaultProperties"
[displayEmpty]="displayEmptyMetadata"></adf-content-metadata-card>

<adf-content-metadata-card *ngIf="!isPreset" [node]="node"
[multi]="multi"
[readOnly]="isReadOnly"
[displayAspect]="showAspect"
[displayDefaultProperties]="displayDefaultProperties"
[displayEmpty]="displayEmptyMetadata"></adf-content-metadata-card>
<adf-content-metadata
DenysVuika marked this conversation as resolved.
Show resolved Hide resolved
[node]="node"
[multi]="multi"
[preset]="isPreset ? customPreset : null"
[readOnly]="isReadOnly"
[displayAspect]="showAspect"
[displayDefaultProperties]="displayDefaultProperties"
[displayTags]="false"
[displayCategories]="false"
[displayEmpty]="displayEmptyMetadata">
</adf-content-metadata>

<p class="toggle">
<mat-slide-toggle
Expand Down
8 changes: 5 additions & 3 deletions demo-shell/src/app/components/files/files.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,12 @@

<adf-info-drawer [title]="'Details'" *ngIf="documentList.selection[0]">
<adf-info-drawer-tab label="Properties">
<adf-content-metadata-card
<adf-content-metadata
[node]="documentList.selection[0].entry"
[displayEmpty]="displayEmptyMetadata">
</adf-content-metadata-card>
[displayEmpty]="displayEmptyMetadata"
[displayTags]="true"
[displayCategories]="true">
</adf-content-metadata>
</adf-info-drawer-tab>
<adf-info-drawer-tab label="Versions">
<ng-container *ngIf="hasOneFileSelected();else choose_document_template">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ Displays and edits metadata related to a node.
| editable | `boolean` | | (optional) This flag toggles editable of content. |
| customPanels | [`ContentMetadataCustomPanel`](../interfaces/content-metadata-custom-panel.interface.md)`[]` | | (optional) List of custom metadata panels to be displayed as [`Dynamic components`](../../extensions/components/dynamic.component.md). |

### Events

| Name | Type | Description |
|----------------|-----------------------------------------------------------------------|---------------------------------------------------|
| editableChange | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<boolean>` | Emitted when content's editable state is changed. |
rbahirsheth marked this conversation as resolved.
Show resolved Hide resolved

## Details

The component shows metadata related to a given node. It uses the
Expand Down Expand Up @@ -444,3 +438,4 @@ When the list of values is too long, the options selection panel will be enhance
## Custom metadata panels

If there is a need to display some custom node properties that require additional UI or data to be fetched you can define custom metadata panels for the metadata component. After creating custom component to be displayed it has to be registered in [Extension Service](../../extensions/services/extension.service.md). Both `panelTitle` and `component` properties have to be defined.
![Chips for multi value properties](../../docassets/images/adf-search-select.png)
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Allows to create multiple tags. That component contains input and two lists. Top

```html
<adf-tags-creator
[(tagNameControlVisible)]="tagNameControlVisible"
[tagNameControlVisible]="tagNameControlVisible"
(tagsChange)="tags = $event"
[mode]="tagsCreatorMode">
</adf-tags-creator>
Expand All @@ -35,5 +35,4 @@ Allows to create multiple tags. That component contains input and two lists. Top
| Name | Type | Description |
| ---- | ---- | ----------- |
| existingTagsPanelVisibilityChange | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<boolean>` | Emitted when bottom list is showing or hiding. |
| tagNameControlVisibleChange | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<boolean>` | Emitted when input is showing or hiding. |
| tagsChange | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`<string[]>` | Emitted when tags in top list are changed. |
Binary file added docs/docassets/images/UI_property_panel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 8 additions & 2 deletions docs/tutorials/content-metadata-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,18 @@ Now that the `my-preset` configuration is defined, let's use it in a view of the
</adf-content-metadata-card>
```

### Properties

| Name | Type | Default value | Description |
| ---- | ---- | ------------- | ----------- |
| readOnly | `boolean` | false | (optional) This flag sets the metadata in read only mode preventing changes. |

### Viewing the result

After saving the html file, open the ADF app in a browser and dive into the `Personal Files > Sites > swsdp` folder of the Alfresco's repository. Once there, select the `documentLibrary` folder (one click only) and click on the view details icon (the `i` on the top right). Scrolling down the metadata tab on the right, click on the `More information` item at the bottom. Once clicked, you will see two different groups: `Properties` (already there by default) and `This is my preset`. Click on `This is my preset` to show the properties related.
After saving the html file, open the ADF app in a browser and dive into the `Personal Files > Sites > swsdp` folder of the Alfresco's repository. Once there, select the `documentLibrary` folder (one click only) and click on the view details icon (the `menu_open icon` on the top right). Scrolling down the metadata tab on the right. You will see different panels: `Properties` (already there by default), `Tags`, `Categories` and `grouped properties`.

In the following screenshot you can see how the result should look:

![content_metadata_preset](../docassets/images/content_metadata_preset.png)
![UI_Property_Panel](../docassets/images/UI_property_panel.png)

To check it out, double click on the `documentLibrary` folder and select (with one click) the `Presentations` folder. You should see the `This is my preset` group disappear from the metadata panel, because the node doesn't have the `st:siteContainer` aspect.
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,9 @@ describe('Content Services Viewer', () => {
await viewerPage.checkInfoSideBarIsDisplayed();
await viewerPage.clickOnTab('Properties');
await viewerPage.checkTabIsActive('Properties');
await metadataViewPage.editIconClick();
await metadataViewPage.clickEditIconGeneral();
await metadataViewPage.enterPropertyText('properties.cm:name', newName);
await metadataViewPage.clickSaveMetadata();
await metadataViewPage.clickSaveGeneralMetadata();
await viewerPage.clickCloseButton();
}
});
24 changes: 12 additions & 12 deletions e2e/content-services/metadata/metadata-content-type.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ describe('content type', () => {
await viewerPage.clickInfoButton();
await viewerPage.checkInfoSideBarIsDisplayed();
await metadataViewPage.clickOnPropertiesTab();
await metadataViewPage.editIconIsDisplayed();
await metadataViewPage.isEditGeneralIconDisplayed();

await expect(await viewerPage.getActiveTab()).toEqual('PROPERTIES');
await expect(await viewerPage.getActiveTab()).toEqual('Properties');
const defaultType = (await metadataViewPage.hasContentType('Content')) || (await metadataViewPage.hasContentType('cm:content'));
await expect(defaultType).toBe(true, 'Content type not found');

await metadataViewPage.editIconClick();
await metadataViewPage.clickEditIconGeneral();

await expect(await metadataViewPage.changeContentType(type.title)).toBe(true, 'Failed to update node type.');
await metadataViewPage.clickSaveMetadata();
await metadataViewPage.clickSaveGeneralMetadata();
await metadataViewPage.checkConfirmDialogDisplayed();
await metadataViewPage.applyNodeProperties();

Expand All @@ -139,9 +139,9 @@ describe('content type', () => {
await viewerPage.clickInfoButton();
await viewerPage.checkInfoSideBarIsDisplayed();
await metadataViewPage.clickOnPropertiesTab();
await metadataViewPage.editIconIsDisplayed();
await metadataViewPage.isEditGeneralIconDisplayed();

await expect(await viewerPage.getActiveTab()).toEqual('PROPERTIES');
await expect(await viewerPage.getActiveTab()).toEqual('Properties');
const customType = (await metadataViewPage.hasContentType(type.title)) || (await metadataViewPage.hasContentType(`${model.namespacePrefix}:${type.name}`));
await expect(customType).toBe(true, 'Custom type not found');
await expect(await metadataViewPage.getPropertyText(`properties.${model.namespacePrefix}:${property.name}`)).toContain(property.defaultValue);
Expand All @@ -155,16 +155,16 @@ describe('content type', () => {
await viewerPage.clickInfoButton();
await viewerPage.checkInfoSideBarIsDisplayed();
await metadataViewPage.clickOnPropertiesTab();
await metadataViewPage.editIconIsDisplayed();
await metadataViewPage.isEditGeneralIconDisplayed();

await expect(await viewerPage.getActiveTab()).toEqual('PROPERTIES');
await expect(await viewerPage.getActiveTab()).toEqual('Properties');
let defaultType = (await metadataViewPage.hasContentType('Content')) || (await metadataViewPage.hasContentType('cm:content'));
await expect(defaultType).toBe(true, 'Content type not found');

await metadataViewPage.editIconClick();
await metadataViewPage.clickEditIconGeneral();

await expect(await metadataViewPage.changeContentType(type.title)).toBe(true, 'Failed to update node type.');
await metadataViewPage.clickSaveMetadata();
await metadataViewPage.clickSaveGeneralMetadata();

await metadataViewPage.checkConfirmDialogDisplayed();
await metadataViewPage.cancelNodeProperties();
Expand All @@ -178,9 +178,9 @@ describe('content type', () => {
await viewerPage.clickInfoButton();
await viewerPage.checkInfoSideBarIsDisplayed();
await metadataViewPage.clickOnPropertiesTab();
await metadataViewPage.editIconIsDisplayed();
await metadataViewPage.isEditGeneralIconDisplayed();

await expect(await viewerPage.getActiveTab()).toEqual('PROPERTIES');
await expect(await viewerPage.getActiveTab()).toEqual('Properties');
defaultType = (await metadataViewPage.hasContentType('Content')) || (await metadataViewPage.hasContentType('cm:content'));
await expect(defaultType).toBe(true, 'Content type not found');
await viewerPage.clickCloseButton();
Expand Down
31 changes: 3 additions & 28 deletions e2e/content-services/metadata/metadata-permissions.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@
* limitations under the License.
*/

import { createApiService,
LoginPage,
StringUtil,
UploadActions,
UserModel,
UsersActions,
ViewerPage
} from '@alfresco/adf-testing';
import { createApiService, LoginPage, StringUtil, UploadActions, UserModel, UsersActions, ViewerPage } from '@alfresco/adf-testing';
import { MetadataViewPage } from '../../core/pages/metadata-view.page';
import { NavigationBarPage } from '../../core/pages/navigation-bar.page';
import { FileModel } from '../../models/ACS/file.model';
Expand All @@ -31,20 +24,6 @@ import CONSTANTS = require('../../util/constants');
import { SitesApi } from '@alfresco/js-api';

describe('permissions', () => {

const METADATA = {
DATA_FORMAT: 'mmm dd yyyy',
TITLE: 'Details',
COMMENTS_TAB: 'COMMENTS',
PROPERTY_TAB: 'PROPERTIES',
DEFAULT_ASPECT: 'Properties',
MORE_INFO_BUTTON: 'More information',
LESS_INFO_BUTTON: 'Less information',
ARROW_DOWN: 'keyboard_arrow_down',
ARROW_UP: 'keyboard_arrow_up',
EDIT_BUTTON_TOOLTIP: 'Edit'
};

const loginPage = new LoginPage();
const viewerPage = new ViewerPage();
const metadataViewPage = new MetadataViewPage();
Expand Down Expand Up @@ -130,9 +109,7 @@ describe('permissions', () => {
await metadataViewPage.clickOnPropertiesTab();
await metadataViewPage.editIconIsDisplayed();

await expect(await viewerPage.getActiveTab()).toEqual(METADATA.PROPERTY_TAB);

await metadataViewPage.clickOnInformationButton();
await expect(await viewerPage.getActiveTab()).toEqual('Properties');

await metadataViewPage.clickMetadataGroup('EXIF');

Expand All @@ -150,9 +127,7 @@ describe('permissions', () => {
await metadataViewPage.clickOnPropertiesTab();
await metadataViewPage.editIconIsDisplayed();

await expect(await viewerPage.getActiveTab()).toEqual(METADATA.PROPERTY_TAB);

await metadataViewPage.clickOnInformationButton();
await expect(await viewerPage.getActiveTab()).toEqual('Properties');

await metadataViewPage.clickMetadataGroup('EXIF');

Expand Down
25 changes: 4 additions & 21 deletions e2e/content-services/metadata/metadata-properties.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,9 @@ describe('CardView Component - properties', () => {
const METADATA = {
DenysVuika marked this conversation as resolved.
Show resolved Hide resolved
DATA_FORMAT: 'mmm dd yyyy',
TITLE: 'Details',
COMMENTS_TAB: 'COMMENTS',
PROPERTY_TAB: 'PROPERTIES',
COMMENTS_TAB: 'Comments',
PROPERTY_TAB: 'Properties',
DEFAULT_ASPECT: 'Properties',
MORE_INFO_BUTTON: 'More information',
LESS_INFO_BUTTON: 'Less information',
ARROW_DOWN: 'keyboard_arrow_down',
ARROW_UP: 'keyboard_arrow_up',
EDIT_BUTTON_TOOLTIP: 'Edit'
};

Expand Down Expand Up @@ -90,7 +86,6 @@ describe('CardView Component - properties', () => {

await expect(await viewerPage.getActiveTab()).toEqual(METADATA.PROPERTY_TAB);

await metadataViewPage.clickOnInformationButton();

await metadataViewPage.clickMetadataGroup('EXIF');

Expand All @@ -108,11 +103,9 @@ describe('CardView Component - properties', () => {
await viewerPage.clickInfoButton();
await viewerPage.checkInfoSideBarIsDisplayed();
await metadataViewPage.clickOnPropertiesTab();
await metadataViewPage.editIconIsDisplayed();
await metadataViewPage.isEditGeneralIconDisplayed();

await CheckboxPage.check(metadataViewPage.readonlySwitch);

await metadataViewPage.editIconIsNotDisplayed();
});

it('[C268965] Should multi property allow expand multi accordion at the same time when set', async () => {
Expand All @@ -121,15 +114,9 @@ describe('CardView Component - properties', () => {
await viewerPage.checkInfoSideBarIsDisplayed();
await metadataViewPage.clickOnPropertiesTab();

await metadataViewPage.clickOnInformationButton();

await metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');
await metadataViewPage.checkMetadataGroupIsNotExpand('properties');

await metadataViewPage.clickMetadataGroup('properties');

await metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');
await metadataViewPage.checkMetadataGroupIsExpand('properties');
await metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');

await metadataViewPage.clickMetadataGroup('EXIF');

Expand Down Expand Up @@ -168,11 +155,7 @@ describe('CardView Component - properties', () => {
await viewerPage.checkInfoSideBarIsDisplayed();
await metadataViewPage.clickOnPropertiesTab();

await metadataViewPage.informationButtonIsDisplayed();

await CheckboxPage.uncheck(metadataViewPage.defaultPropertiesSwitch);

await metadataViewPage.informationButtonIsNotDisplayed();
});

it('[C307975] Should be able to choose which aspect to show expanded in the info-drawer', async () => {
Expand Down
Loading
Loading