Repository navigation
refactor(agenda): revert measured info-card widths and gate lane compaction - #44
Merged
Merged
Conversation
…action Restore the full-tail lane reservation and the D-0.25 fixed card width for DDLs, events and exams, remove the TextPainter-measured information widths and their cell-width/font-scale/locale relayout triggers, and return the card's leading padding from 0.22 to 0.37. Lane compaction stays enabled by default but a new developer option disables it completely, pinning every lane to a fixed height. Live-exam-first tiers, same-course lane clusters, the three-day default tails and the 4-to-null tail migration are unchanged.
PurpleRain-PR
marked this pull request as ready for review
December 1, 2026 07:41
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.
Why
The lane reservation rework in #v0.7.0-dev made two behaviours couple into
every part of the timeline: event/exam information cards started to reserve
per-entry widths measured with
TextPainter(re-measured on window width,font scale and locale changes, and piped through the layout as
paintedWidthDays), and the trailing-lane folding became unconditional.Both made lane assignment depend on rendered text metrics and viewport
state, which is more machinery than the fixed-width card design needs.
This PR removes the measured-width machinery entirely and puts the folding
behind a developer option. Live-exam-first tiers, same-course lane
clusters, the three-day default tails and the 4-to-null tail migration are
deliberately kept.
What this PR does
1. Information cards go back to fixed-width reservations.
DDLs, events and exams reserve their full tail again
(
[dueAt − D days, realDueAt], events[startsAt − D days, endsAt]) andpaint at the minimum-zoom
D − 0.25day card width, independent of theirtitle text.
compactTimelineLaneskeeps working on this old paintgeometry: it only reads
paintStart/paintEnd, so folding and the widthmodel stay orthogonal. Card leading padding returns to
0.37of the cardwidth, and the cell-width/font-scale/locale relayout triggers disappear.
2. Lane compaction becomes an opt-out developer option.
A new
Timeline lane compactionswitch in the developer options section(persisted as
agendaLaneCompaction, on by default — the shippedbehaviour is unchanged). Turning it off bypasses the collapse completely:
every lane keeps a fixed full height, exactly the pre-folding flat stack,
and the change takes effect live without a restart.
Tests
formulas;
3.75/4-day constants track the kept three-day default.cluster test's MOOC wave moved from 12/13 to 12/12 so its reservations
no longer phantom-overlap the exam's full-tail reservation.
collapses while panning, and re-enabling collapses trailing empty lanes
immediately.
CI on this branch: all six build jobs green, including
flutter analyze(info-as-fatal, x64 + arm) and
flutter test(linux).