fix(AP0.8): UI-Sichtbarkeit Attention und OM-Sektionen verbessern
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 57s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 12s
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Successful in 57s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 12s
Attention-Widget an workspace.read koppeln, Vorhaben-Detail-Sektionen bei initiative.read anzeigen, App-Version im Kontext-Widget, Session-Loading-Race behoben. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
fe3bc4f057
commit
c9101db1e1
4 files changed
+29
-12
No files matched your search
@@ -1,8 +1,17 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { useSession } from '../context/SessionContext.jsx'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
|
||||
export function TenantContextWidget() {
|
||||
const { context, me } = useSession()
|
||||
const [version, setVersion] = useState(null)
|
||||
|
||||
useEffect(() => {
|
||||
fetch('/api/version')
|
||||
.then((r) => r.json())
|
||||
.then((data) => setVersion(data))
|
||||
.catch(() => setVersion(null))
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<WidgetCard title="Kontext" subtitle="Aktiver Mandant und Actor">
|
||||
@@ -28,6 +37,14 @@ export function TenantContextWidget() {
|
||||
<dd>{context.actor.type}</dd>
|
||||
</div>
|
||||
)}
|
||||
{version && (
|
||||
<div>
|
||||
<dt>App-Version</dt>
|
||||
<dd className="muted">
|
||||
{version.version} · Schema {version.schema}
|
||||
</dd>
|
||||
</div>
|
||||
)}
|
||||
</dl>
|
||||
)}
|
||||
</WidgetCard>
|
||||
|
||||
Reference in new issue
Block a user