Add app source and tests

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
alvocool
2026-10-11 10:15:30 +03:00
parent 7e246255c2
commit 38881d1fe1
135 changed files with 21057 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import '../parent/ParentViewModel.dart';
import 'ConnectHistory.dart';
class ViewHistory extends ParentViewModel {
ConnectHistory connection;
ViewHistory(super.context, this.connection);
void loadHistory() async {
try {
final history = await getDataManager().getDeployments();
connection.onHistoryLoaded(history);
} catch (error) {
handleError(error, loadHistory, () {}, "Retry");
}
}
void clearHistory() async {
showLoading("Clearing history …");
try {
await getDataManager().clearDeployments();
closeLoading();
connection.onHistoryCleared();
} catch (error) {
handleError(error, clearHistory, () {}, "Retry");
}
}
}