deltahacks / portal

The attendee & admin portal for DeltaHacks, the hackathon for change.
https://portal.deltahacks.com
MIT License
10 stars 2 forks source link

feat: mobile phone validation #153

Closed Krish120003 closed 1 year ago

Krish120003 commented 1 year ago

Summary by CodeRabbit

coderabbitai[bot] commented 1 year ago

Walkthrough

The update involves enhancing the validation logic for a phone number field in an application schema. It integrates a new utility function to ensure the emergency contact number adheres to a valid format, improving data integrity and user input validation.

Changes

File Change Summary
src/schemas/application.ts Imported isMobilePhone for phone number validation and updated emergencyContactPhone field validation.

🐇📞 In autumn's cool embrace, we refine,
Ensuring numbers ring true and align.
A hop, a skip, in code we trust,
For valid digits are a must! 🍂✨


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`
netlify[bot] commented 1 year ago

Deploy Preview for profound-kringle-30b3e4 ready!

Name Link
Latest commit 0a339d48947624e7f7cbb5a7be59bdaa8186aa23
Latest deploy log https://app.netlify.com/sites/profound-kringle-30b3e4/deploys/6556c7d9a44ef10008a39e4f
Deploy Preview https://deploy-preview-153--profound-kringle-30b3e4.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.