Repository navigation
feat(calendar): add the night page - #162
Merged
Merged
Conversation
The night page needs to POST a rate, so apiPost now takes an optional JSON body.
Feedback must name the snapshot the manager saw, and the night page needs to tell unloaded events from none. The mock's days-ahead factor now uses the backend's wording.
The hover card now shows only the biggest reasons, so /nights/:date lists all of them, grouped, adding up to the rate, with the night's events.
Managers can now record their own rate, which the tune-up learns from; saving fetches the night again so the manager's rate shows.
A night's page sits under the calendar, so the sidebar should still show where you are.
selvarajuv
approved these changes
Nov 27, 2026
Jrodrigo06
force-pushed
the
night-detail
branch
from
November 27, 2026 19:03
7cfb85d to
9e83336
Compare
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.
What
A page for one night at
/nights/:date, built from the "Calendar – Day view" design, limited to what the backend sends:Why
The hover card now shows only the 3 biggest reasons, so the full breakdown needs a home, and managers need a way to set their own rate.
How to check
just dev --neonandjust frontend, open a night from the calendar's "See all reasons".Screenshots
5 December
25 December
5 December after saving a rate
Notes