fix(calendar): persist view mode and current date on every mutation #26
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_whiteboard!26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_calendar_view_persistence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fix calendar view mode / date not surviving reload. Previously only the double-click cycle called
WhiteboardSync.onUpdate; the properties panel selector, Prev/Today/Next buttons, and in-header nav arrows mutated local state silently.Related Issue
Closes #25
Changes
crates/hero_whiteboard_ui/static/web/js/whiteboard/calendar.jsnavigateNext,navigatePrev,cycleViewMode, andnavigateCalendarnow callWhiteboardSync.onUpdate(group)after redrawing. Covers both the properties-panel Prev/Next buttons (which go through these helpers) and the in-header arrow clicks.crates/hero_whiteboard_ui/static/web/js/whiteboard/properties.jsprop-cal-viewmodechange handler andprop-cal-todayclick handler now callWhiteboardSync.onUpdate(currentNode)after mutating_calState.Test Results
cargo check --workspace: passcargo clippy --workspace -- -D warnings: passcargo fmt --check: passChanges are vanilla JS; manual UI verification needed.
Manual verification