MeshChatX
MeshChatX copied to clipboard
[Feature]: Improve Micron publishing flow for multi-page sites
MeshChatX version
4.8.6
Operating system
All platforms
Problem or use case
The Micron editor can already publish a set of pages through the PublishSiteModal, but the publishing flow is still tedious and the post-publish navigation only opens the single last-published page in the Nomad browser.
Current pain points:
publishToNodeinMicronEditorPage.vueonly publishes the currently active tab, then prompts to open that one page.publishSitepublishes multiple pages and can generate anindex.mu, but after publishing it only offers to openlastSavedName(the final page written) instead of the site root or the index.- There is no preview of the generated
index.mubefore it is uploaded. - There is no easy way to edit or replace an existing page without leaving the editor and going to Mesh Server.
- Tab ordering and filenames in
PublishSiteModal.vueare editable, but the modal is buried in the publish menu and not surfaced as the default flow.
Proposed solution
Make site publishing the default and reduce the number of clicks:
- Default to the site-publish flow. When the user clicks
Publish, show a compact preview of the generatedindex.muand the list of pages that will be uploaded, with the option to rename or exclude individual pages. - Replace the per-tab
publishToNodequick action with a singlePublish open tabsaction that re-usesPublishSiteModallogic but pre-selects the current node. - After a successful site publish, offer to open the node root (
/page/index.mu) in Nomad, or the whole node in a new tab, not just the last page name. - Add a
Replace existing pageoption when a filename collides, so users can iterate without deleting pages in Mesh Server first. - Persist the last selected page node for the editor and remember the site mapping (tab id to published filename) so re-publishing the same site is one click.
- Add a
View in Nomadlink in the publish success toast that opensdestinationHash:/page/index.mu.
Alternatives considered
- Keep the current split between quick single-page publish and site publish. Rejected because it still leaves the tedious single-page path as the primary action.
- Open the generated index automatically after every site publish. Rejected because users may want to stay in the editor; it should be an explicit opt-in via the success toast.
Additional context
Relevant code:
MicronEditorPage.vuelines 1261-1275 (openPublishedInNomadNet)MicronEditorPage.vuelines 1297-1325 (createMeshServerAndPublish)MicronEditorPage.vuelines 1326-1366 (publishToNode)MicronEditorPage.vuelines 1377-1391 (buildSiteIndexPage)MicronEditorPage.vuelines 1392-1473 (publishSite)PublishSiteModal.vuelines 270-287 (submit/ site payload)meshchatx/src/backend/http/routes/page_nodes.py(page CRUD and overwrite behavior)