From 5072e65ec3f674eb125d5b74cabd4b8b398c69a3 Mon Sep 17 00:00:00 2001 From: shad Date: Sun, 14 Jun 2026 16:21:12 +0400 Subject: [PATCH] fix(settings): scrub raw user_id + dead emails + stale repo link; add Sign out User's brief explicitly banned 'random strings of numbers and letters'. Settings was leaking a 12-char user_id slice next to 'Current'. Removed. - Identity card: Signed in / Email / Status (no raw user_id) - COMMON_EMAILS: replaced 4 dead demo identities with the 3 seeded personas (CEO/HR/IT) so quick-switch matches what the login page already advertises - Sign out button: clears the bearer + sessionStorage and returns to / - About copy: refreshed; stale gitea repo link removed (the new canon is shad/canvas-frontend) --- src/scenes/Settings.tsx | 43 +++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/src/scenes/Settings.tsx b/src/scenes/Settings.tsx index 712b91e..4d0a994 100644 --- a/src/scenes/Settings.tsx +++ b/src/scenes/Settings.tsx @@ -5,10 +5,9 @@ import { api } from "../lib/api"; import { User, Refresh, Cog, Pulse, Layers, Check } from "../components/icons"; const COMMON_EMAILS = [ - "dev@flow-master.ai", - "procurement.operator@flowmaster.local", - "finance.lead@flowmaster.local", - "ops.admin@flowmaster.local", + "ceo-head@flow-master.ai", + "hr-head@flow-master.ai", + "it-head@flow-master.ai", ]; export default function Settings() { @@ -59,20 +58,16 @@ export default function Settings() {

Identity

- Current - {actor?.user_id?.slice(0, 12) ?? "—"} + Signed in + {userDisplayName ?? userEmail.split("@")[0]}
Email {userEmail}
- Display name - {userDisplayName ?? "—"} -
-
- Backend - {api.config.baseUrl || "(same-origin via /api)"} + Status + {actor?.user_id ? "active session" : "no session"}
@@ -97,9 +92,19 @@ export default function Settings() { ))} - +
+ + +
@@ -151,14 +156,10 @@ export default function Settings() {

About

- FlowMaster Mission Control. Live at{" "} + FlowMaster operator cockpit. Live at{" "} canvas.flow-master.ai - . All actions hit the real EA2 backend — the live console shows every - fetch. Source:{" "} - - gitea.flow-master.ai/shad/flowmaster-mission-control-demo - . + . Every action writes to EA2 — open the live console (above) to see the API trail.