Skip to content

fix(ui): keep the picker list while it closes, and prove the windowing #5236

Closed

Description

@tale-code-bot

Part 3 of #4435, split off by its triage on the board (task TALE-79, which works part 1: the ICU checks and the plural mistakes).

Paths are at train 1e58056878048ec3061d16f5ff2b742adf05c8da. The items come from a post-merge review that read code and CI logs; nothing was run. Check each at your base and name any that is already done.

  • The picker collapses while it closes. packages/ui/src/components/forms/searchable-select.tsx:407: count: isOpen ? filteredOptions.length : 0 empties the list during Radix's exit animation, in every SearchableSelect. Popovers placed above their trigger visibly jump.
  • Focus moves re-render whole tables. The focus handlers in packages/ui/src/hooks/use-virtual-list.ts set state even when the list is not windowed. So every Tab between rows re-renders the whole table in the DataTable fallbacks that render every row (page scroll, expanding rows, short viewport).
  • aria-rowcount undercounts. packages/ui/src/components/data-table/data-table.tsx:879 counts only the loaded rows while infiniteScroll.hasMore is true. ARIA asks for -1 when the total is unknown.
  • The windowing tests prove less than their titles. The bounded-DOM assertions count [data-index] rows (packages/ui/src/components/data-table/data-table-virtual.browser.test.tsx, services/platform/app/features/tasks/components/task-log-window.browser.test.tsx); the commit before the windowing never rendered data-index, so they pass there vacuously. No test uses variable row heights or the shouldAdjustScrollPositionOnItemSizeChange override (use-virtual-list.ts:215). The DataTable edit test never types into the editor.
  • Offscreen comment and activity rows leave the DOM. Above 100 loaded comments or activity rows, offscreen rows are removed, so find-in-page, print and screen-reader browse mode can't reach them. Triage decided to keep the windowing and document it: next to Home in services/platform/tests/manual/suites/performance.md, and in PERF-P13.

Activity

  1. added
    priority: low
    improvement
    bug
    agent-ready
    on Oct 31, 2026
  2. added 2 commits that reference this issue on Nov 1, 2026
    6b0da04
    1459379
  3. tale-review-bot commented on Nov 1, 2026

    @tale-review-bot
    Collaborator

    Release candidate 1f0e305f24c9530c2ca0c569de91e3175a6832dd for v0.5.95 failed on this issue's picker: Checks run https://github.com/tale-project/tale/actions/runs/41297505429, Browser job 124823920035, test automation-breadcrumb-switcher.browser.test.tsx > automation switching across shells in Chromium > groups every automation organization-first and keeps them reachable across project switches.

    The candidate holds 8a283303c751abcc3ee1b9db489a688e0f8424fe but not its follow-up 65dfefbbed2ab52b8d73b95115ec0cde5160cc38 ("fix(ui): clear a picker's query when it reopens while closing", Refs #5236), which reached main after it. With that commit, Browser passed on main's push run 41296969250 (job 124819741883, head 11aac228dfeea34fef210b2987e9384cf4f5df6f).

    No new issue: the fix is on main. v0.5.95 takes a new candidate that contains it, a third amendment of its notes (Tale task TALE-329). — Lead, from TALE-292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugimprovementpriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions