refactor(revenue): drop standalone QR block and align promotion card with reference #36

Merged
kate522 merged 1 commits from worktree-revenue-card-rework into main 2026-09-27 15:06:17 +00:00
Owner

The 推广收益 detail card no longer renders the QR code as its own row. The
card becomes a fixed-label info list: 推广链接 [Url][复制链接][推广海报] /
佣金比例 / 累计佣金 / 返佣详解, mirroring the reference theme's 推广中心 card.

  • profile-revenue.php: QR row removed; poster button moved into the link row and
    gated server-side on the poster switch; copy label now 复制链接; 推广人数 row
    dropped; 返佣详解 heading reads the existing pay_rebate_text_details_title;
    dead $vip_ratios, aksrt-revenue-page class and data-min-amount removed
  • new affiliate-poster-modal.php: poster previews in a modal before download
    (reuses .uc-modal + single-render guard), since the QR now only exists inside
    the poster
  • credits.js: renderAffiliateQr and its call deleted, along with the dead
    [data-affiliate-payers] lookup and the inline ch-width hack; initAffiliatePoster
    builds the poster into the modal stage and reveals 保存海报
  • PaymentRuntime: expose affiliate details_title
  • user-center.js: remove never-defined AKSRTRevenueCenterInit guards (2 sites)
  • CSS: revenue-earnings.css pruned to live rules plus the new link-row grid and
    poster stage styles; routes/user-center/revenue.css pruned to its only
    definitions; dead leaves routes/revenue.css and routes/commerce.css deleted and
    dequeued from the user-center part list
  • tests: referral-qr-contract test 2 rewritten for the QR-free card, link row and
    poster modal; post-visual-contract leaf list updated with regression guards

qrcode.min.js stays enqueued — buildPosterCanvas still draws the QR inside the
poster. Net -833 lines.

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

The 推广收益 detail card no longer renders the QR code as its own row. The card becomes a fixed-label info list: 推广链接 [Url][复制链接][推广海报] / 佣金比例 / 累计佣金 / 返佣详解, mirroring the reference theme's 推广中心 card. - profile-revenue.php: QR row removed; poster button moved into the link row and gated server-side on the poster switch; copy label now 复制链接; 推广人数 row dropped; 返佣详解 heading reads the existing pay_rebate_text_details_title; dead $vip_ratios, aksrt-revenue-page class and data-min-amount removed - new affiliate-poster-modal.php: poster previews in a modal before download (reuses .uc-modal + single-render guard), since the QR now only exists inside the poster - credits.js: renderAffiliateQr and its call deleted, along with the dead [data-affiliate-payers] lookup and the inline ch-width hack; initAffiliatePoster builds the poster into the modal stage and reveals 保存海报 - PaymentRuntime: expose affiliate details_title - user-center.js: remove never-defined AKSRTRevenueCenterInit guards (2 sites) - CSS: revenue-earnings.css pruned to live rules plus the new link-row grid and poster stage styles; routes/user-center/revenue.css pruned to its only definitions; dead leaves routes/revenue.css and routes/commerce.css deleted and dequeued from the user-center part list - tests: referral-qr-contract test 2 rewritten for the QR-free card, link row and poster modal; post-visual-contract leaf list updated with regression guards qrcode.min.js stays enqueued — buildPosterCanvas still draws the QR inside the poster. Net -833 lines. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kate522 added 1 commit 2026-09-27 15:06:11 +00:00
The 推广收益 detail card no longer renders the QR code as its own row. The
card becomes a fixed-label info list: 推广链接 [Url][复制链接][推广海报] /
佣金比例 / 累计佣金 / 返佣详解, mirroring the reference theme's 推广中心 card.

- profile-revenue.php: QR row removed; poster button moved into the link row and
  gated server-side on the poster switch; copy label now 复制链接; 推广人数 row
  dropped; 返佣详解 heading reads the existing pay_rebate_text_details_title;
  dead $vip_ratios, aksrt-revenue-page class and data-min-amount removed
- new affiliate-poster-modal.php: poster previews in a modal before download
  (reuses .uc-modal + single-render guard), since the QR now only exists inside
  the poster
- credits.js: renderAffiliateQr and its call deleted, along with the dead
  [data-affiliate-payers] lookup and the inline ch-width hack; initAffiliatePoster
  builds the poster into the modal stage and reveals 保存海报
- PaymentRuntime: expose affiliate details_title
- user-center.js: remove never-defined AKSRTRevenueCenterInit guards (2 sites)
- CSS: revenue-earnings.css pruned to live rules plus the new link-row grid and
  poster stage styles; routes/user-center/revenue.css pruned to its only
  definitions; dead leaves routes/revenue.css and routes/commerce.css deleted and
  dequeued from the user-center part list
- tests: referral-qr-contract test 2 rewritten for the QR-free card, link row and
  poster modal; post-visual-contract leaf list updated with regression guards

qrcode.min.js stays enqueued — buildPosterCanvas still draws the QR inside the
poster. Net -833 lines.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
kate522 merged commit ae793414be into main 2026-09-27 15:06:17 +00:00
kate522 deleted branch worktree-revenue-card-rework 2026-09-27 15:06:17 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kate522/wordpress-theme-aksrt#36