Sari la conținut

Remaining Tasks for logseq_manager

This TODO list outlines the key items left to complete the cross-platform setup and launcher. Updated with implementation status and additional tasks.

1. Generalizare și Abstractizare (Bază pentru MVP)

  • [X] Generalizează codul: Elimină nume concrete (ex. "Cosmin și Elena"), folosește variabile pentru echipe și căi.
  • [X] Refactorizează config.yml.example pentru template-uri generice.
  • [X] Verifică dacă Syncthing e necesar în arhitectura finală (poate înlocuit cu Git pentru toate sync-urile).

2. Restore and Enhance Launcher

  • [X] Restore logseq_launcher.py to repository (există deja).
  • [x] Define Pydantic models in logseq_launcher.py to validate the launcher.teams schema:
  • Create a Team BaseModel with fields: name, workspaces, logseq_install_path, config_edn, plugins_dir, themes_dir.
  • Load and validate the YAML config against the Pydantic schema, handling ValidationError with user-friendly messages.
  • [x] Implement "activate team" workflow in the launcher:
  • Update Logseq config.edn (e.g. set graph directory).
  • Copy/symlink plugins & themes for the selected team.
  • Provide an explicit "Activate" button in the GUI.

3. Finalize Makefile CLI

  • [x] Verify the help and --help targets print all available targets with clear descriptions.
  • [x] Refine the install-logseq interactive snippet:
  • Ensure prompts work across bash/zsh on Linux/macOS.
  • Remove duplicate install-logseq labels and correct indentation.
  • Allow reuse of an existing Logseq binary or force reinstall when requested.
  • [x] Ensure there are no duplicate or stale targets in the Makefile.
  • [x] Add documentation/comments for each target in the Makefile to improve maintainability.

4. Testing & Verification

  • [x] Add basic smoke tests for the launcher (e.g., load config with invalid/missing fields).
  • [x] Add integration tests for service templates (systemd, launchd, Windows Task Scheduler).
  • [x] Test the full make install flow on Linux, macOS and Windows.

5. Documentation

  • [x] Review and update the example config.yml.example to match the Pydantic schema.
  • [x] Add usage examples for each component:
  • Sync scripts (sync.py, edn_sync.py, gotify_client.py).
  • Service installation (make setup-services).
  • Launcher usage.

6. Îmbunătățiri Opționale

  • [x] Adaugă logging centralizat pentru toate componentele.
  • [x] Implementează CLI backup manager + îmbunătățiri integritate (adăugă config pentru retenție backup-uri).
  • [x] Suport pentru 4 repo-uri separate (md, plugins, templates, edn) + șterge syncthing din config.
  • [x] Adaugă unit tests pentru funcții cheie.
  • [x] Creează scripturi pentru dezinstalare.

7. Miscellaneous

  • [x] mut testele py in tests/ si scripturile principale ale engine-ului in altceva, core sau engine sau ceva, si in genere sa fac niste subfoldere, sa las in radacina numai Makefile, md uri, requirements.txt si poate cam atat sau +/- ceva dependinte la cele deja mentionate
  • [x] Curăță rădăcina: mută fișierele vechi/legacy în subfoldere potrivite (lasă .md în rădăcină)

Last updated: 2025-09-15