Commit Graph

429 Commits

Author SHA1 Message Date
12cce27e9d firka: highlight current value on grade chart left axis 2026-02-28 12:06:18 +01:00
826312b503 firka: give chart higher gesture priority over page swipe 2026-02-28 11:18:24 +01:00
e071fc15d1 firka: stream home items in progressively, keep spinner until all fetch 2026-02-28 11:12:25 +01:00
94b819ffbd firka: add debug button to clear all cache 2026-02-28 11:04:06 +01:00
299a769f74 firka: migrate state management to Bloc
- Add flutter_bloc dependency
- Create ThemeCubit, SettingsCubit, ProfilePictureCubit, ReauthCubit, HomeRefreshCubit
- Replace UpdateNotifier/ValueNotifier with Bloc across app
- Remove update_notifier.dart and FirkaState globalUpdate listener
- Provide cubits via MultiBlocProvider at app root
2026-02-28 10:46:11 +01:00
4abf995fde firka: add haptic feedback to bottom nav icons 2026-02-28 10:04:04 +01:00
e261f73c30 switch to go_router 2026-02-28 09:03:01 +01:00
fc9907f33d firka: refactor file structure 2026-02-28 07:47:33 +01:00
2d2c2fbef9 chore: dart format + remove unused imports 2026-02-27 23:23:56 +01:00
Horváth Gergely
d5c3d02dfa Remove onAppOpened and related LiveActivity state
Remove the _lastActivityRecreation field and the onAppOpened(...) method from LiveActivityService, which previously handled ending/creating activities, refreshing push tokens, fetching the week's timetable and scheduling background fetch. Update home_screen to call LiveActivityService.checkAndUpdateTimetable(...) instead of onAppOpened, and tweak related log messages to clarify the behavior. This simplifies LiveActivity lifecycle on app resume and stops forced activity recreation/token refresh performed by the removed method.
2026-02-27 23:23:56 +01:00
Horváth Gergely
40a1e8f459 Improve Watch sync, token, and live activity handling
Multiple fixes and improvements for watch <> phone sync, token recovery, and live activity behavior:

- WatchSessionManager: add mergeApplicationContext to avoid clobbering app context, add thread-safe pending auth queue and flush, add sendMessageToWatch API, ensure message handling runs on main thread, add reply-timeout logic for language requests, support fire-and-forget messages, and improve enqueue/flush logic.
- WatchConnectivityManager & SettingsView: publish shared session state on force-logout/logout and improve account-switch/token handling; clear DataStore error and reset recovery state after token updates.
- DataStore & WatchL10n: add recovery-in-progress guard to avoid duplicate recovery runs, reset language version tracking on account switch, make WatchL10n.setLanguage main-thread safe.
- TokenManager & SharedKeychainManager: remove old keychain observer plumbing and instead publish shared session state when active token changes or is deleted.
- UI tweaks: reduce icon/text sizes and spacing in pairing view; only show sync button when paired; Settings logout now also publishes shared state.
- Watch sync wiring in Flutter: replace direct watch_connectivity usage with a MethodChannel-backed WatchSyncHelper.sendMessageToWatch and onWatchMessage callback; main and pairing UI updated accordingly.
- Kreta client: replace simple boolean mutex with a Completer-based mutex and timeout handling to avoid busy-waiting.
- LiveActivityService: throttle/avoid frequent activity recreation (cache last recreation time), skip placeholder creation when called from background, and minor cache-clearing adjustments.
- HomeScreen: add WidgetsBindingObserver to manage lifecycle, prevent prefetch while backgrounded, debounce prefetch, ensure LiveActivity registration runs once and refresh on resume after first prefetch.

These changes increase robustness of token sync and account switching, reduce race conditions and duplicate work, and avoid conflicts between WCSession and Flutter plugin delegates.
2026-02-27 23:23:56 +01:00
0c4bc4cd40 firka(android): fix splash screen 2026-02-27 23:23:56 +01:00
28fb054571 fix warnings, reformat files 2026-02-27 23:23:56 +01:00
b0c8f1f4b3 firka(android): optimize build time 2026-02-27 23:23:56 +01:00
2ea0549258 add codegen script 2026-02-27 23:23:56 +01:00
c0ea4fde7a update lib/l10n 2026-02-27 23:23:56 +01:00
d56422ba0d update pubspec and rebuild isar files 2026-02-27 23:23:56 +01:00
3fa00fa6b6 grafikon javítgatás? 2026-02-27 23:23:56 +01:00
ef14b9dc0e HW fix 2026-02-27 23:23:56 +01:00
Pearoo
9238869568 feat: add error page (+pubspec merge fix) 2026-02-27 23:23:56 +01:00
6f04f9e9b8 Tantárgy megjelenítése 2026-02-27 23:23:56 +01:00
b6c8bb3267 grade chart próbálkozgatás 2026-02-27 23:23:56 +01:00
5ef21222aa Hiba fix (-1-es óraszám) 2026-02-27 23:23:56 +01:00
c0a8c696a3 Összátlag 2026-02-27 23:23:56 +01:00
f4a7fe7923 showSubjectBottomSheetSettings belekezdés (?) 2026-02-27 23:23:56 +01:00
c2f3af7be1 Átlagszámláló segéd 2026-02-27 23:23:56 +01:00
3440ea2eef gradeDefault svg hozzáadása 2026-02-27 23:23:56 +01:00
34475f35b0 Update firka/lib/ui/phone/screens/home/home_screen.dart 2026-02-27 23:23:56 +01:00
091647dbe4 chart folytatás 2026-02-27 23:23:56 +01:00
36ca357392 chart megjelenítése 2026-02-27 23:23:56 +01:00
dbbc119fd5 Hiba fix: nincs középen az óraszám 2026-02-27 23:23:56 +01:00
448be1ae10 pici fix 2026-02-27 23:23:56 +01:00
23beb6e31f Extras menü átalakítása dizájn alapján 2026-02-27 23:23:56 +01:00
c122eb4ff9 asszem hiba fix 2026-02-27 23:23:56 +01:00
8568aa5678 Holnapi órák megjelenítése, amennyibe nem lesz dolgozat (Félkész) 2026-02-27 23:23:56 +01:00
12dea89cd4 HTML házinál 2026-02-27 23:23:56 +01:00
67965610ce Óraszámok megjelenítése 2026-02-27 23:23:56 +01:00
7cede065c3 Kéthetes órarend 2026-02-27 23:23:56 +01:00
ae4862a653 Holnapi dolgozat megjelenítése 2026-02-27 23:23:56 +01:00
30f493ddc4 Értékelésnél tantárgy megtekintése gomb 2026-02-27 23:23:56 +01:00
50eb96377e pici szerkesztés 2026-02-27 23:23:56 +01:00
61c795e362 Jegy dátum formázás 2026-02-27 23:23:56 +01:00
7c65a696aa Tantárgy dizájn alapján szerkesztés 2026-02-27 23:23:56 +01:00
a341833441 nyelv 2026-02-27 23:23:56 +01:00
8bf3cc72be Születésnap jelzés konfettivel 2026-02-27 23:23:56 +01:00
33028cdf38 tördelés fix 2026-02-27 23:23:56 +01:00
f01b9d4fd5 License rész javítás 2026-02-27 23:23:56 +01:00
41ff65d50b Dátum formázás javítása 2026-02-27 23:23:56 +01:00
ae9ef1603a added loading spinner, fade out, and matched the color theme to the login page 2026-02-27 23:23:56 +01:00
1d8d341f2d fordítás hozzáadása 2026-02-27 23:23:56 +01:00