Skip to content

feat: add Exploration Rate settings to the UI#350

Merged
mcowger merged 1 commit into
mainfrom
pi/issue-346-1778042256255
May 6, 2026
Merged

feat: add Exploration Rate settings to the UI#350
mcowger merged 1 commit into
mainfrom
pi/issue-346-1778042256255

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot commented May 6, 2026

Summary

Fixes #346 — Exposes performanceExplorationRate and latencyExplorationRate in the Configuration page, following the same Disclosure-card style as the existing Failover and Cooldown Settings cards.

Changes

Backend (packages/backend/src/routes/management/config.ts):

  • Added GET /v0/management/config/exploration-rate — returns both rates
  • Added PATCH /v0/management/config/exploration-rate — validates values are 0–1, persists via ConfigService.setSetting

Frontend API (packages/frontend/src/lib/api.ts):

  • Added getExplorationRates() — fetches current rates
  • Added patchExplorationRates(updates) — patches one or both rates

Frontend UI (packages/frontend/src/pages/Config.tsx):

  • Added ExplorationRates interface and default values
  • Added state management, load/save handlers, and loadExplorationRates on mount
  • Added "Exploration Rate Settings" Disclosure card with:
    • Compass icon + description text
    • "Performance Exploration Rate" number input (0–1, step 0.01)
    • "Latency Exploration Rate" number input (0–1, step 0.01), with note that it defaults to the performance rate
    • Save button matching the failover/cooldown card style

@mcowger mcowger merged commit 92c6a40 into main May 6, 2026
@mcowger mcowger deleted the pi/issue-346-1778042256255 branch May 6, 2026 05:10
github-actions Bot added a commit that referenced this pull request May 7, 2026
## Summary

Fixes #346 — Exposes `performanceExplorationRate` and
`latencyExplorationRate` in the Configuration page, following the same
Disclosure-card style as the existing Failover and Cooldown Settings
cards.

### Changes

**Backend** (`packages/backend/src/routes/management/config.ts`):
- Added `GET /v0/management/config/exploration-rate` — returns both
rates
- Added `PATCH /v0/management/config/exploration-rate` — validates
values are 0–1, persists via `ConfigService.setSetting`

**Frontend API** (`packages/frontend/src/lib/api.ts`):
- Added `getExplorationRates()` — fetches current rates
- Added `patchExplorationRates(updates)` — patches one or both rates

**Frontend UI** (`packages/frontend/src/pages/Config.tsx`):
- Added `ExplorationRates` interface and default values
- Added state management, load/save handlers, and `loadExplorationRates`
on mount
- Added "Exploration Rate Settings" Disclosure card with:
  - Compass icon + description text
  - "Performance Exploration Rate" number input (0–1, step 0.01)
- "Latency Exploration Rate" number input (0–1, step 0.01), with note
that it defaults to the performance rate
  - Save button matching the failover/cooldown card style

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Exploration Rate controls are not exposed in the UI

1 participant