Skip to content

ux(brands): slim brand list card to nav-menu shape (#154) - #156

Merged
gkhngyk merged 1 commit into
mainfrom
feat/brand-card-nav-shape
Jun 3, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
feat/brand-card-nav-shape

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Closes #154.

Summary

  • Strips the /dashboard/brands card down to avatar + name + primary domain plus three full-width nav rows: Add Topics, Add Prompts, Settings.
  • Each row uses a real <Link> (so middle-click → new tab works) and calls setActiveBrand on click.
  • Topics and Prompts rows expose a trailing + button that jumps to the destination page's add form via the new #add-topic / #add-prompt anchors. Settings keeps the chevron — it has no quick-add equivalent.
  • Drops the gradient cover, visibility hero, sparkline, 3-stat strip, View Insights CTA, StatusPill, and the more-menu dropdown. The Insights page is one click away in the sidebar and is the right home for that detail.
  • getBrandsCardSummary call removed from the brands list page since BrandCard no longer consumes it. The action itself stays in brand.ts per the issue's "leave the action in place" note.
  • Card height drops ~50% per the issue, grid layout unchanged.

Acceptance criteria

  • Cards render only avatar, name, domain, three nav rows
  • Each nav row navigates AND sets the brand as active in the store
  • Active brand still shows the ring-2 ring-primary outline
  • No more colored cover / sparkline / 3-stat strip / View Insights button
  • yarn tsc --noEmit + yarn lint clean
  • summary prop dropped from BrandCardProps, getBrandsCardSummary call removed from the list page

Test plan

  • /dashboard/brands shows the slim cards with hover + active-ring states intact
  • Click "Add Topics" row → lands on /dashboard/brands/<id>/topics with that brand active in the store
  • Click the + next to "Add Topics" → lands on the same page scrolled to the Add Topic input
  • Same for Add Prompts / +
  • Click Settings row → lands on /dashboard/brands/<id>/settings

Strip the brand card down to avatar + name + domain + three nav rows
(Add Topics, Add Prompts, Settings). Each row navigates to its destination
and sets the active brand in the store. Topics and Prompts rows also expose
a trailing + button that jumps to the new #add-topic / #add-prompt anchors
on the destination pages so users can land directly on the add form.

Drops the gradient cover, visibility hero, 3-stat strip, sparkline, View
Insights CTA, StatusPill, and the dropdown menu — those live on the
Insights page, which is one click away.

getBrandsCardSummary call is removed from the brands list page since the
card no longer consumes the summary; the action itself is kept for other
potential callers per the issue.
@gkhngyk
gkhngyk merged commit d9a76b7 into main Jun 3, 2026
3 checks passed

This branch was successfully deployed

1 active deployment
Preview — f492bc21 Deployed Jun 3, 2026 by vercel[bot]
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.

ux(brands): slim down the brand list card to a nav-menu shape

1 participant