fix: replace stale program references (#749)
This commit is contained in:
@@ -297,7 +297,7 @@ class CohortApi extends BaseApiWithErrors {
|
||||
});
|
||||
}
|
||||
|
||||
// Invitations (program-scoped)
|
||||
// Invitations (cohort-scoped)
|
||||
|
||||
/**
|
||||
* Invite new students to a cohort by CSV. Goes through the cohort-scoped
|
||||
@@ -322,7 +322,7 @@ class CohortApi extends BaseApiWithErrors {
|
||||
|
||||
/**
|
||||
* Assign existing org audience student profiles to this cohort.
|
||||
* Same scoping as `inviteStudentsToCohort` — caller only needs program-team
|
||||
* Same scoping as `inviteStudentsToCohort` — caller only needs cohort-team
|
||||
* membership for this cohort.
|
||||
*/
|
||||
async assignExistingStudentsToCohort(cohortId: string, data: TAssignExistingStudentsToCohort): Promise<boolean> {
|
||||
|
||||
@@ -5,9 +5,9 @@ import type {
|
||||
DeleteCohortNewsfeedCommentRequest,
|
||||
DeleteCohortNewsfeedRequest,
|
||||
GetCohortNewsfeedCommentsRequest,
|
||||
CohortNewsfeedComment,
|
||||
ListCohortNewsfeed,
|
||||
ListCohortNewsfeedRequest,
|
||||
ProgramNewsfeedComment,
|
||||
ReactToCohortNewsfeedRequest,
|
||||
UpdateCohortNewsfeedRequest
|
||||
} from '../utils/types';
|
||||
@@ -30,7 +30,7 @@ import { profile } from '$lib/utils/store/user';
|
||||
import { snackbar } from '$features/ui/snackbar/store';
|
||||
|
||||
export type CohortNewsfeedCommentsByFeedId = {
|
||||
items: ProgramNewsfeedComment[];
|
||||
items: CohortNewsfeedComment[];
|
||||
totalCount: number;
|
||||
hasMore: boolean;
|
||||
isLoading: boolean;
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
<div class="flex flex-col gap-4 py-2">
|
||||
<div class="flex flex-col gap-1.5">
|
||||
<Label for="program-name">{$t('cohorts.create_modal.name_label') || 'Name'} *</Label>
|
||||
<Label for="cohort-name">{$t('cohorts.create_modal.name_label') || 'Name'} *</Label>
|
||||
<Input
|
||||
id="cohort-name"
|
||||
bind:value={name}
|
||||
@@ -52,7 +52,7 @@
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col gap-1.5">
|
||||
<Label for="program-description">{$t('cohorts.create_modal.description_label') || 'Description'}</Label>
|
||||
<Label for="cohort-description">{$t('cohorts.create_modal.description_label') || 'Description'}</Label>
|
||||
<Textarea
|
||||
id="cohort-description"
|
||||
bind:value={description}
|
||||
|
||||
Reference in New Issue
Block a user