Skip to content

fix(ui): keep Details section transitions smooth - #184466

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/details-section-transitions
Oct 26, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/details-section-transitions

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes abrupt or inconsistent expansion in session Details, especially when People first loads its content or a section is toggled again before its transition finishes.

User Impact

People, Environment, Pull requests, Automations, Subagents, Processes, Outputs, and Task progress now expand and collapse with the same 300 ms easing, content fade, and small vertical separation. Reversing a transition starts from its visible position.

Why This Change Was Made

The native disclosures retain their existing state and keyboard behavior while sharing the painted transition. Empty asynchronous bodies stay clipped until their content can be measured, and unchanged resize notifications no longer restart an opening. Task progress also accounts for its changing summary height so neighboring sections do not jump.

Evidence

  • Four focused disclosure browser tests pass, including a regression that fails on the base when content arrives after an empty opening.
  • 57 existing progress-card and disclosure-controller tests pass.
  • Typed UI lint, CSS lint, controller guards, formatting, and git diff --check pass.
  • Exercised rapid reversal, keyboard activation, reduced motion, and mobile Details navigation.
  • The recording uses synthetic session data and demonstrates People, Environment, Automations, Subagents, Processes, Outputs, and Task progress.
  • The recording separates panel opening and closing from individual section toggles.

Before:

Session Details before the change

After:

Session Details after the change

Panel opening, close/reopen, and individually labeled section transitions:

details-video-session-demo.mp4

Risk and coverage

The change is limited to Details disclosure presentation. Keyboard activation remains immediate, reduced motion uses a short fade, and mobile Details retains its page navigation. Production build and broader checks remain covered by PR CI.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 26, 2026 09:48
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR smooths Details disclosure transitions, including late-arriving content and interrupted Task progress animations.

Example: An empty Details section opens, then its content grows from 0 to 80 pixels.

  • Before: The arriving content can appear immediately at full height.
  • After: Content stays clipped until measurement starts its reveal from zero height.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful repair with a distinct browser regression, integrated visual evidence, passing exact-head gates, and no actionable findings; recording inspection was limited by the review environment.
Proof confidence 🐚 platinum hermit (4/6) Maintainer-authored PR outside the ordinary contributor proof gate; inspected before/after screenshots show the integrated Control UI, and a transition recording is supplied, although local decoding and playback were unavailable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Details content can appear abruptly or jump when loading finishes or an animation is reversed.
Reason: The feature-history contributor’s maintainer-authored direction addresses a concrete presentation defect while preserving existing disclosure choices and interaction contracts.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it is a useful, maintainer-authored presentation fix, with passing exact-head CI and no actionable introduced defects found.

Priority: P3
Reviewed head: 492d1fee211a50d5a7186b539bce73c4264c0e50

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI’s Details components consume disclosure choices and measured content sizes, then paint expansion and collapse without changing Gateway data or saved preferences.

flowchart TD
  A[Disclosure input] --> B[Existing disclosure owners]
  C[Content size changes] --> D[Layout measurement]
  B --> D
  D --> E[Shared painted transition]
  B --> F[Task progress presentation]
  F --> E
  E --> G[Details panel]
Loading

Technical review

Best possible solution:

Keep the existing disclosure owners and use the shared painted transition with retained empty geometry and Task progress shell compensation.

Do we have a high-confidence way to reproduce the issue?

Source inspection establishes the empty-opening path, and the added browser regression exercises content growing from 0 to 80 pixels; its reported base failure was not independently rerun under this read-only review.

Is this the best way to solve the issue?

The change is focused: existing owners retain disclosure state and lifecycle, the shared helper owns only animation frames, and the added regression protects a distinct late-content failure.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6f94c2a27fba.

Provenance checked

  • Desktop Details reveal keeps the original intent (15905ee: Provide shared expandable sections with reversible motion, keyboard access, and inert collapsed content; later repairs preserved opening geometry and asynchronous resize handling.)
  • Task progress disclosure and body spacing keeps the original intent (ce1fd81: Keep saved task progress available in Details while retaining native progress storage, disclosure lifecycle, refresh actions, and visibility preferences.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 15905ee adds ui/src/pages/chat/components/chat-details-desktop-section.tsx:18 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 15905ee254d0; files: ui/src/pages/chat/components/chat-details-desktop-section.tsx)

PR surface

Source +69, Tests +27. Total +96 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 93 24 +69
Tests 1 29 2 +27
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 122 26 +96

Labels

Label changes:

  • add P3: This is bounded visual polish for disclosure transitions; the evidence establishes no blocked workflow or data impact.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is bounded visual polish for disclosure transitions; the evidence establishes no blocked workflow or data impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 26, 2026, 6:05 AM ET / 10:05 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 7de132c into main Oct 26, 2026
180 of 182 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/details-section-transitions branch October 26, 2026 18:15
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

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

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant