Show component preview in AI publication approvals
AI chat publication approvals showed draftId and checksum as raw JSON. Users should see the component they are being asked to save.
Publication now selects a dedicated frontComponent approval template. Its card reuses the existing interactive, sample-data preview and submits the original draft ID and checksum. Already-pending generic publication proposals also use this card. The frontend and server use one shared predicate to identify component approval proposals, including older generic publication proposals. The server keeps their original arguments, so approval cannot switch the draft or checksum. The generic areArgumentsEditable flag is removed. Missing, empty or non-string draft IDs and checksums are rejected before creating the approval proposal.
Only the selected pending card loads and renders its preview. Switching cards preserves feedback. Approve is disabled while loading, when a newer revision exists, when loading or rendering fails, or when the feature is disabled. Reject remains available. Other tools retain their existing approval views.
Validation:
- 26 frontend approval tests and 38 server proposal-resolution and pausing-tool tests pass, including malformed publication proposals and replacement-argument attempts against new and legacy proposals.
- 24 Chromium stories pass with retries disabled, covering preview interaction, stale status after refresh, unavailable/disabled previews, selected-card-only loading, and retained feedback.
- Fresh shared build, direct frontend/server typechecks, scoped type-aware lint, localization, formatting, and diff checks pass.
Browser tests use mocked draft/dependency responses with the real component renderer. No live workspace publication was performed. Existing preview endpoints, compilation, and server revision checks are reused.