Skip to content

Render dimension URIs as links in pivot tables#9532

Draft
rohithreddykota wants to merge 1 commit into
mainfrom
rohithreddykota/pivot-dimension-uri-links
Draft

Render dimension URIs as links in pivot tables#9532
rohithreddykota wants to merge 1 commit into
mainfrom
rohithreddykota/pivot-dimension-uri-links

Conversation

@rohithreddykota

Copy link
Copy Markdown
Contributor

Metrics view dimensions that define a uri template render as clickable links in the explore leaderboard but not in pivot tables. This change brings parity for flat pivots.

  • pivot-data-store.ts: For flat pivots, createTableCellQuery now appends getURIRequestMeasure(...) for any row dimension whose spec has uri defined — the same computed measure the leaderboard uses.
  • pivot-column-definition.ts: getFlatColumnDef reads the <dim>__rill_uri value from each row and renders PivotDimensionCell via makeHref when a URI resolves.
  • PivotDimensionCell.svelte: New cell component — renders the value with an external-link icon that appears on hover, matching the leaderboard's link affordance.

Nested pivot tables are left unchanged; can be a follow-up if needed.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Developed in collaboration with Claude Code

Flat pivot tables now request the computed `__rill_uri` measure for any
row dimension whose spec defines a `uri` template, and render the cell
with an external link icon on hover. Mirrors the existing leaderboard
behavior so URIs work consistently across explore and pivot views.
@rohithreddykota rohithreddykota marked this pull request as draft June 8, 2026 19:07
config.time,
rowDimensionNames,
);
if (uriField) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets move this check a level above, that way we only branch based on uri field during column definition construction vs on every cell.

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.

2 participants