From c83dbcb2401b9d599ae9ceddcb4c88eb49a9b1aa Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 5 May 2026 09:46:12 +0200 Subject: Chore: updated handoff and todo --- TODO.md | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) (limited to 'TODO.md') diff --git a/TODO.md b/TODO.md index b3590da..dc2fe25 100644 --- a/TODO.md +++ b/TODO.md @@ -1,17 +1,36 @@ # TODO -Known gaps from initial implementation. Functional for daily use — these are enhancements. +## save on exit +- [ ] if a file has been modified, ask for confirmation before exiting the application to avoid losing local edits. -## UI Gaps +## git operations +- [ ] the push to master button doesn't work on its own, it needs to know what to commit, write a commit message and then it can push to master. +- [ ] with local modifications present, it's not possible to pull from remote. Add a way to stash or revert local modifications, especially for modified articles. -- [✅] **TaxonomyView: Categories tab** — Tags tab exists, Categories tab missing. Mirror the Tags tab structure (IT/EN pair table, orphan detection) for `categories` frontmatter key. Files: `ui/taxonomy_view.py`, `core/taxonomy.py`. +## filter and order by +- [ ] in the main articles view, add the option to order by date, category, type +- [ ] add a quick filter button 🔎 (Ctrl+f) that shows a search bar, and removes articles not matching the search term as we type. -- [✅] **MissingTranslationView: Traduci button** — `translate_requested(str)` signal declared but no button wired to it. Add a per-row "Traduci" button that emits the signal with the article slug, then handle it in `main_window.py` to open the translation view for that article. +## article editor +- [ ] in the article editor window, add a flag to the top of the sidebar to easily recognize what language the content is in. Useful for empty drafts where no content has been written yet. + +## taxonomies +- [ ] when modifying the frontmatter, the square brackets around the tags or categories lists are not maintained. ## Settings - [ ] **Font size spinner in UI** — `font_size` is in config but only editable via `~/.config/my-publisher/config.toml`. Add a `QSpinBox` to `SetupDialog` (or a dedicated Settings dialog) so it's changeable without editing the file. Save via `Config.save()`, re-apply with `app.setFont()`. File: `ui/setup_dialog.py`. +## Transart backend availability + +- [ ] Using the `OLLAMA_HOST` variable in transart.py, validate if the backend is available or disable the "translate" button. Maybe add a popup message reminding to activate the runpod for the translation engine to be available. + +## UI Gaps + +- [✅] **TaxonomyView: Categories tab** — Tags tab exists, Categories tab missing. Mirror the Tags tab structure (IT/EN pair table, orphan detection) for `categories` frontmatter key. Files: `ui/taxonomy_view.py`, `core/taxonomy.py`. + +- [✅] **MissingTranslationView: Traduci button** — `translate_requested(str)` signal declared but no button wired to it. Add a per-row "Traduci" button that emits the signal with the article slug, then handle it in `main_window.py` to open the translation view for that article. + ## Autocomplete - [✅] **FrontmatterEditor: multi-token tag autocomplete** — `QCompleter` only completes the first token in the tags field. Need a custom completer that splits on commas, completes the current token, and re-joins. Consider subclassing `QCompleter` or intercepting `textEdited` to extract the active token. File: `ui/frontmatter_editor.py`. @@ -20,14 +39,10 @@ Known gaps from initial implementation. Functional for daily use — these are e - [✅] Add visible hints to quickly identify articles with `draft = true` in frontmatter. The hints can be added to the list view as well as the single view as a badge, color difference, etc. -## Transart backend availability - -- [ ] Using the `OLLAMA_HOST` variable in transart.py, validate if the backend is available or disable the "translate" button. Maybe add a popup message reminding to activate the runpod for the translation engine to be available. - ## Interface - [✅] The main articles list should display the type, tags, categories and date fields for each article in both languages. - [✅] When modifying tags in the taxonomy view, they should be updated in the relevant articles. EG modified the english "regionale" tag to "regional", after saving it, the program should find all english articles with the old "regionale" tag and modify them to the new "regional". ## keyboard shortcuts -- [✅] The app should follow some standard keyboard shortcuts like Ctrl+q should quit the app. \ No newline at end of file +- [✅] The app should follow some standard keyboard shortcuts like Ctrl+q should quit the app. -- cgit v1.2.3