feat(settings): save display settings without an API key
Asking for the key every time a phone changes a chart option was friction the owner doesn't want. These settings only change how data is displayed (averaging, scale, chart range, language default), so PUT /api/settings is now open. Inverter edits (name, kWp, ...) and ingest still need the key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -74,7 +74,7 @@ generate a Flutter client later).
|
||||
| `GET` | `/api/energy/daily` | Energy per day per inverter + total (default 30 days) |
|
||||
| `GET` | `/api/meta/fields` | Label / unit / group of every parameter — render from this |
|
||||
| `GET` | `/api/settings` | Dashboard display options (comparison averaging / scale / reference, power chart range / smoothing, voltage display, default language) |
|
||||
| `PUT` | `/api/settings` | Replace them — applies to every viewer (no accounts). `X-API-Key` required |
|
||||
| `PUT` | `/api/settings` | Replace them — applies to every viewer (no accounts). Open, no key: display only |
|
||||
|
||||
### Adding parameters
|
||||
|
||||
@@ -116,8 +116,8 @@ the dashboard total says how many inverters it covers.
|
||||
|
||||
### Dashboard settings and language
|
||||
|
||||
The ⚙ page sets the display options above for everyone; the API key is asked
|
||||
once and remembered on the device. The language (Greek / English) can be
|
||||
The ⚙ page sets the display options above for everyone, without an API key
|
||||
(they only change how data is shown; inverter edits still need the key). The language (Greek / English) can be
|
||||
switched per device from the header; devices that haven't picked one use the
|
||||
shared default. Issue texts are translated client-side from each issue's
|
||||
`code` + `params`, so new clients (Flutter) can do the same.
|
||||
|
||||
Reference in New Issue
Block a user