From 1fdcd8bc15eff6fdf5c3cc9a40de2bcf6e2d5b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Solti=20Csongor=20P=C3=A9ter?= Date: Wed, 18 Nov 2026 20:21:24 +0100 Subject: [PATCH 1/3] feat: full message text with attachments, and one design across clients MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Messages - The inbox list only carries the first 100 characters of each body, so every client now loads the message itself (getMessage) when it is opened: app, TUI, the CLI's web UI and the extension. - Attachments are downloaded from e-Ügyintézés (/api/v1/dokumentumok/uzenetek/{id}); the old files.e-kreta.hu route does not exist. Expired tokens are renewed once, file names are made safe and existing files are never overwritten. - The app opens attachments with the system viewer on Android and iPhone (open_filex, storage permissions stripped) and saves them to Downloads on desktop. Failures show Hungarian errors; demo mode says attachments cannot be downloaded. - htmlToText drops style/script blocks and tags cut in half, and keeps link addresses. Design - Kréta Web (the CLI's web UI) is the reference look, with the app's colour tokens: 10 px cards, 6 px controls, orange gradient primary button, one grade scale (4 is green everywhere). - Kréta Web gains a light theme and the app's seven pages. - The extension shares extension/shared/tokens.css across its three pages. - The app's desktop uses Kréta Web's sidebar, top bar and tables (dashboard, grades, inbox); phones keep the bottom bar. - test/design_tokens_test.dart keeps the three token copies equal. Co-Authored-By: Claude Opus 5.5 --- app/android/app/src/main/AndroidManifest.xml | 10 +- app/lib/core/adaptive/adaptive_scaffold.dart | 133 +++++- app/lib/core/adaptive/pala_sidebar.dart | 198 ++++++++ app/lib/core/theme/app_shapes.dart | 77 +++ app/lib/core/theme/app_typography.dart | 2 +- app/lib/core/theme/m3_theme.dart | 41 +- app/lib/core/theme/pala_tokens.dart | 75 +++ app/lib/core/widgets/empty_state_widget.dart | 4 + app/lib/core/widgets/pala_table.dart | 214 +++++++++ app/lib/core/widgets/quick_action_button.dart | 5 +- app/lib/core/widgets/status_badge.dart | 3 +- .../absences/presentation/absences_view.dart | 9 +- .../widgets/absence_category_tile.dart | 7 +- .../widgets/absence_progress_gauge.dart | 7 +- .../presentation/live_dashboard_view.dart | 177 ++++--- .../widgets/countdown_hero_card.dart | 11 +- .../dashboard/widgets/timetable_tile.dart | 7 +- .../grades/presentation/grades_view.dart | 59 +++ .../grades/widgets/certificate_planner.dart | 11 +- .../widgets/ghost_grade_calculator.dart | 13 +- .../grades/widgets/grade_summary_card.dart | 9 +- .../presentation/global_search_view.dart | 5 +- .../search/widgets/search_result_tile.dart | 7 +- .../presentation/pala_wrapped_view.dart | 9 +- .../wrapped/widgets/wrapped_summary_card.dart | 5 +- app/lib/state/app_model.dart | 28 +- app/lib/theme/pala_theme.dart | 25 +- app/lib/views/compose_message_view.dart | 3 +- app/lib/views/login_view.dart | 9 +- app/lib/views/messages_view.dart | 444 +++++++++++++----- app/lib/views/tasks_view.dart | 7 +- app/lib/views/timetable_view.dart | 23 +- app/pubspec.lock | 8 + app/pubspec.yaml | 1 + app/test/adaptive_scaffold_test.dart | 13 +- app/test/all_pages_layout_test.dart | 3 +- app/test/demo_profile_test.dart | 9 +- app/test/messages_view_test.dart | 174 +++++++ app/test/preview_capture_test.dart | 6 +- extension/dashboard/dashboard.css | 279 +++++------ extension/dashboard/dashboard.html | 102 ++-- extension/dashboard/dashboard.js | 269 +++++++---- extension/popup/popup.css | 173 +++---- extension/popup/popup.html | 7 +- extension/popup/popup.js | 4 +- extension/shared/kreta_api.js | 40 +- extension/shared/tokens.css | 121 +++++ extension/sidepanel/sidepanel.css | 142 ++---- extension/sidepanel/sidepanel.html | 7 +- extension/sidepanel/sidepanel.js | 2 +- extension/test/kreta_api.test.mjs | 48 ++ lib/api/api.dart | 7 + lib/api/client.dart | 78 +-- lib/api/demo_client.dart | 15 +- lib/app/cli_app.dart | 1 + lib/app/views/grades_view.dart | 36 +- lib/app/views/homework_messages_view.dart | 99 ++-- lib/models/message.dart | 14 + lib/utils/html_text.dart | 16 +- lib/web/pala_web_html.dart | 334 +++++++++---- lib/web/pala_web_server.dart | 41 +- test/design_tokens_test.dart | 77 +++ test/html_text_test.dart | 17 + test/message_detail_test.dart | 184 ++++++++ test/web_messages_test.dart | 140 ++++++ 65 files changed, 3037 insertions(+), 1067 deletions(-) create mode 100644 app/lib/core/adaptive/pala_sidebar.dart create mode 100644 app/lib/core/theme/app_shapes.dart create mode 100644 app/lib/core/theme/pala_tokens.dart create mode 100644 app/lib/core/widgets/pala_table.dart create mode 100644 app/test/messages_view_test.dart create mode 100644 extension/shared/tokens.css create mode 100644 test/design_tokens_test.dart create mode 100644 test/message_detail_test.dart create mode 100644 test/web_messages_test.dart diff --git a/app/android/app/src/main/AndroidManifest.xml b/app/android/app/src/main/AndroidManifest.xml index a1e8df5..192c4dc 100644 --- a/app/android/app/src/main/AndroidManifest.xml +++ b/app/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,5 @@ - + + + + + + -
+

Részletes Mulasztási Napló

@@ -660,12 +661,12 @@

Tanulói Profil

- - +

Keresd meg az iskolád, majd kattints a gombra. A Kréta belépési oldal megnyílik, bejelentkezel, a bővítmény automatikusan elvégzi a többit.

@@ -726,9 +727,9 @@

-

Munkamenet & Rendszer

+

Munkamenet & Rendszer

-
+
Aktuális felhasználó: - @@ -756,10 +757,10 @@

-

Adatok Exportálása & Beállítások

+

Adatok Exportálása & Beállítások

- +
@@ -775,7 +776,7 @@

-

Megjelenés

+

Megjelenés

Sötét mód @@ -795,7 +796,7 @@

-

Popup Testreszabása

+

Popup Testreszabása

Gyorsnézet
@@ -805,7 +806,7 @@

- + @@ -861,7 +862,7 @@

Feladatok száma: + - +

- +

@@ -904,18 +905,18 @@

-

Egyéni szín

+

Egyéni szín

Fejlesztés alatt

Saját kiemelőszín a narancs helyett. Hamarosan.

- +

-

Szinkronizálás eszközök között

+

Szinkronizálás eszközök között

Fejlesztés alatt

A beállítások (aliasok, téma) átvitele a többi Pala eszközödre. Kréta-adatot nem fog szinkronizálni, és nem lesz hozzá Pala szerver.

@@ -926,7 +927,7 @@

-

Pala

+

Pala

Verzió: -. Ingyenes, nyílt forráskódú Kréta-kliens; nem az eKréta hivatalos alkalmazása.

@@ -943,28 +944,28 @@
-
+
-
@@ -1023,7 +1025,7 @@