Repository navigation
feat(export): add Markdown and JSON task export with GUI dialog - #40
Closed
MrSpideyNihal wants to merge 10 commits into
Closed
MrSpideyNihal wants to merge 10 commits into
MrSpideyNihal wants to merge 10 commits into
Conversation
feat: Eisenhower Matrix dashboard main window
…o-to-task pipeline (#18)
Implements GitHub issue for task export functionality: - Add src/taskify/export/exporter.py with export_tasks_to_file() supporting Markdown checklist and JSON formats, quadrant filtering, and date-range filtering with transcript excerpt embedding. - Add src/taskify/ui/export_dialog.py (ExportDialog) — a modal CustomTkinter dialog matching the app theme, with format selector, quadrant filter, togglable date-range inputs, and a Save-As file dialog trigger. - Wire open_export() into MainWindow, add Export + Settings buttons side-by-side in a shared bottom actions frame. - Fix �ool(task.status) bug: replace with ask.status == 'completed' in both JSON and Markdown serialisation paths. - Add �ssert task.id is not None to satisfy mypy before passing to get_transcript_excerpt_for_task. - Add ests/unit/test_export.py (5 tests) and ests/unit/test_ui_export_dialog.py (8 tests). - Enhance _W stub in ests/unit/conftest.py with _state tracking and cget() to enable state-assertion tests. All 164 tests pass · ruff clean · mypy clean · coverage 84.41%
Owner
Author
|
Superseded: all changes from this branch have been merged into main directly. Closing as stale. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #20 — Adds full task export functionality in both Markdown checklist and JSON formats, accessible via a new Export button in the main sidebar.
What's Changed
New:
src/taskify/export/exporter.pyCore serialisation logic extracted into a standalone, testable module:
export_tasks_to_file(db, filepath, format, quadrant, start_date, end_date)→ returns task countdo_first,schedule,delegate,eliminate, orNonefor all)start_date/end_datedatetimeobjectsget_transcript_excerpt_for_task)completedflag:task.status == completed(fixes silent bug where truthy string always set completed = True)New:
src/taskify/ui/export_dialog.pyModal
ExportDialog(CustomTkinter, matches app dark theme):YYYY-MM-DDvalidationasksaveasfilenamesave dialog pre-populated with today's filenameModified:
src/taskify/ui/main_window.pyopen_export()method addedNew:
tests/unit/test_export.py(5 tests)test_export_to_json— verifies JSON structure including completed flag and transcript excerpttest_export_to_markdown— verifies checkbox rendering and quadrant labelstest_export_with_quadrant_filter— verifies single-quadrant filteringtest_export_with_date_range_filters— verifies date-range boundary logictest_export_invalid_format— verifiesValueErroron unknown formatNew:
tests/unit/test_ui_export_dialog.py(8 tests)Modified:
tests/unit/conftest.py_Wstub widget gains_statetracking in__init__+configure, and acget(attr)method to support state-assertion testsTest Results
Screenshots
The Export dialog features format, quadrant, and optional date-range filters before prompting for a save location.