Skip to content

Add contextual empty-state variants across dashboards and filtered views #54

Closed

Description

@chonilius

Problem

src/components/ui/EmptyState.tsx exists, implying at least some thought was given to empty states — but the interesting failure mode for a bounty/escrow platform isn't "no data at all," it's "data that's technically present but functionally empty in a way that's easy to mishandle": a sponsor dashboard for a sponsor who's created an account but funded nothing yet (genuinely empty, EmptyState presumably handles this), versus a maintainer dashboard where every bounty they've created has been claimed and paid out (a "success" empty state — zero open pipeline items, which is good news, not a call-to-action-style empty state), versus /issues with an active filter selected (per the pagination/filtering issue elsewhere in this batch) that happens to match zero current bounties (an empty state that should suggest adjusting filters, distinct from the platform having no bounties at all), versus a genuinely broken fetch that happens to resolve to an empty array (indistinguishable, without care, from a legitimately empty result, especially relevant given fetchWithFallback's fallback values could themselves be empty arrays in mock-data.ts for some resource types).

Why this is hard

  • This requires reading EmptyState.tsx's actual current API (props it accepts) and finding every call site across /issues, /milestones, all three dashboards, and /reputation/[handle] (a reputation profile for a contributor with zero merged PRs yet is its own distinct empty case) to determine whether it's currently a single generic "nothing here" component reused verbatim everywhere, versus actually parameterized per-context — the likely finding, given a single EmptyState.tsx file and no evidence of variants, is that it's under-differentiated.
  • Each of the distinct empty scenarios above needs its own message, and often its own call-to-action (a sponsor with zero funded bounties needs a "fund your first bounty" CTA; a maintainer with zero open pipeline items because everything's paid out needs a congratulatory/success framing with no CTA needed; a filtered /issues view with zero matches needs a "clear filters" CTA; a contributor reputation profile with zero merged PRs yet needs an encouraging "browse open bounties" CTA) — designing and writing this full set of contextual variants (likely 6-8 distinct empty-state messages across the app) is real product-copy and UX work, not just a props refactor.
  • Must correctly distinguish "genuinely empty" from "fetch failed and fell back to an empty mock value" per the mock-data-indicator work elsewhere in this batch — an empty state and a "showing sample/error data" indicator are different signals that could both apply simultaneously (e.g. backend down, fallback resolved to an empty array) and need to compose sensibly, not silently pick one and hide the other.
  • Filtered-empty-state detection specifically requires plumbing whether "zero results" is because of an active filter (should offer "clear filters") versus zero results with no filter active (should offer the base empty-state CTA) — this state needs to flow from the filtering work (searchParams) down into whatever renders the empty state, which is a cross-component data-flow concern.

Scope

  • Audit EmptyState.tsx's current API and every call site's current message/CTA (or lack thereof).
  • Design and implement the full set of contextual empty-state variants identified above (success/no-open-items, filtered-zero-results, genuinely-empty-with-CTA, and any others found during the audit), each with appropriate copy and CTA.
  • Ensure empty-state rendering composes correctly and non-confusingly with the mock-data/fallback indicator from elsewhere in this batch.
  • Wire filter-context awareness into the /issues empty state specifically.

Acceptance criteria

  • Each of the identified distinct empty scenarios (sponsor-no-funding, maintainer-all-paid-out, filtered-zero-results, contributor-zero-PRs, genuinely-new-platform) renders a distinct, contextually appropriate message and CTA, verified by driving each scenario.
  • A backend-down fallback-to-empty-array scenario clearly shows both the emptiness and the "sample/unavailable data" signal, not just one or the other.

Activity

  1. added
    very hard
    enhancement
    help wanted
    on Jul 15, 2026
  2. added
    GrantFox OSS
    Maybe Rewarded
    Official Campaign | FWC26
    on Jul 15, 2026
  3. ranjeet150 commented on Sep 14, 2026

    @ranjeet150

    Hey team,

    I can tackle Add contextual empty-state variants across dashboards and filtered views. Proposed implementation roadmap:

    • Analysis: Inspect current behavior and edge cases in MergeFi/frontend
    • Implementation: Build Add contextual empty-state variants across dashboards and filtered views with clean React/Next.js components, responsive styling, and proper loading/error boundaries.
    • Testing: Add component unit tests and ensure zero TypeScript/ESLint warnings.
    • PR: Atomic commit with clean git hygiene and passing CI

    Excited to work on this—please assign to me and I'll submit a clean PR shortly!

  4. added
    Stellar Wave
    on Sep 26, 2026
  5. cythecode commented on Sep 26, 2026

    @cythecode

    @cythecode has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Hello Maintainer, I will take ownership of this issue and ensure it is resolved to a high standard.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @cythecode to this issue.

  6. Chidubemkingsley commented on Sep 26, 2026

    @Chidubemkingsley
    Contributor

    @Chidubemkingsley has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    can i work on this

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Chidubemkingsley to this issue.

  7. drips-wave commented on Sep 26, 2026

    @drips-wave

    Congratulations, @Chidubemkingsley! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

    🧑‍💻 @Chidubemkingsley: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  8. drips-wave commented on Sep 27, 2026

    @drips-wave

    This issue has been completed by @Chidubemkingsley as part of the Stellar Wave Program's 9th Wave 🥳

    😎 @Chidubemkingsley: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

  9. removed
    Stellar Wave
    on Oct 15, 2026
  10. added
    Stellar Wave
    on Oct 15, 2026
  11. removed
    Stellar Wave
    on Oct 15, 2026
  12. added
    Stellar Wave
    on Oct 15, 2026
  13. removed
    Stellar Wave
    on Oct 15, 2026
  14. added
    Stellar Wave
    on Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

GrantFox OSSMaybe RewardedOfficial Campaign | FWC26Stellar Waveenhancementhelp wantedvery hard

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions