Show the app version in the status bar

Abierto Apto para principiantes
#40 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
88/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
electron, react, typescript
Área
desktop, frontend

Línea de trabajo

Empieza por la ruta IPC de la información del host: src/main/ipc.ts y src/shared/ipc.ts definen la llamada, y src/preload/index.ts la expone al renderer. Añade app.getVersion() ahí, luego muéstralo primero en src/renderer/src/components/StatusBar.tsx y devuelve un valor falso desde src/renderer/src/mockApi.ts. Está terminado cuando npm run typecheck pasa, npm run dev:web muestra la versión y la plantilla de informe de errores pide a los usuarios copiarla desde la barra de estado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
3
Forks
0
Merge medio
2 min
PR fusionados (30 d)
35

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de A21-devs/Virtual-Machine-Manager

Todos los issues de A21-devs/Virtual-Machine-Manager

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.