Skip to content

Move story import into a modal with drag-and-drop - #513

Merged
mtaanquist merged 2 commits into
developfrom
feat/import-modal
Jul 30, 2026
Merged

Move story import into a modal with drag-and-drop#513
mtaanquist merged 2 commits into
developfrom
feat/import-modal

Conversation

@mtaanquist

Copy link
Copy Markdown
Owner

UX pass item 3: importing from the library no longer lands on the settings page next to the danger zone. The New menus and the settings Import block open a modal instead: pick or drop a file (zip, docx, epub), the preview runs at once, then confirm.

  • New ImportStoryModal on the design pass's modal primitive; scoped drop-zone styles; the import-report markup and styles moved in from the settings page.
  • The form posts to the target universe's existing previewImport/runImport actions from wherever the modal is mounted; server flow unchanged. The chosen file rides both submits.
  • Library importItem entries open the modal with the right universe; the settings section keeps a single "Import a story..." button.
  • import-story.spec drives the modal from the library menu; getting-started doc updated.

Verified locally: lint, check, import-story and universe-settings specs green.

🤖 Generated with Claude Code

Importing from the library no longer lands on the settings page next to
the danger zone. The New menus and the settings Import block open a
modal instead: pick or drop a file (zip, docx, epub), the preview runs
at once, then confirm. The form posts to the target universe's existing
actions from wherever the modal is mounted, so the server flow is
unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mtaanquist
mtaanquist marked this pull request as ready for review July 30, 2026 18:46
Missed when import-story.spec moved: this one now exercises the
settings-page entry point.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mtaanquist
mtaanquist merged commit 5268cfe into develop Jul 30, 2026
3 checks passed
@mtaanquist
mtaanquist deleted the feat/import-modal branch July 30, 2026 18:54
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