Update notice says to update in Community plugins, but Cortex isn't listed there

Đang mở Phù hợp với người mới
#23 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
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
electron, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu từ các chuỗi cập nhật trong src/ui/copy.ts (khoảng dòng 2645-2655) và logic thông báo cùng nút bấm trong runUpdateCheck ở src/plugin/updateCheck.ts. Trong src/shared/update.ts, releasesRepo cung cấp owner/repo, vì vậy hãy thêm một helper tạo URL trang releases bên cạnh latestReleaseUrl và viết test cho nó trong tests/commands.test.ts. Hoàn thành khi thông báo cập nhật hiển thị phiên bản mới và liên kết tới trang releases/latest, nút bấm mở trang đó, noRepo và failed không còn nhắc tới Community plugins, và npm run check chạy thành công. Hãy bình luận trên issue để được giao việc trước khi bắt đầu.

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

Mô tả

first issue

Cortex: Check for updates says "Cortex {version} is available. Update it in Community plugins." and has an Open Community plugins button. Cortex isn't in Obsidian's community plugin list yet (that's #31), so people who follow it find nothing to update.

Expected

When a newer release exists, the notice links to that release on GitHub and says to download the zip and unzip it over the old cortex folder. The "couldn't tell" and "couldn't reach" messages stop mentioning Community plugins too.

Files to look at

  • src/ui/copy.ts around lines 2645-2655 (update.available, open, noRepo, failed): the wording
  • src/plugin/updateCheck.ts, runUpdateCheck: shows the notice and its button
  • src/shared/update.ts: releasesRepo gives owner/repo; add a small helper for the release page URL next to latestReleaseUrl
  • tests/commands.test.ts: already imports the update helpers, add tests there

Acceptance criteria

  • the update-available notice names the new version and links to https://github.com/<repo>/releases/latest
  • the button opens that page (in Obsidian, window.open is fine) instead of Community plugins
  • noRepo and failed no longer mention Community plugins
  • a unit test for the release page URL helper
  • npm run check passes

Setup

Read CONTRIBUTING.md and docs/DEVELOPMENT.md first. Node 20.11 or newer, and clone outside OneDrive, Dropbox or iCloud.

git clone https://github.com/A21-devs/cortex.git
cd cortex
npm ci
npm run check      # typecheck + module boundaries, unit tests, build (what CI runs)
npm run sample     # a made-up vault in your temp folder, so you never need your own notes
npm run desktop    # build and open Cortex Desktop to try your change

Taking it

Comment here if you want to take it, and I will assign it to you. Ask questions in this issue, I will answer here. One pull request, with "Closes #N" in the description.

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

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/cortex

Tất cả issue của A21-devs/cortex

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.