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

Open Beginner friendly
#23 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
electron, typescript
Domain
frontend

Research direction

Start with the update strings in src/ui/copy.ts (around lines 2645-2655) and the notice and button logic in runUpdateCheck in src/plugin/updateCheck.ts. In src/shared/update.ts, releasesRepo gives owner/repo, so add a release-page URL helper beside latestReleaseUrl and cover it in tests/commands.test.ts. Done when the update notice names the new version and links to the releases/latest page, the button opens that page, noRepo and failed no longer mention Community plugins, and npm run check passes. Comment on the issue to be assigned before starting.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
2
Forks
1
Avg merge
5m
Merged PRs (30d)
19

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from A21-devs/cortex

All issues in A21-devs/cortex

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.