Update notice says to update in Community plugins, but Cortex isn't listed there
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ả
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.tsaround lines 2645-2655 (update.available,open,noRepo,failed): the wordingsrc/plugin/updateCheck.ts,runUpdateCheck: shows the notice and its buttonsrc/shared/update.ts:releasesRepogivesowner/repo; add a small helper for the release page URL next tolatestReleaseUrltests/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.openis fine) instead of Community plugins -
noRepoandfailedno longer mention Community plugins - a unit test for the release page URL helper
-
npm run checkpasses
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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của A21-devs/cortex
-
help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
A short demo GIF for the READMEĐang mởdocumentation help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của A21-devs/cortex
Issue tương tự
-
area:config bug priority:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Doezer/Questarr#1451 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
sidebandstudio/clawtrate#1156 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
WenyuChiou/agent-board#1993 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug design
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Colorado-Startups/coloradostartups.org#151 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jarrodwatts/claude-hud#883 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày