diff options
| -rw-r--r-- | HANDOFF.md | 4 | ||||
| -rw-r--r-- | TODO.md | 33 |
2 files changed, 26 insertions, 11 deletions
@@ -8,7 +8,7 @@ What was confirmed: All 34 tests pass. pytest-qt added to requirements.txt for the _detect_renames unit tests. The body-erasure bug was pre-existing since v1.0 — any article saved through FrontmatterEditor before this fix lost its content. MultiTokenCompleter does not call widget.setCompleter() because that re-enables Qt's built-in single-token prefix logic. Tag rename propagation is transactional: taxonomy save failure aborts propagation entirely. v1.3 tagged and pushed. Still in progress: - Nothing was left open in this session. Remaining TODO items are: font size spinner in SetupDialog, and transart backend availability validation using OLLAMA_HOST. + Nothing was left open in this session. Continue with items from the TODO.md list. Next steps: - Two TODO items remain. Suggested order: (1) font size spinner in SetupDialog (ui/setup_dialog.py) — add QSpinBox, save via Config.save(), re-apply with app.setFont(); (2) transart backend availability check using OLLAMA_HOST — validate before translation starts or disable the translate button with a popup reminder to activate RunPod. + Many TODO items remain. Suggested order: (1) fix the taxonomies bug when modifying from the frontmatter editor; (2) transart backend availability check using OLLAMA_HOST — validate before translation starts or disable the translate button with a popup reminder to activate RunPod. (3) font size spinner in SetupDialog (ui/setup_dialog.py) — add QSpinBox, save via Config.save(), re-apply with app.setFont(); @@ -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. |
