Files
MyIP/frontend/components
jason5ng32andClaude Opus 4.6 0a5b0c1914 refactor: bootstrap → tailwind/shadcn-vue infra + sonner toast
Set up Tailwind v4 + shadcn-vue infrastructure and replace the first
Bootstrap component (Toast) as a vertical slice that proves the approach.

Infrastructure (refactor/01 phase A):
- Add tailwindcss + @tailwindcss/vite (devDependencies) and wire the plugin
  in vite.config.js
- Add shadcn-vue runtime deps: reka-ui, class-variance-authority, clsx,
  tailwind-merge, lucide-vue-next
- Add components.json and frontend/lib/utils.js (cn helper)
- Define design tokens via shadcn CSS variables (oklch, neutral baseColor)
  in frontend/style/style.css
- Wire dark mode: store.setDarkMode now toggles <html>.dark for the
  Tailwind dark: variant
- Coexist with Bootstrap (no removal yet)

Toast → vue-sonner (refactor/01 phase B item 1):
- Replace internals of widgets/Toast.vue (Bootstrap Toast → vue-sonner)
- Keep store.setAlert() public API unchanged so all 5 call sites stay put
- Map alertStyle text-success/warning/danger/info to sonner severities

Refactor planning:
- Add AGENTS.md so future AI sessions know the project layout, JS-only
  preference, and where to find refactor progress
- Add refactor/ with a 4-task plan, completion discipline, and per-task
  review checklists

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 02:37:58 +08:00
..
2026-03-30 15:41:01 +08:00
2026-01-05 17:28:22 +08:00
2024-11-08 01:13:23 +08:00
2025-02-01 17:29:45 +08:00
2025-09-26 10:51:49 +08:00
2024-12-24 00:58:28 +08:00
2024-09-26 19:36:29 +08:00
2024-10-08 14:09:36 +08:00
2025-02-01 22:26:34 +08:00
2025-08-07 22:20:31 +08:00
2025-02-01 22:26:34 +08:00
2025-02-03 12:47:56 +08:00
2025-02-01 17:29:45 +08:00
2024-10-14 16:54:53 +08:00