Repository navigation
Show the Lightspeed version in the user menu - #193
Merged
Merged
Conversation
The web build now defines __LIGHTSPEED_VERSION__ from LIGHTSPEED_RELEASE_VERSION, which release builds export, falling back to LIGHTSPEED_PRODUCT_VERSION in release/metadata.env for local builds. The user menu ends with a muted "Lightspeed v<version>" line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Dan Filimon <dg@trifrons.com>
…e menu so that the cursor doesn't have to fly over it and can go directly to the first items. Also add the name so that all versions of the sidebar have this information accessible.
Collaborator
|
Hi @dfilimon , |
Contributor
Author
|
@dankrusi yeah, this looks nicer! Thanks! |
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.


Closes #192.
The user menu in the sidebar footer now opens with the user's name, email and a muted "Lightspeed v0.11.0" line. The name also fills a gap in the collapsed sidebar, which showed no name before.
platform/web/vite.config.tsdefines__LIGHTSPEED_VERSION__at build time fromLIGHTSPEED_RELEASE_VERSION, whichscripts/release/build-dist.shexports beforenpm run build. Builds without it (local dev, tests) readLIGHTSPEED_PRODUCT_VERSIONfromrelease/metadata.env, so they show the current product version rather than0.0.0.src/vite-env.d.tsdeclares the constant.src/components/user-menu.tsxrenders it in the label at the top of the menu, under the name and email, so the cursor reaches the first item without crossing it (@dankrusi's revision).src/components/user-menu.test.tsxchecks the version line in the menu's label.The SPA and the backend ship in the same platform image, so the version in the page matches the server and no backend endpoint is needed.
Checks:
npm run typecheckandnpm run testinplatform/web(165 files, all pass),vite build(bundle containsLightspeed v0.11.0),npm run check:identity. Checked by eye in the demo build (npm run dev:demo).🤖 Generated with Claude Code