Add a Description field to the Guide information dialog

Reuses the guide's existing descriptionHtml/descriptionText, which
already renders on the PDF cover and at the top of every other export
format, so it surfaces alongside author/co-authors/organization with
no exporter changes needed.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
2026-06-15 13:04:35 -05:00
co-authored by Claude Sonnet 4.6
parent 0b490e2aa9
commit 722c5d2eee
3 changed files with 35 additions and 4 deletions
+6 -2
View File
@@ -1574,9 +1574,13 @@ class GuideEditor {
async openGuideInfo() {
if (!this.guide) return;
await dialogs.showGuideInfoDialog({
values: this.guide.metadata || {},
onSave: async (metadata) => {
values: {
...this.guide.metadata,
description: htmlToPlainText(this.guide.descriptionHtml || ''),
},
onSave: async ({ description, ...metadata }) => {
this.guide.metadata = metadata;
this.guide.descriptionHtml = textToHtml(description);
await api.guide.save({ guide: this.guide });
this.onToast('Guide information saved.');
},