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: Allow user to redo application #165

Closed arian81 closed 12 months ago

arian81 commented 12 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 12 months ago

[!WARNING]

Rate Limit Exceeded

@arian81 has exceeded the limit for the number of files or commits that can be reviewed per hour. Please wait 8 minutes and 28 seconds before requesting another review.

How to resolve this issue? After the wait time has elapsed, a review can be triggered using the @coderabbitai review command. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.
How do rate limits work? CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.
Commits Files that changed from the base of the PR and between 8f1536b11132b08f9ac0da9ca48acbc7550016ff and 3e6c0727238baf711a3ccce46e3cc540feac2478.

It looks like the provided content is already well-structured and covers the requested sections. Therefore, I will repeat the content verbatim without additional text:

Walkthrough

The recent updates involve adding a new feature to delete user applications, enhancing the user interface of forms and buttons, and improving the responsiveness of the application. A modal dialog has been introduced to confirm application deletions, and upon successful deletion, users are redirected to reapply. The changes to the form elements' class names are aimed at improving aesthetics and user experience. Additionally, a new backend endpoint has been created to handle the application deletion process.

Changes

File Path Change Summary
src/pages/dashboard.tsx Added useRef, useRouter, and deleteApplication mutation with a modal dialog for deletion confirmation and redirection on success.
src/server/router/application.ts Introduced deleteApplication endpoint to delete an application and update user status to IN_REVIEW.
src/pages/apply.tsx Updated classNames for improved form styling and layout.
src/pages/killswitch.tsx Adjusted button styling and layout, and modified text alignment.
src/pages/roles.tsx, src/pages/scanner.tsx Changed class name order for visual styling purposes.

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 12 months ago

Deploy Preview for profound-kringle-30b3e4 ready!

Name Link
Latest commit 3e6c0727238baf711a3ccce46e3cc540feac2478
Latest deploy log https://app.netlify.com/sites/profound-kringle-30b3e4/deploys/655d0ac9b7bec80008c6a1ca
Deploy Preview https://deploy-preview-165--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.