All files / apps/developer-portal/layers/decisions/app/utils format.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12        5x           44x  
import type { DecisionStatus } from "#layers/snapshot/shared/decisions.ts";
import type { Tone } from "~/types/Tone";
 
/** Reuses the same validated three-tone palette everything else on this page uses for a verdict. */
const DECISION_STATUS_TONES = {
    "to-implement": "warn",
    implemented: "good",
    "wont-implement": "neutral",
} as const satisfies Record<DecisionStatus, Tone>;
 
export const decisionStatusTone = (status: DecisionStatus): Tone => DECISION_STATUS_TONES[status];