feat(cohorts): rename Programs to Cohorts with data migration (#694)
* feat(cohorts): rename Programs to Cohorts with data migration - Add cohort database tables and Drizzle migration alongside legacy program tables - Introduce migrate-programs-to-cohorts script to copy existing program data safely - Rename API routes (/cohort), services, queries, validation, and error codes - Rename dashboard feature module, routes (/cohorts), navigation, and translations - Update docs, emails, and internal compliance cron endpoints for cohort terminology - Keep legacy program tables in place for rollback until explicitly removed Co-authored-by: Rotimi Best <[email protected]> * fix(db): restore migrate:answer-data script alongside cohort migration Co-authored-by: Rotimi Best <[email protected]> * fix(db): cast program enums when migrating data to cohort tables Co-authored-by: Rotimi Best <[email protected]> * fix(db): truncate cohort tables before program-to-cohort copy Co-authored-by: Rotimi Best <[email protected]> * fix(db): report accurate row counts in programs-to-cohorts migration Co-authored-by: Rotimi Best <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
co-authored by
Rotimi Best
Cursor Agent
parent
fe9f8c441f
commit
ec61bfe7d9
@@ -37,7 +37,7 @@
|
||||
const hasQuery = $derived(query.trim().length > 0);
|
||||
const hasServerResults = $derived(
|
||||
searchApi.results.course.length > 0 ||
|
||||
searchApi.results.program.length > 0 ||
|
||||
searchApi.results.cohort.length > 0 ||
|
||||
searchApi.results.widget.length > 0 ||
|
||||
searchApi.results.tag.length > 0 ||
|
||||
searchApi.results.audience.length > 0
|
||||
@@ -133,8 +133,8 @@
|
||||
onSelect={handleSelect}
|
||||
/>
|
||||
<SearchResultGroup
|
||||
heading={$t('app.search.command_palette.groups.programs')}
|
||||
items={groupItems('program')}
|
||||
heading={$t('app.search.command_palette.groups.cohorts')}
|
||||
items={groupItems('cohort')}
|
||||
fallbackIcon={Goal}
|
||||
onSelect={handleSelect}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user