Skip to content

feat: mapping management UI and shared Badge component#109

Merged
wizzomafizzo merged 1 commit into
mainfrom
feat/mappings-management
Apr 30, 2026
Merged

feat: mapping management UI and shared Badge component#109
wizzomafizzo merged 1 commit into
mainfrom
feat/mappings-management

Conversation

@wizzomafizzo

Copy link
Copy Markdown
Member

Summary

  • Adds full mapping management: a list page at /create/mappings, a dedicated editor at /create/mappings/new and /create/mappings/edit/$id, with type/match segmented controls, NFC + barcode pattern capture, regex validation, and a delete confirm modal.
  • Extracts two reusable wui/ primitives:
    • Badge — shared filled-pill style based on TagBadge, with variants default, pro, success, warning, error, info.
    • Segmented — accessible radiogroup with full keyboard navigation (Arrow / Home / End).
  • Migrates existing ad-hoc badge styles across the app (TagBadge, TagList, ProBadge, nfc/ReadTab, Logs, settings.playtime) to the shared Badge.
  • Bug fixes uncovered during review: replaces silent-no-op text-foreground-muted with the correct text-muted-foreground token, and adds a .border-error utility so destructive button outlines actually render red.

Adds full mapping management — list page, create/edit routes, and a
dedicated editor — replacing the prior "add a mapping" stub. Extracts
two reusable wui primitives (Badge, Segmented) and migrates existing
ad-hoc badge styles across the app to the shared component.

- New routes: /create/mappings, /create/mappings/new, /create/mappings/edit/$id
- New components: MappingRow, MappingEditor, wui/Badge, wui/Segmented
- Badge variants: default, pro, success, warning, error, info
- Migrated TagBadge, TagList, ProBadge, ReadTab, Logs, playtime status
- Fix: replace silent-no-op text-foreground-muted with text-muted-foreground
- Fix: add .border-error utility so destructive button outlines render red
@wizzomafizzo
wizzomafizzo merged commit 7c304a4 into main Apr 30, 2026
4 checks passed
@wizzomafizzo
wizzomafizzo deleted the feat/mappings-management branch April 30, 2026 08:32
@codecov

codecov Bot commented Apr 30, 2026

Copy link
Copy Markdown

wizzomafizzo added a commit that referenced this pull request May 20, 2026
Adds full mapping management — list page, create/edit routes, and a
dedicated editor — replacing the prior "add a mapping" stub. Extracts
two reusable wui primitives (Badge, Segmented) and migrates existing
ad-hoc badge styles across the app to the shared component.

- New routes: /create/mappings, /create/mappings/new, /create/mappings/edit/$id
- New components: MappingRow, MappingEditor, wui/Badge, wui/Segmented
- Badge variants: default, pro, success, warning, error, info
- Migrated TagBadge, TagList, ProBadge, ReadTab, Logs, playtime status
- Fix: replace silent-no-op text-foreground-muted with text-muted-foreground
- Fix: add .border-error utility so destructive button outlines render red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant