Live status + progress bar for /recent outreach history - #66
Merged
Merged
Conversation
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>
vu1nz Security Review0 finding(s) in PR #? No security issues found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The Send outreach history on
/recentwas 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 atqueued.Changes
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'sSocialAutoRefresh.X/Y donecount and aLive · updating…pulse while posts are moving.Both derive from the existing
deriveOutreachStatusoutput, so the browser-post async lifecycle (incl.awaiting_code) is reflected correctly.Verification
tsc --noEmitcleantests/sp/*; the underlying status derivation is already covered byoutreach-status.test.ts. Pure UI-polish change to one client component.🤖 Generated with Claude Code