Skip to content

Add Html payload helper type#67

Merged
Dig-Doug merged 1 commit intomainfrom
html-helper
Feb 28, 2026
Merged

Add Html payload helper type#67
Dig-Doug merged 1 commit intomainfrom
html-helper

Conversation

@Dig-Doug
Copy link
Owner

Summary

  • Add Html wrapper type and Payload::html() constructor in shared crate, mirroring the existing Markdown helper
  • Add PayloadBuilder::html() for named HTML payloads
  • Add Html { raw } variant to PayloadOrPointerResponse with text/html MIME type handling on the server
  • Add htmlPayload() NAPI method on ObservationBuilder for Node.js bindings
  • Update OpenAPI spec with new Html variant

Test plan

  • cargo build --workspace --all-features compiles successfully
  • Verify HTML payloads render correctly in the web UI
  • Test NAPI htmlPayload() from Node.js

🤖 Generated with Claude Code

Add Html wrapper type, Payload::html() constructor, PayloadBuilder::html(),
and NAPI htmlPayload() method for creating HTML observations. Add Html
variant to PayloadOrPointerResponse for server-side rendering support.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Dig-Doug Dig-Doug merged commit 2df33f4 into main Feb 28, 2026
1 check passed
@Dig-Doug Dig-Doug deleted the html-helper branch February 28, 2026 14:29
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.

1 participant