Closed arian81 closed 1 year ago
Design and implement a new flow for applications.
Name | Link |
---|---|
Latest commit | 6ca12ba6d89186c6a02800ea1f67b4cdf2d0f4cd |
Latest deploy log | https://app.netlify.com/sites/profound-kringle-30b3e4/deploys/65567bbb1e3839000769e9ed |
Deploy Preview | https://deploy-preview-149--profound-kringle-30b3e4.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
## Walkthrough
The changes encompass a wide range of updates, including the introduction of new Zod schemas for data validation, modifications to Next.js components for form handling, enhancements to GitHub Actions workflow, and adjustments to Prisma models and relationships. These changes collectively expand the application's data model, improve form validation and submission, and refine the development environment setup.
## Changes
| File(s) | Summary |
| ------- | ------- |
| .eslintrc.json | Turned off "@typescript-eslint/no-unused-vars" and "@typescript-eslint/no-explicit-any" rules. |
| prisma/schema.prisma | Added `DH10Application` model and updated `User` model for one-to-one relationship. |
| src/pages/apply.tsx | Replaced `Widget` with custom form, added form input fields, and updated form submission logic. |
| src/components/FormTextInput.tsx, MultiSelect.tsx, CustomSelect.tsx, UniversitySelect.tsx | Introduced new form input and selection components. |
| src/components/Background.tsx, SocialButtons.tsx, NavBar.tsx | Made visual and layout adjustments to components. |
| src/env/schema.mjs, src/pages/_app.tsx | Added environment variable validation and updated meta tag setting. |
| src/server/router/application.ts, src/server/router/context.ts | Added new imports, procedures, and context enhancements. |
| .github/workflows/PR-CI.yaml | Updated Node.js version and switched to pnpm for package management. |
| .gitignore | Excluded "src/pages/test.tsx" from version control. |
| prisma/zod/* | Introduced new Zod schemas and models for various entities. |
| src/data/applicationSelectData.ts | Added global arrays for select options. |
| src/schemas/application.ts | Introduced comprehensive schema for validating applicant information. |
| src/styles/globals.css | Updated background colors in the `.light-gradient` class. |
| prisma/migrations/20231116193647_add_dh10_application_schema/migration.sql | Added new column, table, constraints, and index to the database schema. |
## Poem
> As autumn leaves sway,
> Code dances through the day,
> Embracing change, we play.
Summary by CodeRabbit
Given the provided information, the following bullet-point list summarizes the changes in the pull request:
New Features
UniversitySelect
component for dynamic university selection in forms.MultiSelect
component for improved multi-selection capabilities in forms.Enhancements
Background
component.SocialButtons
andNavBar
components.Welcome
page with updated navigation links and footer adjustments.Bug Fixes
SocialButtons
component.Refactor
Widget
component with a custom form implementation usingreact-hook-form
andzod
.Documentation
Style
Tests
Chores
.gitignore
to exclude it from version control.Revert