Repository navigation
Mobile: let the pending approval card collapse so the thread behind it stays readable #43346
vprashar2929
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
On mobile, while an agent waits for an approval, the approval card sits above the composer and can take up to 560pt of the screen. Nothing on it minimizes it, so I can't read the output that led to the request, which is what I need in order to decide. Scrolling the thread only moves the strip left above the card, and with larger text sizes the card covers nearly the whole thread.
The question card already handles this: tapping its header collapses it. The approval card has no equivalent.
Steps to reproduce (upstream
main57b0227, iPhone 18 Pro simulator, iOS 27.2)Proposed change
Make the card's header (the "Approval needed" label and title) a tap target with a chevron, like the question card's header. Tapping it collapses the card to that header, and tapping again brings the buttons back. A new approval always opens expanded.
It's one file (
PendingApprovalCard.tsx, about 30 lines). It adds no strings and doesn't touch the thread screen, server or contracts. I checked it on the iOS simulator, including a new approval opening expanded and collapsing while the card is scrolled:This is separate from #27291 and #27332 (long commands inside the card) and doesn't conflict with them.
Would you take a PR for this? It's ready to open, and I'm happy to change the approach or drop it if you'd prefer something else.
All reactions