Skip to content

test(roadmap): label colors are the token values of the design files #4786

Closed

Description

@dan-petty

Problem or Motivation

Proposed Solution & Architectural Design

  • Give each LabelColor member its token name in code, not in a comment (for example a mapping from the member to the token name).
  • A test reads the token JSON files of src/devops_cli/design/ and asserts that each LabelColor value is the value of its token.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/roadmap/workflow_labels.py).

Existing Tool Considered

Style Dictionary builds the token files (#4738). The test reads its JSON output with the standard library. Cost: about 15 lines and 1 test, about 40,000 tokens and 30 minutes.

Acceptance Criteria

  • A test fails when a LabelColor value is not the hex value of the token that the member names in the token files of src/devops_cli/design/.

Dependencies

#4652, #4738.

Source: #4652

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/test
    scope/roadmap
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/test. The test prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. It prevents silent drift between label colors and design tokens, but no active defect is reported.
    • Value: Medium. It stops label colors from silently diverging from the design spec after a token change.
    • Effort: Low. The body states about 15 lines, 1 test, and 30 minutes of work.
    • Related: feat(docs): build the docs site theme from the design tokens #4745, which asks for a different change. Both consume design tokens from the spec of #4735, but #4745 builds the docs site theme while this candidate adds a test for roadmap label colors.
  4. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P3-Low. The test guards label colors, but no user sees a defect now and #4738 is not on main.
    • Value: Medium. The test stops label colors from going stale when a design token value changes.
    • Effort: Low. The change is about 15 lines and one test.
    • Related: feat(docs): build the docs site theme from the design tokens #4745, which asks for a different change. Both items apply the design tokens of #4735, but this item adds a test and 4745 restyles the docs site.
  5. added
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 11, 2026
  6. removed
    status/in-review
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/roadmapsource/agenttype/testvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions