Skip to content

pr zod and ui fixes - #41

Open
johnchun10 wants to merge 2 commits into
mainfrom
zod-validation-other-fixes
Open

pr zod and ui fixes#41
johnchun10 wants to merge 2 commits into
mainfrom
zod-validation-other-fixes

Conversation

@johnchun10

Copy link
Copy Markdown
Contributor

Summary

  • added zod implementation for application
  • unified profile and application items for combined access
  • fixed some scrolling issues with application window

@netlify

netlify Bot commented Apr 20, 2026

Copy link
Copy Markdown

Deploy Preview for bigredhacks-fa25 failed. Why did it fail? →

Name Link
🔨 Latest commit c58cf2f
🔍 Latest deploy log https://app.netlify.com/projects/bigredhacks-fa25/deploys/69f145b1554fad00083ebc2d

try {
const saved = JSON.parse(localStorage.getItem(STORAGE_KEY) || "{}");
if (!saved.firstName && !saved.lastName && !saved.email) return null;
// Dietary may be stored as a string (legacy single-select) or array

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get rid of the legacy single-select should be a multi select by default.


export const SHIRT_SIZES = ["XS", "S", "M", "L", "XL", "2XL"] as const;

export const LEVEL_OF_STUDY_OPTIONS = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is silly, clean this up to make more sense as to who the people actually filling out the form would enter

"31+",
] as const;

export const MAJOR_SUGGESTIONS = [

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these "majors" dont make sense, manually review and clean up the list section

Comment thread frontend/src/lib/formConfig.ts Outdated
description?: string;
fields: FormField[];
// Optional runtime validation schema. When present, DynamicForm uses
// safeParse instead of the built-in required-only check.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should make Zod schema mandatory. And so the developer cannot create a form config with a zod schema, we have enough examples for even a new person to create a form using the old code

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