Repository navigation
fix(list): show placeholder in WorkingDiff and Upstream when data not loaded - #1503
Merged
Merged
Conversation
…data not loaded These two columns returned blank for unloaded data, inconsistent with all other columns that show ⋯ (progressive loading) or · (budget-truncated picker items). Remove the upstream() accessor that flattened None to a default, losing the "not loaded" signal. Document the Option<T> rendering convention on ListItem. Co-Authored-By: Claude <[email protected]>
One rule: outer Option = collected or not. Inner type is whatever the data naturally is (AheadBehind, Option<PrStatus>, etc.). Co-Authored-By: Claude <[email protected]>
Remove inline re-explanations of the Option<Option<T>> convention from render.rs and item.rs field comments — the struct docstring is the single source of truth. Field comments now describe what the inner Option means for that specific field. Co-Authored-By: Claude <[email protected]>
worktrunk-bot
approved these changes
Mar 14, 2026
3 tasks
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.
WorkingDiff and Upstream were the only columns that returned blank for unloaded data (
None), while all other columns showed⋯(progressive loading) or·(budget-truncated picker items). This broke the visual signal that data was still loading.The root cause for Upstream was the
upstream()accessor which called.clone().unwrap_or_default(), flatteningNone(not loaded) intoUpstreamStatus::default()(loaded, no remote). Removed it and matched on the field directly. WorkingDiff had both cases (branch item vs unloaded worktree data) collapsed into oneand_thenchain — separated them so unloaded worktree data shows a placeholder.Also documented the
Option<U>convention onListItem: outerOption= collected or not, inner type is whatever the data naturally is.