Skip to content

Commit

Permalink
Add ATTENDING and VOID statuses to Admin site (#303)
Browse files Browse the repository at this point in the history
- Include `ATTENDING` and `VOID` in `PostAcceptedStatus`
- Update `StatusLabels`, `StatusTypes`, and `StatusIcons`
  • Loading branch information
taesungh authored Jan 21, 2024
1 parent 84839bb commit 4cb657b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const StatusIcons: Record<Status, IconProps.Name> = {
[Decision.waitlisted]: "status-negative",
[PostAcceptedStatus.signed]: "status-in-progress",
[PostAcceptedStatus.confirmed]: "status-positive",
[PostAcceptedStatus.attending]: "status-positive",
[PostAcceptedStatus.void]: "status-negative",
};

const statusOption = (status: Status): MultiselectProps.Option => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export const StatusLabels = {
[Status.released]: "released",
[Status.signed]: "waiver signed",
[Status.confirmed]: "confirmed",
[Status.attending]: "attending",
[Status.void]: "void",
};

const StatusTypes: Record<Status, StatusIndicatorProps.Type> = {
Expand All @@ -23,7 +25,9 @@ const StatusTypes: Record<Status, StatusIndicatorProps.Type> = {
[Status.reviewed]: "in-progress",
[Status.released]: "success",
[Status.signed]: "in-progress",
[Status.confirmed]: "success",
[Status.confirmed]: "info",
[Status.attending]: "success",
[Status.void]: "stopped",
};

interface ApplicantStatusProps {
Expand Down
2 changes: 2 additions & 0 deletions apps/site/src/lib/admin/useApplicant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export enum ReviewStatus {
export enum PostAcceptedStatus {
signed = "WAIVER_SIGNED",
confirmed = "CONFIRMED",
attending = "ATTENDING",
void = "VOID",
}

export const Status = { ...ReviewStatus, ...Decision, ...PostAcceptedStatus };
Expand Down

0 comments on commit 4cb657b

Please sign in to comment.