feat: implement AccountCenter dashboard with subscription and payment management features

This commit is contained in:
2569718930@qq.com
2026-05-29 21:23:12 +08:00
parent 17ddd835e6
commit 3e24080466
2 changed files with 295 additions and 270 deletions
@@ -173,6 +173,21 @@ export function runTests() {
accountFeatureSource.includes("只有 USDC 可能无法完成授权或支付"),
"payment wallet tab must warn users that Polygon POL gas is required in addition to USDC",
);
assert(
!accountCenterSource.includes("md:w-96"),
"account payment management must not use a narrow fixed sidebar that creates an overlong column",
);
assert(
accountCenterSource.includes("items-start") &&
accountCenterSource.includes("xl:grid-cols-[minmax(0,0.9fr)_minmax(620px,1.1fr)]"),
"account secondary sections must align cards to the top and give payment management a wider responsive column",
);
assert(
accountCenterSource.includes("data-testid=\"payment-management-grid\"") &&
accountCenterSource.includes("lg:grid-cols-[minmax(0,1fr)_minmax(320px,380px)]") &&
accountCenterSource.includes("data-testid=\"payment-guard-grid\""),
"payment management must split plans/referrals from payment controls and compact guard details into grids",
);
assert(
!appAnalyticsSource.includes('NEXT_PUBLIC_POLYWEATHER_APP_ANALYTICS === "true"') &&
!analyticsRouteSource.includes('NEXT_PUBLIC_POLYWEATHER_APP_ANALYTICS === "true"'),