Skip to content

fix(settings): validate settings types at save boundary + dark-mode t…#115

Merged
Vijayabaskar56 merged 1 commit into
mainfrom
dev
Jun 18, 2026
Merged

fix(settings): validate settings types at save boundary + dark-mode t…#115
Vijayabaskar56 merged 1 commit into
mainfrom
dev

Conversation

@Vijayabaskar56

Copy link
Copy Markdown
Member

…ab pill

  • sanitizeFormSettings now type-checks each value (wrong-typed field falls back to its default) so a hand-crafted save request can't persist e.g. maxSubmissions:"abc" — which made the submission-limit check never fire. Adds regression tests for the type guard.
  • Dark-mode tab pill (--surface) was a solid gray-600 (#949494); set it to Figma alpha/50 (white @ 8%) over the gray-100 track to match the design.

…ab pill

- sanitizeFormSettings now type-checks each value (wrong-typed field falls
  back to its default) so a hand-crafted save request can't persist e.g.
  maxSubmissions:"abc" — which made the submission-limit check never fire.
  Adds regression tests for the type guard.
- Dark-mode tab pill (--surface) was a solid gray-600 (#949494); set it to
  Figma alpha/50 (white @ 8%) over the gray-100 track to match the design.
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
reform Ready Ready Preview, Comment Jun 18, 2026 1:07pm

Request Review

@Vijayabaskar56 Vijayabaskar56 merged commit be099c1 into main Jun 18, 2026
8 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