feat: track installed versions and annotate ChangeLog with install dates #457

Merged
guettlibot merged 3 commits from issue-446-installed-versions-in-changelog into main 2026-06-06 08:31:08 +00:00
2 changed files with 15 additions and 6 deletions
Showing only changes of commit 003d2bf658 - Show all commits
+14 -3
View File
@@ -10,8 +10,18 @@ class ChangeLogScreen extends ConsumerWidget {
const ChangeLogScreen({super.key});
static const _months = [
'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec',
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
];
static String _formatInstallDate(DateTime dt) {
@@ -60,7 +70,8 @@ class ChangeLogScreen extends ConsumerWidget {
return Scaffold(
appBar: AppBar(title: const Text('ChangeLog')),
body: FutureBuilder<String>(
future: DefaultAssetBundle.of(context).loadString('assets/changelog.txt'),
future:
DefaultAssetBundle.of(context).loadString('assets/changelog.txt'),
builder: (context, snapshot) {
if (snapshot.connectionState == ConnectionState.waiting ||
installedVersions.isLoading) {
+1 -3
View File
@@ -428,9 +428,7 @@ void main() {
await db.customSelect('SELECT count(*) FROM email_notes').get();
// v40: installed_versions table.
await db
.customSelect('SELECT count(*) FROM installed_versions')
.get();
await db.customSelect('SELECT count(*) FROM installed_versions').get();
await db.close();
if (dbFile.existsSync()) dbFile.deleteSync();