Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Mirror files follow their prompts through edits, renames and removal

Abierto
#38 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp, git, sqlite
Área
database, desktop

Línea de trabajo

Read src/Prompuff.Application/Services/PromptService.cs first, then inspect src/Prompuff.Infrastructure/Persistence/LibraryChangeMonitor.cs and LibraryWatcher in src/Prompuff.App/ViewModels/ShellServices.cs to understand how saves and data_version changes are handled. Trace the mirror behavior for prompts and workflows, and review ROADMAP.md for the Recently deleted rule. Done means Git shows edits, renames and removals as single-file changes, the specified cases are tested, and a missing or read-only mirror does not prevent saving.

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

Descripción

enhancement

Once the mirror folder exists (#37), each file has to follow its prompt, so that Git shows a saved change as an edit rather than as a new file.

What to do

  • Saving a prompt rewrites its file. A metadata change, such as a favorite or tags, rewrites the frontmatter too, since it's in the file.
  • A prompt keeps its file name when its title changes. Two prompts with the same title get distinct names.
  • Moving a prompt to Recently deleted leaves its file alone, and removing it for good deletes the file, so a restore never has to bring a file back. Record this in ROADMAP.md.
  • Workflows follow the same rules in workflows/.
  • Changes from the CLI or another copy reach the mirror too. The app already notices them through data_version.
  • A mirror folder that's gone or read-only doesn't stop a save. Prompuff says what happened, and that the library is safe.

Where to look

  • src/Prompuff.Application/Services/PromptService.cs: where saves, deletes and restores happen
  • src/Prompuff.Infrastructure/Persistence/LibraryChangeMonitor.cs and LibraryWatcher in src/Prompuff.App/ViewModels/ShellServices.cs

Done when

  • With the mirror under Git, an edit, a rename and a removal each show up in git diff as that one change to that one file.
  • Tests cover renames, duplicate titles, Recently deleted, removing for good, and a missing folder.
Lenguaje dominante
C#
Estrellas
0
Forks
1
Merge medio
1 h 21 min
PR fusionados (30 d)
22

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 hazeliscoding/prompuff

Todos los issues de hazeliscoding/prompuff

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.