Repository navigation
[NA] docs: add a guide to writing JavaScript panels; fix the reference header links - #3
Merged
Merged
Conversation
…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
had a problem deploying
to
integration
November 23, 2026 22:19 — with
GitHub Actions
Failure
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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): theMyPanel extends Comet.Panelcontract;this.plot(supported trace types, no directPlotlycalls) versus the panel's own HTML; HTML panels with their own markup, CSS, DOM code and pinnedresources; theComet.Panelhelpers; 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 withnpm run docs. Only the header changed; the method docs were already current.README.md: links the guide.Testing
npm run lintandnpm test(68 passing).examples/views/javascript/).format:checkcoverssrc,test,examples,webpackandscripts).🤖 Generated with Claude Code