Entity Actions: More create button discernible text, extension of #20434 (#20458)

* added hovering and focus border to RTE

* fix main to OG

* fix to main again

* I'm going to cry

* Missing localiztion feature, maybe UmbLitElement?

* added localization controller to fetch localized version

* localization successful for viewActionsFor and CreateFor

* clean up button text

* Changed label for content header to display proper name

* clean up code

* Included button labels for media section

* clean code

* Relocated localization keys,

as `actions_viewActionsFor` already existed.

Also made into a function, to support a fallback label.

* Simplified the "Create for" label/localization

Removed the need for a `getCreateAriaLabel()` method.

* Removed the double-localizations (of `actions_viewActionsFor`)

as the "umb-entity-actions-bundle" component handles this now.

* imports tidy-up

* Simplified localization key condition

* switched to new localization key for other sections for new labeling

* Bumped `@umbraco/playwright-testhelpers` 16.0.55

https://github.com/umbraco/Umbraco.Playwright.Testhelpers/releases/tag/release%2F16.0.55

---------

Co-authored-by: Oskar kruger <obk@umbraco.dk>
Co-authored-by: leekelleher <leekelleher@gmail.com>
This commit is contained in:
Krüger
2025-10-14 09:20:01 +02:00
committed by GitHub
parent 4ba186633c
commit 494674d354
13 changed files with 16 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> =
element: () => import('./collection-create-action.element.js'),
weight: 1200,
meta: {
label: '#actions_create',
label: '#actions_createFor',
},
},
},

View File

@@ -13,7 +13,7 @@ export const manifests: Array<UmbExtensionManifest> = [
forEntityTypes: [UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: '#general_create',
label: '#actions_createFor',
additionalOptions: true,
},
},

View File

@@ -11,7 +11,7 @@ export const manifests: Array<UmbExtensionManifest> = [
forEntityTypes: [UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE, UMB_DOCUMENT_BLUEPRINT_FOLDER_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: '#actions_create',
label: '#actions_createFor',
additionalOptions: true,
},
},

View File

@@ -17,7 +17,7 @@ export const manifests: Array<UmbExtensionManifest | UmbExtensionManifestKind> =
],
meta: {
icon: 'icon-add',
label: '#actions_create',
label: '#actions_createFor',
additionalOptions: true,
headline: '#create_createUnder #treeHeaders_documentTypes',
},

View File

@@ -65,7 +65,7 @@ const permissions: Array<ManifestEntityUserPermission> = [
forEntityTypes: [UMB_DOCUMENT_ENTITY_TYPE],
meta: {
verbs: ['Umb.Document.Create'],
label: '#actions_create',
label: '#actions_createFor',
description: '#actionDescriptions_create',
},
},

View File

@@ -23,7 +23,7 @@ export const manifests: Array<UmbExtensionManifest> = [
forEntityTypes: [UMB_LANGUAGE_ROOT_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: '#actions_create',
label: '#actions_createFor',
additionalOptions: true,
},
},

View File

@@ -12,7 +12,7 @@ export const manifests: Array<UmbExtensionManifest> = [
forEntityTypes: [UMB_MEMBER_GROUP_ROOT_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: '#actions_create',
label: '#actions_createFor',
additionalOptions: true,
},
},

View File

@@ -11,7 +11,7 @@ export const manifests: Array<UmbExtensionManifest> = [
forEntityTypes: [UMB_MEMBER_ROOT_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: '#actions_create',
label: '#actions_createFor',
additionalOptions: true,
},
},

View File

@@ -11,7 +11,7 @@ export const manifests: Array<UmbExtensionManifest> = [
forEntityTypes: [UMB_PARTIAL_VIEW_ROOT_ENTITY_TYPE, UMB_PARTIAL_VIEW_FOLDER_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: '#actions_create',
label: '#actions_createFor',
additionalOptions: true,
},
},

View File

@@ -11,7 +11,7 @@ export const manifests: Array<UmbExtensionManifest> = [
forEntityTypes: [UMB_SCRIPT_ROOT_ENTITY_TYPE, UMB_SCRIPT_FOLDER_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: '#actions_create',
label: '#actions_createFor',
additionalOptions: true,
},
},

View File

@@ -13,7 +13,7 @@ export const manifests: Array<UmbExtensionManifest> = [
forEntityTypes: [UMB_TEMPLATE_ENTITY_TYPE, UMB_TEMPLATE_ROOT_ENTITY_TYPE],
meta: {
icon: 'icon-add',
label: '#actions_create',
label: '#actions_createFor',
additionalOptions: true,
},
},

View File

@@ -8,7 +8,7 @@
"hasInstallScript": true,
"dependencies": {
"@umbraco/json-models-builders": "^2.0.40",
"@umbraco/playwright-testhelpers": "^16.0.50",
"@umbraco/playwright-testhelpers": "^16.0.55",
"camelize": "^1.0.0",
"dotenv": "^16.3.1",
"node-fetch": "^2.6.7"
@@ -67,9 +67,9 @@
}
},
"node_modules/@umbraco/playwright-testhelpers": {
"version": "16.0.50",
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-16.0.50.tgz",
"integrity": "sha512-2tHQUdv8lCV4O47hGMvyC+JJfG4//fSSE/gUOVfFNDEHzhU5mSZ8f9oGKob8XOv2RB7ynZFYtIIxEMZIWrGFDA==",
"version": "16.0.55",
"resolved": "https://registry.npmjs.org/@umbraco/playwright-testhelpers/-/playwright-testhelpers-16.0.55.tgz",
"integrity": "sha512-715l112FHB7snWq0sY7e0fUD2ppWSSysBKHFhcQkGGw+3Gbo68Z6iXfeAketzKohWji19un4KC3mvZU0IICr9g==",
"license": "MIT",
"dependencies": {
"@umbraco/json-models-builders": "2.0.40",

View File

@@ -22,7 +22,7 @@
},
"dependencies": {
"@umbraco/json-models-builders": "^2.0.40",
"@umbraco/playwright-testhelpers": "^16.0.50",
"@umbraco/playwright-testhelpers": "^16.0.55",
"camelize": "^1.0.0",
"dotenv": "^16.3.1",
"node-fetch": "^2.6.7"