From 1d77da83da06f17b9e2f081418ee632d8b6e8d1a Mon Sep 17 00:00:00 2001 From: Elia Bieri Date: Tue, 25 Apr 2023 10:06:24 +0000 Subject: [PATCH] Merged in feature/new-lc-navigation (pull request #60) Implement new learning content navigation/layout * Fix first part of cypress tests * Add event bus type to fix typecheck * Rework SelfEvaluation to support new layout * Fix layout * Hide lang switcher icon in lc footer Closes https://iterativ.atlassian.net/browse/VBV-319 * Fix cypress tests * Unregister event bus handler * Hide ItNavigationProgress on self evaluations with only a single step * Last fixes * Merged develop into feature/new-lc-navigation --- client/src/components/FeedbackForm.vue | 258 +++++++++--------- .../ui/ItNavigationProgress.stories.ts | 7 + .../components/ui/ItNavigationProgress.vue | 45 ++- client/src/components/ui/ItRadioGroup.vue | 10 +- client/src/components/ui/ItTextarea.vue | 12 +- client/src/locales/de.json | 2 + .../SinglePerformanceCriteriaPage.vue | 7 +- .../learningContentPage/LearningContent.vue | 18 +- .../LearningContentContainer.vue | 47 +--- .../LearningContentNavigation.vue | 61 ----- .../blocks/AssignmentBlock.vue | 1 + .../blocks/FeedbackBlock.vue | 8 +- .../blocks/IframeBlock.vue | 13 +- .../blocks/MediaLibraryBlock.vue | 14 +- .../blocks/PlaceholderBlock.vue | 13 +- .../learningContentPage/blocks/VideoBlock.vue | 28 +- .../feedback/FeedbackIntro.vue | 23 -- .../layouts/LearningContentFooter.vue | 66 +++++ .../layouts/LearningContentMultiLayout.vue | 68 +++++ .../layouts/LearningContentSimpleLayout.vue | 37 +++ .../selfEvaluationPage/SelfEvaluation.vue | 132 +++++---- client/src/utils/eventBus.ts | 1 + cypress/e2e/circle.cy.js | 8 +- cypress/support/commands.js | 4 +- 24 files changed, 499 insertions(+), 384 deletions(-) delete mode 100644 client/src/pages/learningPath/learningContentPage/LearningContentNavigation.vue delete mode 100644 client/src/pages/learningPath/learningContentPage/feedback/FeedbackIntro.vue create mode 100644 client/src/pages/learningPath/learningContentPage/layouts/LearningContentFooter.vue create mode 100644 client/src/pages/learningPath/learningContentPage/layouts/LearningContentMultiLayout.vue create mode 100644 client/src/pages/learningPath/learningContentPage/layouts/LearningContentSimpleLayout.vue diff --git a/client/src/components/FeedbackForm.vue b/client/src/components/FeedbackForm.vue index 8c677d50..ff2f8139 100644 --- a/client/src/components/FeedbackForm.vue +++ b/client/src/components/FeedbackForm.vue @@ -1,126 +1,108 @@ diff --git a/client/src/components/ui/ItTextarea.vue b/client/src/components/ui/ItTextarea.vue index f74a9fbf..5ec21117 100644 --- a/client/src/components/ui/ItTextarea.vue +++ b/client/src/components/ui/ItTextarea.vue @@ -1,6 +1,6 @@