openhands
58c35a2920
feat: enforce no hardcoded colors across entire CMS
Added scripts/check-admin-colors.mjs — scans all src/ files for:
- text-white, text-black (use theme text vars)
- bg-white, bg-black (use theme background/overlay vars)
- bg/text/border/ring with gray/slate/zinc/stone palette
- bg/text/border/ring with red/green/blue/etc palette
Fixed 21 violations across 11 files:
- Overlays: bg-black/* → bg-foreground/*
- Text: text-white → text-primary-foreground
- Backgrounds: bg-white/10 → bg-background/10
- Green accents: bg-green-* → bg-primary
- Red accents: bg-red-* → bg-destructive
Integrated into:
- lint-staged: runs on every *.ts/*.tsx commit
- vitest: src/lib/no-hardcoded-colors.test.ts replaces old audit test
- Allowlist: shadcn/ui primitives (button, badge, dialog) + 4 graphical files
2026-09-01 19:33:50 +02:00
..
2026-08-23 15:07:58 +02:00
2026-08-11 17:08:23 +02:00
2026-08-21 20:04:53 +02:00
2026-08-21 20:06:02 +02:00
2026-09-01 19:33:50 +02:00
2026-08-24 19:12:11 +02:00
2026-07-13 21:57:41 +02:00
2026-07-18 16:54:20 +02:00
2026-08-31 21:19:06 +02:00
2026-08-25 22:26:05 +02:00
2026-08-01 17:50:16 +02:00
2026-08-04 19:00:30 +02:00
2026-08-11 17:08:23 +02:00
2026-08-11 17:08:23 +02:00
2026-08-30 18:19:46 +02:00
2026-08-11 16:50:10 +02:00
2026-08-01 15:02:21 +02:00
2026-07-13 21:57:41 +02:00
2026-07-13 21:57:41 +02:00
2026-08-23 15:05:49 +02:00
2026-08-30 18:24:07 +02:00
2026-08-21 20:06:27 +02:00
2026-07-13 21:57:41 +02:00
2026-08-30 21:31:34 +02:00