Skip to content

Wire up Empty component into Marketplace and Dashboard empty states#166

Draft
AzadZedan with Copilot wants to merge 2 commits into
mainfrom
copilot/add-empty-component
Draft

Wire up Empty component into Marketplace and Dashboard empty states#166
AzadZedan with Copilot wants to merge 2 commits into
mainfrom
copilot/add-empty-component

Conversation

Copilot AI commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

client/src/components/ui/empty.tsx provided a fully-implemented Empty component family (Empty, EmptyHeader, EmptyMedia, EmptyTitle, EmptyDescription, EmptyContent) that was never imported or used anywhere in the app. All empty states were hand-rolled <div> blocks with inconsistent structure.

Changes

  • Marketplace.tsx – Replace ad-hoc "No stamps found" div with <Empty> using <EmptyMedia variant="icon"> + <Sparkles />, <EmptyTitle>, and <EmptyDescription>
  • Dashboard.tsx – Replace both empty states (Favorites tab, Purchase History tab) with <Empty> using their respective icons (<Heart />, <ShoppingBag />), title/description sub-components, and CTA buttons inside <EmptyContent>

Example

<Empty>
  <EmptyHeader>
    <EmptyMedia variant="icon">
      <Heart />
    </EmptyMedia>
    <EmptyTitle>No favorites yet</EmptyTitle>
    <EmptyDescription>
      Start adding stamps to your favorites from the marketplace
    </EmptyDescription>
  </EmptyHeader>
  <EmptyContent>
    <Link href="/marketplace">
      <Button>Explore Marketplace</Button>
    </Link>
  </EmptyContent>
</Empty>

No changes to empty.tsx itself — the component was already complete.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: AzadZedan <172204218+AzadZedan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Empty component with header and media Wire up Empty component into Marketplace and Dashboard empty states Mar 11, 2026
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