From 88fae69098706c697236910cc51d00ddc7c9da02 Mon Sep 17 00:00:00 2001
From: Yeshwanth munagapati
Date: Wed, 29 Oct 2025 22:08:13 +0530
Subject: [PATCH 1/4] Content Library Catalog - Frequently asked questions page
changes
---
.../channelList/views/Channel/CatalogFAQ.vue | 432 +++++++++---------
.../Channel/__tests__/catalogFAQ.spec.js | 58 +++
.../frontend/shared/views/StudioAccordion.vue | 112 +++++
.../shared/views/StudioAccordionItem.vue | 35 ++
4 files changed, 422 insertions(+), 215 deletions(-)
create mode 100644 contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFAQ.spec.js
create mode 100644 contentcuration/contentcuration/frontend/shared/views/StudioAccordion.vue
create mode 100644 contentcuration/contentcuration/frontend/shared/views/StudioAccordionItem.vue
diff --git a/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue b/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue
index 9b0ea0097a..d3c924f37b 100644
--- a/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue
+++ b/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue
@@ -1,355 +1,350 @@
-
-
+
+
{{ $tr('aboutHeader') }}
-
-
+
+
{{ $tr('descriptionP1') }}
-
-
+
{{ $tr('descriptionP2') }}
-
+
{{ $tr('descriptionP3') }}
-
-
+
{{ $tr('aboutLibraryHeader') }}
-
-
+
+
+
+
-
-
-
- {{ $tr('selectionQuestion') }}
-
+
+
+ {{$tr('selectionQuestion')}}
-
-
+
+
+
{{ $tr('selectionAnswerP1') }}
{{ $tr('selectionAnswerP2') }}
-
-
-
+
+
+
+
-
-
-
- {{ $tr('maintenanceQuestion') }}
-
+
+
+ {{$tr('maintenanceQuestion')}}
-
-
+
+
+
{{ $tr('maintenanceAnswerP1') }}
{{ $tr('maintenanceAnswerP2') }}
-
-
-
-
+
+
+
-
-
-
- {{ $tr('endoresementQuestion') }}
-
+
+
+ {{ $tr('endoresementQuestion') }}
-
-
+
+
+
{{ $tr('endorsementAnswer') }}
-
-
-
+
+
+
-
-
-
- {{ $tr('ownershipQuestion') }}
-
+
+
+ {{ $tr('ownershipQuestion') }}
-
-
+
+
+
{{ $tr('ownershipAnswer') }}
-
-
-
+
+
+
-
-
-
- {{ $tr('newContentQuestion') }}
-
+
+
+ {{ $tr('newContentQuestion') }}
-
-
+
+
+
{{ $tr('newContentAnswer') }}
-
-
-
+
+
+
-
-
-
- {{ $tr('customContentQuestion') }}
-
+
+
+ {{ $tr('customContentQuestion') }}
-
-
+
+
+
{{ $tr('customContentAnswer') }}
-
-
-
-
+
+
+
+
+
-
-
+
{{ $tr('usingResourcesHeader') }}
-
-
+
+
+
-
-
-
- {{ $tr('usingContentQuestion') }}
-
+
+
+ {{ $tr('usingContentQuestion') }}
-
-
+
+
+
{{ $tr('usingContentAnswer') }}
-
-
-
-
+
+
+
-
-
-
- {{ $tr('channelQuestion') }}
-
+
+
+ {{ $tr('channelQuestion') }}
-
-
+
+
+
{{ $tr('channelAnswer') }}
-
-
-
+
+
+
-
-
-
- {{ $tr('sampleContentQuestion') }}
-
+
+
+ {{ $tr('sampleContentQuestion') }}
-
-
+
+
+
{{ $tr('sampleContentAnswer') }}
- {{ $tr('sampleContentAnswerItem1') }}
- {{ $tr('sampleContentAnswerItem2') }}
-
{{ $tr('sampleContentAnswerItem3') }}
-
-
-
-
+
+
+
-
-
-
- {{ $tr('partialChannelQuestion') }}
-
+
+
+ {{ $tr('partialChannelQuestion') }}
-
-
+
+
+
{{ $tr('partialChannelAnswer') }}
-
-
-
+
+
+
-
-
-
- {{ $tr('coachContentQuestion') }}
-
+
+
+ {{ $tr('coachContentQuestion') }}
-
-
+
+
+
{{ $tr('coachContentAnswer') }}
-
-
-
+
+
+
-
-
-
- {{ $tr('issueQuestion') }}
-
+
+
+ {{ $tr('issueQuestion') }}
-
-
+
+
+
{{ $tr('issueAnswer') }}
-
-
-
-
+
+
+
-
-
+
+
+
{{ $tr('aboutKolibriHeader') }}
-
-
+
+
+
-
-
-
- {{ $tr('KolibriQuestion') }}
-
+
+
+ {{ $tr('KolibriQuestion') }}
-
-
+
+
+
{{ $tr('KolibriAnswer') }}
- {{ $tr('KolibriAnswerItem1') }}
- {{ $tr('KolibriAnswerItem2') }}
- {{ $tr('KolibriAnswerItem3') }}
-
-
-
+
+
+
-
-
-
- {{ $tr('usingKolibriQuestion') }}
-
+
+
+ {{ $tr('usingKolibriQuestion') }}
-
-
+
+
+
{{ $tr('usingKolibriAnswerP1') }}
-
{{ $tr('usingKolibriItem1') }}
-
-
{{ $tr('usingKolibriItem2') }}
-
-
{{ $tr('usingKolibriItem3') }}
-
{{ $tr('usingKolibriAnswerP2') }}
-
-
-
-
+
+
+
-
-
-
- {{ $tr('makerQuestion') }}
-
+
+
+ {{ $tr('makerQuestion') }}
-
-
+
+
+
{{ $tr('makerAnswerP1') }}
{{ $tr('makerAnswerP2') }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/contentcuration/contentcuration/frontend/shared/views/StudioAccordionItem.vue b/contentcuration/contentcuration/frontend/shared/views/StudioAccordionItem.vue
new file mode 100644
index 0000000000..ea8c277603
--- /dev/null
+++ b/contentcuration/contentcuration/frontend/shared/views/StudioAccordionItem.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
From bd0315ac7027dcb8c16c4e53c09927d3804c4c03 Mon Sep 17 00:00:00 2001
From: Yeshwanth munagapati
Date: Wed, 29 Oct 2025 22:16:53 +0530
Subject: [PATCH 2/4] lint fixes
---
.../channelList/views/Channel/CatalogFAQ.vue | 32 ++++++++-----------
.../Channel/__tests__/catalogFAQ.spec.js | 2 +-
.../frontend/shared/views/StudioAccordion.vue | 26 +++++++--------
.../shared/views/StudioAccordionItem.vue | 5 +--
4 files changed, 27 insertions(+), 38 deletions(-)
diff --git a/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue b/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue
index d3c924f37b..0815b6b6aa 100644
--- a/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue
+++ b/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue
@@ -26,11 +26,10 @@
-
- {{$tr('selectionQuestion')}}
+ {{ $tr('selectionQuestion') }}
@@ -39,13 +38,12 @@
{{ $tr('selectionAnswerP2') }}
-
- {{$tr('maintenanceQuestion')}}
+ {{ $tr('maintenanceQuestion') }}
@@ -114,14 +112,12 @@
-
{{ $tr('usingResourcesHeader') }}
-
@@ -220,14 +216,12 @@
-
{{ $tr('aboutKolibriHeader') }}
-
@@ -307,7 +301,6 @@
-
@@ -324,12 +317,11 @@
name: 'CatalogFAQ',
components: {
StudioAccordionItem,
- StudioAccordion
+ StudioAccordion,
},
mixins: [routerMixin],
setup() {
- const { windowIsSmall } =
- useKResponsiveWindow();
+ const { windowIsSmall } = useKResponsiveWindow();
return {
windowIsSmall,
};
@@ -467,10 +459,11 @@
padding: 0 24px;
}
- .main-title, .sub-title {
- font-weight: 700;
- font-size: 20px;
+ .main-title,
+ .sub-title {
margin-bottom: 8px;
+ font-size: 20px;
+ font-weight: 700;
}
.sub-title {
@@ -479,14 +472,15 @@
}
.desc {
- font-size: 16px;
padding: 0 4px;
+ font-size: 16px;
}
.faq-accordion {
- box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2),
- 0 1px 1px 0 rgba(0, 0, 0, 0.14),
- 0 1px 3px 0 rgba(0, 0, 0, 0.12);
+ box-shadow:
+ 0 2px 1px -1px rgba(0, 0, 0, 0.2),
+ 0 1px 1px 0 rgba(0, 0, 0, 0.14),
+ 0 1px 3px 0 rgba(0, 0, 0, 0.12);
}
diff --git a/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFAQ.spec.js b/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFAQ.spec.js
index df5850b3d8..908b2166b1 100644
--- a/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFAQ.spec.js
+++ b/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFAQ.spec.js
@@ -42,7 +42,7 @@ describe('CatalogFAQ test cases', () => {
it('supports Enter key to toggle accordion', async () => {
renderComponent();
- const firstAccordion= document.getElementById('studio-accordion');
+ const firstAccordion = document.getElementById('studio-accordion');
expect(firstAccordion).toBeInTheDocument();
await fireEvent.keyDown(firstAccordion, { key: 'Enter', code: 'Enter' });
diff --git a/contentcuration/contentcuration/frontend/shared/views/StudioAccordion.vue b/contentcuration/contentcuration/frontend/shared/views/StudioAccordion.vue
index 1ef220e6e5..de437de2d2 100644
--- a/contentcuration/contentcuration/frontend/shared/views/StudioAccordion.vue
+++ b/contentcuration/contentcuration/frontend/shared/views/StudioAccordion.vue
@@ -19,11 +19,9 @@
:layout12="{ span: 12 }"
@click="openAccordion()"
>
-
@@ -64,16 +61,16 @@
props: {
lastItem: {
type: Boolean,
- default: false
+ default: false,
},
id: {
type: String,
- default: 'studio-accordion'
- }
+ default: 'studio-accordion',
+ },
},
data() {
return {
- showAccordionItem: false
+ showAccordionItem: false,
};
},
methods: {
@@ -101,7 +98,8 @@
text-wrap: stable;
}
- .fade-enter-active, .fade-leave-active {
+ .fade-enter-active,
+ .fade-leave-active {
transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.5, 1);
}
@@ -109,4 +107,4 @@
font-size: 24px;
}
-
\ No newline at end of file
+
diff --git a/contentcuration/contentcuration/frontend/shared/views/StudioAccordionItem.vue b/contentcuration/contentcuration/frontend/shared/views/StudioAccordionItem.vue
index ea8c277603..76d2eaf7c4 100644
--- a/contentcuration/contentcuration/frontend/shared/views/StudioAccordionItem.vue
+++ b/contentcuration/contentcuration/frontend/shared/views/StudioAccordionItem.vue
@@ -6,10 +6,7 @@
}"
>
-
-
+
From e00a18841e3e692ab2f7b652dc0d210e215c1260 Mon Sep 17 00:00:00 2001
From: Yeshwanth munagapati
Date: Mon, 3 Nov 2025 22:00:42 +0530
Subject: [PATCH 3/4] updated view docs redirection
---
.../frontend/channelList/views/Channel/CatalogFAQ.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue b/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue
index 0815b6b6aa..a417436354 100644
--- a/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue
+++ b/contentcuration/contentcuration/frontend/channelList/views/Channel/CatalogFAQ.vue
@@ -280,7 +280,7 @@
From 32a19be5c3d8ec7f22bcaac01924fd4b88b0ed98 Mon Sep 17 00:00:00 2001
From: Yeshwanth munagapati
Date: Tue, 25 Nov 2025 12:45:33 +0530
Subject: [PATCH 4/4] accessibility changes
---
.../Channel/__tests__/catalogFAQ.spec.js | 16 ++-------
.../frontend/shared/views/StudioAccordion.vue | 33 +++++++++----------
2 files changed, 18 insertions(+), 31 deletions(-)
diff --git a/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFAQ.spec.js b/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFAQ.spec.js
index 908b2166b1..2b0805d56e 100644
--- a/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFAQ.spec.js
+++ b/contentcuration/contentcuration/frontend/channelList/views/Channel/__tests__/catalogFAQ.spec.js
@@ -9,18 +9,6 @@ const router = new VueRouter({
const renderComponent = (props = {}) => {
return render(CatalogFAQ, {
props,
- // mocks: {
- // $tr: key => key, // Mock translation function
- // $themeTokens: {
- // surface: '#ffffff',
- // },
- // $themePalette: {
- // grey: {
- // v_400: '#9e9e9e',
- // v_200: '#eeeeee',
- // },
- // },
- // },
routes: router,
});
};
@@ -40,12 +28,12 @@ describe('CatalogFAQ test cases', () => {
expect(accordions.length).toBe(15);
});
- it('supports Enter key to toggle accordion', async () => {
+ it('expands accordion to show content when user clicks button', async () => {
renderComponent();
const firstAccordion = document.getElementById('studio-accordion');
expect(firstAccordion).toBeInTheDocument();
- await fireEvent.keyDown(firstAccordion, { key: 'Enter', code: 'Enter' });
+ await fireEvent.click(firstAccordion);
const accordionContent = document.querySelector('.item-content');
expect(accordionContent).toBeInTheDocument();
diff --git a/contentcuration/contentcuration/frontend/shared/views/StudioAccordion.vue b/contentcuration/contentcuration/frontend/shared/views/StudioAccordion.vue
index de437de2d2..710a3b0f13 100644
--- a/contentcuration/contentcuration/frontend/shared/views/StudioAccordion.vue
+++ b/contentcuration/contentcuration/frontend/shared/views/StudioAccordion.vue
@@ -1,13 +1,7 @@
-
+
-
+
+
@@ -42,7 +40,6 @@
-