Commit graph

18 commits

Author SHA1 Message Date
phg
0041ded402 Enhance user experience with status appearance improvements and entry details consistency. Update project documentation to reflect completed features and ensure all linting checks pass. 2025-08-14 17:56:45 +02:00
phg
25001042e5 Enhance status display and entry details in HostsManagerApp
- Updated header title to "/etc/hosts Manager" and modified subtitle format.
- Implemented a dedicated overlay status bar for error messages, ensuring no layout shifts.
- Refactored entry details display to use DataTable with labeled rows for improved consistency.
- Added CSS styles for the new status bar and DataTable.
- Created tests for status bar visibility and DataTable functionality, ensuring all tests pass.
2025-07-31 09:47:09 +02:00
phg
999b949f32 Update documentation to reflect successful test stabilization and upcoming user experience improvements 2025-07-31 08:48:18 +02:00
phg
8346e0e362 Update project documentation to reflect test stabilization efforts and current issues 2025-07-31 08:39:14 +02:00
phg
b0abec730c Refactor documentation: update active context, progress, project brief, system patterns, tech context to reflect code quality maintenance and testing improvements 2025-07-30 15:23:31 +02:00
phg
f7671db43e Add save confirmation modal and integrate with entry editing
- Implemented SaveConfirmationModal to prompt users for saving changes when exiting edit mode.
- Integrated modal into HostsManagerApp to handle unsaved changes.
- Added methods to validate and save entry changes, restoring original values if discarded.
- Created unit tests for SaveConfirmationModal and its integration with the main application.
- Refactored entry editing logic to track changes and confirm before exiting edit mode.
2025-07-30 13:36:25 +02:00
phg
d477328bea Enhance status messages and layout in HostsManagerApp; improve error handling and testing for status updates 2025-07-30 00:18:48 +02:00
phg
02423fe4f2 Add auto-save functionality for entry edits and movements; update status messages accordingly 2025-07-30 00:06:42 +02:00
phg
0ee720c5ef Add management header to hosts files and enhance serialization formatting; update tests to reflect changes. 2025-07-30 00:00:53 +02:00
phg
82bfed7ce4 Update activeContext and progress documentation for Phase 3 completion; adjust entry reordering keyboard shortcuts in main.py 2025-07-29 22:51:45 +02:00
phg
1b57be2cbf Implement HostsManager for managing hosts file edits with permission handling
- Added PermissionManager class for managing sudo permissions.
- Introduced HostsManager class for high-level operations on hosts file.
- Implemented methods for entering/exiting edit mode, toggling entries, moving entries, updating entries, saving the hosts file, and restoring backups.
- Integrated permission validation and backup creation during edit operations.
- Enhanced main application to support edit mode and associated actions.
- Added tests for PermissionManager and HostsManager to ensure functionality and error handling.
2025-07-29 22:43:01 +02:00
phg
fa7e7718c9 Update project documentation to reflect Phase 2 completion and enhanced features, including configuration management, advanced sorting, and improved visual design. 2025-07-29 21:27:35 +02:00
phg
0051932014 Add comprehensive tests for configuration management and main TUI components 2025-07-29 21:14:29 +02:00
phg
e83db8ce67 Enhance styling of active and inactive entries in DataTable for better visibility 2025-07-29 17:11:47 +02:00
phg
d684583cb9 Update dependencies to latest versions: textual 5.0.1 and pytest 8.4.1 2025-07-29 16:07:50 +02:00
phg
a4ffaebb2a Update project documentation to reflect Phase 1 completion and outline Phase 2 priorities 2025-07-29 15:52:30 +02:00
phg
2decad8047 Add unit tests for HostEntry and HostsFile models, and implement HostsParser tests
- Created comprehensive unit tests for HostEntry class, covering creation, validation, and conversion to/from hosts file lines.
- Developed unit tests for HostsFile class, including entry management, sorting, and retrieval of active/inactive entries.
- Implemented tests for HostsParser class, validating parsing and serialization of hosts files, handling comments, and file operations.
- Ensured coverage for edge cases such as empty files, invalid entries, and file permission checks.
2025-07-29 14:52:31 +02:00
phg
40a1e67949 initial commit 2025-07-29 13:50:55 +02:00