Skip to content

Flash Favorites #201

Closed
Closed

Description

@Nodirbek75
  • Add new Mongo collection merchants_featured.
  • Add Graphql to query the Flash Favorites
  • Add mutation to the graphql api to update the Flash Favorites.
  • Add page to ERPnext for admin users to update the Flash Favorites. (Role TBD)

Activity

  1. added
    enhancement
    on Aug 25, 2025
  2. added theissue type on Aug 25, 2025
  3. changed the title [-]Create a mutation to fetch events, merchants, discounts data[/-] [+]Flash Favorites[/+] on Aug 25, 2025
  4. patoo0x commented on Mar 20, 2026

    @patoo0x
    Contributor

    📋 Definition of Done — 💰 150,000 sats (bundled with #200)

    ⚠️ Bundled bounty: This issue is paired with #200 (Top 3 closest merchants). Both must be completed together for the full 150,000 sats payout.

    Expected Behavior After Fix:

    • Users can save other users/merchants as "favorites" for quick send
    • Favorites persist across sessions
    • Favorites are accessible from the send flow for quick selection
    • Admin users can manage a "Flash Favorites" featured list (via ERPNext or API)
    • A query returns the top 3 closest merchants based on user's lat/lng (with IP-based fallback)
    • Closest merchants display correctly in the app

    Deliverables:

    • PR(s) against main referencing both issues (closes #201, closes #200)
    • Backend: new Mongo collection, GraphQL queries and mutations, geospatial query
    • Unit tests for favorites CRUD and proximity query
    • Screen recording showing: add favorite → use favorite to send → view top 3 nearby merchants
    • Lightning address provided in your first comment on this issue

    Review Gate:

    • All existing tests pass
    • Ben signs off (backend)
    • Dread final approval

    Payment: 150,000 sats via Lightning on merge.
    See CONTRIBUTING.md for full details.

  5. chengyixu commented on Mar 21, 2026

    @chengyixu

    Proposal — Flash Favorites

    I'd like to work on this alongside #200 (Top 3 closest merchants) as a bundled 150,000 sats bounty.

    Approach:

    1. MongoDB: Create merchants_featured collection with fields: id, merchant_id (ref), order, created_at, updated_at.

    2. GraphQL query: flashFavorites: [Merchant!]! — returns featured merchants ordered by their admin-set order field.

    3. GraphQL mutation: updateFlashFavorites(merchantIds: [ID!]!): Boolean — admin-only mutation to set the featured list.

    4. ERPNext admin page: Add a simple list view in ERPNext where admins with the appropriate role can drag-reorder and save featured merchants. Will coordinate on which ERPNext role should have access.

    Lightning address: [email protected]

    Ready to start immediately.

  6. added a commit that references this issue on Apr 17, 2026
    e225090
  7. islandbitcoin commented on Apr 17, 2026

    @islandbitcoin
    Contributor

    closing as a roadmap/product idea, not active implementation work right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions