feat: private session history, own-permissions view, plug-gated start button
- non-admins now see ONLY their own sessions in /api/sessions (own app starts + own linked cards); gun scopes grant control, not visibility; admins see everything - Account page shows the logged-in user's permissions in plain words (Administrator badge, or the guns/relays they control), built solely from data already visible to them - Start button arms only when the gun reports Preparing (cable in the car); idle unplugged gun shows an explanatory hint instead - keep owner's app rename to 'Art IoT' - smoke test: 59 checks (gun-scoped user sees no foreign sessions)
This commit is contained in:
@@ -87,3 +87,7 @@ Owner: full frontend revision (React + routing + zustand + TanStack Query, Vite
|
||||
## [2026-07-12] meta | Panel live on the owner's phone; gun state language; password self-service
|
||||
|
||||
Owner confirmed the React panel loads on the phone after backend restart. Changes on request: (1) both guns ALWAYS render on Control — gun cards come from the chargers registry, live reports only overlay state (offline/no-status shown gray); (2) new lamp/chip language: gray=idle, pulsing blue=cable plugged, green=charging; (3) POST /api/me/password + /account page — any user changes their own password (current password required; admin reset via PUT /api/users stays). Smoke: 58 checks. Updated [[frontend]], [[backend]].
|
||||
|
||||
## [2026-07-12] meta | Private history; permissions on Account; Start only when plugged; "Art IoT" rename
|
||||
|
||||
Owner (testing on the phone, second user created): (1) transactions are now PRIVATE — non-admins see only their own sessions (app starts + linked cards); gun scopes grant control, not visibility; admins see all. (2) Account page shows the user's own permissions in plain words (admin badge, or gun/relay list built from data they already see). (3) Start button arms ONLY when the cable is plugged (Preparing) — an idle unplugged gun shows "plug the cable into the car to enable". Owner also renamed the app to "Art IoT" (login, topbar, manifest, title) — kept. Smoke: 59 checks. Updated [[backend]], [[frontend]].
|
||||
|
||||
Reference in New Issue
Block a user