Skip to content

Add a seller referrer page - #203

Open
jiminkim214 wants to merge 2 commits into
mainfrom
feat/referrer-detail
Open

jiminkim214 wants to merge 2 commits into
mainfrom
feat/referrer-detail

Conversation

@jiminkim214

Copy link
Copy Markdown
Collaborator

Summary

Sellers can open a referrer from the fundraiser referrals table and see that person's counted orders for this fundraiser, plus their order counts in the organization's other fundraisers. Both views are limited to organization admins.

Changes

  • frontend: The referrer name links to /seller/fundraiser/[id]/referrals/[referrerId], which lists counted orders and the organization's other fundraisers for that person.
  • backend: An admin-only endpoint returns one referrer's orders for a fundraiser, and another returns their counts across the organization's other fundraisers. Counts include only CONFIRMED or picked-up orders, matching the referrals table.

Tests

Screen.Recording.2026-11-22.at.2.22.01.AM.mov
  • fundraiser.referrals.services.test.ts checks that only confirmed or picked-up orders are counted, and that a fundraiser with zero counted orders is still included
  • fundraiser.referrals.handlers.test.ts checks that a missing referrer returns 404, a non-admin returns 403, an organization admin receives the orders, and the current fundraiser is left out of the other-fundraisers list

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
curaise Ready Ready Preview Nov 22, 2026 10:46am UTC

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 8b31b385-855a-4246-9f26-a2aa337a8c2a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@eicyer eicyer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This works well in my computer and the tests pass.

IMO we should also show the orders that have pending payments here as that's what sellers are used to in their previous flows in google forms. (Seeing referral count before confirmation) We can have a column of confirmed referrals and a column of total referrals(confirmed+pending)

This branch was successfully deployed

1 active deployment
Preview — 9e9d8723 Deployed Nov 22, 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.

2 participants