SwitchbackTech / compass

🧭 Monorepo for Compass, a weekly calendar for minimalists
https://www.compasscalendar.com
MIT License
148 stars 11 forks source link

Headers are inaccurate during month changes #54

Open tyler-dane opened 9 months ago

tyler-dane commented 9 months ago

Prerequisites

Expected Behavior

When on a week that spans multiple months, the label heading label should display both months in the following format: 'ShortenedMonth 1 - ShortenedMonth 2 YYYY'

When the week spans multiple years (Dec-Jan), the label should change to: 'Dec YYYY - Jan YYYY'

Current Behavior

MonthLabelBug

Screen Shot 2024-10-01 at 9 17 36 PM

Steps to Reproduce

  1. Hard-code the today value to in useToday.ts to 2024-01-04: const today = dayjs("2024-01-04");

  2. Notice: Month label is December 2023. It should be 'Dec 23 - Jan 24'

  3. Repeat process for other month changes (eg set today to 2024-02-01)

Possible Solution (Not obligatory)

Context

tyler-dane commented 4 months ago

@AzharAhmed-bot is working on this one

tyler-dane commented 2 months ago

Moving this back to 'Todo' due to inactivity -- consider this up-for-grabs for anyone else interested!