fix: validation of allowing teachers create compliance courses without setting deadline (#778)

* 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

---------

Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
Victor Jack
2026-08-05 13:28:32 +01:00
committed by GitHub
co-authored by Rotimi Best
parent 05936e788d
commit 60056a6236
16 changed files with 359 additions and 83 deletions
@@ -17,6 +17,8 @@
import { profile } from '$lib/utils/store/user';
import { t } from '$lib/utils/functions/translations';
import { setupProgressApi } from '$features/setup/api/setup-progress.svelte';
import { ROUTE_NAME, ROUTE_SECTIONS } from '$lib/routing/routes';
import { goAndHighlight } from '$lib/routing/go-and-highlight';
let { data } = $props();
@@ -96,7 +98,9 @@
const courses = setupProgressApi.progress.courses || [];
const courseId = courses[0]?.id;
if (courseId) {
goto(`/courses/${courseId}/settings`);
goAndHighlight(ROUTE_NAME.COURSE_SETTINGS, ROUTE_SECTIONS[ROUTE_NAME.COURSE_SETTINGS].PUBLISH, {
id: courseId
});
}
} else {
snackbar.info('setup.info_course');