From 7de9766381957f1868d010aa3d9deb0b18935b0f Mon Sep 17 00:00:00 2001 From: Livio Bieri Date: Wed, 6 Mar 2024 12:09:18 +0100 Subject: [PATCH] feat: competence navi in profile --- ...pitProfileCompetenceFeedbackEvaluation.vue | 14 ---- .../CockpitProfileCompetenceOverview.vue | 13 ---- .../FeedbackByLearningUnitSummary.vue | 18 ++--- .../SelfEvaluationAndFeedbackList.vue | 72 +++++++++++++++++++ .../SelfEvaluationAndFeedbackOverview.vue | 10 +-- .../profilePage/CompetenceProfilePage.vue | 21 +++--- .../pages/competence/CompetenceIndexPage.vue | 4 +- .../SelfEvaluationAndFeedbackPage.vue | 65 +---------------- 8 files changed, 96 insertions(+), 121 deletions(-) delete mode 100644 client/src/components/cockpit/profile/CockpitProfileCompetenceFeedbackEvaluation.vue delete mode 100644 client/src/components/cockpit/profile/CockpitProfileCompetenceOverview.vue create mode 100644 client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackList.vue rename client/src/components/{cockpit => selfEvaluationFeedback}/SelfEvaluationAndFeedbackOverview.vue (97%) diff --git a/client/src/components/cockpit/profile/CockpitProfileCompetenceFeedbackEvaluation.vue b/client/src/components/cockpit/profile/CockpitProfileCompetenceFeedbackEvaluation.vue deleted file mode 100644 index 2f1bb0e3..00000000 --- a/client/src/components/cockpit/profile/CockpitProfileCompetenceFeedbackEvaluation.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - - - diff --git a/client/src/components/cockpit/profile/CockpitProfileCompetenceOverview.vue b/client/src/components/cockpit/profile/CockpitProfileCompetenceOverview.vue deleted file mode 100644 index 8ee67a04..00000000 --- a/client/src/components/cockpit/profile/CockpitProfileCompetenceOverview.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/client/src/components/selfEvaluationFeedback/FeedbackByLearningUnitSummary.vue b/client/src/components/selfEvaluationFeedback/FeedbackByLearningUnitSummary.vue index 7939e216..13a7d9ca 100644 --- a/client/src/components/selfEvaluationFeedback/FeedbackByLearningUnitSummary.vue +++ b/client/src/components/selfEvaluationFeedback/FeedbackByLearningUnitSummary.vue @@ -32,7 +32,7 @@ const feedbackProviderName = computed(() => { {{ props.summary.title }} Circle «{{ props.summary.circle_title }}» - + {
{{ $t("a.Deine Selbsteinschätzung") }}
-
+
-
-
-
-
{
-
+
-
-
-
-
{ diff --git a/client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackList.vue b/client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackList.vue new file mode 100644 index 00000000..00ad9135 --- /dev/null +++ b/client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackList.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/client/src/components/cockpit/SelfEvaluationAndFeedbackOverview.vue b/client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackOverview.vue similarity index 97% rename from client/src/components/cockpit/SelfEvaluationAndFeedbackOverview.vue rename to client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackOverview.vue index 60051b54..1dafa970 100644 --- a/client/src/components/cockpit/SelfEvaluationAndFeedbackOverview.vue +++ b/client/src/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackOverview.vue @@ -4,15 +4,15 @@ import { useSelfEvaluationFeedbackSummaries } from "@/services/selfEvaluationFee import { useCurrentCourseSession } from "@/composables"; const props = defineProps<{ - targetUserId: string; - detailUrl: string; + profileUserId: string; + detailUrl?: string; }>(); const courseSession = useCurrentCourseSession(); const selfEvaluationFeedbackSummaries = useSelfEvaluationFeedbackSummaries( useCurrentCourseSession().value.id, - props.targetUserId + props.profileUserId ); const selfAssessmentCounts = computed( @@ -78,7 +78,7 @@ const isLoaded = computed(() => !selfEvaluationFeedbackSummaries.loading.value);

{{ $t("a.Fremdeinschätzungen") }} @@ -116,7 +116,7 @@ const isLoaded = computed(() => !selfEvaluationFeedbackSummaries.loading.value);

-
+
import CockpitProfileContent from "@/components/cockpit/profile/CockpitProfileContent.vue"; import { ref } from "vue"; -import CockpitProfileCompetenceOverview from "@/components/cockpit/profile/CockpitProfileCompetenceOverview.vue"; -import CockpitProfileCompetenceFeedbackEvaluation from "@/components/cockpit/profile/CockpitProfileCompetenceFeedbackEvaluation.vue"; -import { useCurrentCourseSession } from "@/composables"; +import SelfEvaluationAndFeedbackList from "@/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackList.vue"; +import SelfEvaluationAndFeedbackOverview from "@/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackOverview.vue"; + +type SubMenuType = "OVERVIEW" | "DETAILS"; const props = defineProps<{ userId: string; courseSlug: string; }>(); -type SubMenuType = "OVERVIEW" | "EVALUATION"; - interface SubMenuItem { type: SubMenuType; label: string; @@ -19,11 +18,9 @@ interface SubMenuItem { const MENU_ENTRIES: SubMenuItem[] = [ { type: "OVERVIEW", label: "a.Übersicht" }, - { type: "EVALUATION", label: "a.Selbst- und Fremdeinschätzungen" }, + { type: "DETAILS", label: "a.Selbst- und Fremdeinschätzungen" }, ]; -const currentCourseSession = useCurrentCourseSession(); - const active = ref(MENU_ENTRIES[0]); @@ -41,13 +38,13 @@ const active = ref(MENU_ENTRIES[0]);
diff --git a/client/src/pages/competence/CompetenceIndexPage.vue b/client/src/pages/competence/CompetenceIndexPage.vue index 38605bbd..6823addd 100644 --- a/client/src/pages/competence/CompetenceIndexPage.vue +++ b/client/src/pages/competence/CompetenceIndexPage.vue @@ -11,7 +11,7 @@ import { competenceCertificateProgressStatusCount, } from "@/pages/competence/utils"; import ItProgress from "@/components/ui/ItProgress.vue"; -import SelfEvaluationAndFeedbackOverview from "@/components/cockpit/SelfEvaluationAndFeedbackOverview.vue"; +import SelfEvaluationAndFeedbackOverview from "@/components/selfEvaluationFeedback/SelfEvaluationAndFeedbackOverview.vue"; import { useUserStore } from "@/stores/user"; const props = defineProps<{ @@ -132,7 +132,7 @@ const isLoaded = computed(() => !certificatesQuery.fetching.value);
diff --git a/client/src/pages/competence/SelfEvaluationAndFeedbackPage.vue b/client/src/pages/competence/SelfEvaluationAndFeedbackPage.vue index 6f210ff6..8d7b92d9 100644 --- a/client/src/pages/competence/SelfEvaluationAndFeedbackPage.vue +++ b/client/src/pages/competence/SelfEvaluationAndFeedbackPage.vue @@ -1,71 +1,12 @@