Skip to content

Add a Settings page section to view and override the configured API base URL #142

Description

@mikewheeleer

Surface the resolved API base URL on the Settings page

Description

src/app/settings/page.tsx only renders an Appearance section with the ThemeToggle; operators have no way to see which backend the dashboard is talking to, even though src/lib/resolveApiBase.ts computes that origin and it drives every request. This issue adds a read-only "Connection" section that displays the resolved API base (with a CopyButton) so operators can confirm the environment they are in.

Requirements and context

  • Repository scope: Agentpay-Org/Agentpay-frontend only.
  • Add a "Connection" <section> that shows the resolved base URL from resolveApiBase inside a KeyValueGrid row with a CopyButton.
  • Keep the page server-rendered where possible; only the copy control needs a client island.
  • Preserve the existing Appearance section, the main landmark, the metadata title, and dark-mode classes.
  • Do not display any secret value — only the public base URL.

Suggested execution

Test and commit

  • Run npm run lint, npm run typecheck, npm test, and npm run build.
  • Cover edge cases: default localhost base, an overridden env base, and copy behaviour.
  • Include the npm test output.

Example commit message

feat(settings): add Connection section displaying the resolved API base URL

Guidelines

  • Minimum 95 percent test coverage for the changed page.
  • Clear, reviewer-focused documentation.
  • Timeframe: 96 hours.

Community & contribution rewards

  • 💬 Join the AgentPay community on Discord for questions, reviews, and faster merges: https://discord.gg/eXvRKkgcv
  • ⭐ This is a GrantFox OSS / Official Campaign task and may be rewarded. When your PR is merged you'll be prompted to rate the project — if this issue and the maintainers helped you ship, we'd be grateful for a 5-star rating. Clear questions in Discord and tidy, well-tested PRs are the fastest path to a merge and a reward.

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions