From 3765a6ded803670fc7113ba469c30def9d4ca90d Mon Sep 17 00:00:00 2001 From: "Calum H." Date: Mon, 3 Nov 2025 23:15:25 +0000 Subject: [PATCH] feat: creator revenue page overhaul (#4204) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: start on tax compliance * feat: avarala1099 composable * fix: shouldShow should be managed on the page itself * refactor: move show logic to revenue page * feat: security practices rather than info * feat: withdraw page lock * fix: empty modal bug & lint issues * feat: hide behind feature flag * Use standard admonition components, make casing consistent * modal title * lint * feat: withdrawal check * feat: tax cap on withdrawals warning * feat: start on revenue page overhaul * feat: segment generation for bar * feat: tooltips and links * fix: tooltip border * feat: finish initial layout, start on withdraw modal * feat: start on withdrawal limit stage * feat: shade support for primary colors * feat: start on withdraw details stage * fix: convert swatches to hex * feat: payout method/region dropdown temporarily using multiselect * feat: fix modal open issues and use teleport dropdowns * feat: hide transactions section if there are no transactions * refactor: NavStack surfaces * feat: new dropdown component * feat: remove teleport dropdown modal in favour of new combobox component * fix: lint * refactor: dashboard sidebar layout * feat: cleanup * fix: niche bugs * fix: ComboBox styling * feat: first part of qa * feat: animate flash rather than tooltip * fix: lint * feat: qa border gradient * fix: seg hover flashes * feat: i18n * feat: i18n and final QA * fix: lint * feat: QA * fix: lint * fix: merge conflicts * fix: intl * fix: blue hover * fix: transfers page * feat: surface variables & gradients * feat: text vars * fix: lint * fix: intl * feat: stages * fix: lint * feat: region selection * feat: method selection btns * fix: flex col on transactions * feat: hook up method selection to ctx * feat: muralpay kyc stage info * wip: muralpay integration * Basic Mural Pay API bindings * Fix clippy * use dotenvy in muralpay example * Refactor payout creation code * wip: muralpay payout requests * Mural Pay payouts work * Fix clippy * feat: progress * fix: broken tax form stage logic * polish: tax form stage and method selection stage layout * add mural pay fees API * Work on payout fee API * Fees API for more payment methods * Fix CI * polish: muralpay qa * refactor: clean up combobox component * polish: change from critical -> warning admonition in MuralpayDetailsStage * Temporarily disable Venmo and PayPal methods from frontend * polish: clean up transaction component & page * polish: navbar qa, text color-contrast in chips type buttonstyled, mb on rev/index.vue page * fix: incorrectly using available balance as tax form withdraw limit after tax forms submitted * wip: counterparties * Start on counterparties and payment methods API * polish: combobox component * polish: fix broken scroll logic using a composable & web:fix * fix: lint * polish: various QA fixes * feat: hook up with backend (wip) * feat: draft muralpay rails dynamic logic * polish: modify rails to support backend changes * Mural Pay multiple methods when fetching * Don't send supported_countries to frontend * Mural Pay multiple methods when fetching * Don't send supported_countries to frontend * feat: fees & methods endpoint hookup * chore: remove duplicates fix * polish: qa changes + figma match * Add countries to muralpay fiat methods * Compile fix * Add exchange rate info to fees endpoint * Add fees to premium Tremendous options * polish: i18n and better document type dropdown -> id input labels * feat: tremendous * fix: lint & i18n * feat: reintroduce tin mismatch logic to index.vue * polish: qa * fix: i18n * feat: remove teleport dropdown menu - combobox should be used * fix: lint * fix: jsdoc * feat: checkbox for reward program terms * Add delivery email field to Tremendous payouts * Add Tremendous product category to payout methods * Add bank details API to muralpay * Fix CI * Fix CI * polish: qa changes * feat: i18n pass * feat: deduplicate methods endpoint & fix i18n issues * chore: deduplicate i18n strings into common-messages.ts * fix: lint * fix: i18n * feat: estimates * polish: more QA * Remove prepaid visa, compute fees properly for Tremendous methods * Add more details to Tremendous errors * feat: withdraw endpoint impl & internals refactor * Add more details to Tremendous errors * feat: completion stage * Add fees to Mural * feat: transactions page match figma * fix: i18n * polish: QA changes * polish: qa * Payout history route and bank details * polish: autofill and requirements checks * fix: i18n + lint * fix: fiat rail fees * polish: move scroll fade stuff into NewModal rather than just CreatorWithdrawModal * feat: simplify action btn logic & tax form error * fix: tax -> Tax form * Re-add legacy PayPal/Venmo options for US * feat: mobile responsiveness fixes for modal * fix: responsiveness issues * feat: navstack responsiveness * fix: responsiveness * move the mural bank details route * fix: generated state cleanup & bank details input * fix: lint & i18n * Add utoipa support to payout endpoints * address some PR comments * polish: qa * add CORS to new utoipa routes * feat: legacy paypal/venmo stage * polish: reset amount on back qa * revert: navstack mr changes * polish: loading indicator on method selection stage * fix: paypal modal doesnt reopen after auth * fix: lint & i18n * fix: paypal flow * polish: qa changes * fix: gitignore * polish: qa fixes * fix: payouts_available in payouts.rs * fix: bug when limit is zero * polish: qa changes * fix: qa stuff & muralpay sub-division fix * Immediately approve mural payouts * Add currency support to Tremendous payouts * Currency forex * add forex to tremendous fee request * polish: qa & currency support for paypal tremendous * polish: fx qa * feat: demo mode flag * fix: i18n & padding issues * polish: qa changes * fix: ml * Add Mural balance to bank balance info * polish: show warning for paypal international USD withdrawals + more currencies * Add more Tremendous currencies support * fix: colors on balance bars * fix: empty states * fix: pl-8 mobile issue * fix: hide see all * Transaction payouts available use the correct date * Address my own review comment * Address PR comments * Change Mural withdrawal limit to 3k * fix: empty state + paypal warning * maybe fix tremendous gift cards * Change how Mural minimum withdrawals are calculated * Tweak min/max withdrawal values * fix: segment brightness * fix: min & max for muralpay & legacy paypal * Fix some icon issues * more issues * fix user menu * fix: remove + network --------- Signed-off-by: Calum H. Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com> Co-authored-by: aecsocket Co-authored-by: Alejandro González --- .../instructions/i18n-convert.instructions.md | 1 + .gitignore | 3 + .../InstallationSettings.vue | 32 +- .../ui/settings/AppearanceSettings.vue | 11 +- .../ui/world/modal/ServerModalBody.vue | 17 +- apps/frontend/nuxt.config.ts | 84 +- apps/frontend/package.json | 3 +- .../src/components/brand/TextLogo.vue | 5 +- .../components/ui/EnvironmentIndicator.vue | 2 +- apps/frontend/src/components/ui/NavStack.vue | 142 ++- .../src/components/ui/NavStackItem.vue | 64 -- .../src/components/ui/NotificationItem.vue | 2 +- .../src/components/ui/ProjectCard.vue | 2 +- .../ui/dashboard/CreatorWithdrawModal.vue | 457 ++++++++ .../ui/dashboard/RevenueInputField.vue | 149 +++ .../ui/dashboard/RevenueTransaction.vue | 124 +++ .../ui/dashboard/WithdrawFeeBreakdown.vue | 119 +++ .../withdraw-stages/CompletionStage.vue | 301 ++++++ .../LegacyPaypalDetailsStage.vue | 351 ++++++ .../withdraw-stages/MethodSelectionStage.vue | 323 ++++++ .../withdraw-stages/MuralpayDetailsStage.vue | 516 +++++++++ .../withdraw-stages/MuralpayKycStage.vue | 362 +++++++ .../withdraw-stages/TaxFormStage.vue | 159 +++ .../TremendousDetailsStage.vue | 649 ++++++++++++ .../src/components/ui/search/Categories.vue | 2 +- .../ui/servers/BackupSettingsModal.vue | 13 +- .../ui/servers/ContentVersionEditModal.vue | 31 +- .../PlatformChangeModpackVersionModal.vue | 14 +- .../ui/servers/PlatformVersionSelectModal.vue | 22 +- .../ui/servers/TeleportDropdownMenu.vue | 458 -------- apps/frontend/src/composables/country.ts | 34 + apps/frontend/src/composables/featureFlags.ts | 1 + apps/frontend/src/composables/generated.ts | 146 +++ apps/frontend/src/composables/tag.js | 64 -- apps/frontend/src/helpers/projects.js | 4 +- apps/frontend/src/layouts/default.vue | 69 +- apps/frontend/src/locales/en-US/index.json | 579 +++++++++- apps/frontend/src/pages/[type]/[id].vue | 2 +- .../src/pages/[type]/[id]/changelog.vue | 2 +- .../src/pages/[type]/[id]/settings.vue | 173 ++- .../src/pages/[type]/[id]/settings/index.vue | 2 +- .../src/pages/[type]/[id]/settings/links.vue | 2 +- .../src/pages/[type]/[id]/settings/tags.vue | 2 +- .../[type]/[id]/version/[version]-new.vue | 2 +- .../pages/[type]/[id]/version/[version].vue | 2 +- .../src/pages/[type]/[id]/versions.vue | 2 +- .../src/pages/admin/servers/nodes.vue | 37 +- .../src/pages/admin/servers/notices.vue | 8 +- apps/frontend/src/pages/auth/sign-in.vue | 24 +- apps/frontend/src/pages/auth/sign-up.vue | 24 +- apps/frontend/src/pages/collection/[id].vue | 2 +- apps/frontend/src/pages/dashboard.vue | 70 +- .../src/pages/dashboard/revenue/index.vue | 871 +++++++++++---- .../src/pages/dashboard/revenue/transfers.vue | 356 +++---- .../src/pages/dashboard/revenue/withdraw.vue | 630 ----------- apps/frontend/src/pages/legal.vue | 49 +- apps/frontend/src/pages/organization/[id].vue | 84 +- apps/frontend/src/pages/report.vue | 2 +- .../src/pages/search/[searchProjectType].vue | 2 +- .../manage/[id]/options/properties.vue | 10 +- .../servers/manage/[id]/options/startup.vue | 14 +- apps/frontend/src/pages/settings.vue | 141 +-- apps/frontend/src/pages/settings/index.vue | 2 +- apps/frontend/src/pages/user/[id].vue | 17 +- apps/frontend/src/plugins/shorthands.js | 2 +- .../src/providers/creator-withdraw.ts | 917 ++++++++++++++++ apps/frontend/src/utils/finance-icons.ts | 34 + apps/frontend/src/utils/muralpay-rails.ts | 998 ++++++++++++++++++ ...8ec5437be07fab8c34a964f7864304681bb94.json | 28 - .../external/{sso => color}/discord.svg | 0 .../assets/external/{sso => color}/github.svg | 0 .../assets/external/{sso => color}/gitlab.svg | 0 .../assets/external/{sso => color}/google.svg | 0 .../external/{sso => color}/microsoft.svg | 0 packages/assets/external/color/paypal.svg | 13 + .../assets/external/{sso => color}/steam.svg | 0 packages/assets/external/color/usdc.svg | 10 + packages/assets/external/color/venmo.svg | 8 + packages/assets/external/paypal.svg | 6 +- packages/assets/external/polygon.svg | 5 + packages/assets/external/tumblr.svg | 6 +- packages/assets/external/venmo.svg | 5 + packages/assets/external/visa.svg | 5 + packages/assets/generated-icons.ts | 18 + packages/assets/icons/arrow-down.svg | 5 + packages/assets/icons/arrow-left-right.svg | 1 + packages/assets/icons/arrow-up-right.svg | 15 + packages/assets/icons/arrow-up.svg | 15 + packages/assets/icons/badge-dollar-sign.svg | 7 + packages/assets/icons/gift.svg | 1 + packages/assets/icons/hand-helping.svg | 6 + packages/assets/icons/landmark.svg | 9 + packages/assets/icons/loader-circle.svg | 1 + packages/assets/index.ts | 36 +- .../ui/src/components/base/Admonition.vue | 47 +- .../ui/src/components/base/BulletDivider.vue | 5 + .../ui/src/components/base/ButtonStyled.vue | 47 +- packages/ui/src/components/base/Combobox.vue | 539 ++++++++++ .../components/base/TeleportDropdownMenu.vue | 441 -------- packages/ui/src/components/index.ts | 3 +- packages/ui/src/components/modal/NewModal.vue | 71 +- packages/ui/src/composables/debug-logger.ts | 28 + packages/ui/src/composables/index.ts | 2 + .../ui/src/composables/scroll-indicator.ts | 181 ++++ packages/ui/src/locales/en-US/index.json | 111 ++ packages/ui/src/utils/common-messages.ts | 161 +++ packages/utils/types.ts | 75 ++ pnpm-lock.yaml | 26 +- 108 files changed, 9071 insertions(+), 2664 deletions(-) delete mode 100644 apps/frontend/src/components/ui/NavStackItem.vue create mode 100644 apps/frontend/src/components/ui/dashboard/CreatorWithdrawModal.vue create mode 100644 apps/frontend/src/components/ui/dashboard/RevenueInputField.vue create mode 100644 apps/frontend/src/components/ui/dashboard/RevenueTransaction.vue create mode 100644 apps/frontend/src/components/ui/dashboard/WithdrawFeeBreakdown.vue create mode 100644 apps/frontend/src/components/ui/dashboard/withdraw-stages/CompletionStage.vue create mode 100644 apps/frontend/src/components/ui/dashboard/withdraw-stages/LegacyPaypalDetailsStage.vue create mode 100644 apps/frontend/src/components/ui/dashboard/withdraw-stages/MethodSelectionStage.vue create mode 100644 apps/frontend/src/components/ui/dashboard/withdraw-stages/MuralpayDetailsStage.vue create mode 100644 apps/frontend/src/components/ui/dashboard/withdraw-stages/MuralpayKycStage.vue create mode 100644 apps/frontend/src/components/ui/dashboard/withdraw-stages/TaxFormStage.vue create mode 100644 apps/frontend/src/components/ui/dashboard/withdraw-stages/TremendousDetailsStage.vue delete mode 100644 apps/frontend/src/components/ui/servers/TeleportDropdownMenu.vue create mode 100644 apps/frontend/src/composables/generated.ts delete mode 100644 apps/frontend/src/composables/tag.js delete mode 100644 apps/frontend/src/pages/dashboard/revenue/withdraw.vue create mode 100644 apps/frontend/src/providers/creator-withdraw.ts create mode 100644 apps/frontend/src/utils/finance-icons.ts create mode 100644 apps/frontend/src/utils/muralpay-rails.ts delete mode 100644 apps/labrinth/.sqlx/query-8f68ea8481d86687ef4ebd6311f8ec5437be07fab8c34a964f7864304681bb94.json rename packages/assets/external/{sso => color}/discord.svg (100%) rename packages/assets/external/{sso => color}/github.svg (100%) rename packages/assets/external/{sso => color}/gitlab.svg (100%) rename packages/assets/external/{sso => color}/google.svg (100%) rename packages/assets/external/{sso => color}/microsoft.svg (100%) create mode 100644 packages/assets/external/color/paypal.svg rename packages/assets/external/{sso => color}/steam.svg (100%) create mode 100644 packages/assets/external/color/usdc.svg create mode 100644 packages/assets/external/color/venmo.svg create mode 100644 packages/assets/external/polygon.svg create mode 100644 packages/assets/external/venmo.svg create mode 100644 packages/assets/external/visa.svg create mode 100644 packages/assets/icons/arrow-down.svg create mode 100644 packages/assets/icons/arrow-left-right.svg create mode 100644 packages/assets/icons/arrow-up-right.svg create mode 100644 packages/assets/icons/arrow-up.svg create mode 100644 packages/assets/icons/badge-dollar-sign.svg create mode 100644 packages/assets/icons/gift.svg create mode 100644 packages/assets/icons/hand-helping.svg create mode 100644 packages/assets/icons/landmark.svg create mode 100644 packages/assets/icons/loader-circle.svg create mode 100644 packages/ui/src/components/base/BulletDivider.vue create mode 100644 packages/ui/src/components/base/Combobox.vue delete mode 100644 packages/ui/src/components/base/TeleportDropdownMenu.vue create mode 100644 packages/ui/src/composables/debug-logger.ts create mode 100644 packages/ui/src/composables/scroll-indicator.ts diff --git a/.github/instructions/i18n-convert.instructions.md b/.github/instructions/i18n-convert.instructions.md index 44a98ce4..732e391e 100644 --- a/.github/instructions/i18n-convert.instructions.md +++ b/.github/instructions/i18n-convert.instructions.md @@ -9,6 +9,7 @@ Please follow these rules precisely: 1. Identify translatable strings - Scan the