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

Abierto Apto para principiantes
#23 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
74/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
electron, typescript
Área
frontend

Línea de trabajo

Empieza con las cadenas de actualización en src/ui/copy.ts (alrededor de las líneas 2645-2655) y con la lógica del aviso y del botón en runUpdateCheck en src/plugin/updateCheck.ts. En src/shared/update.ts, releasesRepo proporciona owner/repo, así que añade un helper para la URL de la página de releases junto a latestReleaseUrl y cúbrelo con pruebas en tests/commands.test.ts. Está terminado cuando el aviso de actualización indique la nueva versión y enlace a la página releases/latest, el botón abra esa página, noRepo y failed ya no mencionen Community plugins, y npm run check pase. Comenta en el issue para que te asignen antes de empezar.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
2
Forks
1
Merge medio
5 min
PR fusionados (30 d)
19

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de A21-devs/cortex

Todos los issues de A21-devs/cortex

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.