diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43412f55..d9ab25d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,6 +71,9 @@ jobs: - name: setup requirements working-directory: /home/runner/frappe-bench run: bench setup requirements --dev + - name: block endpoints + working-directory: /home/runner/frappe-bench + run: bench --site frappe.local set-config block_endpoints 1 - name: allow tests working-directory: /home/runner/frappe-bench run: bench --site frappe.local set-config allow_tests true diff --git a/.releaserc b/.releaserc index 4f5437e0..6c6d1954 100644 --- a/.releaserc +++ b/.releaserc @@ -1,5 +1,5 @@ { - "branches": ["develop"], + "branches": ["main"], "plugins": [ "@semantic-release/commit-analyzer", { "preset": "angular" diff --git a/cypress/e2e/course_creation.cy.js b/cypress/e2e/course_creation.cy.js index 6d9fadb1..47a592d9 100644 --- a/cypress/e2e/course_creation.cy.js +++ b/cypress/e2e/course_creation.cy.js @@ -11,7 +11,6 @@ describe("Course Creation", () => { cy.get("button").contains("Create").click(); cy.get("span").contains("New Course").click(); cy.wait(500); - cy.url().should("include", "/courses/new/edit"); cy.get("label").contains("Title").type("Test Course"); cy.get("label") @@ -35,21 +34,6 @@ describe("Course Creation", () => { }); }); - cy.get("label") - .contains("Preview Video") - .type("https://www.youtube.com/embed/-LPmw2Znl2c"); - cy.get("[id=tags]").type("Learning{enter}Frappe{enter}ERPNext{enter}"); - cy.get("label") - .contains("Category") - .parent() - .within(() => { - cy.get("button").click(); - }); - cy.get("[id^=headlessui-combobox-option-") - .should("be.visible") - .first() - .click(); - /* Instructor */ cy.get("label") .contains("Instructors") @@ -69,13 +53,32 @@ describe("Course Creation", () => { }); }); + cy.button("Create").last().click(); + + // Edit Course Details + cy.wait(500); + cy.get("label") + .contains("Preview Video") + .type("https://www.youtube.com/embed/-LPmw2Znl2c"); + cy.get("[id=tags]").type("Learning{enter}Frappe{enter}ERPNext{enter}"); + cy.get("label") + .contains("Category") + .parent() + .within(() => { + cy.get("button").click(); + }); + cy.get("[id^=headlessui-combobox-option-") + .should("be.visible") + .first() + .click(); + cy.get("label").contains("Published").click(); cy.get("label").contains("Published On").type("2021-01-01"); cy.button("Save").click(); // Add Chapter cy.wait(1000); - cy.button("Add Chapter").click(); + cy.button("Add").click(); cy.wait(1000); cy.get("[data-dismissable-layer]") diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 2b0e68e0..2ce38f23 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -54,7 +54,6 @@ declare module 'vue' { CourseCardOverlay: typeof import('./src/components/CourseCardOverlay.vue')['default'] CourseInstructors: typeof import('./src/components/CourseInstructors.vue')['default'] CourseOutline: typeof import('./src/components/CourseOutline.vue')['default'] - CourseProgressSummary: typeof import('./src/components/Modals/CourseProgressSummary.vue')['default'] CourseReviews: typeof import('./src/components/CourseReviews.vue')['default'] CreateOutline: typeof import('./src/components/CreateOutline.vue')['default'] DateRange: typeof import('./src/components/Common/DateRange.vue')['default'] @@ -94,6 +93,7 @@ declare module 'vue' { NoSidebarLayout: typeof import('./src/components/NoSidebarLayout.vue')['default'] Notes: typeof import('./src/components/Notes/Notes.vue')['default'] NotPermitted: typeof import('./src/components/NotPermitted.vue')['default'] + NumberChartGraph: typeof import('./src/components/NumberChartGraph.vue')['default'] PageModal: typeof import('./src/components/Modals/PageModal.vue')['default'] PaymentGatewayDetails: typeof import('./src/components/Settings/PaymentGatewayDetails.vue')['default'] PaymentGateways: typeof import('./src/components/Settings/PaymentGateways.vue')['default'] diff --git a/frontend/package.json b/frontend/package.json index 9bd26413..c12ee444 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -25,8 +25,7 @@ "@editorjs/paragraph": "2.11.3", "@editorjs/simple-image": "1.6.0", "@editorjs/table": "2.4.2", - "@vueuse/core": "10.4.1", - "@vueuse/router": "12.7.0", + "@vueuse/core": "^14.1.0", "ace-builds": "1.36.2", "apexcharts": "4.3.0", "chart.js": "4.4.1", @@ -34,7 +33,7 @@ "dayjs": "1.11.10", "dompurify": "3.2.6", "feather-icons": "4.28.0", - "frappe-ui": "^0.1.256", + "frappe-ui": "^0.1.261", "highlight.js": "11.11.1", "lucide-vue-next": "0.383.0", "markdown-it": "14.0.0", @@ -43,11 +42,11 @@ "socket.io-client": "4.7.2", "thememirror": "2.0.1", "typescript": "5.7.2", - "vue": "^3.5.0", + "vue": "^3.5.27", "vue-chartjs": "5.3.0", "vue-codemirror": "6.1.1", "vue-draggable-next": "2.2.1", - "vue-router": "4.2.2", + "vue-router": "^4.6.4", "vue3-apexcharts": "1.8.0", "vuedraggable": "4.1.0" }, diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 8edca776..697aa346 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -10,9 +10,8 @@ diff --git a/frontend/src/components/CourseOutline.vue b/frontend/src/components/CourseOutline.vue index 30df3aa5..ce4a07dc 100644 --- a/frontend/src/components/CourseOutline.vue +++ b/frontend/src/components/CourseOutline.vue @@ -15,7 +15,10 @@ {{ __(title) }}
- + diff --git a/frontend/src/components/Modals/EditProfile.vue b/frontend/src/components/Modals/EditProfile.vue index 9ba292fa..e1c993b9 100644 --- a/frontend/src/components/Modals/EditProfile.vue +++ b/frontend/src/components/Modals/EditProfile.vue @@ -1,17 +1,25 @@ diff --git a/frontend/src/components/ProgressBar.vue b/frontend/src/components/ProgressBar.vue index eee0e487..dae0f1f5 100644 --- a/frontend/src/components/ProgressBar.vue +++ b/frontend/src/components/ProgressBar.vue @@ -1,6 +1,9 @@ diff --git a/frontend/src/components/Settings/Settings.vue b/frontend/src/components/Settings/Settings.vue index f65510a6..1a021f1e 100644 --- a/frontend/src/components/Settings/Settings.vue +++ b/frontend/src/components/Settings/Settings.vue @@ -8,22 +8,24 @@

{{ __('Settings') }}

-
-
- {{ __(tab.label) }} -
- + +
-
- -
- {{ __('Transaction Details') }} +
+
+ +
+ {{ __('Transaction Details') }} +
+
+
+ +
@@ -21,6 +42,12 @@ type="checkbox" v-model="transactionData.payment_for_certificate" /> +
@@ -28,22 +55,27 @@ :label="__('Member')" doctype="User" v-model="transactionData.member" + :required="true" /> - + - @@ -116,25 +154,12 @@ />
-
- - -
diff --git a/frontend/src/components/Settings/Transactions/TransactionList.vue b/frontend/src/components/Settings/Transactions/TransactionList.vue index 40a2289e..305b24a8 100644 --- a/frontend/src/components/Settings/Transactions/TransactionList.vue +++ b/frontend/src/components/Settings/Transactions/TransactionList.vue @@ -1,12 +1,20 @@