Skip to content

fix(content-editor): open Export on its options, Before you publish a Review away - #1471

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:fix/export-opens-options
Oct 24, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:fix/export-opens-options

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

In the Content Editor, Export and Send to CMS opened the same "Before you publish" screen; only the last button's words told them apart ("Continue to export" / "Continue to send"). Exporting took an extra screen every time.

Now

  • Export opens on its options at once. This covers the header's Export button and Next step's "Export" once a page is ready.
  • One line over the options says what Before you publish has, with Review:
    • in amber, what it warns about: "Before you publish: Trust 45, below 60 · no author yet.";
    • otherwise a quiet line: "Before you publish has the author, dates and schema (JSON-LD) for your CMS." Pages that aren't articles get their own wording.
  • Review opens Before you publish. Its "Continue to export" comes back to Export on the destination it was on (Copy HTML's HTML stays HTML).
  • Send to CMS and Mark ready keep the Before you publish screen first.

Related issue

User report (tested on app.ansvisor.com): Export and Send to CMS open the same screen; Export should go straight to its options.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. With Quality on, click Export in the editor header. The format and platform options open directly.
  2. On a page with no author, or with Trust under 60, the amber line names it. Click Review: Before you publish opens. Continue to export returns to Export.
  3. With a placeholder open, Copy HTML opens Export on HTML. Review → Continue keeps HTML.
  4. Send to CMS and Mark ready still open Before you publish first.

The browser check (both themes, 1024 px) is still owed, batched with the other editor fixes.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Web: yarn test (CHECK_TESTS) and yarn build pass.

🤖 Generated with Claude Code

cihan-gyk and others added 2 commits October 24, 2026 22:18
… Review away

Export and Send to CMS opened the same Before you publish screen, only
the button's words told them apart. Export (the header's and Next
step's) now opens on its options at once, with one line over them: amber
with what Before you publish warns about (Trust under 60, no author),
else a quiet line where the author, dates and schema are, and Review
opening it (its Continue comes back to Export). Send to CMS and Mark
ready keep the check screen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ame what Before you publish has

Pre-push review fixes: Review → Continue returns to the destination
Export opened on (Copy HTML's HTML); a page that isn't an article gets a
quiet line without dates or JSON-LD; Review is named "Review Before you
publish".

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One small follow-up:

  1. (low) After Review, Continue goes back to the destination Export opened on (exportOpen.destination, _draft-editor.tsx:2700), not the one picked in the dialog.

    • From the header this works: the pick is stored, and storedDestination() reads it back. It doesn't work without storage (a private window), where it falls back to Word.
    • From Copy HTML, Export opens on HTML. Someone who switches to Word and then presses Review comes back on HTML.

    Fix: have PublishLine call onReview(destination) with the dialog's current destination (_export-dialog.tsx:664), and pass that to openBeforePublish('export', …).

@gkhngyk
gkhngyk merged commit 5f8a525 into ansvisor:main Oct 24, 2026
6 checks passed
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.

2 participants