feat: Windows 系统托盘图标 — 关闭窗口后台运行 - #1
Merged
Merged
Conversation
- Fix version number inconsistency (0.1.0 → 1.0.0 in About) - Make ID badge dynamic based on user name - Fix 10 redundant null checks in sync_service realtime callbacks - Migrate deprecated anonKey → publishableKey (Supabase API) - Add __pycache__/ and *.pyc to .gitignore - Clean up unused imports in today_screen.dart - Add Supabase cloud support for USTC news (3-tier fallback) - Add upload_ustc_news.py script for cron job cloud sync - Fix prefer_final_fields and dangling_library_doc_comments warnings - flutter analyze: 18 issues → 4 (0 errors)
- Add tray_manager package for system tray support - Create TrayService with tray icon, tooltip, and context menu - Left-click tray icon: show/restore main window - Right-click: context menu (show / quit) - Intercept window close: hide to tray instead of quitting - windowManager.setPreventClose(true) + WindowListener.onWindowClose - Add custom app icon (tomato orange + checkmark) as .ico and .png - App stays running in background after closing window - User can quit from tray menu
Mobile UX: - Habit edit: custom unit input + saved user units (SharedPreferences) - Habit card: add "每日" prefix before count - Todo card: remove circle icon (tap card to toggle) - Todo edit: add 15min option, fix chip spacing - "明天继续" semantics: completing today auto-recreates for tomorrow - Timer: stop button now marks todo complete (strikethrough) - Completed todos sorted after incomplete ones - Add workout check-in alongside wake/sleep - Add language switcher (中文/English) with hot reload - Add theme mode selector (light/dark/system) - Add delete all data option in settings - Merge open source licenses into About - Remove Go backend dependency (Supabase only) - Centered TODO/Habit selection overlay on add Windows: - Regenerate tray icon with better small-size visibility - Add LXGW WenKai font for USTC news readability Core: - Add AppLocaleProvider for i18n hot-switch - Database v2: add workout_time column + migration - deleteAllData() in database and provider - Remove apiBaseUrl/apiConnected from provider
Owner
Author
|
直接合并到 main,不再通过 PR |
AzarAI-TOP
pushed a commit
that referenced
this pull request
Aug 7, 2026
#1 (P0): Timer completion skipped keepTomorrow copy creation — timer_screen called updateTodo instead of toggleTodoComplete. Fix: new completeTodoWithDuration() method in AppProvider that handles keepTomorrow copy + stale/deleted todo guard. #2 (P0): Repeated toggle taps created ghost keepTomorrow copies. Fix: idempotent check — only create copy if no incomplete duplicate with same title already exists in _todos. #3 (P0): SleepRecord upsert never matched same-date records because conflict was on UUID id, not record_date. Fix: query existing record by record_date first; update in-place preserving original id, or insert if none exists. #4 (P1): reorderTodos double index adjustment caused wrong positions. Fix: _onReorder maps display indices to provider.todos indices via incompleteTodos list, eliminating index-space mismatch. #5 (P1): Timer _recordSessionAndComplete used stale widget.todo snapshot. Fix: completeTodoWithDuration reads current state from provider.todos; silently skips if todo was deleted (focus session still recorded). #6 (P2): Countdown cleanup used local time, causing premature deletion when crossing timezones. Fix: use DateTime.now().toUtc() for comparison.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能
在 Windows 桌面端添加系统托盘图标,关闭窗口时应用隐藏到托盘后台运行,而不是退出。
更新 (v2)
移动端 UX 改进
Windows 端
核心架构