Repository navigation
feat(reports): add composable experiment reports and line charts - #48
Merged
Merged
Conversation
marcfranquesa
force-pushed
the
feat/experiment-reports
branch
from
October 6, 2026 23:58
6b958aa to
d64cc2e
Compare
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.
Adds per-experiment reports declared in an optional
report.yaml, with Markdown, line-chart, and responsive row blocks. Static builds embed reports and their data in an offline snapshot; live serving refreshes reports from the same source as the experiment metadata.Line charts show a dot for every recorded value, preserve missing-value gaps, and align card heights within rows. Keyboard inspection and semantic data tables provide access to values. SVG legend swatches use the same colors and exact dash patterns as the plotted lines.
Report loading batches selected experiment IDs, enumerating each parent directory once per batch while preserving exact-name checks, directory confinement, and source/data limits. Reports support configured experiment directories and nested IDs. Build and serve share the CLI snapshot loader; build remains local-only, while serve chooses source winners before loading reports. The web handler receives snapshots rather than reading project files.
Browser code is grouped under
internal/web/assets, with markup undertemplates.assets.goowns embedding and explicit dependency order. Graph, page navigation, report focus/state, and live polling have separate owners. Palette tokens, shared report layout, and line-specific styling are separate; static output still includes all assets inline. Live refresh preserves the selected catalog view and focused links when a source's remote URL changes.Missing CSV results display an unavailable state. Invalid report configuration or data fails the build without replacing its snapshot, and live refresh retains the last valid view. Includes documentation and example fixtures.
Validation:
go test -race ./...,go vet ./..., JavaScript syntax checks, andgit diff --checkpassed after integration with configurable experiment layouts.6b958aa.