Fix swimlane Kanban column grouping when Group By is a formula #1402
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.
Description
This PR fixes a glitch in the Bases Kanban swimlane mode when the view is grouped by a
formula.*property and swimlanes are enabled (e.g. swimlane = Status).Bug
After editing a task’s metadata (e.g. changing
scheduledso the formula result moves from “Overdue” to “Today”), the card would immediately jump into theNonecolumn in swimlane mode, and it would only correct itself after an Obsidian force reload or after changing the Bases sort (which forces a re-run).Flat (non-swimlane) Kanban mode behaved correctly.
Root Cause
In swimlane mode, the column key was re-derived from
pathToProps(including cachedformula.*outputs). After a frontmatter edit, Bases’groupedDatacan update promptly, while cached formula outputs can lag, causing a temporary mismatch and a fallback toNone.Fix
In
renderWithSwimLanes(), column assignment now always uses the already-builtgroupsmap (which is derived from BasesgroupedData). Swimlanes are then applied on top of that using the swimlane property value. This keeps swimlane mode consistent with flat mode and with Bases’ computed grouping.How I tested
scheduledso it changes bucketsNote
This change was produced as a pure “vibe coding” patch and submitted via OpenAI Codex.