Repository navigation
Conversation
Owner
|
@ateto3, CI/Frontend check failed. Please resolve this issue before we can preview your PR. Thank you. |
Contributor
Author
Lint / CI fixesThe
|
… file loading logic
Owner
|
@ateto3, I noticed that all the checks passed yesterday, but today the frontend check is failing again. Please see the screenshot below for details and try to fix the issue. Thank you! |
Contributor
Author
Contributor
Author
|
The CI test failure was due to a locale formatting difference. My local environment (Spanish/European) renders I've updated the assertion in |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
First architectural step toward #359: a deterministic “prepare publication” flow that combines multiple Markdown files into a single structured draft and generates a table of contents. AI-assisted editing and final export are intentionally out of scope for this PR — this establishes the pipeline and UI entry point.
Changes
POST /api/markdown/publication/prepareendpoint that accepts an ordered list of files and returnscombined,toc, andfile_count. Reuses the existing_extract_outlinehelper for heading extraction (ATX, Setext, fenced-code aware).Markdown.preparePublicationwrapper routed through the shared authenticated backend proxy (proxy_backend_request), matching the existingMarkdown.wordCountpattern.PublicationPanellets the user select open tabs, reorder them, and preview the combined draft + generated TOC. Toggle button added to the toolbar via the existingPANELSmechanism.preparePublicationhelper covered with the repo'snode --testrunner (mocked shared API, empty-selection rejection).Not included (future PRs)
How to test
Checklist
_extract_outlinelogicproxy_backend_requesttransport (no raw fetch)node --testcompatibleRefs #359