Skip to content

Live status + progress bar for /recent outreach history - #66

Merged
ralyodio merged 1 commit into
masterfrom
recent-outreach-live
Jul 4, 2026
Merged

ralyodio merged 1 commit into
masterfrom
recent-outreach-live

Conversation

@ralyodio

@ralyodio ralyodio commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

What

The Send outreach history on /recent was static. Browser/cookie posts move asynchronously as the worker processes them (queued → awaiting_code → sent/failed, 2 at a time under the concurrency cap), but you had to reload to see any change — so a fresh "post to all" just showed 7 rows stuck at queued.

Changes

  • Live refresh — the form polls router.refresh() every 8s while any row is still in flight (queued / awaiting_code) and stops once everything is terminal, so rows update in real time without a reload and an idle page generates no load. Reuses the same conditional-polling idea as the project Social tab's SocialAutoRefresh.
  • Progress bar — a segmented bar (green sent / red failed / pulsing blue pending) with an X/Y done count and a Live · updating… pulse while posts are moving.

Both derive from the existing deriveOutreachStatus output, so the browser-post async lifecycle (incl. awaiting_code) is reflected correctly.

Verification

  • tsc --noEmit clean
  • CI runs typecheck + tests/sp/*; the underlying status derivation is already covered by outreach-status.test.ts. Pure UI-polish change to one client component.

🤖 Generated with Claude Code

The outreach history on /recent was static — browser/cookie posts move
asynchronously (queued → awaiting_code → sent/failed as the worker churns
through them), but you had to reload to see any change. Now the form polls
router.refresh() every 8s while anything is still in flight and stops once
everything is terminal, so rows update in real time.

Adds a segmented progress bar (sent / failed / pending) with an "X/Y done"
count and a "Live · updating…" pulse while posts are in flight.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio
ralyodio merged commit 224bc79 into master Jul 4, 2026
8 checks passed
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.

1 participant