0ee720c5ef
Add management header to hosts files and enhance serialization formatting; update tests to reflect changes.
2025-07-30 00:00:53 +02:00
5a2e0d2623
Enhance hosts file serialization and entry formatting for proper tab alignment; update tests to reflect changes.
2025-07-29 23:31:30 +02:00
cead0c1066
Add method to get first visible entry index and adjust selection logic for hidden default entries
2025-07-29 23:17:56 +02:00
3e892daf98
Refactor sorting methods in HostsFile to maintain fixed order for default entries while sorting non-default entries by IP and hostname.
2025-07-29 23:12:19 +02:00
3084650c27
Enhance HostsManager to prevent modification and movement of default system entries; add is_default_entry method to HostEntry and update sorting methods to prioritize default entries.
2025-07-29 23:04:29 +02:00
8c1cd2047e
Update DataTable cursor position handling when moving entries
2025-07-29 22:55:38 +02:00
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
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
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
0051932014
Add comprehensive tests for configuration management and main TUI components
2025-07-29 21:14:29 +02:00
79069bc2ea
Implement configuration management with modal for application settings
2025-07-29 17:25:55 +02:00
a399b04c99
Add 'Active' column to DataTable with visual indicators for entry status
2025-07-29 17:13:22 +02:00
e83db8ce67
Enhance styling of active and inactive entries in DataTable for better visibility
2025-07-29 17:11:47 +02:00
9cd2b5c3fe
Enhance DataTable row styling by using Rich Text for active and inactive entries
2025-07-29 17:06:29 +02:00
bcded3105b
Enhance DataTable population by adding sort indicators to column headers and clearing both rows and columns before repopulating
2025-07-29 17:03:18 +02:00
15a3b6230f
Refactor left pane to use DataTable for entries display and add sorting functionality by IP and hostname
2025-07-29 16:57:41 +02:00
407e37fffd
Refactor layout of left and right panes to use rounded borders and improve structure
2025-07-29 16:37:38 +02:00
d684583cb9
Update dependencies to latest versions: textual 5.0.1 and pytest 8.4.1
2025-07-29 16:07:50 +02:00
a4ffaebb2a
Update project documentation to reflect Phase 1 completion and outline Phase 2 priorities
2025-07-29 15:52:30 +02:00
fdf64d8da3
Add .gitignore file to exclude unnecessary files and directories
2025-07-29 15:09:57 +02:00
69ee221a63
Add handler for entry highlighting in the left pane
2025-07-29 15:09:54 +02:00
b8e4b29f04
Remove compiled Python cache files from the repository
2025-07-29 15:09:33 +02:00
c57267213f
Remove compiled Python cache files from the repository
2025-07-29 15:07:01 +02:00
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
40a1e67949
initial commit
2025-07-29 13:50:55 +02:00