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
- Fork the repo and create a branch
git checkout -b feature/settings-api-base-section
- Implement changes
- Test and commit
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.
Surface the resolved API base URL on the Settings page
Description
src/app/settings/page.tsxonly renders an Appearance section with theThemeToggle; operators have no way to see which backend the dashboard is talking to, even thoughsrc/lib/resolveApiBase.tscomputes that origin and it drives every request. This issue adds a read-only "Connection" section that displays the resolved API base (with aCopyButton) so operators can confirm the environment they are in.Requirements and context
<section>that shows the resolved base URL fromresolveApiBaseinside aKeyValueGridrow with aCopyButton.mainlandmark, the metadata title, and dark-mode classes.Suggested execution
git checkout -b feature/settings-api-base-sectionsrc/app/settings/page.tsx; reusesrc/components/KeyValueGrid.tsxandsrc/components/CopyButton.tsx.src/app/settings/page.test.tsx— assert the resolved base renders and the copy control is present.README.md.aria-livefeedback.Test and commit
npm run lint,npm run typecheck,npm test, andnpm run build.npm testoutput.Example commit message
feat(settings): add Connection section displaying the resolved API base URLGuidelines
Community & contribution rewards