Summary
Add `INACTIVE = "opp-inactive"` to the `OpportunityStatusType` enum in `src/types/api/opportunity.ts`.
Motivation
- FE PR #333 (opportunity status modal) already has `OpportunityManualStatusType.INACTIVE = "opp-inactive"` defined and is currently using `OpportunityStatusType.PAST` as a workaround because this value doesn't exist in the SDK yet.
- Notion data has Cancelled/Inactive opportunities that should map to `opp-inactive` (distinct from `opp-past` which means completed/done).
Change
In `src/types/api/opportunity.ts`:
```ts
export enum OpportunityStatusType {
NEW = "opp-new",
SEARCHING = "opp-searching",
ACTIVE = "opp-active",
PAST = "opp-past",
INACTIVE = "opp-inactive", // ← add this
}
```
Depends on
- BE migration to add `opp-inactive` to the `opportunity_status_enum` PostgreSQL type (see be repo issue)
Unblocks
- need4deed-org/fe PR #333 — remove the `INACTIVE → PAST` workaround in `MANUAL_TO_SDK`
Summary
Add `INACTIVE = "opp-inactive"` to the `OpportunityStatusType` enum in `src/types/api/opportunity.ts`.
Motivation
Change
In `src/types/api/opportunity.ts`:
```ts
export enum OpportunityStatusType {
NEW = "opp-new",
SEARCHING = "opp-searching",
ACTIVE = "opp-active",
PAST = "opp-past",
INACTIVE = "opp-inactive", // ← add this
}
```
Depends on
Unblocks