Show the app version in the status bar

Aperta Adatta ai principianti
#40 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
electron, react, typescript
Ambito
desktop, frontend

Direzione di ricerca

Inizia dal percorso IPC delle informazioni sull'host: src/main/ipc.ts e src/shared/ipc.ts definiscono la chiamata, e src/preload/index.ts la espone al renderer. Aggiungi app.getVersion() lì, poi mostrala per prima in src/renderer/src/components/StatusBar.tsx e restituisci un valore fittizio da src/renderer/src/mockApi.ts. È completato quando npm run typecheck passa, npm run dev:web mostra la versione e il modello di segnalazione bug chiede agli utenti di copiarla dalla barra di stato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

first issue ui

Bug reports need the app version, and right now you have to dig in Settings > Apps for it.

Expected

The status bar shows v0.1.0 at the far left, before the QEMU version, in the same muted style.

Acceptance criteria

  • main sends app.getVersion() to the renderer (add it to the existing host info call if that's simplest)
  • StatusBar.tsx shows it first
  • the browser mock (src/renderer/src/mockApi.ts) returns a fake version so npm run dev:web still works
  • the bug report form (.github/ISSUE_TEMPLATE/bug_report.yml) says to copy it from the status bar

Files

  • src/main/ipc.ts, src/preload/index.ts, src/shared/ipc.ts
  • src/renderer/src/components/StatusBar.tsx, src/renderer/src/mockApi.ts

Getting set up

  1. Fork and clone, then npm install and npx install-electron --no (full steps in CONTRIBUTING.md)
  2. npm run dev:web shows the UI in a browser with a fake backend, no QEMU needed. npm run dev runs the real app
  3. Before the PR: npm run typecheck and npm test

Comment here if you want to take it, so nobody doubles up. Ask anything in this issue and I will answer here, usually within a few days.

Lingua principale
TypeScript
Stelle
3
Fork
0
Merge medio
2m
PR unite (30g)
35

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di A21-devs/Virtual-Machine-Manager

Tutte le issue di A21-devs/Virtual-Machine-Manager

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.