Skip to content

Auto-scroll pill should point down (e.g. Approve ⌄) when there's something to approve below the current scroll position #94796

Description

@melvin-bot

Description

Update the auto-scroll bubble/pill at the top of the chat to point down (i.e., Approve ⌄) when there is something to approve beneath the current scroll position.

Context

Today the action pill points the user toward an action badge that is above the current scroll window (see #86064, which shows the pill with a ^ up-arrow). This issue is the complementary case: when the actionable item (e.g. a report that needs Approve/Pay/Fix) is below the current scroll position, the pill should point down (Approve ⌄) and, when clicked, scroll the user down to that item.

Expected Behavior

  • When there is an action badge below the current scroll window, show the colored action pill (Approve/Pay/Fix/etc.) with a downward () arrow.
  • Clicking it scrolls the user down to the row causing the action badge.
  • Arrow direction reflects whether the target is above (^) or below () the current scroll position.

Related: #86064, #90278

Reported in Slack.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions