Skip to content

fix: CLI names the nav v2 settings paths - #39

Merged
sonpiaz merged 1 commit into
mainfrom
fix/settings-paths-nav-v2
Oct 17, 2026
Merged

sonpiaz merged 1 commit into
mainfrom
fix/settings-paths-nav-v2

Conversation

@sonpiaz

@sonpiaz sonpiaz commented Oct 17, 2026

Copy link
Copy Markdown
Member

Why

The CLI still pointed people to dashboard paths from before nav v2:

  • "Affitor → Settings → API Key" (init when already configured, status on a 401);
  • "open the program, go to Settings, and use Connect Stripe" / "program Settings, Connect Stripe" (setup stripe, init, onboard, the generated .env comment, README).

Today, from the program menu:

  • Program settings → Developers → API keys (button Regenerate);
  • Program settings → Payments (button Connect Stripe).

Checked on dashboard main: ProgramMenu.tsx:349, settingsNav.ts, ApiKeyTab.tsx:136, PaymentsStep.tsx:248. The CMS side is Affitor/affiliate-cms#519 (API key hints) and #520 (stripe-connect 410).

What changed (text only)

  • src/commands/init.ts, src/commands/status.ts: API key path.
  • src/commands/setup-stripe.ts (STRIPE_SETUP_MOVED), src/lib/config.ts, and the README: Stripe path.
  • Tests:
    • fixtures that stand in for CMS answers now carry the hint text from cms#519;
    • setup-stripe.test.ts gains one test that pins the Stripe path literally (before, it only compared against the imported constant).

No flags, exit codes or JSON fields change. The CLI prints the CMS hint as it comes, so released CLIs show the new CMS wording without an update.

Tests

  • vitest run: 131/131 pass. tsc --noEmit is clean.
  • Mutants: putting the old path back in init.ts, status.ts or setup-stripe.ts fails 1 test each.

No version bump here; it goes in the next release PR.

🤖 Generated with Claude Code

The CLI still sent people to "Settings → API Key" and "program Settings,
Connect Stripe", the paths from before nav v2. API keys now live under
Program settings → Developers → API keys, and Connect Stripe under
Program settings → Payments. Test fixtures now carry the CMS hint text
from Affitor/affitor#519, and a test pins the Stripe path.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sonpiaz
sonpiaz merged commit f5c4a75 into main Oct 17, 2026
1 check passed
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