- Search the ${this.searcherName} and view the results
+
+
+ Search the ${this.searcherName} and view the results
+
- Search
+
${this.renderSearchResults()}
@@ -128,28 +154,44 @@ export class UmbDashboardExamineSearcherElement extends UmbLitElement {
return nodeNameField?.values?.join(', ') ?? '';
}
+ #getEntityTypeFromIndexType(indexType: string) {
+ switch (indexType) {
+ case 'content':
+ return 'document';
+ default:
+ return indexType;
+ }
+ }
+
private renderSearchResults() {
if (this._searchLoading) return html``;
if (!this._searchResults) return nothing;
if (!this._searchResults.length) {
- return html`No results found
`;
+ return html`${this.localize.term('examineManagement_noResults')}
`;
}
return html`
Score
- Id
- Name
- Fields
+ ${this.localize.term('general_id')}
+ ${this.localize.term('general_name')}
+ ${this.localize.term('examineManagement_fields')}
${this.renderHeadCells()}
${this._searchResults?.map((rowData) => {
+ const indexType = rowData.fields?.find((field) => field.name === '__IndexType')?.values?.join(', ') ?? '';
+ this.#entityType = this.#getEntityTypeFromIndexType(indexType);
+ const unique = rowData.fields?.find((field) => field.name === '__Key')?.values?.join(', ') ?? '';
+
return html`
${rowData.score}
${rowData.id}
-
+
${this.getSearchResultNodeName(rowData)}
@@ -157,9 +199,10 @@ export class UmbDashboardExamineSearcherElement extends UmbLitElement {
this.#onFieldViewClick(rowData)}>
- ${rowData.fields ? Object.keys(rowData.fields).length : ''} fields
+ ${rowData.fields ? Object.keys(rowData.fields).length : ''}
+ ${this.localize.term('examineManagement_fields')}
${rowData.fields ? this.renderBodyCells(rowData.fields) : ''}
@@ -185,7 +228,7 @@ export class UmbDashboardExamineSearcherElement extends UmbLitElement {
${field.name}
{
this._exposedFields = this._exposedFields?.map((f) => {
diff --git a/src/Umbraco.Web.UI.Client/src/packages/search/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/search/manifests.ts
index 74f7473793..e8b0df49f2 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/search/manifests.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/search/manifests.ts
@@ -1,5 +1,8 @@
+import { manifests as examineManifests } from './examine-management-dashboard/manifests.js';
import type { ManifestTypes } from '@umbraco-cms/backoffice/extension-registry';
+import './examine-management-dashboard/index.js';
+
export const manifests: Array = [
{
type: 'headerApp',
@@ -37,10 +40,5 @@ export const manifests: Array = [
},
],
},
- {
- type: 'modal',
- alias: 'Umb.Modal.ExamineFieldsSettings',
- name: 'Examine Field Settings Modal',
- js: () => import('./examine-management-dashboard/views/modal-views/fields-settings-modal.element.js'),
- },
+ ...examineManifests,
];
diff --git a/src/Umbraco.Web.UI.Client/src/packages/webhook/components/input-webhook-events.element.ts b/src/Umbraco.Web.UI.Client/src/packages/webhook/components/input-webhook-events.element.ts
index eff73673c0..0d75b7a182 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/webhook/components/input-webhook-events.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/webhook/components/input-webhook-events.element.ts
@@ -52,7 +52,7 @@ export class UmbInputWebhookEventsElement extends UmbLitElement {
(item) => item.alias,
(item) => html`
${item.eventName}
- this.#removeEvent(item.alias)} label="remove">
+ this.#removeEvent(item.alias)}>
`,
)}
`;
@@ -60,7 +60,7 @@ export class UmbInputWebhookEventsElement extends UmbLitElement {
render() {
return html`${this.#renderEvents()}
- `;
+ `;
}
static styles = [
@@ -73,7 +73,7 @@ export class UmbInputWebhookEventsElement extends UmbLitElement {
align-items: center;
}
- #add {
+ #choose {
grid-column: -1 / 1;
}
`,
diff --git a/src/Umbraco.Web.UI.Client/tsconfig.json b/src/Umbraco.Web.UI.Client/tsconfig.json
index 63d9866574..316fbbe6d5 100644
--- a/src/Umbraco.Web.UI.Client/tsconfig.json
+++ b/src/Umbraco.Web.UI.Client/tsconfig.json
@@ -1,5 +1,12 @@
-// Don't edit this file directly. It is generated by /devops/tsconfig/index.js
+/* -------------------------------------------------------------------------
+
+DON'T EDIT THIS FILE DIRECTLY. It is generated by /devops/tsconfig/index.js
+
+
+
+
+--------------------------------------------------------------------------- */
{
"compilerOptions": {
"module": "esnext",