Settings: fold Users and Organization into the Settings tabs

The left rail is back to the three places you actually go — Garage,
Charging, Settings — and user management moves inside Settings as an
admin-only tab, next to a new Organization tab that used to be a card
buried in the personal settings. Tab order is Personal settings, Users,
Organization, Integrations. /admin redirects to /settings?tab=users so
old links keep working, and ?tab= picks the starting tab in general.

AdminUsers moves from views/ to components/ since it is a panel now, not
a route, and its page header becomes a section header like its
neighbours. The personal panel was split in two around the integrations
markup, which left no gap between the Profile and Privacy cards; it is
one block again.

Creating a user gets an organization picker for superadmins, defaulting
to "no organization" so an org-less account stays a deliberate choice.
Admins see no picker: the server pins their members to their own org
regardless, which users_test.go now covers along with both superadmin
paths.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
tajniak81andClaude Opus 5 committed 2026-08-17 17:38:54 +02:00
1 parent cd16d4383f
commit e373497958
10 files changed
+387 -151

No files matched your search

+5 -4
View File
@@ -26,7 +26,6 @@
"garage": "Garage",
"charging": "Opladning",
"settings": "Indstillinger",
"users": "Brugere",
"lightMode": "Lys tilstand",
"darkMode": "Mørk tilstand",
"signedIn": "Logget ind",
@@ -104,15 +103,15 @@
},
"admin": {
"eyebrow": "Administration",
"title": "Brugere",
"subtitleAll": "Konti på tværs af alle organisationer.",
"subtitleOrg": "Konti i din organisation.",
"subtitleOrgsNote": "Organisationer administreres under Indstillinger.",
"addUser": "Tilføj bruger",
"colEmail": "E-mail",
"colName": "Navn",
"colOrganization": "Organisation",
"noOrganization": "— Ingen organisation —",
"organizationHint": "Lad feltet stå tomt for at oprette en konto uden organisation.",
"colRole": "Rolle",
"colCreated": "Oprettet",
"you": "(dig)",
@@ -144,7 +143,9 @@
"subtitle": "Administrer din konto, udseende og dine data.",
"tabs": {
"personal": "Personlige indstillinger",
"integrations": "Integrationer"
"integrations": "Integrationer",
"users": "Brugere",
"organization": "Organisation"
},
"account": {
+5 -4
View File
@@ -26,7 +26,6 @@
"garage": "Garage",
"charging": "Charging",
"settings": "Settings",
"users": "Users",
"lightMode": "Light mode",
"darkMode": "Dark mode",
"signedIn": "Signed in",
@@ -122,15 +121,15 @@
},
"admin": {
"eyebrow": "Admin",
"title": "Users",
"subtitleAll": "Accounts across every organization.",
"subtitleOrg": "Accounts in your organization.",
"subtitleOrgsNote": "Organizations are managed in Settings.",
"addUser": "Add user",
"colEmail": "Email",
"colName": "Name",
"colOrganization": "Organization",
"noOrganization": "— No organization —",
"organizationHint": "Leave unset to create an account that belongs to no organization.",
"colRole": "Role",
"colCreated": "Created",
"you": "(you)",
@@ -162,7 +161,9 @@
"subtitle": "Manage your account, appearance, and data.",
"tabs": {
"personal": "Personal settings",
"integrations": "Integrations"
"integrations": "Integrations",
"users": "Users",
"organization": "Organization"
},
"account": {
+5 -4
View File
@@ -26,7 +26,6 @@
"garage": "Garaż",
"charging": "Ładowanie",
"settings": "Ustawienia",
"users": "Użytkownicy",
"lightMode": "Tryb jasny",
"darkMode": "Tryb ciemny",
"signedIn": "Zalogowano",
@@ -108,15 +107,15 @@
},
"admin": {
"eyebrow": "Administracja",
"title": "Użytkownicy",
"subtitleAll": "Konta ze wszystkich organizacji.",
"subtitleOrg": "Konta w Twojej organizacji.",
"subtitleOrgsNote": "Organizacjami zarządza się w Ustawieniach.",
"addUser": "Dodaj użytkownika",
"colEmail": "E-mail",
"colName": "Imię i nazwisko",
"colOrganization": "Organizacja",
"noOrganization": "— Bez organizacji —",
"organizationHint": "Zostaw puste, aby utworzyć konto bez organizacji.",
"colRole": "Rola",
"colCreated": "Utworzono",
"you": "(Ty)",
@@ -148,7 +147,9 @@
"subtitle": "Zarządzaj kontem, wyglądem i danymi.",
"tabs": {
"personal": "Ustawienia osobiste",
"integrations": "Integracje"
"integrations": "Integracje",
"users": "Użytkownicy",
"organization": "Organizacja"
},
"account": {