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
+6 -1
View File
@@ -11,6 +11,7 @@ from pilgrim.models.travel_diary import TravelDiary
from pilgrim.ui.screens.about_screen import AboutScreen
from pilgrim.ui.screens.edit_diary_modal import EditDiaryModal
from pilgrim.ui.screens.new_diary_modal import NewDiaryModal
from pilgrim.ui.screens.edit_entry_screen import EditEntryScreen
class DiaryListScreen(Screen):
@@ -245,7 +246,11 @@ class DiaryListScreen(Screen):
"""Ação para abrir diário selecionado"""
if self.selected_diary_index is not None:
diary_id = self.diary_id_map.get(self.selected_diary_index)
self.notify(f"Abrindo diário ID: {diary_id}")
if diary_id:
self.app.push_screen(EditEntryScreen(diary_id=diary_id))
self.notify(f"Opening diary ID: {diary_id}")
else:
self.notify("Invalid diary ID")
else:
self.notify("Selecione um diário para abrir")