Skip to content

fix(1.5.9-rc): keep result cards stable across remake and un-squeeze reveal button - #653

Merged
zhouxiaoka merged 1 commit into
integration/1.5.9-rcfrom
fix/rc159-stable-result-cards
Nov 22, 2026
Merged

zhouxiaoka merged 1 commit into
integration/1.5.9-rcfrom
fix/rc159-stable-result-cards

Conversation

@zhouxiaoka

Copy link
Copy Markdown
Owner

Summary

Fixes the jarring result-page card flip and button crowding observed on 2d37667d (/Users/zhoukk/AutoClipQA/文档/问题记录-同项目再做后结果页切换-20261122.md):

  1. Preserve existing OutputVariantCard across remake (StudioResults.tsx):
    • Submitting 「再做一版」→「生成新方案」 sets generation.auto_start = false while retaining existing workspace.output_variants.
    • Previously, StudioResults switched the entire grid on automatic ? output_variants : drafts, immediately unmounting OutputVariantCard and replacing it with DraftResultCard (changing badge, title, layout, video state, and button copy in place).
    • Now existing output_variants remain mounted as OutputVariantCard even after auto_start flips to false, while any newly created standalone drafts (!variantDraftIds.has(d.id)) render alongside them as DraftResultCard.
  2. Unify concise header remake CTA (StudioResults.tsx):
    • Unify the section header button copy to 再做一版 (already translated in all 8 locales and matching the 再做一版 dialog title) instead of the redundant 9-char 用同一素材再做一个 jumping to 再做一版.
    • Keep 再做一版 reachable when variants.length > 0 even if hideLegacy is enabled.
  3. Un-squeeze card footer actions after download (StudioDownloadLink.tsx, quick-output.css):
    • Add .studio-reveal-link on the 打开所在文件夹 button (data-testid="reveal-in-folder-btn" preserved) and give it grid-column: 1 / -1; order: 10; under .studio-output-card .ac-card-actions so primary actions stay cleanly 2-up (下载成片 | 发布) without squeezing 3 buttons onto one row or wrapping 打开所在文件夹.

Verification

  • New regression test frontend/tests/rc159-2d37667d-regressions.test.cjs failed before the fix and passes after.
  • Full scripts/quality_gate.py passed (tracked_changes: false, all groups green).

@zhouxiaoka
zhouxiaoka merged commit 1fac151 into integration/1.5.9-rc Nov 22, 2026
13 checks passed
@zhouxiaoka
zhouxiaoka deleted the fix/rc159-stable-result-cards branch November 22, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant