Skip to content

Fix CSV quoted-newline parsing + add valibot input validation to auth#29

Merged
bradburch merged 3 commits into
mainfrom
custom-services
Jul 16, 2026
Merged

Fix CSV quoted-newline parsing + add valibot input validation to auth#29
bradburch merged 3 commits into
mainfrom
custom-services

Conversation

@bradburch

@bradburch bradburch commented Jul 16, 2026

Copy link
Copy Markdown
Owner

What

Merges the latest main into custom-services and resolves the conflict. Net change landing on main:

  • server/lib/csv.ts — fix CSV parsing so a newline inside a quoted field stays one cell in one row (was splitting rows). Added test covering the quoted-newline case.
  • server/routes/auth.ts — add valibot validation at the customer email-code auth trust boundary.
  • deps — add valibot.

Landing page note

This branch originally also relabeled the old landing CTA to "Sitter log in". That's now obsolete: main (#26/#27/#28) rewrote the landing page and already ships a sitter login — <a href="/admin">Already set up? Sign in →</a>. The conflict was resolved by taking main's landing page verbatim and dropping the redundant edit.

Verification

Local CI-equivalent all green: typecheck, lint, format (tracked files), test, build.

🤖 Generated with Claude Code

bradburch and others added 3 commits July 14, 2026 17:42
Single-pass CSV parser so newlines inside quoted fields no longer shred rows; auth /identify and /verify bodies validated via valibot (error responses byte-for-byte unchanged). Reviewed clean; CI green.
The /admin login landing was already linked from the landing page, but
the CTA read "Open the dashboard" — not obviously a login to a sitter
arriving cold. Relabel to "Sitter log in". Also correct the footer's
"Open source" claim to "Self-hosted" since the app isn't strictly OSS.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bradburch bradburch changed the title Label landing CTA as sitter login Fix CSV quoted-newline parsing + add valibot input validation to auth Jul 16, 2026
@bradburch bradburch merged commit 005c55b into main Jul 16, 2026
2 checks passed
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