Show the app version in the status bar

Đang mở Phù hợp với người mới
#40 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
88/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
electron, react, typescript
Lĩnh vực
desktop, frontend

Hướng nghiên cứu

Bắt đầu từ đường IPC thông tin host: src/main/ipc.ts và src/shared/ipc.ts định nghĩa lời gọi, còn src/preload/index.ts đưa lời gọi đó ra cho renderer. Thêm app.getVersion() vào đó, sau đó hiển thị nó đầu tiên trong src/renderer/src/components/StatusBar.tsx và trả về một giá trị giả từ src/renderer/src/mockApi.ts. Hoàn thành khi npm run typecheck chạy thành công, npm run dev:web hiển thị phiên bản, và mẫu báo cáo lỗi yêu cầu người dùng sao chép phiên bản từ thanh trạng thái.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
3
Fork
0
Merge trung bình
2 phút
Pull request đã merge (30 ngày)
35

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của A21-devs/Virtual-Machine-Manager

Tất cả issue của A21-devs/Virtual-Machine-Manager

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.