fix: correct typo in phone number label in IncidentDetailModal - #60
Conversation
Co-authored-by: Copilot <copilot@github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This pull request enhances the
WorkShiftsPageby introducing logic to prevent editing or assigning rescuers to past dates, improving the user experience and data integrity. It also includes minor UI/UX improvements and a typo fix elsewhere.Improvements to shift assignment editing and validation:
isDateInPastto determine if a selected date is in the past, and integrated this logic throughout the page to disable editing, assignment, and deletion actions for past dates. This includes disabling form controls, buttons, and providing appropriate tooltips and visual feedback. (src/app/[locale]/admin/workshifts/page.tsxR248-R260, src/app/[locale]/admin/workshifts/page.tsxR460-R467, src/app/[locale]/admin/workshifts/page.tsxR1460-R1465, src/app/[locale]/admin/workshifts/page.tsxR1474-R1477, src/app/[locale]/admin/workshifts/page.tsxR1487-R1497, src/app/[locale]/admin/workshifts/page.tsxL1488-R1520, src/app/[locale]/admin/workshifts/page.tsxR1538-R1549, src/app/[locale]/admin/workshifts/page.tsxR1615-R1618, src/app/[locale]/admin/workshifts/page.tsxR1628-R1639, src/app/[locale]/admin/workshifts/page.tsxR1649-R1653, src/app/[locale]/admin/workshifts/page.tsxL1664-R1703)User interface and experience:
disabled:cursor-not-allowedanddisabled:bg-slate-100. (src/app/[locale]/admin/workshifts/page.tsxR1474-R1477, src/app/[locale]/admin/workshifts/page.tsxR1487-R1497, src/app/[locale]/admin/workshifts/page.tsxL1488-R1520, src/app/[locale]/admin/workshifts/page.tsxR1538-R1549, src/app/[locale]/admin/workshifts/page.tsxR1615-R1618, src/app/[locale]/admin/workshifts/page.tsxR1628-R1639, src/app/[locale]/admin/workshifts/page.tsxR1649-R1653, src/app/[locale]/admin/workshifts/page.tsxL1664-R1703)Minor code and UI cleanups:
Other fixes:
IncidentDetailModal.tsx.