Repository navigation
Conversation
…ighlight to CalendarView Disable and style the Today quick-jump button subtly when already viewing the current month, highlight the current day cell with a distinct accent border ring and background tint for both light and dark modes, and render a Today pill badge on the current date cell. Fixes LabsCrypt#1643
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Enhances
CalendarView(frontend/src/components/dashboard/CalendarView.tsx) so the "Today" quick-jump button disables with subtle styling when already viewing the current month, and highlights the current calendar day cell with a distinct accent border ring (ring-2 ring-inset ring-accent), light/dark background tint, and aTodaypill badge.Type of Change
Related Issues
Closes #1643
Fixes #1643
/claim #1643
Changes Made
isViewingCurrentMonthinfrontend/src/components/dashboard/CalendarView.tsxto disable and subtly style the "Today" quick-jump button when already viewing the current system month/year, and highlight it with accent styling when browsing other months.aria-label="Previous month"andaria-label="Next month"attributes to the calendar navigation arrows.day.isToday) withdata-testid="calendar-today-cell",aria-current="date", a distinctring-2 ring-inset ring-accentborder ring, light/dark mode contrast (bg-accent/10 dark:bg-accent/15), and aTodaypill badge (data-testid="calendar-today-badge").frontend/src/components/dashboard/CalendarView.test.tsx.Testing
Test Coverage
Test Steps
npx vitest run src/components/dashboard/CalendarView.test.tsxinfrontend/(4/4 tests pass).npx tsc --noEmitinfrontend/(0 errors).npx eslint src/components/dashboard/CalendarView.tsx src/components/dashboard/CalendarView.test.tsxinfrontend/(0 errors, 0 warnings).Checklist
Additional Notes
Payout Details
0x9a51790aC01c54184bcFa067bC38f7F0E7C6F6B6