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:
@@ -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) {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user