mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
Writing can now leave the module. Four outbound paths in this milestone: Markdown to clipboard, plain text to clipboard, .md file download, and a browser-native print / PDF. Plus a first cross-module hand-off: save as a read-later article. - utils/export.ts: pure helpers — draftToMarkdown (title as H1 + body), draftToPlainText, downloadFile via synthetic anchor + blob URL, fileStem (NFKD-normalise + slug-ify the title), and a copyTextToClipboard wrapper that falls back to document.execCommand for http contexts that can't touch navigator.clipboard. - draftsStore.recordPublish(draftId, module, targetId) — idempotent per (module, targetId), appends to draft.publishedTo with a publishedAt timestamp, emits WritingDraftPublished so the Workbench timeline picks up the hand-off. - ExportMenu.svelte: dropdown next to Generate / Checkpoint with five items. "Als Artikel speichern" calls articlesStore.saveFromExtracted with originalUrl='internal://writing/<draftId>' as both a dedupe-safe identifier and a back-reference to the source draft, then records the publish and navigates to the new article. - DetailView surfaces draft.publishedTo as green chips under the meta row, with a click-through to the articles reader. Only 'articles' has a landing page today; website / presi / mail / social-relay chips render the label without a link (they arrive with their own milestones). Not in M10: website-block publishing (M-website), presi import (M-presi), mail draft creation. Those each need per-target block / slide / message shapes that exceed this commit's scope. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| calc/packages/shared | ||
| calendar | ||
| cards | ||
| chat | ||
| citycorners | ||
| contacts | ||
| context | ||
| docs | ||
| food | ||
| guides | ||
| inventory | ||
| mana | ||
| manavoxel | ||
| memoro | ||
| moodlit | ||
| mukke | ||
| news | ||
| photos | ||
| picture | ||
| plants | ||
| presi | ||
| questions | ||
| quotes/packages/content | ||
| skilltree | ||
| storage | ||
| times | ||
| todo | ||
| traces | ||
| uload | ||