Repository navigation
refactor(whatsapp): move channel settings into the plugin - #176129
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: needs maintainer review before merge. What this changesThis PR moves WhatsApp Settings presentation and confirmation copy into the plugin while retaining host-owned configuration and shared login operations. Example: An administrator opens logout confirmation for WhatsApp account work, then the Gateway reconnects.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR completes an approved ownership extraction still absent from current main; no concrete introduced defect was found, and exact-head CI is green. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Channels page supplies status, locale, configuration mounting, and guarded actions to a packaged plugin view; the shared channel owner sends login and logout RPCs to the Gateway. flowchart LR
A[Channels Settings] --> B[Packaged view loader]
B --> C[WhatsApp plugin card]
C --> D[Host capability guards]
D --> E[Shared channel owner]
E --> F[Gateway RPC]
D --> G[Host confirmation dialog]
Technical reviewBest possible solution: Complete the plugin cutover while retaining the existing host owners for configuration, shared login state, and account-bound confirmation. Do we have a high-confidence way to reproduce the issue? This is an ownership refactor rather than a reported runtime bug; current main directly confirms that WhatsApp presentation still resides in core. Is this the best way to solve the issue? The smallest complete extraction moves the card, DTO, and copy through the existing packaged Settings owner while retaining shared login and configuration operations, which this diff does. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 16d0f91a97af. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +915, Tests +284, Docs +12, Config +12, Other +12. Total +1235 across 25 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 18, 2026, 4:05 AM ET / 08:05 UTC. |
|
Merged via squash.
|
…76129) * refactor(whatsapp): move channel settings into the plugin * test(ui): correct WhatsApp settings fixtures * test(ui): avoid shadowing channel config fixture props
Closes #176127
What Problem This Solves
WhatsApp is the remaining channel-specific Settings card implemented in the core Control UI. This moves its presentation and logout confirmation copy to the WhatsApp plugin.
User Impact
The Settings layout, status formatting, configuration controls, account selection, and shared setup QR flow remain the same. Pending confirmation now closes when its view or connection lifetime ends; retained actions cannot affect a replacement account, client, or permission scope.
Why This Change Was Made
The existing channel-detail presenter now exposes guarded actions for the existing shared login owner and host confirmation dialog. The plugin owns the card, DTO, and local copy; the core card and logout helper are removed. The setup wizard retains its real shared controller.
Production TypeScript changes are +474/−248 (net +226); tests are +387/−103 (net +284). Necessary growth is the explicit host capability, plugin mount, and native Settings markup. Most remaining additions are the relocated verified locale catalog; no workflow or publishing change.
Evidence
556d16d5394926ef6ac287d20bf8be983d7dc70a: 52 successful jobs, 21 skipped, no failures. This includes all UI unit/browser/real-Gateway shards, production and test types, lint, i18n, and artifact build.