From 898aa14e72f8941ff31ae0d5e356d00d49718dc3 Mon Sep 17 00:00:00 2001 From: Matthew White Date: Sun, 8 Dec 2024 22:38:19 -0500 Subject: [PATCH] Add hover card to show a submission --- src/components/entity/basic-details.vue | 11 ++-- src/components/entity/feed-entry.vue | 18 ++---- src/components/hover-card/submission.vue | 63 +++++++++++++++++++ src/components/hover-cards.vue | 12 ++++ src/components/submission/link.vue | 58 +++++++++++++++++ src/locales/en.json5 | 1 + src/request-data/hover-card.js | 3 + src/request-data/submission.js | 12 ++-- test/components/entity/basic-details.spec.js | 38 +++-------- test/components/entity/feed-entry.spec.js | 34 ++++++---- test/components/hover-card/submission.spec.js | 63 +++++++++++++++++++ test/components/hover-cards.spec.js | 33 ++++++++++ test/components/submission/link.spec.js | 39 ++++++++++++ test/request-data/submission.spec.js | 16 +++-- transifex/strings_en.json | 4 ++ 15 files changed, 329 insertions(+), 76 deletions(-) create mode 100644 src/components/hover-card/submission.vue create mode 100644 src/components/submission/link.vue create mode 100644 test/components/hover-card/submission.spec.js create mode 100644 test/components/submission/link.spec.js diff --git a/src/components/entity/basic-details.vue b/src/components/entity/basic-details.vue index 5358c88f6..ad4b2e326 100644 --- a/src/components/entity/basic-details.vue +++ b/src/components/entity/basic-details.vue @@ -21,10 +21,9 @@ except according to the terms contained in the LICENSE file.
{{ $t('creatingSubmission') }}
- - {{ submission.currentVersion.instanceName ?? submission.instanceId }} - +