Skip to content

feat(editor): offer the full meeting record outline and refuse pasted frontmatter - #193

Merged
m1ngsama merged 1 commit into
mainfrom
feat/archive-meeting-outline
Sep 30, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
feat/archive-meeting-outline

Conversation

@m1ngsama

Copy link
Copy Markdown
Member

Closes #191. Members still copied an old record to get its structure, and pasting one with its --- block broke lint on #192, because the editor adds its own on submit.

  • The "结构" button on a new archive page now inserts the full outline: info block, [[toc]], a first section and the attendee appendix. The recorder line is filled with the signed-in member's GitHub link.
  • A draft that opens with a frontmatter block cannot be submitted, and the editor says why.
  • The reason a submit button is disabled shows above the draft again. It was dropped in 52a20ca, so a greyed-out button gave no explanation.

Checked on the built site with a mocked GitHub session: the outline inserts, the hint clears once the title is written, and pasting a frontmatter block disables submit with the message. No existing page body starts with ---, so editing an existing page never trips the check.

… frontmatter

The outline now carries the table of contents, a first section and the attendee appendix, with the signed-in member filled in as recorder. A draft that opens with its own --- block is held back, since the editor prepends the real one on submit; the reason a submit is disabled is shown again above the draft.
@m1ngsama
m1ngsama requested a review from sheepkinn as a code owner September 30, 2026 03:28
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying documents with  Cloudflare Pages  Cloudflare Pages

Latest commit: f01aeab
Status: ✅  Deploy successful!
Preview URL: https://464dd1dc.documents-dq4.pages.dev
Branch Preview URL: https://feat-archive-meeting-outline.documents-dq4.pages.dev

View logs

@m1ngsama
m1ngsama merged commit c36b777 into main Sep 30, 2026
5 checks passed
@m1ngsama
m1ngsama deleted the feat/archive-meeting-outline branch September 30, 2026 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 在线编辑存档文档时增加预设模板

1 participant