mirror of
https://github.com/bitbaum/writingkit.git
synced 2026-12-04 21:58:22 +01:00
* feat: charts in articles and suggestions the writer accepts or rejects (0.3.0) - ```chart blocks (JSON or CSV spec): parseChartBlock, splitChartBlocks, table fallbacks for RSS/share cards (chartsToTables), chartValuesNotInText so a proposed chart draws only the writer's own numbers - @bitbaum/writingkit/react/chart: ArticleChart / ArticleChartBlock drawn by @bitbaum/chartkit (new optional peer) - Suggestion, applySuggestion (refuses stale text), wordDiff, SuggestionCard - suggestMedia: a chart beside the paragraph with figures, else an illustration - ArticleComposer: renderChart in Preview; draft-from-brief is a suggestion Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * feat(chart): read bip-kit's series-line format too Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(suggestions): show a rewrite whole; keep Publish the one primary action Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn --------- Co-authored-by: Claude <noreply@anthropic.com>
59 lines
3.0 KiB
JavaScript
59 lines
3.0 KiB
JavaScript
export const DEFAULT_COMPOSER_LABELS = {
|
|
titleLabel: "Title",
|
|
titlePlaceholder: "Say it in one line",
|
|
bodyLabel: "Article",
|
|
bodyPlaceholder: "Write here — or press Speak and say what you want written. Paragraphs are enough; Markdown works for headings, lists, links and quotes.",
|
|
tabWrite: "Write",
|
|
tabPreview: "Preview",
|
|
previewEmpty: "Nothing to preview yet.",
|
|
toolsLabel: "Add to the article",
|
|
speak: "Speak",
|
|
photo: "Photo",
|
|
chart: "Chart",
|
|
formatLabel: "Format",
|
|
heading: "Heading",
|
|
bold: "Bold",
|
|
quote: "Quote",
|
|
list: "List",
|
|
link: "Link",
|
|
speakTitle: "Say what to write",
|
|
speakHelp: "Tell it what to write and how (“an angry piece, 400 words, about…”), or dictate the text itself.",
|
|
speakBrief: "What should it say?",
|
|
speakPlaceholder: "Speak or type your brief…",
|
|
speakWrite: "Write the article from this",
|
|
speakWriting: "Writing…",
|
|
speakInsert: "Put these words in the text",
|
|
speakSignIn: "Sign in to have the article written for you; dictation works without.",
|
|
chartTitle: "Add a chart",
|
|
chartHelp: "A bar, ranking, line or area chart drawn from numbers you type. The block lands in the text; change the title, the names and the points — or write a header row and rows of numbers, like a spreadsheet.",
|
|
chartInsert: "Insert the chart block",
|
|
chartProblem: (problem) => `This chart cannot be drawn yet: ${problem}`,
|
|
suggestionAccept: "Use this",
|
|
suggestionReject: "Keep mine",
|
|
suggestionStale: "Your text changed after the suggestion was made, so it was not applied. Ask again with the current text.",
|
|
improveSuggestionsBody: [
|
|
"Fix spelling and grammar, change nothing else",
|
|
"Make it tighter",
|
|
"Add a short counter-argument and answer it",
|
|
"Give it a clearer opening",
|
|
],
|
|
improveSuggestionsTitle: ["Make it sharper", "Make it shorter"],
|
|
titleInstruction: (instruction) => `Change only the title: ${instruction}. Return the article body unchanged.`,
|
|
assistChanged: "You used the suggestion.",
|
|
assistUndo: "Undo",
|
|
assistFailed: "Writing help could not answer just now. Your text is unchanged; try again, or write on by hand.",
|
|
publish: "Publish",
|
|
publishing: "Publishing…",
|
|
saveChanges: "Save changes",
|
|
signInToPublish: "Sign in to publish",
|
|
saveDraft: "Save as draft",
|
|
savingDraft: "Saving…",
|
|
publishFailed: "The article could not be saved. Try again.",
|
|
publishUnreachable: "The article could not be sent. Check your connection and try again.",
|
|
wordCount: (words, minutes) => `${words} ${words === 1 ? "word" : "words"} · ${minutes} min read`,
|
|
draftKept: "Draft kept on this device.",
|
|
draftRestored: (at) => `Draft from ${at} restored`,
|
|
publishedAs: (name) => `Published as ${name}. Anyone with the link can read it; you can edit or delete it later. Ctrl/⌘ + Enter publishes.`,
|
|
signedOutNote: "Your draft stays on this device while you sign in or create an account; nothing is lost.",
|
|
};
|