commits
- Implemented GetNewestPublication to retrieve the most recently published leaflet note.
- Added DeleteAllLeafletNotes to remove all leaflet notes
- enhance ATProtoService with CBOR to JSON conversion
- Updated PullDocuments to handle CBOR decoding and JSON conversion.
- Integrated viewport for viewing content in data_list.go.
- create PublicationView for displaying notes as markdown
* added mock for ATProto service
* added PublicationListAdapter for managing publications with leaflet metadata
* replace AssertErrorContains with shared implementation across services and tests
* Implemented new Scorer type for heuristic scoring of HTML content based on readability principles.
* Developed confidence calculation method to assess the reliability of content scores.
* Implement PostDocument, PatchDocument, and DeleteDocument methods to manage leaflet docs
* TypeDocumentDraft for draft documents
* more test coverage
* scaffold for leaflet integration
* refactor (wip) color palettes with wrappers
This reverts commit de4bc6fa70d6bda5d3ce1fc42f6cd784d9c774d4.
- Updated tests to use NOTELEAF_CONFIG and NOTELEAF_DATA_DIR environment variables instead of XDG_CONFIG_HOME.
- getEditor method in NoteHandler prioritizes config settings over environment variables.
- Modified LoadConfig and SaveConfig functions to respect NOTELEAF_CONFIG for custom configuration paths.
- Implemented GetDataDir function to handle NOTELEAF_DATA_DIR for data directory management.
- Adjusted database initialization to utilize new configuration paths and ensure directory creation.
- Improved error handling in database operations and ensured proper cleanup in tests.
- Updated task handler tests to include interactive mode paths with and without filters.
- Refactored note handler tests to support interactive mode, including tests for filtering by tags.
- Introduced new test utilities for TUI interactions, for simulation of user input and navigation.
- Removed redundant code
- rename articles.go to parser.go to avoid redundancy
- Introduced an ArticleRepository in the repo package to manage articles.
- Created validation services for various data types including strings, URLs, emails, dates, and file paths.
- Implemented a Validator struct for fluent validation checks and error handling.
refactor: Refactored BookHandler methods and tests for improved clarity
- Consolidated book search and addition logic into SearchAndAddBook method.
- Revised tests
- Removed deprecated methods and streamlined test cases
- Implemented GetNewestPublication to retrieve the most recently published leaflet note.
- Added DeleteAllLeafletNotes to remove all leaflet notes
- enhance ATProtoService with CBOR to JSON conversion
- Updated PullDocuments to handle CBOR decoding and JSON conversion.
- Integrated viewport for viewing content in data_list.go.
- create PublicationView for displaying notes as markdown
- Updated tests to use NOTELEAF_CONFIG and NOTELEAF_DATA_DIR environment variables instead of XDG_CONFIG_HOME.
- getEditor method in NoteHandler prioritizes config settings over environment variables.
- Modified LoadConfig and SaveConfig functions to respect NOTELEAF_CONFIG for custom configuration paths.
- Implemented GetDataDir function to handle NOTELEAF_DATA_DIR for data directory management.
- Adjusted database initialization to utilize new configuration paths and ensure directory creation.
- Improved error handling in database operations and ensured proper cleanup in tests.
- Updated task handler tests to include interactive mode paths with and without filters.
- Refactored note handler tests to support interactive mode, including tests for filtering by tags.
- Introduced new test utilities for TUI interactions, for simulation of user input and navigation.
- Removed redundant code