Skip to content

fix: brand docs menu paths for nav v2 (Program settings, Your account) - #154

Merged
sonpiaz merged 2 commits into
mainfrom
docs/brand-navv2-paths
Oct 17, 2026
Merged

sonpiaz merged 2 commits into
mainfrom
docs/brand-navv2-paths

Conversation

@sonpiaz

@sonpiaz sonpiaz commented Oct 17, 2026

Copy link
Copy Markdown
Member

Nav v2 (dash#736/#737) is live on prod: measured 17/10 by fetching the JS chunks of affitor.com/brand/settings and affitor.com/account/profile (Program settings, Your account, Login and security present; All settings and the Personal group absent). This PR updates every docs line that pointed at the old menus. Sources are on affiliate-dashboard origin/main f8a9bc9 and affiliate-cms tag v3.16.118 (07ec7c6).

Menu paths (nav v2)

Sources:

  • Program menu items Program settings, Members (only with canManageMembers), Billing: dashboard src/components/AffiliateManagement/Advertiser/shell/ProgramMenu.tsx:349-351
  • Settings left menu: Program > Program settings, Developers > API keys, AI agents, Team > Members, Billing > Invoices, Explore > Refer a brand, no Personal group: src/config/settingsNav.ts:106-118
  • Program settings pages Business, Commission, Tracking, Payments, Go live: src/config/settingsNav.ts:88-94. Status once live: src/components/AffiliateManagement/Advertiser/SettingsSidebar.tsx:159
  • Program settings opens on Business: src/containers/AffiliateManagement/Advertiser/Dashboard/index.tsx:658
  • Your account in the profile row's ⋯ menu: src/components/AffiliateManagement/Advertiser/shell/AccountMenu.tsx:68. The profile row sits at the bottom of the settings menu: SettingsSidebar.tsx:143-146
  • Your account pages Profile, Login and security, Payouts: src/components/Account/AccountLayout.tsx:27-31
  • Partner Integrations in the ⋯ menu (old Partner > Settings tabs moved): AccountMenu.tsx:81, src/pages/partner/profile.tsx:9-23
  • Connect Stripe on the Payments page (the settings pages are the setup steps): src/components/AffiliateManagement/Advertiser/Setup/PaymentsStep.tsx:248, src/containers/AffiliateManagement/Advertiser/Settings/index.tsx:789-794

Changes:

  • brand/settings.mdx: "choose All settings" changed to Program settings in three places (intro, Step 1, Step 2). The intro now names Members and Billing in the same menu. Removed the Personal row and added one line: personal settings are under Your account (Profile, Login and security, Payouts). Image alts for program-menu.png and settings.png now describe only what the images show (see Media below).
  • brand/api-keys.mdx: "Where to find it" step 1 now says Program settings. The VerifySuccess dashboard line now gives the full path.
  • api-reference/mcp.mdx: brand path is now program menu > Program settings, then Developers › AI agents (lines 41, 178, 267). Partner path is now ⋯ menu > Integrations (41, 179, 268). The list_my_payouts note says "Payout account details, such as bank or Wise details, are never included". Source: cms src/mcp/reads/list-my-payouts.ts:5-9 (PAYOUT_SELECT never selects payment_method_details). Wise is a method in src/api/affiliate-payout/content-types/affiliate-payout/schema.json:49 (cms#506). PayPal is no longer offered (dash#723, src/components/Account/PayoutSettings.tsx:246-268).
  • api-reference/errors.mdx: the rotation Fix paragraph and the Invalid API key row's fix column now give the real dashboard path.
  • 8 integration pages (fastify, nextjs, nextjs-clerk, nextjs-nextauth, nextjs-supabase, node-express, polar, stripe), brand/tracking/quickstart-integration.mdx:53, support/glossary.mdx:61: "Settings → Program settings → Business" changed to "program menu → Program settings → Business". stripe.mdx also updates the API key and Stripe Connect prerequisites.
  • brand/quickstart/setup-program.mdx:31, :44, :194: open Program settings from the program menu.
  • brand/cli/commands.mdx:99, :225, :361, :362 and brand/cli/quickstart.mdx:107: the key regenerate path and the Connect Stripe path (program menu → Program settings → Payments, Connect Stripe).
  • faq/index.mdx:30: "You can update your email later in account settings" was not true. Now: "Your sign-in email is shown read-only in Your account → Profile". Source: src/components/Account/ProfileSettings.tsx:547-554 (email input disabled). No other page changes the email (SecuritySettings.tsx has none). Same line: an em dash replaced by a colon.

Fee-free tier and refunds (money wording: needs Sơn's ok before merge)

The old line said refunds do NOT lower the revenue counted toward the $10,000 fee-free tier. cms#384 (merged 15/10, merge 88d86c9, in tags since v3.16.68) changed that. The new sentence is "A refund lowers the revenue counted toward it by the refunded amount, never by more than that sale added." Sources, all at v3.16.118:

  • src/api/affiliate-fee/services/affiliate-fee.ts:10-16, :212: the tier is chosen from program.total_revenue.
  • src/utils/revenue-counter.ts:1-6, :52-57: each sale records what it added. Every decrement (refund, void, fraud, test order) is capped at that amount, and the program total never goes below 0.
  • src/api/affiliate-commission/services/commission-refund.ts:272-280: reverseCommissionForRefund takes back the refunded slice, or the whole remainder on a full refund. Every refund path calls it: v1-tracking.ts:1617 (track refund API), webhook-distributor.ts:2030 (Stripe), commission-dispute.ts:105, affiliate-invoice.ts:340.

Pages: getting-started/pricing-performance-model.mdx:51, brand/quickstart/commission-approval-cash-flow.mdx:119, faq/index.mdx:110, plus a new side-effect bullet in api-reference/track-refund.mdx (Side Effects).

Not changed, on purpose

  • api-reference/errors.mdx:169, :188, :440 (message column) and public/docs/openapi.yaml:623 quote API response text verbatim. The CMS still sends "Affitor → Settings → API Key": cms src/utils/api-token.ts:58-60, src/api/cli/controllers/cli.ts:655. A CMS string update is a separate follow-up.
  • content/changelog/* (hosted-mcp-server.mdx:34 "All settings", api-key-rotation.mdx, partner-links-on-approval.mdx): dated entries describe the UI as shipped.
  • "Settings → API keys" in brand/api-keys.mdx:86, :106, :124 and brand/settings.mdx:96: the settings area is still titled "Settings" (SettingsSidebar.tsx:98, the "‹ Settings" header), so these are still accurate.
  • content/docs/partners/** and brand/quickstart/payouts.mdx: owned by another PR.

Media

media: program-menu.png + settings nav image need a re-shoot (p476). public/docs/brand/program-menu.png still shows All settings / Team / Refer a brand / Log out. public/docs/brand/settings.png still shows the Personal > Your account group. Both images stay, and their alt text now describes only what they show.

Checks

npm run build (no VERCEL_ENV) && check-agent-surface && check-docs-host && check-docs-host-http: EXIT=0.

🤖 Generated with Claude Code

Nav v2 replaced the program menu's All settings / Team with Program
settings / Members, dropped the Personal group from settings, and moved
personal settings to Your account in the profile menu. Update every brand
page that pointed at the old menu, the partner Integrations path on the
MCP page, the list_my_payouts note (Wise, not PayPal), the read-only
sign-in email in the FAQ, and the fee-free tier refund rule (cms#384:
refunds lower the counted revenue, capped at what the sale added).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
affitor-docs Ready Ready Preview Oct 17, 2026 7:56am UTC

Request Review

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sonpiaz
sonpiaz merged commit c79f9d9 into main Oct 17, 2026
3 checks passed
@sonpiaz
sonpiaz deleted the docs/brand-navv2-paths branch October 17, 2026 08:02

This branch was successfully deployed

1 active deployment
Preview — d53f1722 Deployed Oct 17, 2026 by vercel[bot]
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