feat(playground): show the ODC version in the actions menu - #1520
Merged
Conversation
Adds the monorepo version to the bottom of the "..." menu, below a separator. The version is read from the root package.json in vite.config.ts and supplied as __APP_VERSION__, rather than through the __RELEASE__ define apps/web uses: @opendatacapture/release-info pulls in @opendatacapture/schemas, which ships raw TypeScript, so loading it here would mean running this config under tsx as apps/web does. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Collaborator
Author
joshunrau
approved these changes
Sep 1, 2026
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 the ODC version to the bottom of the playground's
...menu, under a separator.How the version gets there
Read from the root
package.jsoninvite.config.tsand supplied as__APP_VERSION__, alongside the existing__GITHUB_REPO_URL__define.Not the
__RELEASE__defineapps/webuses:@opendatacapture/release-infopulls in@opendatacapture/schemas, which ships raw TypeScript, so importing it here fails to load the config unless the playground'sdevandbuildscripts run Vite underNODE_OPTIONS='--import=tsx'the wayapps/webdoes. Reading the file directly avoids changing how this app builds and adds no dependency.Tests
None. The playground has no
vitest.config.ts, andtesting/'s Playwright config only starts api, gateway and web — so there is no harness this could hook into without adding a webServer entry for an app that downloads an 11 MB wasm on boot.Verified by hand instead: loaded the dev server, opened the menu, confirmed
ODC Version 2.2.3renders with no page errors.🤖 Generated with Claude Code