From 564b0735f0b690472037f1d1bc3ccf67072fc235 Mon Sep 17 00:00:00 2001 From: Victor Jack <67293106+thedon-dev@users.noreply.github.com> Date: Tue, 18 Aug 2026 13:15:49 +0100 Subject: [PATCH] fix(dashboard): Save button not showing in certificate settings page (#854) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixed Validation of allowing teachers create compliance courses without setting deadline * greptile highlightCertificateSettings decraration suggestion * greptile multiple error bar showing fix suggestion * organization race condition * Delete screenshots/Screenshot 2026-07-22 at 11.52.00 AM.png * deleted unwanted files * code review fixes * Changed AttentionHightlight component to work with just one parameter created fixed Route Enums, Paths and Sections for * Kebab-case naming fix * Changes for code comments * Made changes to add tab to the query param * Apply suggestion from @greptile-apps[bot] Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: Rotimi Best Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../ceritficate/certificate-edit.svelte | 16 +++----------- .../features/course/pages/certificates.svelte | 5 +++-- .../courses/[id]/certificates/+page.svelte | 21 +++++++++++++++++-- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/apps/dashboard/src/lib/features/course/components/ceritficate/certificate-edit.svelte b/apps/dashboard/src/lib/features/course/components/ceritficate/certificate-edit.svelte index 594e7f8b..4c489245 100644 --- a/apps/dashboard/src/lib/features/course/components/ceritficate/certificate-edit.svelte +++ b/apps/dashboard/src/lib/features/course/components/ceritficate/certificate-edit.svelte @@ -1,5 +1,4 @@ {$t('upgrade.certificate')}
- + onActiveTabChange?.(value)} class="w-full"> {$t('course.navItem.certificates.tab_design')} diff --git a/apps/dashboard/src/lib/features/course/pages/certificates.svelte b/apps/dashboard/src/lib/features/course/pages/certificates.svelte index fc85dd51..1b8212fa 100644 --- a/apps/dashboard/src/lib/features/course/pages/certificates.svelte +++ b/apps/dashboard/src/lib/features/course/pages/certificates.svelte @@ -7,15 +7,16 @@ type Props = { errors: Record; activeTab?: string; + onActiveTabChange?: (tab: string) => void; }; - let { errors, activeTab = $bindable('design') }: Props = $props(); + let { errors, activeTab = 'design', onActiveTabChange }: Props = $props(); - + diff --git a/apps/dashboard/src/routes/(app)/courses/[id]/certificates/+page.svelte b/apps/dashboard/src/routes/(app)/courses/[id]/certificates/+page.svelte index 0bca3c10..5c71c478 100644 --- a/apps/dashboard/src/routes/(app)/courses/[id]/certificates/+page.svelte +++ b/apps/dashboard/src/routes/(app)/courses/[id]/certificates/+page.svelte @@ -1,4 +1,7 @@ @@ -160,7 +177,7 @@ {#snippet child()} - + {/snippet} {#if canEditCertificates && certificateActiveTab === 'settings'}