Skip to content

feat(stacklet): brand as AssetDB (Preview) and link the Redash AssetDB (ENG-8329) - #13

Merged
Ahmore merged 7 commits into
stacklet/integrationfrom
dario/feat/ENG-8329-appselector-assetdb-v2
Aug 13, 2026
Merged

Ahmore merged 7 commits into
stacklet/integrationfrom
dario/feat/ENG-8329-appselector-assetdb-v2

Conversation

@Ahmore

@Ahmore Ahmore commented Aug 10, 2026 •

Copy link
Copy Markdown

SUMMARY

Brands this deployment AssetDB (Preview) while the Redash-backed AssetDB is
also deployed (its URL present in bootstrap stacklet.urls), and plain
AssetDB without Redash — getSupersetAppName() replaces the old constant.
Also adds an AssetDB entry pointing at Redash, so all four apps list the same set.

Includes Superset-local CSS (stackletSidebarOverrides.css) so the longer
pill fits the sidebar — tighter header padding/gap, 12px label, 24px logo —
gated on a stacklet-preview-branding class stamped only while Redash exists,
and marked for removal with it. Plain "AssetDB" keeps the component defaults.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screenshot 2026-08-11 at 11 26 29 Screenshot 2026-08-11 at 11 26 35

TESTING INSTRUCTIONS

Deployed to Dario's sandbox (this PR's image, f3f8770ab99d):
https://superset.dev.dariusz.sandbox.stacklet.dev

Open the sidebar app selector — the trigger reads AssetDB (Preview), with
AssetDB, Console and IaC in the dropdown.
npx jest src/stacklet → 16 passed (appSelector covers both names) and
npm run type → clean on @stacklet/ui 2.16.0.

ADDITIONAL INFORMATION

  • Has associated issue: ENG-8329
  • Changes UI

Superset ships alongside the Redash-backed "AssetDB" rather than
replacing it, so the two need distinct names in the app switcher. Rename
this deployment to "AssetDB v2", matching the entry the other apps now
render for it.

Needs the @stacklet/ui release that widens `V2AppName` to accept
"AssetDB v2" (stacklet/platform-ui ENG-8329).

fixes: ENG-8329
@Ahmore

Ahmore commented Aug 10, 2026

Copy link
Copy Markdown
Author

@greptile review

@greptile-apps

greptile-apps Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Greptile Summary

The PR conditionally brands Superset as AssetDB or AssetDB (Preview) based on Redash availability.

  • Adds the Redash-backed AssetDB to the application selector.
  • Updates @stacklet/ui to support the preview application name.
  • Adds preview-only sidebar sizing overrides and tests both branding states.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
superset-frontend/src/stacklet/appSelector.ts Adds Redash-aware application naming, selector entries, and development fallback behavior without an eligible follow-up defect.
superset-frontend/src/stacklet/StackletSidebar.tsx Uses the computed application name and conditionally scopes preview-only styling.
superset-frontend/src/stacklet/stackletSidebarOverrides.css Adds narrowly scoped layout adjustments for the longer preview label.
superset-frontend/src/stacklet/appSelector.test.ts Covers selector contents and branding with Redash present, absent, and under development fallback.
superset-frontend/package.json Updates @stacklet/ui to the release supporting AssetDB (Preview).
superset-frontend/package-lock.json Resolves the design-system dependency update to version 2.16.0.

Fix All in Greploop

Reviews (8): Last reviewed commit: "fix(stacklet): regenerate the lockfile w..." | Re-trigger Greptile

Now that this deployment is branded "AssetDB v2" there is no longer a name
clash, and AssetDB v2 was the only app you could not hop back to v1 from. The
`redash` key already ships in the bootstrap `stacklet.urls` payload, so gate the
entry on it like the other siblings and add it to the local-dev fallbacks.

fixes: ENG-8329
@Ahmore

Ahmore commented Aug 10, 2026

Copy link
Copy Markdown
Author

@greptile review

Product decision: no "v2" branding. This deployment is "AssetDB (Preview)"
while the Redash-backed AssetDB is still deployed alongside it, and takes
over the plain "AssetDB" name in environments without Redash — so the
constant becomes getSupersetAppName(), keyed on the bootstrap redash URL.

fixes: ENG-8329
@Ahmore Ahmore changed the title feat(stacklet): rebrand this deployment as AssetDB v2 (ENG-8329) feat(stacklet): brand as AssetDB (Preview) and link the Redash AssetDB (ENG-8329) Aug 11, 2026
@Ahmore

Ahmore commented Aug 11, 2026

Copy link
Copy Markdown
Author

@greptile review

The longer name overflows the app-selector pill past the sidebar edge with
the component defaults. Tighten the header row's padding and gap, drop the
label to 12px, and center-align the trigger so the tile icon sits level with
the smaller text — as Superset-local CSS on top of the scoped stylesheet,
keyed on the trigger's aria-label rather than minified utility classes,
so the shared @stacklet/ui component stays untouched.

fixes: ENG-8329
@Ahmore

Ahmore commented Aug 11, 2026

Copy link
Copy Markdown
Author

@greptile review

Shrink the logo to 24px alongside the smaller type, and apply the whole
override set only while the Redash-backed AssetDB exists — a
`stacklet-preview-branding` class stamped on the scope wrapper gates the
CSS, so the plain "AssetDB" branding keeps the component defaults. Both
the class and the stylesheet are marked for removal with Redash.

fixes: ENG-8329
@Ahmore

Ahmore commented Aug 11, 2026

Copy link
Copy Markdown
Author

@greptile review

@Ahmore
Ahmore marked this pull request as ready for review August 11, 2026 09:28
@Ahmore
Ahmore requested a review from a team as a code owner August 11, 2026 09:28
@Ahmore
Ahmore requested review from ephan and squidsoup August 11, 2026 09:28
2.16.0 widens `V2AppName` with "AssetDB (Preview)" (stacklet/platform-ui#3317),
which this branch's `selectedApp` needs — `tsc --noEmit` now passes. npm moved
the dependency into alphabetical order while resolving it.

fixes: ENG-8329
@Ahmore

Ahmore commented Aug 13, 2026

Copy link
Copy Markdown
Author

@greptile review

The previous commit's lockfile was written by npm 11, whose dedupe drops
nested entries npm 10 still expects, so `npm ci` in the image (npm 10.8.2)
refused it — "Missing: @noble/hashes@2.3.0 from lock file" — and the frontend
build then failed on a missing cross-env. Regenerated with npm 10 under
node 22 per the repo's engines, reducing the diff to the @stacklet/ui bump
alone. Verified with `npm ci --dry-run` on npm 10.8.2.

fixes: ENG-8329

@tvansteenburgh tvansteenburgh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks @Ahmore

@Ahmore
Ahmore merged commit 89605f3 into stacklet/integration Aug 13, 2026
3 checks passed
@Ahmore
Ahmore deleted the dario/feat/ENG-8329-appselector-assetdb-v2 branch August 13, 2026 13:33
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