Skip to content

fix(bots): keep the item page's top fixed, scroll only the Activity - #48137

Merged
orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/fix-bot-item-detail
Nov 24, 2026
Merged

orca-remote-automation[bot] merged 1 commit into
mainfrom
orca-remote-automation/fix-bot-item-detail

Conversation

@orca-remote-automation

@orca-remote-automation orca-remote-automation Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

On a bot item's page, the top part (title, status, links, description, Chat, Done means) now stays put. Only the Activity list scrolls.

What Changed

  • Before: the title, status and links were pinned, but the description, Chat and Done means scrolled away with the Activity in one column.
  • After: the whole top block stays fixed above the Activity, and only the Activity scrolls. The "Activity" label stays just above its list.
  • In a short pane, the top block scrolls inside itself only when it would otherwise leave the Activity less than 140px (or less than half the pane). It is capped at max(50%, 100% - 140px). At normal heights nothing in the top block is clipped.
  • The header is no longer sticky inside the old scroller, so the code that measured its height and set scroll padding is removed, and so is the "needs you" watcher's top margin. Scroll follow, Jump to latest, the Reply jump and comment reveal now all use the Activity scroller.
  • CloseNote moved to BotItemCloseNote.tsx to keep BotItemView.tsx under the line cap.
  • No new elements or copy. Spacing is the same as before. The loading skeleton already matches this layout and is unchanged.

Why

The owner asked for the top section to stay put while the Activity scrolls, so the item's context stays in view. A flat 45% cap hid Chat and Done means even in ordinary panes where everything fit. The max(50%, 100% - 140px) cap only clips the top when the Activity would otherwise get too small. Checked against how comparable products handle this.

Linked Issue

Maintainer change, no issue.

Visual Proof

Component fixtures in the dark theme. In each image, before is on the left and after is on the right.

Scrolled to the latest Activity (340px wide):

scrolled

Long title, 14 links and a long Done means in a short pane: the top block scrolls inside itself and the Activity keeps room:

crowded short

Narrow (300px), everything fits, no clipping:

narrow

Loading skeleton, unchanged:

skeleton

Testing

  • pnpm check:changed passed: format, lint, typecheck, related tests and ratchets.

  • Before/after pnpm fixtures:shot bots/items/BotItemPane at 300, 340, 480 and 600px wide and 360, 420 and 860px tall, with long titles, many links, a long Done means and long Activity. New fixtures: crowdedTopShort, crowdedTopTall, loading.

  • Code review and UX review passed.

  • No unit test: this is a layout change, and the repo's test rules say not to test UI behavior.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

Performance

None, because this is CSS layout only. One fewer ResizeObserver runs (the header's scroll-padding measurement is gone), and nothing new runs on scroll.

Risk

Level: Low. This is renderer layout only. The riskiest part is scroll behavior (follow, Jump to latest, the Reply jump), which now uses the Activity scroller. If it went wrong, a jump would land at the wrong position. Back out with a plain revert.

Review

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Renderer-only: the same on Mac, Linux and Windows, for local and remote hosts. No mobile surface.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I stated the risk
  • Before/after screenshots attached
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • pnpm check:changed passes (CI covers the full suite)

The item page's title, status, links, description, Chat and Done means now
stay put; only the Activity scrolls. In a short pane the top scrolls itself
so the Activity keeps at least 140px (or half the pane).
@orca-remote-automation
orca-remote-automation Bot merged commit 4087829 into main Nov 24, 2026
55 checks passed
orca-remote-automation Bot added a commit that referenced this pull request Nov 25, 2026
* revert: scroll the whole item page again (#48137)

Reverts 4087829. The item page scrolls as one column again with the
sticky title/status/links header; the closing note stays in its own file
for the line cap.

* fix(items): opening the description no longer follows the page to the end

With the single scroller back, the description sits inside the follow
content, so Show more on an item whose page fit counted as growth and
scrolled to the end. The toggle now leaves the end first. Keeps the
loading fixture.

---------

Co-authored-by: orca-remote-automation[bot] <359726236+orca-remote-automation[bot]@users.noreply.github.com>
saltyfireball pushed a commit to saltyfireball/orca that referenced this pull request Nov 25, 2026
…8750)

* revert: scroll the whole item page again (stablyai#48137)

Reverts 4087829. The item page scrolls as one column again with the
sticky title/status/links header; the closing note stays in its own file
for the line cap.

* fix(items): opening the description no longer follows the page to the end

With the single scroller back, the description sits inside the follow
content, so Show more on an item whose page fit counted as growth and
scrolled to the end. The toggle now leaves the end first. Keeps the
loading fixture.

---------

Co-authored-by: orca-remote-automation[bot] <359726236+orca-remote-automation[bot]@users.noreply.github.com>
(cherry picked from commit fce7cfc)
(cherry picked from commit 86b2304074c04111f0311fbee71ca6bc83328af9)
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.

0 participants