Skip to content

Show the Lightspeed version in the user menu - #193

Merged
dfilimon merged 2 commits into
mainfrom
feat/ui-version
Nov 18, 2026
Merged

dfilimon merged 2 commits into
mainfrom
feat/ui-version

Conversation

@dfilimon

@dfilimon dfilimon commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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.ts defines __LIGHTSPEED_VERSION__ at build time from LIGHTSPEED_RELEASE_VERSION, which scripts/release/build-dist.sh exports before npm run build. Builds without it (local dev, tests) read LIGHTSPEED_PRODUCT_VERSION from release/metadata.env, so they show the current product version rather than 0.0.0.
  • src/vite-env.d.ts declares the constant.
  • src/components/user-menu.tsx renders 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.tsx checks 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 typecheck and npm run test in platform/web (165 files, all pass), vite build (bundle contains Lightspeed v0.11.0), npm run check:identity. Checked by eye in the demo build (npm run dev:demo).

🤖 Generated with Claude Code

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>
@dfilimon
dfilimon requested a review from dankrusi November 18, 2026 12:56
…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.
@dankrusi

Copy link
Copy Markdown
Collaborator

Hi @dfilimon ,
Thanks for the change. Are you okay with this?
image
It also fixes the missing name information in collapsed sidebar:
image
Best,
-dan

@dfilimon

Copy link
Copy Markdown
Contributor Author

@dankrusi yeah, this looks nicer! Thanks!

@dfilimon
dfilimon merged commit b304ae8 into main Nov 18, 2026
5 checks passed
@dfilimon
dfilimon deleted the feat/ui-version branch November 18, 2026 21:30
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.

Show the Lightspeed version in the web UI

2 participants