feat(desktop): Setup-Seite zeigt Version und Stand der installierten App
Tessera CI/CD / Lint & Type Check (push) Successful in 50s
Tessera CI/CD / Tests (push) Successful in 1m4s
Tessera CI/CD / Desktop-Pakete bauen (push) Successful in 5m0s
Tessera CI/CD / Build & Publish Images (push) Successful in 2m57s

Neues Command get_client_info liefert "Tessera-App X.Y.Z · Stand <sha7>"
(ohne Stempel nur die Version); die Setup-Seite blendet die Zeile beim
Erststart und unter "Server-Adresse ändern" dezent ein. So ist ohne
Adressleiste erkennbar, welcher Client-Stand läuft.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-17 16:00:56 +02:00
parent 7479cb485f
commit a6d1a648d1
3 changed files with 54 additions and 1 deletions
+18
View File
@@ -141,6 +141,13 @@
cursor: not-allowed;
}
.client-info {
margin: 20px 0 0;
font-size: 0.75rem;
color: oklch(0.6 0 0);
min-height: 1em;
}
.current-server {
display: none;
text-align: left;
@@ -192,6 +199,7 @@
<button id="connect-btn" type="button">Verbinden</button>
<button id="cancel-btn" type="button" class="secondary" hidden>Abbrechen</button>
<p id="client-info" class="client-info"></p>
</div>
<script type="module">
@@ -360,6 +368,16 @@
// gespeicherte Adresse (oder wenn der Aufruf fehlschlaegt) bleibt es
// beim bisherigen Erststart-Verhalten.
async function init() {
// Version und Stand der installierten App -- rein informativ; ein
// Fehlschlag laesst die Zeile einfach leer.
try {
const info = await invoke('get_client_info');
if (typeof info === 'string') {
document.getElementById('client-info').textContent = info;
}
} catch {
// Zeile bleibt leer.
}
try {
const current = await invoke('get_server_url');
if (typeof current === 'string' && current) {