Skip to content

Commit

Permalink
[ACS-4708] Implemented user initials (#3184)
Browse files Browse the repository at this point in the history
* added user initials

* modified spec file

* changes for config files

* class name renamed

* implemented the review comments
  • Loading branch information
Yasa-Nataliya authored May 16, 2023
1 parent 9603c0a commit adbbc1c
Show file tree
Hide file tree
Showing 21 changed files with 734 additions and 294 deletions.
65 changes: 39 additions & 26 deletions e2e/resources/extensibility-configs/context-submenus-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,39 +46,52 @@
"features": {
"header": [
{
"id": "app.header.user",
"id": "app.header.notification-center",
"type": "custom",
"component": "app.user",
"order": 100
"component": "app.notification-center",
"order": 50
},
{
"id": "app.header.more",
"type": "menu",
"type": "custom",
"order": 10000,
"icon": "more_vert",
"component": "app.user.menu",
"title": "APP.ACTIONS.MORE",
"children": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"visible": "app.canShowLogout"
"data": {
"items": [
{
"id": "app.header.user",
"type": "custom",
"component": "app.user",
"order": 100
},
{
"id": "user.separator",
"type": "separator",
"order": 100
},
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"visible": "app.canShowLogout"
}
}
}
]
]
}
}
],
"icons": [
Expand Down
65 changes: 39 additions & 26 deletions e2e/resources/extensibility-configs/document-presets-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,39 +46,52 @@
"features": {
"header": [
{
"id": "app.header.user",
"id": "app.header.notification-center",
"type": "custom",
"component": "app.user",
"order": 100
"component": "app.notification-center",
"order": 50
},
{
"id": "app.header.more",
"type": "menu",
"type": "custom",
"order": 10000,
"icon": "more_vert",
"component": "app.user.menu",
"title": "APP.ACTIONS.MORE",
"children": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"visible": "app.canShowLogout"
"data": {
"items": [
{
"id": "app.header.user",
"type": "custom",
"component": "app.user",
"order": 100
},
{
"id": "user.separator",
"type": "separator",
"order": 100
},
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"visible": "app.canShowLogout"
}
}
}
]
]
}
}
],
"icons": [
Expand Down
115 changes: 64 additions & 51 deletions e2e/resources/extensibility-configs/header-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,66 +46,79 @@
"features": {
"header": [
{
"id": "app.header.user",
"id": "app.header.notification-center",
"type": "custom",
"component": "app.user",
"order": 100
"component": "app.notification-center",
"order": 50
},
{
"id": "app.header.more",
"type": "menu",
"type": "custom",
"order": 10000,
"icon": "more_vert",
"component": "app.user.menu",
"title": "APP.ACTIONS.MORE",
"children": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "settings",
"title": "App settings",
"description": "Application settings",
"icon": "settings",
"disabled": true,
"order": 10,
"actions": {
"click": "app.actions.settings"
"data": {
"items": [
{
"id": "app.header.user",
"type": "custom",
"component": "app.user",
"order": 100
},
"rules": {
"visible": "app.navigation.isNotTrashcan"
}
},
{
"id": "button",
"title": "New Button",
"description": "new button description",
"icon": "alarm_on",
"order": 20,
"actions": {
"click": "app.actions.settings"
{
"id": "user.separator",
"type": "separator",
"order": 100
},
"rules": {
"visible": "app.navigation.isNotTrashcan"
}
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"visible": "app.canShowLogout"
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "settings",
"title": "App settings",
"description": "Application settings",
"icon": "settings",
"disabled": true,
"order": 10,
"actions": {
"click": "app.actions.settings"
},
"rules": {
"visible": "app.navigation.isNotTrashcan"
}
},
{
"id": "button",
"title": "New Button",
"description": "new button description",
"icon": "alarm_on",
"order": 20,
"actions": {
"click": "app.actions.settings"
},
"rules": {
"visible": "app.navigation.isNotTrashcan"
}
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"visible": "app.canShowLogout"
}
}
}
]
]
}
}
],
"icons": [
Expand Down
65 changes: 39 additions & 26 deletions e2e/resources/extensibility-configs/info-drawer-ext.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,39 +46,52 @@
"features": {
"header": [
{
"id": "app.header.user",
"id": "app.header.notification-center",
"type": "custom",
"component": "app.user",
"order": 100
"component": "app.notification-center",
"order": 50
},
{
"id": "app.header.more",
"type": "menu",
"type": "custom",
"order": 10000,
"icon": "more_vert",
"component": "app.user.menu",
"title": "APP.ACTIONS.MORE",
"children": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"visible": "app.canShowLogout"
"data": {
"items": [
{
"id": "app.header.user",
"type": "custom",
"component": "app.user",
"order": 100
},
{
"id": "user.separator",
"type": "separator",
"order": 100
},
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"visible": "app.canShowLogout"
}
}
}
]
]
}
}
],
"icons": [
Expand Down
Loading

0 comments on commit adbbc1c

Please sign in to comment.