Skip to content
Myr

posture-label.ts

This file

Path

apps/web/src/features/project/posture-label.ts

26 lines · 847 bytes · TypeScript

Last changed by

Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 1why, one step back
1/**

Merge build/comments-web-features into mainoscabrielbefore adoption74bfc72

lines 2–4why, one step back
2 * The project list carries only the literal; until it carries the platform's
3 * full label, each posture reads as its own name, never as a claim about what4 * is sealed.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 5–16why, one step back
5 */
6import type { Posture } from "@repo/protocol/posture";78const labels = {9 open: "Open",10 openCore: "Open core",11 openOnSchedule: "Open on schedule",12 openWithSealedEvidence: "Open with sealed evidence",13 sourceAvailable: "Source available",14} as const satisfies Record<Posture, string>;1516export const postureLabel = (posture: Posture): string => labels[posture];

Merge build/1500-design-draws into mainoscabrielbefore adoption9bc46b7

lines 17–26why, one step back
17
18const words = {19 open: "Open",20 openCore: "Open core",21 openOnSchedule: "Open on schedule",22 openWithSealedEvidence: "Sealed evidence",23 sourceAvailable: "Source available",24} as const satisfies Record<Posture, string>;2526export const postureWord = (posture: Posture): string => words[posture];