Added the edit_entry_screen.py and modified the mock entry_service_mock.py to be async and also add the screen change on diary_list_screen.py and added the rename_entry_modal.py and added all the necessary CSS on the pilgrim.css

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2025-06-22 20:32:09 -03:00
parent 981b38f994
commit 58807460d7
7 changed files with 686 additions and 8 deletions
+7 -1
View File
@@ -8,6 +8,7 @@ from textual.screen import Screen
from pilgrim.service.servicemanager import ServiceManager
from pilgrim.ui.screens.about_screen import AboutScreen
from pilgrim.ui.screens.diary_list_screen import DiaryListScreen
from pilgrim.ui.screens.edit_entry_screen import EditEntryScreen
CSS_FILE_PATH = Path(__file__).parent / "styles" / "pilgrim.css"
@@ -42,7 +43,12 @@ class UIApp(App):
screen.dismiss
)
elif isinstance(screen, EditEntryScreen):
yield SystemCommand(
"Back to Diary List",
"Return to the diary list",
screen.action_back_to_list
)
# Always include quit command
yield SystemCommand(