feat: add completed task and project summary
- Add completed timeblock queries and completed project aggregation\n- Add desktop completed summary dialog with range filters, stats, and streak\n- Add medal entry point in the today panel\n- Add Android completed summary menu with local statistics\n- Rebuild AppImage and update validation docs/screenshots
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
|
||||
Daemon will be stopped at the end of the build
|
||||
> Task :app:preBuild UP-TO-DATE
|
||||
> Task :app:preDebugBuild UP-TO-DATE
|
||||
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
|
||||
> Task :app:checkKotlinGradlePluginConfigurationErrors
|
||||
> Task :app:checkDebugAarMetadata UP-TO-DATE
|
||||
> Task :app:generateDebugResValues UP-TO-DATE
|
||||
> Task :app:mapDebugSourceSetPaths UP-TO-DATE
|
||||
> Task :app:generateDebugResources UP-TO-DATE
|
||||
> Task :app:mergeDebugResources UP-TO-DATE
|
||||
> Task :app:packageDebugResources UP-TO-DATE
|
||||
> Task :app:parseDebugLocalResources UP-TO-DATE
|
||||
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
|
||||
> Task :app:extractDeepLinksDebug UP-TO-DATE
|
||||
> Task :app:processDebugMainManifest UP-TO-DATE
|
||||
> Task :app:processDebugManifest UP-TO-DATE
|
||||
> Task :app:processDebugManifestForPackage UP-TO-DATE
|
||||
> Task :app:processDebugResources UP-TO-DATE
|
||||
> Task :app:compileDebugKotlin UP-TO-DATE
|
||||
> Task :app:javaPreCompileDebug UP-TO-DATE
|
||||
> Task :app:compileDebugJavaWithJavac NO-SOURCE
|
||||
> Task :app:mergeDebugShaders UP-TO-DATE
|
||||
> Task :app:compileDebugShaders NO-SOURCE
|
||||
> Task :app:generateDebugAssets UP-TO-DATE
|
||||
> Task :app:mergeDebugAssets UP-TO-DATE
|
||||
> Task :app:compressDebugAssets UP-TO-DATE
|
||||
> Task :app:desugarDebugFileDependencies UP-TO-DATE
|
||||
> Task :app:dexBuilderDebug UP-TO-DATE
|
||||
> Task :app:mergeDebugGlobalSynthetics UP-TO-DATE
|
||||
> Task :app:processDebugJavaRes UP-TO-DATE
|
||||
> Task :app:mergeDebugJavaResource UP-TO-DATE
|
||||
> Task :app:checkDebugDuplicateClasses UP-TO-DATE
|
||||
> Task :app:mergeDebugStartupProfile UP-TO-DATE
|
||||
> Task :app:mergeExtDexDebug UP-TO-DATE
|
||||
> Task :app:mergeLibDexDebug UP-TO-DATE
|
||||
> Task :app:mergeProjectDexDebug UP-TO-DATE
|
||||
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
|
||||
> Task :app:mergeDebugNativeLibs NO-SOURCE
|
||||
> Task :app:stripDebugDebugSymbols NO-SOURCE
|
||||
> Task :app:validateSigningDebug UP-TO-DATE
|
||||
> Task :app:writeDebugAppMetadata UP-TO-DATE
|
||||
> Task :app:writeDebugSigningConfigVersions UP-TO-DATE
|
||||
> Task :app:packageDebug UP-TO-DATE
|
||||
> Task :app:createDebugApkListingFileRedirect UP-TO-DATE
|
||||
> Task :app:assembleDebug UP-TO-DATE
|
||||
> Task :app:bundleDebugClassesToRuntimeJar UP-TO-DATE
|
||||
> Task :app:bundleDebugClassesToCompileJar UP-TO-DATE
|
||||
> Task :app:compileDebugUnitTestKotlin UP-TO-DATE
|
||||
> Task :app:preDebugUnitTestBuild UP-TO-DATE
|
||||
> Task :app:javaPreCompileDebugUnitTest UP-TO-DATE
|
||||
> Task :app:compileDebugUnitTestJavaWithJavac NO-SOURCE
|
||||
> Task :app:processDebugUnitTestJavaRes UP-TO-DATE
|
||||
> Task :app:testDebugUnitTest UP-TO-DATE
|
||||
|
||||
BUILD SUCCESSFUL in 8s
|
||||
41 actionable tasks: 1 executed, 40 up-to-date
|
||||
|
||||
APK: android/app/build/outputs/apk/debug/app-debug.apk (6.6 MB)
|
||||
JVM unit tests: LwwTest 3, TimeUtilsTest 3, CompletionMergeTest 2; 8 passed, 0 failed.
|
||||
@@ -11,14 +11,57 @@ Preset CMake variables:
|
||||
-- Configuring done (0.2s)
|
||||
-- Generating done (0.1s)
|
||||
-- Build files have been written to: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release
|
||||
[1/9] Automatic MOC and UIC for target schedule_ui
|
||||
[2/8] Building Go sync server
|
||||
[3/8] Building CXX object client/src/CMakeFiles/schedule_ui.dir/ui/panels/ProjectCard.cpp.o
|
||||
[4/8] Linking CXX static library client/src/libschedule_ui.a
|
||||
[5/8] Linking CXX executable client/tests/test_grid
|
||||
[6/8] Linking CXX executable client/tests/test_mainwindow
|
||||
[7/8] Linking CXX executable bin/Schedule
|
||||
[8/8] Linking CXX executable client/tests/test_compactwindow
|
||||
[1/61] Automatic MOC and UIC for target schedule_core
|
||||
[2/60] Building Go sync server
|
||||
[3/60] Building CXX object client/src/CMakeFiles/schedule_core.dir/storage/SqliteStore.cpp.o
|
||||
[4/60] Linking CXX static library client/src/libschedule_core.a
|
||||
[5/60] Linking CXX executable client/tests/test_scheduler
|
||||
[6/60] Linking CXX executable client/tests/test_energy
|
||||
[7/60] Automatic MOC and UIC for target schedule_services
|
||||
[8/60] Automatic MOC and UIC for target test_storage
|
||||
[9/59] Building CXX object client/src/CMakeFiles/schedule_services.dir/schedule_services_autogen/mocs_compilation.cpp.o
|
||||
[10/59] Building CXX object client/src/CMakeFiles/schedule_services.dir/services/NotificationService.cpp.o
|
||||
[11/59] Building CXX object client/tests/CMakeFiles/test_storage.dir/test_storage.cpp.o
|
||||
[12/59] Linking CXX executable client/tests/test_storage
|
||||
[13/59] Building CXX object client/src/CMakeFiles/schedule_services.dir/services/ScheduleService.cpp.o
|
||||
[14/59] Linking CXX static library client/src/libschedule_services.a
|
||||
[15/59] Automatic MOC and UIC for target schedule_sync
|
||||
[16/58] Automatic MOC and UIC for target schedule_ai
|
||||
[17/57] Linking CXX executable client/tests/test_config
|
||||
[18/57] Automatic MOC and UIC for target test_services
|
||||
[19/56] Building CXX object client/src/CMakeFiles/schedule_sync.dir/sync/SyncService.cpp.o
|
||||
[20/56] Linking CXX static library client/src/libschedule_sync.a
|
||||
[21/56] Automatic MOC and UIC for target test_sync_integration
|
||||
[22/55] Building CXX object client/tests/CMakeFiles/test_services.dir/test_services.cpp.o
|
||||
[23/55] Linking CXX executable client/tests/test_services
|
||||
[24/55] Building CXX object client/tests/CMakeFiles/test_sync_integration.dir/test_sync_integration.cpp.o
|
||||
[25/55] Linking CXX executable client/tests/test_sync_integration
|
||||
[26/55] Building CXX object client/src/CMakeFiles/schedule_ai.dir/ai/AIService.cpp.o
|
||||
[27/55] Linking CXX static library client/src/libschedule_ai.a
|
||||
[28/55] Linking CXX executable client/tests/test_openai_provider
|
||||
[29/55] Automatic MOC and UIC for target schedule_ui
|
||||
[30/55] Automatic MOC and UIC for target test_ai
|
||||
[31/54] Building CXX object client/tools/CMakeFiles/ai_regression.dir/ai_regression.cpp.o
|
||||
[32/54] Building CXX object client/src/CMakeFiles/schedule_ui.dir/ui/dialogs/SearchDialog.cpp.o
|
||||
[33/54] Linking CXX executable bin/ai_regression
|
||||
[34/54] Building CXX object client/src/CMakeFiles/schedule_ui.dir/ui/dialogs/CompletedSummaryDialog.cpp.o
|
||||
[35/54] Building CXX object client/src/CMakeFiles/schedule_ui.dir/schedule_ui_autogen/mocs_compilation.cpp.o
|
||||
[36/54] Building CXX object client/src/CMakeFiles/schedule_ui.dir/ui/CompactWindow.cpp.o
|
||||
[37/54] Building CXX object client/src/CMakeFiles/schedule_ui.dir/ui/panels/TodayPanel.cpp.o
|
||||
[38/54] Building CXX object client/src/CMakeFiles/schedule_ui.dir/ui/MainWindow.cpp.o
|
||||
[39/54] Linking CXX static library client/src/libschedule_ui.a
|
||||
[40/54] Automatic MOC and UIC for target Schedule
|
||||
[41/53] Automatic MOC and UIC for target test_mainwindow
|
||||
[42/52] Linking CXX executable client/tests/test_grid
|
||||
[43/52] Automatic MOC and UIC for target test_compactwindow
|
||||
[44/51] Building CXX object client/tests/CMakeFiles/test_ai.dir/test_ai.cpp.o
|
||||
[45/51] Linking CXX executable client/tests/test_ai
|
||||
[46/51] Building CXX object client/src/CMakeFiles/Schedule.dir/main.cpp.o
|
||||
[47/51] Linking CXX executable bin/Schedule
|
||||
[48/51] Building CXX object client/tests/CMakeFiles/test_mainwindow.dir/test_mainwindow.cpp.o
|
||||
[49/51] Linking CXX executable client/tests/test_mainwindow
|
||||
[50/51] Building CXX object client/tests/CMakeFiles/test_compactwindow.dir/test_compactwindow.cpp.o
|
||||
[51/51] Linking CXX executable client/tests/test_compactwindow
|
||||
Installing application files...
|
||||
-- Install configuration: "Release"
|
||||
-- Installing: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/./Schedule
|
||||
@@ -429,12 +472,12 @@ Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
|
||||
compressed data, compressed metadata, compressed fragments,
|
||||
compressed xattrs, compressed ids
|
||||
duplicates are removed
|
||||
Filesystem size 34396.47 Kbytes (33.59 Mbytes)
|
||||
41.70% of uncompressed filesystem size (82486.72 Kbytes)
|
||||
Inode table size 4271 bytes (4.17 Kbytes)
|
||||
41.77% of uncompressed inode table size (10224 bytes)
|
||||
Directory table size 2463 bytes (2.41 Kbytes)
|
||||
41.83% of uncompressed directory table size (5888 bytes)
|
||||
Filesystem size 34417.91 Kbytes (33.61 Mbytes)
|
||||
41.70% of uncompressed filesystem size (82531.28 Kbytes)
|
||||
Inode table size 4272 bytes (4.17 Kbytes)
|
||||
41.78% of uncompressed inode table size (10224 bytes)
|
||||
Directory table size 2462 bytes (2.40 Kbytes)
|
||||
41.81% of uncompressed directory table size (5888 bytes)
|
||||
Number of duplicate files found 13
|
||||
Number of inodes 232
|
||||
Number of files 147
|
||||
|
||||
@@ -1 +1 @@
|
||||
4413057bb4e10df4824d1ff4dc8c009cdaafbd5fd2b91c066fca950cb97fede9 dist/AI-Schedule-0.1.0-x86_64.AppImage
|
||||
49efebebbec76ce36dedf7e14fe33ee476909a122a5f0d022afd3c8e4ae87538 dist/AI-Schedule-0.1.0-x86_64.AppImage
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
@@ -0,0 +1,29 @@
|
||||
Test project /home/misaki/MisakiCodes/Schedule/build/linux-gcc
|
||||
Start 1: go_server_tests
|
||||
1/12 Test #1: go_server_tests .................. Passed 16.80 sec
|
||||
Start 2: storage
|
||||
2/12 Test #2: storage .......................... Passed 0.03 sec
|
||||
Start 3: services
|
||||
3/12 Test #3: services ......................... Passed 0.06 sec
|
||||
Start 4: grid
|
||||
4/12 Test #4: grid ............................. Passed 0.38 sec
|
||||
Start 5: mainwindow
|
||||
5/12 Test #5: mainwindow ....................... Passed 1.25 sec
|
||||
Start 6: compactwindow
|
||||
6/12 Test #6: compactwindow .................... Passed 4.96 sec
|
||||
Start 7: config
|
||||
7/12 Test #7: config ........................... Passed 0.02 sec
|
||||
Start 8: scheduler
|
||||
8/12 Test #8: scheduler ........................ Passed 0.00 sec
|
||||
Start 9: energy
|
||||
9/12 Test #9: energy ........................... Passed 0.00 sec
|
||||
Start 10: ai
|
||||
10/12 Test #10: ai ............................... Passed 0.13 sec
|
||||
Start 11: openai_provider
|
||||
11/12 Test #11: openai_provider .................. Passed 0.21 sec
|
||||
Start 12: sync_integration
|
||||
12/12 Test #12: sync_integration ................. Passed 11.59 sec
|
||||
|
||||
100% tests passed, 0 tests failed out of 12
|
||||
|
||||
Total Test time (real) = 35.43 sec
|
||||
@@ -0,0 +1,7 @@
|
||||
? github.com/misaki/Schedule/server/cmd/server [no test files]
|
||||
ok github.com/misaki/Schedule/server/internal/api (cached)
|
||||
? github.com/misaki/Schedule/server/internal/auth [no test files]
|
||||
? github.com/misaki/Schedule/server/internal/config [no test files]
|
||||
? github.com/misaki/Schedule/server/internal/model [no test files]
|
||||
ok github.com/misaki/Schedule/server/internal/service (cached)
|
||||
ok github.com/misaki/Schedule/server/internal/store (cached)
|
||||
@@ -17,7 +17,7 @@
|
||||
```text
|
||||
dist/AI-Schedule-0.1.0-x86_64.AppImage
|
||||
大小:约 34 MB
|
||||
SHA-256:4413057bb4e10df4824d1ff4dc8c009cdaafbd5fd2b91c066fca950cb97fede9
|
||||
SHA-256:49efebebbec76ce36dedf7e14fe33ee476909a122a5f0d022afd3c8e4ae87538
|
||||
```
|
||||
|
||||
脚本会:
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
# 阶段 4.5 验证报告:已完成任务 / 长期项目汇总
|
||||
|
||||
> 日期:2026-10-31
|
||||
> 环境:Ubuntu 24.04 / Qt 6.6.3 / Android SDK 34
|
||||
|
||||
## 1. 本次交付
|
||||
|
||||
### 1.1 桌面端
|
||||
- 今日任务面板标题旁新增奖牌按钮,打开「已完成汇总」。
|
||||
- 支持范围切换:本周 / 本月 / 全部。
|
||||
- 统计:
|
||||
- 已完成短期任务数;
|
||||
- 累计专注时长;
|
||||
- 已完成长期项目数;
|
||||
- 连续完成天数。
|
||||
- 分别列出已完成的短期任务(完成时间、原时间段)和长期项目(完成时间、截止日期)。
|
||||
- 已完成长期项目从日常项目列表隐藏,但会出现在汇总中。
|
||||
- 新增存储查询:按完成时间查询已完成的 timeblock;按更新时间查询 done 项目。
|
||||
|
||||
### 1.2 Android
|
||||
- 右上角菜单新增「已完成汇总」。
|
||||
- 展示短期任务数、累计专注时长、长期项目数和最近完成记录。
|
||||
- 数据来自本地同步库,不额外请求服务器。
|
||||
|
||||
## 2. 验证
|
||||
|
||||
```bash
|
||||
cmake --preset linux-gcc
|
||||
cmake --build --preset linux-gcc --clean-first -j$(nproc)
|
||||
ctest --preset linux-gcc
|
||||
|
||||
cd server && go test ./...
|
||||
cd android && ./gradlew :app:assembleDebug :app:testDebugUnitTest
|
||||
```
|
||||
|
||||
| 项目 | 结果 |
|
||||
|---|---|
|
||||
| 桌面全量构建 | 成功,0 警告 |
|
||||
| 桌面 `ctest` | **12/12 通过** |
|
||||
| 已完成查询测试 | `test_services::completedSummaryQueries` 通过 |
|
||||
| Go 服务端 | `go test ./...` 通过 |
|
||||
| Android APK | Debug 构建成功,约 6.6 MB |
|
||||
| Android JVM 测试 | 8/8 通过 |
|
||||
|
||||
输出:
|
||||
|
||||
- [`ctest-phase-4-5.txt`](ctest-phase-4-5.txt)
|
||||
- [`go-test-phase-4-5.txt`](go-test-phase-4-5.txt)
|
||||
- [`android-build-test-phase-4-5.txt`](android-build-test-phase-4-5.txt)
|
||||
|
||||
## 3. 界面截图
|
||||
|
||||
| 截图 | 说明 |
|
||||
|---|---|
|
||||
| [`completed-summary-dark.png`](completed-summary-dark.png) | 已完成汇总 · 深色 |
|
||||
| [`completed-summary-light.png`](completed-summary-light.png) | 已完成汇总 · 浅色 |
|
||||
| [`compact-dark.png`](compact-dark.png) | 今日任务面板新增汇总入口 |
|
||||
|
||||
## 4. 行为说明
|
||||
|
||||
- 短期任务完成记录按 `done_at`(没有则使用结束时间)归档。
|
||||
- 长期项目完成记录按项目状态 done + `updated_at` 归档;项目截止日期仍显示。
|
||||
- 连续完成天数:从今天(今天未完成则从昨天)向前连续有完成记录的天数。
|
||||
- 汇总只读取本地 SQLite,不需要网络;多设备数据通过既有同步链路进入本地。
|
||||
|
||||
## 5. 已知限制
|
||||
|
||||
1. 短期任务统计按完成的时间块计数,同一任务多个块会显示为多条记录。
|
||||
2. 长期项目完成时间使用 `updated_at`,没有独立的 `completed_at` 字段。
|
||||
3. 暂无周/月趋势图、日历热力图或可分享的成就卡片。
|
||||
4. Android 汇总只有全部范围,桌面支持本周/本月/全部。
|
||||
5. Android 长期项目仍为只读。
|
||||
|
||||
## 6. 人工验收建议
|
||||
|
||||
1. 完成一条普通日程和一个长期项目。
|
||||
2. 点击今日任务面板的奖牌按钮,确认统计、连续天数和列表正确。
|
||||
3. 切换本周/本月/全部,确认筛选范围生效。
|
||||
4. 在 Android 菜单打开「已完成汇总」,确认能看到桌面完成的记录。
|
||||
5. 重启应用后再次打开汇总,确认数据来自本地 SQLite 且不丢失。
|
||||
Reference in New Issue
Block a user