High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): format year filter chip without thousands separator (#32159)
Lee, Hyo jun02481deb1454
diff --git a/mobile/bin/generate_keys.dart b/mobile/bin/generate_keys.dartindex 160f2c5b5c..aad5bd5b98 100644--- a/mobile/bin/generate_keys.dart+++ b/mobile/bin/generate_keys.dart@@ -102,6 +102,7 @@ const _kParamTypeOverrides = <String, String>{'backup_controller_page_storage_format.total': 'String','backup_controller_page_storage_format.used': 'String','cleanup_found_assets_with_size.size': 'String',+ 'in_year.year': 'String',};final _usedParamTypeOverrides = <String>{};diff --git a/mobile/lib/presentation/widgets/search/quick_date_picker.dart b/mobile/lib/presentation/widgets/search/quick_date_picker.dartindex 97ea163be8..b1cead7eb0 100644--- a/mobile/lib/presentation/widgets/search/quick_date_picker.dart+++ b/mobile/lib/presentation/widgets/search/quick_date_picker.dart@@ -59,7 +59,7 @@ class YearFilter extends DateFilterInputModel {@overrideString asHumanReadable(BuildContext context) {- return context.t.in_year(year: year);+ return context.t.in_year(year: year.toString());}}diff --git a/mobile/test/presentation/widgets/search/quick_date_picker_test.dart b/mobile/test/presentation/widgets/search/quick_date_picker_test.dartnew file mode 100644index 0000000000..2f81fe19e5--- /dev/null+++ b/mobile/test/presentation/widgets/search/quick_date_picker_test.dart@@ -0,0 +1,15 @@+import 'package:flutter/material.dart';+import 'package:flutter_test/flutter_test.dart';+import 'package:immich_mobile/presentation/widgets/search/quick_date_picker.dart';++import '../../../widget_tester_extensions.dart';++void main() {+ group('YearFilter', () {+ testWidgets('formats the year without a thousands separator', (tester) async {+ await tester.pumpConsumerWidget(const SizedBox.shrink());+ final label = YearFilter(2005).asHumanReadable(tester.element(find.byType(SizedBox)));+ expect(label, 'In 2005');+ });+ });+}