feat(drive-integration): async import runs rearchitecture [INTEG-4526]#11092
Open
david-shibley-contentful wants to merge 6 commits into
Open
feat(drive-integration): async import runs rearchitecture [INTEG-4526]#11092david-shibley-contentful wants to merge 6 commits into
david-shibley-contentful wants to merge 6 commits into
Conversation
david-shibley-contentful
force-pushed
the
feat/drive-integration-async-runs-INTEG-4526
branch
from
July 16, 2026 21:52
3ca6d78 to
4bc5d43
Compare
Rearchitects the drive-integration import flow from synchronous (20-min blocking spinner) to fully async. Import wizard fires off the agent run, saves a RunRecord to localStorage, then immediately redirects to a new Runs page. The Runs page polls agentRun status every 10s for in-flight imports and supports multiple concurrent runs. ReviewPage is now reachable directly from the Runs page rather than only from the wizard flow. Key changes: - New RunsPage (home screen) + RunRow components with live status badges - useRunStorage hook (localStorage-backed RunRecord[] with 50-record cap) - useRunsPolling hook (parallel Promise.all, 10s interval while running) - workflowService.ts extracted from useWorkflowAgent (resumeAndPollWorkflow) - Page.tsx rewritten around AppView discriminated union state machine - ModalOrchestrator: fire-and-forget startWorkflow → addRun → onRunStarted - 104 tests passing across all new and modified files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…table after import Three independent useRunStorage instances (Page, RunsPage, ModalOrchestrator) meant addRun() only updated local React state — RunsPage wouldn't see the new run without a page refresh. Lift the hook to Page as the single owner and pass runs/addRun/ removeRun/storageError down as props. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
david-shibley-contentful
force-pushed
the
feat/drive-integration-async-runs-INTEG-4526
branch
from
July 16, 2026 22:00
2734bc2 to
2d23ce1
Compare
…y ESLint Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ixtures from branch Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…E_ENABLE_MOCK_REVIEW_PAYLOAD branch Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
INTEG-4526
Summary
Key files
src/types/runs.ts—RunRecord,DisplayStatus,RunWithStatus,AppViewtypessrc/hooks/useRunStorage.ts— localStorage-backed run history (max 50, scoped by space+env)src/hooks/useRunsPolling.ts— parallelPromise.allpolling, 10s interval while runningsrc/services/workflowService.ts—resumeAndPollWorkflowextracted from the hooksrc/locations/Page/components/runs/—RunsPage+RunRowcomponentssrc/locations/Page/Page.tsx—AppViewdiscriminated union state machine replaces binary togglesrc/locations/Page/components/mainpage/ModalOrchestrator.tsx— fire-and-forget wizard exitTest plan
npm testacross all modified files)tsc --noEmit)npm run build)Generated with Claude Code