From 7bfdeecaf8f34f319351a31e7e6b8c6dee2d4753 Mon Sep 17 00:00:00 2001 From: Ioannis Igoumenos Date: Wed, 18 Dec 2024 18:11:07 +0200 Subject: [PATCH 1/2] Fix URLs missing associations. Improving mvea tile render on error. --- app/config/schema/schema.json | 2 +- app/resources/locales/en_US/error.po | 3 ++ app/src/View/Helper/VueHelper.php | 11 +++--- app/templates/element/mveaJs.php | 13 ++++++- app/webroot/js/comanage/comanage.js | 4 ++ .../comanage/components/mvea/failed-mveas.js | 39 +++++++++++++++++++ 6 files changed, 64 insertions(+), 8 deletions(-) create mode 100644 app/webroot/js/comanage/components/mvea/failed-mveas.js diff --git a/app/config/schema/schema.json b/app/config/schema/schema.json index 11ce07bc1..f01e0e9dc 100644 --- a/app/config/schema/schema.json +++ b/app/config/schema/schema.json @@ -516,7 +516,7 @@ "indexes": { "urls_i1": { "columns": [ "type_id" ] } }, - "mvea": [ "person", "external_identity" ], + "mvea": [ "person", "person_role", "external_identity", "external_identity_role" ], "sourced": true }, diff --git a/app/resources/locales/en_US/error.po b/app/resources/locales/en_US/error.po index 2e24c362c..53a0a557a 100644 --- a/app/resources/locales/en_US/error.po +++ b/app/resources/locales/en_US/error.po @@ -93,6 +93,9 @@ msgstr "{0} already exists with this name" msgid "exists.GroupMember" msgstr "{0} is already a member of Group {1}" +msgid "data.Load" +msgstr "Failed to Load Data" + msgid "fields" msgstr "Please recheck these fields: {0}" diff --git a/app/src/View/Helper/VueHelper.php b/app/src/View/Helper/VueHelper.php index 74c55a226..d471419ce 100644 --- a/app/src/View/Helper/VueHelper.php +++ b/app/src/View/Helper/VueHelper.php @@ -48,7 +48,8 @@ class VueHelper extends Helper { ], 'error' => [ 'javascript.copy', - 'javascript.requires.https' + 'javascript.requires.https', + 'data.Load', ], 'field' => [ 'email', @@ -58,14 +59,14 @@ class VueHelper extends Helper { 'datepicker.hour', 'datepicker.minute', 'status', - 'unverified' + 'unverified', ], 'information' => [ 'global.attributes.none', 'global.value.none', 'record', 'report.for', - 'value.copied' + 'value.copied', ], 'operation' => [ 'add', @@ -78,12 +79,12 @@ class VueHelper extends Helper { 'copy', 'copy.value', 'primary', - 'visit.link' + 'visit.link', ], 'result' => [ 'failed', 'removed', - 'updated' + 'updated', ] ]; diff --git a/app/templates/element/mveaJs.php b/app/templates/element/mveaJs.php index 7b1d286bb..ec33c7be2 100644 --- a/app/templates/element/mveaJs.php +++ b/app/templates/element/mveaJs.php @@ -47,8 +47,10 @@