Skip to content

Hide internal platform tip kinds from profile transactions by default - #12345

Merged
znarf merged 1 commit into
mainfrom
fix/hide-platform-tip-kinds-host-profiles
Aug 11, 2026
Merged

Hide internal platform tip kinds from profile transactions by default#12345
znarf merged 1 commit into
mainfrom
fix/hide-platform-tip-kinds-host-profiles

Conversation

@znarf

@znarf znarf commented Aug 11, 2026

Copy link
Copy Markdown
Member

On fiscal host profiles (like @opensource), the transactions and budget sections currently show the platform tips collected on the internal Platform Tips child account, along with the APPLICATION_FEE legs that move that money to the platform. These are internal billing flows between the host and the platform, not host activity, so I'm removing them from the default view.

APPLICATION_FEE is removed from the default kinds everywhere, since it only ever appears on host-side accounts. PLATFORM_TIP is excluded from the defaults only when the profile is a fiscal host: contributors (individuals and organizations) still see the tips they gave, which are part of their own financial activity.

Both kinds remain available through the kind filter on the transactions page. Dashboard views, exports and the API are unchanged.

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
opencollective-frontend Ready Ready Preview Aug 11, 2026 12:31pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bb416520-1ca3-49f5-a61f-ef60422440c4

📥 Commits

Reviewing files that changed from the base of the PR and between 4ff4d8c and d15b71a.

📒 Files selected for processing (3)
  • components/collective-page/graphql/preload.js
  • components/collective-page/sections/Budget.js
  • components/dashboard/sections/collectives/AddFundsModal.tsx

📝 Walkthrough

Walkthrough

Transaction query variable builders now receive host status. getDefaultKinds uses this status to exclude PLATFORM_TIP for hosts and removes APPLICATION_FEE from the default kinds. Budget and transaction sections pass the relevant host context when building query variables. The budget refetch also passes the account host status.

Estimated code review effort: 3 (Moderate) | ~15 minutes

Suggested reviewers: betree

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

Comment @coderabbitai help to get the list of available commands.

Comment thread components/collective-page/sections/Budget.js Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@components/collective-page/sections/Budget.js`:
- Line 238: Update the budget query-variable flow to use the explicit
collective.isHost value when determining transaction kinds, rather than
comparing host?.slug with collectiveSlug. Add or pass this flag through
getBudgetSectionQueryVariables and update all its callers, preserving the
existing getDefaultKinds behavior for non-host profiles.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: e71946bb-95a8-4ecb-995d-51e51e7f0ea7

📥 Commits

Reviewing files that changed from the base of the PR and between 88a019b and 4ff4d8c.

📒 Files selected for processing (4)
  • components/collective-page/graphql/preload.js
  • components/collective-page/sections/Budget.js
  • components/collective-page/sections/Transactions.js
  • components/transactions/filters/TransactionsKindFilter.js

Comment thread components/collective-page/sections/Budget.js Outdated
APPLICATION_FEE is removed from the default kinds: it only ever appears
on host-side accounts as the internal fee leg moving collected tips to
the platform. PLATFORM_TIP is now excluded from the defaults on fiscal
host profiles only, where the rows are tips collected on the internal
Platform Tips child account rather than host activity. Contributors
(individuals and organizations) still see the tips they gave.

Both kinds remain available through the kind filter on the transactions
page. Dashboard views and exports are unchanged.
@znarf
znarf force-pushed the fix/hide-platform-tip-kinds-host-profiles branch from f1e17f7 to d15b71a Compare August 11, 2026 12:28
Comment thread components/dashboard/sections/collectives/AddFundsModal.tsx
@znarf
znarf merged commit f316bb7 into main Aug 11, 2026
30 of 31 checks passed
@znarf
znarf deleted the fix/hide-platform-tip-kinds-host-profiles branch August 11, 2026 13:45
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