Skip to content

tailwind v2 migration: step-zero prerequisites#610

Merged
kokonut121 merged 1 commit into
masterfrom
tailwind-step-zero
May 7, 2026
Merged

tailwind v2 migration: step-zero prerequisites#610
kokonut121 merged 1 commit into
masterfrom
tailwind-step-zero

Conversation

@kokonut121
Copy link
Copy Markdown
Collaborator

Summary

  • Fix flashesV2.ejs:15 missing comma that silently dropped messages.error flashes
  • Port form-state preservation from stale root signupV2.ejs into views/public/signupV2.ejs (re-fills ign, username, yob, and agreeTOS after a failed submit, matching the formData already passed by public.js)
  • Promote views/layouts/empty.ejs from an empty file to a real bare-shell layout (DOCTYPE + Tailwind link, no nav/footer/flashes) for use by emails, error pages, robots, and the LaTeX compiler in later batches
  • Delete stale root signupV2.ejs and teamV2.ejsviews/public/ versions are the canonical, more recently updated ones

Prerequisite for the broader Tailwind V2 migration tracked in #609. Without working error flashes, the per-page verification step ("submit a known-bad payload, see error flash") is unreliable.

Note on the team file

The plan in #609 said to "port the updated team roster from root teamV2.ejs into views/public/teamV2.ejs" — but git history shows views/public/teamV2.ejs has 4 newer commits (video fix 2, abt us, add schools, update descriptions) and is the up-to-date version (Devesh as President, CTO Patrick, Former Board section, video embed). The root file was the stale draft in both directions. Deleted it without porting anything back.

Test plan

  • Trigger an error flash (e.g. signin with bad credentials) and confirm it now renders in V2 styling — the regression fix
  • Trigger a success flash on a working V2 form and confirm it still renders
  • Visit /signup, submit a deliberately-failing form (mismatched passwords, etc.), and confirm the username/email/YOB fields and TOS checkbox stay populated after the redirect
  • npm run build runs cleanly and produces public/css/style.css
  • git ls-files | grep '^[^/]*V2.ejs$' returns nothing (no stray V2 drafts at the repo root)

🤖 Generated with Claude Code

- Fix flashesV2.ejs missing comma that silently dropped error flashes
- Port form-state preservation from stale root signupV2.ejs into views/public/signupV2.ejs
- Define empty.ejs as a real bare-shell layout (DOCTYPE + Tailwind, no nav/footer)
- Remove stale root signupV2.ejs and teamV2.ejs drafts (views/public versions are canonical)

Prereq for the broader Tailwind V2 migration tracked in #609.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@kokonut121 kokonut121 requested a review from a team as a code owner May 7, 2026 23:42
@kokonut121 kokonut121 mentioned this pull request May 7, 2026
6 tasks
@kokonut121 kokonut121 merged commit 5cab3f0 into master May 7, 2026
1 check passed
kokonut121 added a commit that referenced this pull request May 8, 2026
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