Skip to content

feat(ui): animate the date switch in the meeting week navigator - #5327

Open
ux-git wants to merge 1 commit into
mainfrom
feat_date_navigator
Open

feat(ui): animate the date switch in the meeting week navigator#5327
ux-git wants to merge 1 commit into
mainfrom
feat_date_navigator

Conversation

@ux-git

@ux-git ux-git commented Aug 2, 2026

Copy link
Copy Markdown
Member

Description

The < week > switcher above the midweek meeting editor replaced its label instantly, so nothing told you which way the schedule had moved.

This extracts that switcher into a shared DateNavigator component in @components/, and gives the label a directional swap: clicking next pushes the current week out to the left while the new one arrives from the right, and back reverses it. It is the same directional swap the clicker mode uses when switching between the online and present counts, so the two read as one motion language.

Details:

  • Global component, ready for any other date, week or month switcher — it was the only arrow switcher in the app, but no longer has to be.
  • 320ms travel on a soft ease-out (cubic-bezier(0.22, 1, 0.36, 1)), with the direction mirrored in RTL layouts.
  • Gradient mask only while the swap is running. The mask is fully opaque across the middle band and ramps down only over the arrow zone, so the label at rest is never dimmed and the travelling one dissolves instead of hitting a hard clip edge.
  • Accessibility: the arrows are now ButtonIcons — focusable, keyboard-operable, with translated aria-labels and a visible focus ring. The outgoing label is aria-hidden. prefers-reduced-motion disables the animation entirely.
  • Multi-language: the label is white-space: nowrap and centred, and a long locale simply fades toward the arrows instead of wrapping mid-flight.

No new dependencies, no schema changes, no new translation keys — the arrow labels reuse the existing tr_back and tr_next.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings

The week label in the midweek editor swapped instantly, giving no sense of
which way the schedule moved. Extract the arrow switcher into a shared
DateNavigator component whose label slides and fades toward the clicked
arrow, the same directional swap the clicker mode uses for its counts.

- reusable global component for any date, week or month switcher
- 320ms travel with a soft ease-out, mirrored in RTL
- gradient mask only during the swap, so the resting label stays crisp
- arrows are now icon buttons: focusable, labelled, with press feedback
- honours prefers-reduced-motion
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
staging-organized-app Ready Ready Preview Aug 2, 2026 9:12pm
test-organized-app Ready Ready Preview Aug 2, 2026 9:12pm

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@ux-git, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f2a23d84-91ed-4cdb-894d-86f47d0ec937

📥 Commits

Reviewing files that changed from the base of the PR and between 0025278 and 56f24d4.

📒 Files selected for processing (4)
  • src/components/date_navigator/index.tsx
  • src/components/date_navigator/index.types.ts
  • src/features/meetings/midweek_editor/index.styles.tsx
  • src/features/meetings/midweek_editor/index.tsx

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

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.

1 participant