Skip to content

fix(schedule): don't collapse same-named breaks across the day#289

Merged
JacobCoffee merged 1 commit intomainfrom
break-display-location
May 1, 2026
Merged

fix(schedule): don't collapse same-named breaks across the day#289
JacobCoffee merged 1 commit intomainfrom
break-display-location

Conversation

@JacobCoffee
Copy link
Copy Markdown
Member

Summary

Friday's morning Break (10:30-11:00) and afternoon Break (16:00-16:30) were collapsing into one row spanning 10:30-16:30 in the schedule and room views. Same key bug for any other day with multiple same-named Break / Lunch / Poster slots.

The collapsedGroups key was `kind-day-slotName`. Adding `-start` to the key keeps the intended use case (multiple per-room slots that share a start time merge into one row) while preventing cross-time collapsing.

Why it matters

Room 201B's Friday view shows "Break 10:30am-4:30pm" instead of two separate breaks at 10:30-11 and 16:00-16:30. The merged row also obscures the actual 10:30 morning break duration.

Test plan

  • Friday Room 201B detail: shows two separate Break entries (10:30-11:00, 16:00-16:30), not one merged 10:30-16:30 row.
  • Friday talk rooms: morning Break and afternoon Break each render at their actual times.
  • Per-room lunches still collapse: Friday Lunch (Hall AB) renders as ONE row across Grand Ballrooms / 103ABC / 104AB / 104C (since they all start at 13:00), not five separate ones.
  • Saturday and Sunday breaks: same expectation.

🤖 Generated with Claude Code

The collapsedGroups key was \`kind-day-slotName\`, so Friday's 10:30
"Break" and 16:00 "Break" merged into one entry spanning 10:30-16:30
(earliest start, latest end across all matches). Same for any other
days where multiple Break/Lunch/Poster slots share a name but sit at
different times.

Include the slot start in the key. Per-room same-start slots — the
intended use case, e.g. five 13:00 "Lunch (Hall AB)" entries across
talk rooms — still merge into one row. Cross-time slots no longer do.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@JacobCoffee JacobCoffee merged commit 9d74157 into main May 1, 2026
2 checks passed
@JacobCoffee JacobCoffee deleted the break-display-location branch May 1, 2026 14:29
JacobCoffee added a commit that referenced this pull request May 1, 2026
…from #289) (#292)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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