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

オープン 初心者向け
#23 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
74/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
electron, typescript
領域
frontend

調査の方向性

src/ui/copy.ts の更新用の文字列(2645〜2655行目付近)と、src/plugin/updateCheck.ts の runUpdateCheck にある通知とボタンのロジックから始めてください。src/shared/update.ts では releasesRepo が owner/repo を返すので、latestReleaseUrl の隣にリリースページの URL を返すヘルパーを追加し、tests/commands.test.ts でテストしてください。完了条件は、更新通知に新しいバージョンが表示され releases/latest ページへのリンクが付いていること、ボタンがそのページを開くこと、noRepo と failed の文言から Community plugins への言及がなくなること、そして npm run check が通ることです。作業を始める前に、issue にコメントして担当者に割り当ててもらってください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
2
フォーク
1
平均マージ
5分
マージ済み PR(30日)
19

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

A21-devs/cortex のほかの issue

A21-devs/cortex の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。