docs(webhooks): restyle per-arm wire reference (table layout)#64
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
Disabled knowledge base sources:
📝 WalkthroughWalkthroughThis PR restructures the webhook content documentation from multiple per-arm accordions into a single unified reference table. It enumerates wire-projected fields for each ChangesWebhook Content Wire Reference Documentation
🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…e-restyle # Conflicts: # docs-src/webhooks/events.mdx.vel
|
Resolved merge conflict with Conflict:
Git auto-applied the AccordionGroup removal everywhere except at the boundary line where Resolution: Kept Verified: |
|
Added a follow-up commit cross-linking
No new sections were added — all three anchors already existed in the file. Build / typecheck / lint clean. |
|
Heads up — the cross-linking follow-up I pushed in Superseded by #67, which uses the same shape already proven to render in production ( |
Summary
The previous per-arm reference under Per-arm wire reference was a stack of
<Accordion>rows (one perContentarm) that rendered as a cramped, chevron-collapsed list — name + one-line description visible, the actual wire fields hidden behind a click. Switched to a clean table for at-a-glance scannability, matching the style used by the CLI flags reference and similar tabular sections elsewhere in the docs.field: type, comma-separated) so nothing is lost; the existing per-field "Discriminator." rows just disappear (the discriminator value is the row label).rename+ the unknown-future-arm fallback) are pulled into a small separate table below the main one, prefixed with Forward-compat arms in bold prose, so they're visually distinguished from the 12 published arms.attachment/voice/contact.photo,targetslim-ref pointer forreaction/reply/edit,richlinkOG-fetch rationale, generic-fallback guidance) are preserved as a short bullet list between the two tables and as a closing reminder, rather than being repeated inside each row.No content changes — every arm previously documented (
text,attachment,voice,contact,richlink,reaction,reply,edit,group,effect,typing,custom,rename, plus the unknown-future-arm fallback) is still documented, just in a cleaner layout. The section heading anchor (#per-arm-wire-reference) is preserved, as is the lead-in paragraph, the surrounding Content shapes section, the byte-bearing<Warning>, and the Target refs section below.Net change: 1 file, +28 / -120 lines.
Test plan
pnpm docs:generate— vellum builds successfully, all 32 templates renderpnpm typecheck:docs— all code blocks type-check and format cleanpnpm lint— cleanMerge conflicts
Will conflict with the other in-flight PRs that touch
docs-src/webhooks/events.mdx.vel:<Note>block immediately above the<AccordionGroup>. Conflict at the boundary line; trivial to resolve (keep the<Note>, then this PR's two tables).<Warning>above this section; should not collide with the per-arm tables themselves.The changes are in disjoint sub-sections within the same surrounding
## Body shapeparent — resolve at merge time.Made with Cursor
Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit
contentfield reference documentation from accordion sections to a consolidated table format for improved readability and clearer guidance on all content types and forward-compatibility handling.