Add UNKNOWN and NOT_IMPLEMENTED measure states

Introduce two new measure states across the full stack: database
migration, Go coredata, GraphQL schema, MCP specification, and
frontend UI (labels, badge variants, and colors).

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-04-01 17:45:19 +02:00
parent d069201899
commit a2f0a37b7b
8 changed files with 49 additions and 1 deletions

View File

@@ -31,6 +31,8 @@ const stateToVariant: Record<
IN_PROGRESS: "info",
NOT_APPLICABLE: "neutral",
NOT_STARTED: "neutral",
UNKNOWN: "neutral",
NOT_IMPLEMENTED: "danger",
};
export function MeasureBadge({ state }: Props) {

View File

@@ -25,7 +25,7 @@ export default {
type Story = StoryObj<typeof MeasureImplementation>;
type MeasureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED";
type MeasureState = "IMPLEMENTED" | "IN_PROGRESS" | "NOT_APPLICABLE" | "NOT_STARTED" | "UNKNOWN" | "NOT_IMPLEMENTED";
export const Default: Story = {
args: {

View File

@@ -31,6 +31,8 @@ const stateToColor: Record<MeasureState, string> = {
IN_PROGRESS: "bg-border-warning",
NOT_APPLICABLE: "bg-border-info",
NOT_STARTED: "bg-highlight",
UNKNOWN: "bg-highlight",
NOT_IMPLEMENTED: "bg-border-danger",
};
export function MeasureImplementation({ measures, className }: Props) {