feat: add system information page and update account settings
Deploy Development / deploy (push) Successful in 34s
Test Suite / pytest-backend (push) Successful in 6s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Successful in 26s
Test Suite / pytest-backend (pull_request) Successful in 5s
Test Suite / lint-backend (pull_request) Successful in 1s
Test Suite / build-frontend (pull_request) Successful in 6s
Test Suite / playwright-tests (pull_request) Successful in 23s

- Introduced a new SettingsSystemInfoPage to display technical system information.
- Updated AccountSettingsPage to include a link to the new system information page, enhancing user access to app version, build, environment, and database schema details.
- Removed unused version state from Dashboard component to streamline data handling.
This commit is contained in:
Lars committed 2026-05-07 10:29:14 +02:00
1 parent fe703ca414
commit 18fa4de055
4 files changed
+109 -31

No files matched your search

+1 -31
View File
@@ -19,7 +19,6 @@ function formatCappedCount(n, capped) {
}
function Dashboard() {
const [version, setVersion] = useState(null)
const [profile, setProfile] = useState(null)
const [loading, setLoading] = useState(true)
const [trainingHome, setTrainingHome] = useState(null)
@@ -146,8 +145,7 @@ function Dashboard() {
const loadData = async () => {
try {
const [versionData, profileData] = await Promise.all([api.getVersion(), api.getCurrentProfile()])
setVersion(versionData)
const profileData = await api.getCurrentProfile()
setProfile(profileData)
} catch (err) {
console.error('Failed to load data:', err)
@@ -372,34 +370,6 @@ function Dashboard() {
</section>
</>
) : null}
{version ? (
<div className="card dashboard-sys-card">
<h3 className="dashboard-sys-card__title">System</h3>
<div className="dashboard-sys-card__grid">
<strong>Version</strong>
<span>{version.app_version}</span>
<strong>Build</strong>
<span>{version.build_date}</span>
<strong>Umgebung</strong>
<span>{version.environment}</span>
<strong>DB Schema</strong>
<span>{version.db_schema_version}</span>
<strong>Dein Tier</strong>
<span>
<span
className={
profile?.tier === 'premium' ? 'dashboard-sys-card__pill dashboard-sys-card__pill--accent' : 'dashboard-sys-card__pill'
}
>
{profile?.tier || 'free'}
</span>
</span>
<strong>Rolle</strong>
<span>{profile?.role || 'user'}</span>
</div>
</div>
) : null}
</div>
)
}