Skip to content

[NA] docs: add a guide to writing JavaScript panels; fix the reference header links - #3

Merged
dsblank merged 1 commit into
masterfrom
docs/panels-guide
Nov 23, 2026
Merged

dsblank merged 1 commit into
masterfrom
docs/panels-guide

Conversation

@dsblank

@dsblank dsblank commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a guide to writing JavaScript panels, so people and coding agents have one place that states the panel contract and what a panel can do. The Comet docs site will link here for the reference instead of hosting it.

  • docs/panels.md (new): the MyPanel extends Comet.Panel contract; this.plot (supported trace types, no direct Plotly calls) versus the panel's own HTML; HTML panels with their own markup, CSS, DOM code and pinned resources; the Comet.Panel helpers; what a project token can read and the calls it refuses; the data shapes the server returns (checked against a live project); best practices; testing a panel outside Comet.
  • docs/header.md: replaces two dead v1 links (/docs/user-interface/panels/, /docs/javascript-sdk/getting-started/) with the guide and current docs pages, and notes the project-token limits.
  • docs/api.md: regenerated with npm run docs. Only the header changed; the method docs were already current.
  • README.md: links the guide.

Testing

  • npm run lint and npm test (68 passing).
  • The guide's examples and data shapes come from panels run against a live project with the published 2.0.0 bundle (the tested panels are in comet-python-sdk examples/views/javascript/).
  • Markdown is not formatted with Prettier, as before (format:check covers src, test, examples, webpack and scripts).

🤖 Generated with Claude Code

…der links

- docs/panels.md: the panel contract, HTML panels, Comet.Panel helpers,
  what a project token can read, data shapes, best practices, testing
- docs/header.md: replace two dead v1 links; note project-token limits
- docs/api.md: regenerated with npm run docs (header only)
- README: link the guide

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dsblank dsblank changed the title docs: add a guide to writing JavaScript panels; fix the reference header links [NA] docs: add a guide to writing JavaScript panels; fix the reference header links Nov 23, 2026
@dsblank
dsblank deployed to integration November 23, 2026 22:27 — with GitHub Actions Active
@dsblank
dsblank merged commit b779b3a into master Nov 23, 2026
10 of 12 checks passed

This branch was successfully deployed

1 active deployment
integration — dfbaab04 Deployed Nov 23, 2026 by dsblank via Integration (comet.com) #7
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