UI: chats sidebar search shows divider via wrong row list (index mismatch between filtered and unfiltered children) #100
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/a0-symbolics#100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Commit
200ae83amade the chats sidebar render filtered children during search (visibleChildContexts()), but the per-row divider class still computes against the unfiltered child list. Index/row mismatch when filtering hides children.Location
webui/components/sidebar/chats/chats-list.html:68-69: rows iterate$store.chats.visibleChildContexts(context.id)but the divider calls$store.sidebar.hasRowDividerBefore('chat', child, childIndex, $store.chats.childContexts(context.id)).200ae83a(on main via merge5116eb4d).Repro
dividerBeforerow extension).childIndex(position in the filtered list) no longer matcheschildContexts()(unfiltered list) →dividerBeforereceives wrong index/rows: dividers disappear, land on the wrong child, or appear mid-group.Expected
Divider logic runs over the same filtered rows that are rendered.
Suggested fix
Pass the filtered list to the divider check:
$store.sidebar.hasRowDividerBefore('chat', child, childIndex, $store.chats.visibleChildContexts(context.id)). Top-level rows (line 39) are unaffected sincetopLevelContexts()already returns the rendered list.