1
Fork 0
mirror of https://github.com/thegeneralist01/archivr synced 2026-07-21 18:55:36 +02:00

docs(settings): mark Track 7 done in NEXT.md

This commit is contained in:
TheGeneralist 2026-06-26 17:20:06 +02:00
parent d558ce2a3f
commit 96eaf50609
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

17
NEXT.md
View file

@ -136,11 +136,20 @@ Depends on Track 5.
--- ---
### 7. Settings ### ~~7. Settings~~ ✅ Done
**What:** Account profile page (display name, password change). Instance settings UI **Implemented:** `database.rs`: `display_name TEXT` column migration (ALTER TABLE, idempotent);
(open registration toggle, default visibility). API token management UI. `InstanceSettings` struct; 6 new pub fns (`get_instance_settings`, `update_instance_settings`,
Depends on Track 5. `update_user_display_name`, `update_user_password`, `get_user_password_hash`,
`get_user_display_name`). `routes.rs`: `PATCH /api/auth/me` (display name update + current-password-
verified password change); `GET|PATCH /api/admin/instance-settings` (ROLE_ADMIN);
`auth_me` now returns `display_name`. `frontend/src/api.js`: 7 new helpers (`updateProfile`,
`changePassword`, `listTokens`, `createToken`, `deleteToken`, `getInstanceSettings`,
`updateInstanceSettings`). `frontend/src/components/SettingsView.jsx`: tabbed settings page
(Profile — display name + password change; API Tokens — create/list/revoke with one-time reveal;
Instance — public index, public content, open registration toggles + default visibility select).
`Topbar.jsx`: settings nav button; user-menu shows display_name ?? username.
`App.jsx`: renders SettingsView for `view === 'settings'`. 176 tests green. Depends on Track 5.
--- ---