From 9c5d53b1dab07505081fc21443c4d4879819e70f Mon Sep 17 00:00:00 2001 From: Jeff Daley Date: Thu, 26 Oct 2023 14:36:21 -0400 Subject: [PATCH] Type ProjectStatus --- web/app/components/new/project-form.ts | 2 ++ web/app/types/project-status.ts | 5 +++++ web/app/types/project.d.ts | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 web/app/types/project-status.ts diff --git a/web/app/components/new/project-form.ts b/web/app/components/new/project-form.ts index d8d4b4033..c5b6c7249 100644 --- a/web/app/components/new/project-form.ts +++ b/web/app/components/new/project-form.ts @@ -7,6 +7,7 @@ import { tracked } from "@glimmer/tracking"; import FlashMessageService from "ember-cli-flash/services/flash-messages"; import { task } from "ember-concurrency"; import FetchService from "hermes/services/fetch"; +import { ProjectStatus } from "hermes/types/project-status"; import cleanString from "hermes/utils/clean-string"; interface NewProjectFormComponentSignature { @@ -63,6 +64,7 @@ export default class NewProjectFormComponent extends Component response?.json()); diff --git a/web/app/types/project-status.ts b/web/app/types/project-status.ts new file mode 100644 index 000000000..2f426b456 --- /dev/null +++ b/web/app/types/project-status.ts @@ -0,0 +1,5 @@ +export enum ProjectStatus { + Active = "active", + Completed = "completed", + Archived = "archived", +} diff --git a/web/app/types/project.d.ts b/web/app/types/project.d.ts index 3ad081b34..4336c9636 100644 --- a/web/app/types/project.d.ts +++ b/web/app/types/project.d.ts @@ -2,10 +2,12 @@ import { RelatedExternalLink, RelatedHermesDocument, } from "hermes/components/related-resources"; +import { ProjectStatus } from "./project-status"; export interface HermesProject { id: string; // at least in Mirage... title: string; + status: ProjectStatus; documents?: RelatedHermesDocument[]; description?: string; jiraObject?: {