Skip to content

Expand Create a Page guide with page context types#107

Merged
Corb3nik merged 1 commit intomainfrom
expand-page-context-guide-fcb484d6d439ea72
Mar 14, 2026
Merged

Expand Create a Page guide with page context types#107
Corb3nik merged 1 commit intomainfrom
expand-page-context-guide-fcb484d6d439ea72

Conversation

@caidobot
Copy link
Contributor

Summary

Expanded the "Create a Page" guide to comprehensively document all available page context types in the Caido frontend SDK.

Changes

  • Updated: src/guides/page.md
    • Added detailed "Page Context Types" section covering Assistant, Backups, Certificate, Exports, Intercept, and WebSocket page contexts
    • Each context type includes explanation of what it provides, how to access it, and practical code examples
    • Added "Working with Page Context and State" best practices section with guidance on context availability, selection handling, reactive updates, and proper cleanup

Coverage

This expansion addresses the gap identified in the SDK reference surface where:

  • The PageSDK provides access to different page context types (referenced in src/reference/sdks/frontend)
  • Developers needed clearer guidance on how to work with each context type
  • Missing examples for creating pages with specific contexts (Assistant, Backups, Certificate, Exports, Intercept, WebSocket)

SDK Surface Covered

  • Frontend SDK: PageSDK, Page context types (AssistantPageContext, BackupsPageContext, CertificatePageContext, ExportsPageContext, InterceptPageContext, WebSocketPageContext)

🤖 Generated with [Claude Code]((claude.com/redacted)

Generated by Doc-developer - Add Guides ·

…mentation

Added detailed sections covering all available page context types:
- Assistant Page Context
- Backups Page Context
- Certificate Page Context
- Exports Page Context
- Intercept Page Context (with request/response/websocket selections)
- WebSocket Page Context

Each context type now includes:
- Description of what the context provides
- Code examples showing how to access the context
- Practical example of creating a page for that context type
- Clear explanations of page-specific state

Also added a new "Working with Page Context and State" section with best practices:
- Checking context availability
- Handling selection changes
- Updating UI reactively
- Providing fallback UI
- Proper listener cleanup

This expansion makes the guide comprehensive for developers building context-aware pages for different sections of Caido.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@caidobot caidobot requested a review from Corb3nik as a code owner March 14, 2026 16:52
@caidobot caidobot temporarily deployed to expand-page-context-guide-fcb484d6d439ea72 - doc-developer PR #107 March 14, 2026 16:52 — with Render Destroyed
@Corb3nik Corb3nik merged commit 0a81019 into main Mar 14, 2026
4 checks passed
@Corb3nik Corb3nik deleted the expand-page-context-guide-fcb484d6d439ea72 branch March 14, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants