feat: add long-term projects with AI creation

- Add project model, schema v4, sync triggers, and server support\n- Add project panel, deadline countdown, manual create/edit/complete/delete\n- Parse AI project operations and show them in the proposal diff\n- Sync projects to Android and display them read-only\n- Rebuild AppImage and update validation docs and screenshots
This commit is contained in:
Misaki
2026-10-31 15:52:48 +08:00
parent 9dae003b93
commit 35cabb37b2
54 changed files with 1722 additions and 41 deletions
+20
View File
@@ -189,6 +189,26 @@ void TestSyncIntegration::twoClientsConverge()
}
QVERIFY(sawOffline);
const QDate projectDeadline = QDate::currentDate().addMonths(1);
QVERIFY2(serviceA.createProject(QStringLiteral("长期项目"),
QStringLiteral("跨月目标"),
projectDeadline,
&error),
qPrintable(error));
QTRY_VERIFY_WITH_TIMEOUT(serviceB.projects().size() == 1, 20000);
QCOMPARE(serviceB.projects().first().title, QStringLiteral("长期项目"));
QVERIFY2(serviceB.updateProject(serviceB.projects().first().id,
QStringLiteral("长期项目 v2"),
QStringLiteral("跨月目标 v2"),
projectDeadline.addDays(14),
&error),
qPrintable(error));
QTRY_VERIFY_WITH_TIMEOUT(!serviceA.projects().isEmpty() &&
serviceA.projects().first().title == QStringLiteral("长期项目 v2"),
20000);
QVERIFY2(serviceA.deleteProject(serviceA.projects().first().id, &error), qPrintable(error));
QTRY_VERIFY_WITH_TIMEOUT(serviceB.projects().isEmpty(), 20000);
syncA.stop();
syncB.stop();
serverProcess.terminate();