Skip to content

fix(ui/navbar): strip upstream version-tag decorations - #15

Merged
songkuan-zheng merged 1 commit into
ship/v1.83.10from
fix/navbar-decoration-cleanup
May 21, 2026
Merged

fix(ui/navbar): strip upstream version-tag decorations#15
songkuan-zheng merged 1 commit into
ship/v1.83.10from
fix/navbar-decoration-cleanup

Conversation

@songkuan-zheng

Copy link
Copy Markdown
Collaborator

Summary

Cleans up three upstream UI flourishes around the navbar version Tag that are noise for internal operators and one of which actively renders broken under our internal build pipeline.

Removed:

  • Bouncing 🌑 emoji + its companion useDisableBouncingIcon per-browser toggle (and the matching "Hide Bouncing Icon" Switch in UserDropdown that becomes a dead control)
  • <a href="docs.litellm.ai/release_notes"> link wrapping the version Tag — internal users have no reason to click their build number out to upstream marketing docs
  • <Tooltip> showing Upstream base / Build sha on hover — same data is one curl away at /health/readiness, and the tooltip silently rendered empty when buildSha wasn't injected (looked broken)
  • Hard-coded "v" prefix on the rendered version. We inject LITELLM_BUILD_TAG=v1.83.10-internal.N (with the leading v), so v{version} produced vv1.83.10-internal.4 in the navbar — observed live on maasllm.corp.anispark.ai

After: a single static Tag rendering litellm_version verbatim — v1.83.10-internal.4 on our builds, 1.83.10 on vanilla local runs without LITELLM_BUILD_TAG.

The dead hook file useDisableBouncingIcon.ts is intentionally left on disk — no remaining importers, zero runtime cost, and keeping it minimises rebase churn against upstream.

Test plan

  • npm run dev against e2e proxy on :4011 — version Tag is plain, no emoji, no hover Tooltip, no click navigation
  • User confirmed live on local dev session
  • Reviewer: skim the diff (small — 2 insertions / 59 deletions across 2 files)
  • Once merged + released, verify on a real internal build that the navbar shows v1.83.10-internal.N (single v)

Removes three upstream UI flourishes that are noise for internal-fork
operators and produced visible glitches against our injected
`LITELLM_BUILD_TAG`:

- bouncing 🌑 emoji (and its companion `useDisableBouncingIcon`
  per-browser localStorage toggle) — pure decoration, no signal value
- `<a href="docs.litellm.ai/release_notes">` wrapping the version Tag —
  internal users have no reason to click their build number out to
  upstream marketing docs
- `<Tooltip>` showing `Upstream base / Build sha` on hover — the same
  info is one curl away at `/health/readiness`, and the tooltip
  silently rendered empty when `buildSha` was missing (looks broken)
- hard-coded "v" prefix on the rendered version (`v{version}`) —
  collides with the leading "v" we inject via `LITELLM_BUILD_TAG`,
  producing `vv1.83.10-internal.4` in the navbar

The companion "Hide Bouncing Icon" Switch in UserDropdown becomes a
dead control once the emoji is gone, so it goes too. `useDisableBouncingIcon.ts`
is left on disk (no remaining importers) — keeping it minimises rebase
churn against upstream and the dead file has zero runtime cost.

After this change the navbar shows a single static Tag rendering
whatever `/health/readiness` returns in `litellm_version` — i.e.
`v1.83.10-internal.4` on our builds, `1.83.10` on a vanilla local
run with no build tag injected.
@songkuan-zheng
songkuan-zheng merged commit 49005b5 into ship/v1.83.10 May 21, 2026
1 check passed
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.

1 participant