Skip to content

refactor: simplify affiliate referral status display logic #2973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2025

Conversation

rohitpaulk
Copy link
Member

@rohitpaulk rohitpaulk commented Aug 2, 2025

Part of CC-1888

Copy link

github-actions bot commented Aug 2, 2025

Test Results

641 tests  ±0   593 ✅ ±0   8m 30s ⏱️ -3s
  1 suites ±0    48 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 245012a. ± Comparison against base commit e6be4ee.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Aug 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Copy link

codecov bot commented Aug 2, 2025

Bundle Report

Changes will decrease total bundle size by 1.0kB (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
client-array-push 38.66MB -1.0kB (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/chunk.*.js -1.0kB 3.14MB -0.03%

Files in assets/chunk.*.js:

  • ./models/affiliate-referral.ts → Total Size: 4.27kB

@rohitpaulk rohitpaulk force-pushed the refactor-simplify-affiliate-referral-status branch from b661b74 to 245012a Compare August 4, 2025 19:11

<EmberTooltip @text="This user either joined a paid team account or availed a separate discount." />
</Pill>
{{/if}}
Copy link

Choose a reason for hiding this comment

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

Bug: Legacy Affiliate Statuses Incorrectly Marked Inactive

Affiliate referrals with legacy statuses ('trialing', 'pending_trial', 'trial_cancelled') incorrectly display as "Inactive". The updated template logic only checks for statusIsAwaitingFirstCharge and statusIsFirstChargeSuccessful, causing unhandled old statuses to fall through to the default "Inactive" state and misrepresent active trials.

Fix in Cursor Fix in Web

@rohitpaulk rohitpaulk merged commit b40300b into main Aug 4, 2025
8 checks passed
@rohitpaulk rohitpaulk deleted the refactor-simplify-affiliate-referral-status branch August 4, 2025 19:16
Copy link

linear bot commented Aug 4, 2025

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.

1 participant