Skip to content

Standardize toasts / validation - #625

Open
mjaydenkim wants to merge 16 commits into
masterfrom
mk2672/add-toasts-2
Open

Standardize toasts / validation#625
mjaydenkim wants to merge 16 commits into
masterfrom
mk2672/add-toasts-2

Conversation

@mjaydenkim

@mjaydenkim mjaydenkim commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

Summary

This pull request is the first step towards adding toast error/success messages consistently throughout Carriage.

  • Implemented more obtrusive error toast
  • Used existing non-obtrusive info/warn toast and error toast where necessary throughout app
  • Implemented time validation for CULift rules (e.g. 10am prev business day, operating hours, etc)

Test Plan

Since most of this code is not breaking, I generally went through the codebase and general workflow of the app for each kind of user to test where toasts should show up.

@mjaydenkim
mjaydenkim requested a review from a team as a code owner December 5, 2025 05:40
@dti-github-bot

dti-github-bot commented Dec 5, 2025

Copy link
Copy Markdown
Member

[diff-counting] Significant lines: 900.

@mjaydenkim

Copy link
Copy Markdown
Contributor Author

(I cherry-picked most commits from my original branch and added some extra changes in between, since some of that code got rid of desirable activity in the current iteration of Carriage, e.g. the instant notifications about time verification.)

@mjaydenkim mjaydenkim changed the title Standardize toasts Standardize toasts / validation Dec 5, 2025
Add CULift requirements + lower arbitrary minimum ride length

// Check weekends
if (start.day() === 0 || start.day() === 6 || end.day() === 0 || end.day() === 6) {
errors.push({

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 looks great!

I think CULift has different hours during breaks. I wonder if there is a way we can have admin change operating hours on their end and then we reflect it here? very small quality of life addition but it could be cool :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

wait that's a great idea -- maybe i'll add that to jira as a future task? i feel like we should add a new view for that but push these changes since we want them fixed b4 january

@netlify

netlify Bot commented Apr 9, 2026

Copy link
Copy Markdown

Deploy Preview for carriage-web ready!

Name Link
🔨 Latest commit 7c66c22
🔍 Latest deploy log https://app.netlify.com/projects/carriage-web/deploys/69d706adc9d8ca0008963c70
😎 Deploy Preview https://deploy-preview-625--carriage-web.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 project configuration.

@vercel

vercel Bot commented Apr 9, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cu-carriage Ready Ready Preview, Comment Apr 9, 2026 1:54am

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.

3 participants