Now In Code
Get access

Expanding AI Agent Run Status Card

Hovering expands a pill into a card on a critically damped spring. A six-step run appends step rows with scrolling titles, fills segmented progress bars and counts tests. Approval turns Pause and Stop into Approve and Deny; completion draws a green check ring.

Inspired by a design by @eliakuratli on XRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "expanding-ai-agent-run-status-card" to this project.

The full source is attached at the end of this prompt. Put the files under components/expanding-ai-agent-run-status-card/, install the listed dependencies with `npx expo install`, and render it on a route I can open.

Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply.

=== Source files are attached here for paid plans ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android, Web
Requires
Expo SDK 54+
Access
Pro
Updated
24 Oct 2026
License
Unlimited commercial projects
Original design
@eliakuratli on X

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A dark status card for an AI agent run. At rest it is a small pill with a label and a timer. Hovering or tapping expands it into a card with a title, a subtitle, a six-segment progress bar and a list of steps. Each step takes its turn: the active line has a moving shimmer, finished lines turn lighter grey and show their durations. When a step needs permission the list scrolls up, a waiting line appears and Approve and Deny buttons rise. After approval the run continues to completion, with a green done state, and the timer counts real elapsed time. Pause and Stop buttons sit at the bottom while it runs. Card height follows the number of visible lines, up to five.

How it's built

A shared JavaScript core defines the run script, the layout rules and the timing, and the React Native component renders it with react-native-svg for icons and a masked view for the shimmer sweep and list clipping. Width and height use critically damped springs, so the pill and the card keep one corner radius throughout. The shimmer is a gradient moved under a text mask. A requestAnimationFrame loop supplies time, and the demo approves automatically after a short delay. The original recording ran at 1.34 times speed, so the timings were converted to real time.

Good for

  • Coding or automation agents that need to show progress and ask for approval
  • Background job monitors with a collapsed and an expanded view
  • Any multi-step process where each step reports a duration

Dependencies

@react-native-masked-view/masked-viewreact-native-svgreact-native

Tags

AI AssistantAvatarButtonCardWork and CollaborationDark ModeExpand and CollapseGlowGradientIconListLoading AnimationMinimalMorphingNumber RollProgress BarShimmerSpring PhysicsState TransitionSystem UIText AnimationTimerToggle Switch

Related