Skip to content

feat(ui/bucketweb): show block labels in span tooltip on hover#8856

Open
BRGOVIND wants to merge 4 commits into
thanos-io:mainfrom
BRGOVIND:feat/bucketweb-block-label-tooltip
Open

feat(ui/bucketweb): show block labels in span tooltip on hover#8856
BRGOVIND wants to merge 4 commits into
thanos-io:mainfrom
BRGOVIND:feat/bucketweb-block-label-tooltip

Conversation

@BRGOVIND

Copy link
Copy Markdown

Problem

In the bucketweb block timeline, hovering over a block span shows no information. Users must click each block to open the BlockDetails side panel to see its thanos.labels — an unnecessary interruption when scanning a large number of blocks.

Fixes #8506

Solution

Add a native title tooltip to each BlockSpan button. On hover the browser shows:

01JXXXXXXXXXXXXXXXXXXXXXX
{replica="prometheus-0", tenant_id="team-a"}

The ULID is always shown; the label set appears on the second line in Prometheus label syntax. Blocks with no labels show only the ULID.

A small blockTooltip() helper builds the string — no third-party tooltip library required.

Files changed

File Change
pkg/ui/react-app/src/thanos/pages/blocks/BlockSpan.tsx Add blockTooltip() helper and title prop to the block button

Testing

  1. Run make ui-build and start the bucket web UI connected to an object store.
  2. Hover over any block span in the timeline.
  3. Verify the tooltip shows the ULID and label set.
  4. Verify blocks with empty thanos.labels show only the ULID.

Signed-off-by: B R GOVIND brgovind2005@gmail.com

Hovering over a block span in the timeline now shows a native browser
tooltip with the block ULID on the first line and its thanos labels
(`{key="value", ...}`) on the second line.

Previously the only way to see a block's labels was to click the span
and open the BlockDetails side panel, which is disruptive when scanning
many blocks.

The new `blockTooltip` helper renders the ULID + label-set in
Prometheus label syntax. Blocks with no labels show only the ULID.
No layout changes required.

Fixes thanos-io#8506

Signed-off-by: B R GOVIND <brgovind2005@gmail.com>
Regenerate pkg/ui/static/react/ to include the updated JS bundle
produced by adding the blockTooltip helper and title attribute to
BlockSpan.tsx. Built with Node 14 to match CI environment.

Signed-off-by: B R GOVIND <brgovind2005@gmail.com>
BRGOVIND added 2 commits June 16, 2026 08:33
Rebuild pkg/ui/static/react/ using Node 14 inside a Docker container
with a Linux git clone, matching the exact CI environment. This fixes
the CSS source map content which previously had CRLF line endings from
a Windows-mounted Docker build.

Signed-off-by: B R GOVIND <brgovind2005@gmail.com>
Signed-off-by: B R GOVIND <brgovind2005@gmail.com>
@BRGOVIND

Copy link
Copy Markdown
Author

Friendly ping — this is a small UI-only change that surfaces block labels in the bucket-web span tooltip on hover. CI is green. Happy to rebase or tweak the UX if a maintainer has a chance to take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bucketweb labels for status row always visible

1 participant