Consolidate type colors into single source of truthbacklog_item

web-uifrontendimprovement
1 min read · Edit on Pyrite

Problem

`typeColors` are defined in three places with inconsistent values:

  • `$lib/constants.ts` — canonical
  • `EntryCard.svelte` — local copy, different values (e.g. `adr` is pink instead of purple)
  • `graph/+page.svelte` — another local copy
  • This means entries show different colors on different pages.

    Solution

    Delete the local copies. Import from `$lib/constants.ts` everywhere. This was already identified in the UX accessibility fixes item but hasn't been done.