Skip to content

feat(frontend): improve lazy draft route handling#765

Merged
horacioh merged 8 commits into
mainfrom
lazy-draft-document-machine
Jun 11, 2026
Merged

feat(frontend): improve lazy draft route handling#765
horacioh merged 8 commits into
mainfrom
lazy-draft-document-machine

Conversation

@horacioh

@horacioh horacioh commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Reserve new public draft routes before persistence so users can enter the editor immediately without creating empty draft records.
  • Route private drafts through opaque generated paths and preserve the correct discard/return behavior.
  • Add draft-shell, breadcrumb, child-creation, and editor change-detection coverage for lazy and private draft flows.

Fixes #658 #751

horacioh added 8 commits June 11, 2026 12:45
Navigate newly created drafts through reserved placeholder paths so empty drafts
can be materialized later with the correct public or private anchors. Add shared
helpers and tests for reserved draft IDs, breadcrumbs, resource pages, and editor
change handling.
Create private drafts immediately with generated non-dashed paths, remember their parent return route, and hide child-draft creation actions where documents cannot create children.
Encode server handoff stream strings as bytes before streaming responses.
Keep /hm profile tab URLs routed to the registered account document, and run Vitest files sequentially without forcing a single fork.
Exercise a visible mobile navigation control instead of checking React private internals, making the browser hydration test assert user-facing interactivity.
Skip the browser hydration test while replacing the removed client-side signal with a CI-safe check.
@horacioh horacioh merged commit 0199b7d into main Jun 11, 2026
8 checks passed
@horacioh horacioh deleted the lazy-draft-document-machine branch June 11, 2026 20:43
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.

Bug: Article shows as "draft" in card view even though it is published and unchanged

1 participant