Fix currency display to GH₵ and auto-derive tax from estimated revenue#11
Merged
Merged
Conversation
… revenue Agent-Logs-Url: https://github.com/mhaadiabu/graitld/sessions/d50b11c4-5d2a-4cca-b3b1-a202219491da Co-authored-by: mhaadiabu <140342507+mhaadiabu@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Copilot created this pull request from a session on behalf of
mhaadiabu
April 13, 2026 20:40
View session
mhaadiabu
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses two issues with the revenue and tax estimation features:
GHSinstead of the Ghana Cedi symbolGH₵.taxEstimatesrecord (e.g. legacy influencer records).Changes
Currency symbol (
src/lib/product.ts,src/app/(dashboard)/influencers/page.tsx)symbol: 'GH₵'tocurrencyConfig;code: 'GHS'retained for DB/ISO storageformatCurrencyand both revenue input form labels now use theGH₵symbol across the dashboard, charts, table cells, and reportsAuto-derived tax (
convex/channelData.ts)estimatedTaxnow falls back toMath.round(estimatedAnnualRevenue × 0.25)when no storedtaxEstimatesentry orlegacy.taxLiabilityexistshasTaxEstimateistruewheneverestimatedAnnualRevenueis defined, so dashboard totals and the "Tax estimate ready" badge reflect all channels with revenuetaxEstimateSourcepropagates the actualrevenueSource(manual / analytics / legacy_unknown) instead of hard-coding'legacy_unknown'for auto-derived values