Repository navigation
[3966 by GPT-6.2 Sol] Planner import: changing an import draft's repository drops attachment-only sources - #3968
Conversation
Fixed #3966. Changing an import draft’s repository now copies its text attachments to the replacement draft in order before navigating. For attachment-only drafts, the files remain visible and Import plan stays enabled. The browser regression reproduced the original bug and passes with the fix. All three planner import browser tests, 16 focused unit tests, and UI type checking passed. Captured a focused browser preview. ESLint reported one file-length warning in `SetupWizard.tsx`. ProPR-Agent: codex/gpt-6.2-sol
|
CI failed: Validate Changes Please investigate and fix this CI failure.
Failure evidence
|
Checks FailedValidation failed during setup, tests, CLI packaging, linting, or build checks. View Logs |
|
✅ Applied the requested follow-up changes in commit 33e7659 Processed 2 comments:
Summary of ChangesFixed the Validate Changes lint failure by consolidating duplicated logic in SetupWizard.tsx. The file now meets ESLint’s 400-line limit, and the repository-change regression confirms that attachment-only drafts retain their files in order. Strict UI lint, type checking, the production build, 16 focused unit tests, and all 3 planner import browser tests passed locally. The refactor has no visible UI effect. Review digestRisk-tiered paths
Diff size: 1 file changed, +37/−54 lines 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
Fixed the **Validate Changes** lint failure by consolidating duplicated logic in [SetupWizard.tsx](/home/node/workspace/propr-ui/src/components/TaskPlanner/SetupWizard.tsx). The file now meets ESLint’s 400-line limit, and the repository-change regression confirms that attachment-only drafts retain their files in order. Strict UI lint, type checking, the production build, 16 focused unit tests, and all 3 planner import browser tests passed locally. The refactor has no visible UI effect. PR: #3968 Comment by: @propr-dev[bot] (ID: 7312053392) Comment by: @github-actions[bot] (ID: 7312053726) Model: GPT-6.2 Sol ProPR-Agent: codex/gpt-6.2-sol
|
/review |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — codex:gpt-6-astraOverall EvaluationReady to merge within scope. The implementation preserves attachment-only import sources when changing repositories, and the supporting refactor appears behavior-preserving. ✅ Ordered attachment transfer — Each text attachment is fetched and uploaded sequentially before navigation, preserving filenames, content, and order. ✅ Replacement draft hydration — Uploaded attachment metadata is assigned to the replacement draft before constructing navigation state, keeping its sources available immediately. ✅ Focused regression coverage — The browser test checks upload content and order, completion before navigation, destination branch selection, visible attachments, and an enabled Import button. This assessment is based on static review of the supplied diff and surrounding contracts. No commands were run. Current-head checks report 18 passed and no failures. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Cover interrupted attachment transfersConsider a regression test where the second attachment download or upload fails. The current error path should retain the original page and restore interaction without navigating to the incomplete replacement. Testing that behavior would complement the successful transfer coverage; it is optional because the supplied control flow already propagates failures to the existing error handler. ScoreThe change satisfies the requested behavior with focused browser coverage and passing current-head checks. Static review found no merge-blocking regression. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
AI Implementation Summary
Closes #3966
Branch:
3966/gpt-6.2-sol-planner-import-changing-a-20261201-1253-rhqCommits: ✅ Changes committed (88990b0)
AI Processing Completed
Execution Details:
Summary:
Fixed #3966. Changing an import draft’s repository now copies its text attachments to the replacement draft in order before navigating. For attachment-only drafts, the files remain visible and Import plan stays enabled.
The browser regression reproduced the original bug and passes with the fix. All three planner import browser tests, 16 focused unit tests, and UI type checking passed. Captured a focused browser preview. ESLint reported one file-length warning in
SetupWizard.tsx.Review digest
Risk-tiered paths
propr-ui/src/components/TaskPlanner/SetupWizard.tsx(+17/−1)propr-ui/e2e/planner-import.pw.ts(+82/−0)Diff size: 2 files changed, +99/−1 lines
View task for the run's logs and conversation.
This PR was created automatically by ProPR after processing issue #3966.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!
Visual preview
Attachment-only import after a repository change
The replacement draft targets the exports repository on the release branch. Both source files remain visible in order and Import plan is enabled.
Full-size original