Skip to content

fix(sidebar): fixed per-Project limits, all Projects, stable groups - #565

Merged
OldKrab merged 2 commits into
mainfrom
shushakov/sidebar-fixed-limits
Oct 17, 2026
Merged

OldKrab merged 2 commits into
mainfrom
shushakov/sidebar-fixed-limits

Conversation

@OldKrab

@OldKrab OldKrab commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Problem

Fitting history rows to the viewport (#561) had two defects:

  • With many Projects, Projects without live Tasks showed only a header and Load more.
  • Collapsing or expanding one Project resized every other Project.

Change

  • Removes viewport fitting (useTaskNavigationFit).
  • Each Project shows its live rows plus a fixed number of history rows that depends only on the Project count: 20 for one Project, 7 for two, and 3 for three or more.
  • Live rows still never count toward the limit, and a collapsed Project still keeps them visible.
  • Every Project group renders: the five-Project limit and its "Show N more projects" button are removed.
  • An idle open Task keeps its ordinary history slot, so opening a visible Task no longer pulls in an extra row. A Task opened from outside the window, such as from search, is still added.
  • docs/task-chat-flow.md records these rules.

Verification

  • Frontend: 1514 tests pass, typecheck clean, private-data check passes.
  • New tests cover live rows plus three history rows per Project, other Projects keeping their rows when one collapses, all Projects rendering, and a group keeping its size when an idle visible Task opens.
  • Browser check at 1280×720 with three Projects: collapsing the first Project leaves the others' rows unchanged.

Known limitation

At 1280×720 with three Projects, when the first has three live rows, the third Project's running Task lands at the bottom edge of the list. A follow-up could add an off-screen "Running below" cue.

Fitting history to the viewport left Projects without live Tasks showing
only a header and Load more, and resized every other Project whenever
one was collapsed or expanded.

Each Project now shows its live rows plus a fixed number of history
rows that depends only on the Project count: 20 for one Project, 7 for
two, and 3 for three or more. Live rows still never count toward the
limit, and a collapsed Project still keeps them visible.
@OldKrab
OldKrab enabled auto-merge October 17, 2026 17:29
@OldKrab
OldKrab disabled auto-merge October 17, 2026 17:29
…pens

- Every Project group renders; the separate five-Project limit and its
  "Show N more projects" button are removed.
- An idle open Task keeps its ordinary history slot. Opening a visible
  Task no longer pulls in an extra history row; a Task opened from
  outside the window, such as from search, is still added.
@OldKrab OldKrab changed the title fix(sidebar): use fixed per-Project limits instead of viewport fitting fix(sidebar): fixed per-Project limits, all Projects, stable groups Oct 17, 2026
@OldKrab
OldKrab enabled auto-merge October 17, 2026 17:33
@OldKrab
OldKrab merged commit ebab6eb into main Oct 17, 2026
6 checks passed
@OldKrab
OldKrab deleted the shushakov/sidebar-fixed-limits branch October 17, 2026 17:38
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