Skip to content

feat(calendar): fit the calendar to a laptop screen - #161

Merged
Jrodrigo06 merged 5 commits into
calendar-new-shapefrom
calendar-window
Nov 27, 2026
Merged

Jrodrigo06 merged 5 commits into
calendar-new-shapefrom
calendar-window

Conversation

@Jrodrigo06

@Jrodrigo06 Jrodrigo06 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

What

The calendar fits a laptop screen with no page scroll.

  • A rolling five-week grid from this Monday replaces month pages. Nights outside the 30 priced nights are grey, and the header shows the date range.
  • Rows share the screen height, so the page fits at 1440x900 and 1280x800.
  • The hover card is slimmer: the rate before VAT, the manager's rate if set, the 3 biggest reasons, 3 events and "See all reasons" to /nights/:date (a placeholder page for now).

Why

The month view scrolled on a laptop, and the hover card had grown to 15 factor lines with its own scroll. The full breakdown moves to the night's page in the next PR. Decision 0065 is updated to match.

How to check

  • just frontend, open the calendar at 1440x900 and 1280x800. The page should not scroll.
  • Hover a night, move into the card and click "See all reasons".

Screenshots

1440x900, no page scroll

1440x900, no page scroll

1280x800, no page scroll

1280x800, no page scroll

Hover card with the biggest reasons

Hover card with the biggest reasons

Notes

  • The card opens beside the night, not below it, since middle rows leave no room above or below.
  • The colour chips moved into the header. They wrap under the title at 1280.
  • On a Sunday the grid ends after 29 priced nights. This is intended.
  • Factor labels like "event rank max 95.0" come raw from the backend, which will fix them.

@Jrodrigo06
Jrodrigo06 added this pull request to stack #158 November 26, 2026 22:21
A month page late in the month was mostly past days, and the priced nights were split across two pages. Now one grid always holds the whole window, with the date range as the title.
The app frame is now one screen tall and the five weeks share whatever height is left, so the whole calendar is visible at 1280x800 and up. The colour chips move into the header row to give the grid room.
With the grid filling the screen, a tall card had nowhere to go. It now shows the top three factors and events and never scrolls, and "Open night" goes to /nights/:date, a placeholder until night detail is built.
Once the grid fills the screen, a row in the middle has room for the card neither above nor below it. Beside the night, the card can slide up or down until it fits.
With only 3 factors the rest folded into a leftover line bigger than any shown, so the card now lists the 3 biggest reasons and links to the night for the full breakdown.
@Jrodrigo06
Jrodrigo06 merged commit 6052451 into main Nov 27, 2026
8 checks passed
@Jrodrigo06
Jrodrigo06 deleted the calendar-window branch November 27, 2026 20:49
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.

2 participants