Name customer selectors and validate customer fixtures during frontend builds

This commit is contained in:
2026-11-17 22:10:33 +01:00
parent fae4b4562b
commit 8d0a425f0c
3 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -367,7 +367,7 @@ function Workspace({ auth, logout }: { auth: Session; logout: () => void }) {
<div className="account">
<div>
<span className="account-dot" aria-hidden="true" />
<span title={auth.principal.id}>{auth.principal.display_name}</span>
<span title={auth.principal.id}>{auth.principal.display_name === auth.principal.id && auth.principal.id.startsWith('local:') ? 'Lokales Konto' : auth.principal.display_name}</span>
</div>
<button
onClick={async () => {
@@ -394,7 +394,7 @@ function Workspace({ auth, logout }: { auth: Session; logout: () => void }) {
{route.page !== 'geraete' && route.page !== 'kunden' && (
<label className="context">
<span>Kunde</span>
<select value={customer} onChange={(e) => switchCustomer(e.target.value)}>
<select aria-label="Kunde" value={customer} onChange={(e) => switchCustomer(e.target.value)}>
{customers.map((c) => (
<option value={c.tenant_id} key={c.tenant_id}>
{c.name}