Skip to content

fix(calendar): split time-entry lanes only where they overlap (#2494, #2498) - #2499

Merged
callumalpass merged 1 commit into
mainfrom
fix/2494-calendar-lanes
Nov 3, 2026
Merged

callumalpass merged 1 commit into
mainfrom
fix/2494-calendar-lanes

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Refs #2494 (reported by @RumiaKitinari) and #2498 (reported by @mgreen3). This doesn't auto-close either issue.

Problem

Since the 4.15 calendar rewrite, one time entry on a day split the whole day into lanes. Every event shrank to about 78% of the column and every time entry to a 22% strip, even where nothing overlapped.

Change

Updates @tasknotes/calendar from 0.1.5 to 0.1.6 (callumalpass/tasknotes-calendar#5):

  • Time entries use the narrow right-hand strip only where they overlap a scheduled task, timeblock or calendar event. Everything else uses the full column.
  • The toolbar's previous/next buttons draw chevron icons instead of the small ‹ › glyphs.

Also in this PR:

  • vendor/tasknotes-calendar/calendar.css is re-copied for 0.1.6, with the same host adaptations as before. The diff against upstream differs from 0.1.5's only in the header's version and hash.
  • scripts/calendar-css.test.mjs pins the new version and hash.
  • New spec: e2e/issues/issue-2494-calendar-lane-width.spec.ts. It fails on 0.1.5 and passes on 0.1.6.
  • Release note thanking both reporters.

#2498 also asks for a view option to turn the lane off. This PR doesn't add one: entries that don't overlap are already full width, and --tnc-actual-w can widen the strip where they do.

Testing

Against the published 0.1.6 (npm ci from this lockfile):

  • typecheck, lint, lint:css:dist and build pass, and the bundle is within budget.
  • Jest passes: 5,971 passed, 988 skipped.
  • The CI script tests pass (35).
  • scripts/conformance-adapter-compat.test.mjs fails locally because docs/spec/conformance is missing from this worktree. It fails the same way with this PR's changes stashed.
  • In an isolated Obsidian, the new spec and the calendar-engine, calendar-settings and calendar-batch specs pass (21 tests).

One e2e failure is unexplained. calendar-engine.spec.ts › "dragging and resizing a task writes back to its frontmatter" failed once in 6 full runs, in 588ms, and that error wasn't captured. It then passed alone and in 5 further full runs, including 2 straight after a fresh build. The drag assertions poll for 5s, so a misplaced drag wouldn't fail that fast, which points away from the layout change, but the cause is unconfirmed.

…2498)

Update @tasknotes/calendar to 0.1.6. A time entry used to squeeze every
item on its day into lanes, even where nothing overlapped. Now only items
that overlap keep to their side; the rest use the full column. The
toolbar's previous/next buttons also draw larger chevrons.

Refresh the pinned host stylesheet and its hash for the new version.
@callumalpass
callumalpass force-pushed the fix/2494-calendar-lanes branch from 8eb878b to 14f00d2 Compare November 3, 2026 21:12
@callumalpass
callumalpass merged commit 76b04af into main Nov 3, 2026
3 checks passed
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