Skip to content

Api key warning - #451

Open
trean wants to merge 2 commits into
masterfrom
api-key-warning
Open

trean wants to merge 2 commits into
masterfrom
api-key-warning

Conversation

@trean

@trean trean commented Sep 24, 2026

Copy link
Copy Markdown
Contributor
  1. If the user tries to apply the wrong api key, they will see an error
  2. No page reload after apply, clients setting change in the context
image

@trean
trean requested review from generall and a lite review from Copilot September 24, 2026 15:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved blocking issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Adds API-key validation and updates client state without reloading the page.

Changes:

  • Validates API keys and displays errors.
  • Rebuilds clients and remounts consumers when keys change.
  • Clears stale Axios headers and adds tests.
File Description
src/​pages/​Home.jsx Removes page reload behavior.
src/​context/​client-context.test.js Tests client recreation and remount behavior.
src/​context/​client-context.jsx Rebuilds clients on API-key changes.
src/​components/​authDialog/​authDialog.test.jsx Tests valid, invalid, and missing keys.
src/​components/​authDialog/​authDialog.jsx Adds API-key validation and error handling.
src/​common/​axios.js Removes stale API-key headers.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants