Skip to content

Conversation

@theosiemensrhodes
Copy link
Collaborator

PR: Classes list & edit; Tailwind + shadcn migration

TL;DR

  • Moved UI from SCSS to Tailwind v4 + shadcn ui/
  • Implemented /classes (grid) and /classes/edit (form) on new primitives.

Dev Notes

  • Use components from src/components/primitives/* and compose with Tailwind classes.
  • Forms use react-hook-form wrappers (Form*) and the Field system for labels/errors.
  • Date inputs use react-day-picker + date-fns.
  • Legacy SCSS/layouts removed; avoid adding new SCSS.

After Pull

  1. pnpm install
  2. pnpm run dev
  3. Verify:
    • /classes renders grid + sidebar actions.
    • /classes/edit?class=<id> loads defaults, validates, and submits.

Key Files

  • Config: tailwind.config.ts, postcss.config.mjs, components.json, src/styles/globals.css
  • Pages: app/(authorized)/classes/page.tsx, app/(authorized)/classes/edit/page.tsx, .../edit/template.tsx
  • Primitives/Form: src/components/primitives/*, src/components/form/*

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.

2 participants