Compare commits

...

4 Commits

Author SHA1 Message Date
jld3103 585cbda181
chore(app): Update screenshots 1 year ago
jld3103 e4d32cc63a
fix(neon,app): Correctly mock shared preferences in screenshot tests 1 year ago
jld3103 85d6463b8b
fix(app): Fix accounts screenshots 1 year ago
jld3103 76b2c4dd13
fix(neon): Disable debug banner 1 year ago
  1. 5
      packages/app/integration_test/screenshot_test.dart
  2. BIN
      packages/app/screenshots/files_actions.png
  3. BIN
      packages/app/screenshots/files_create.png
  4. BIN
      packages/app/screenshots/files_details.png
  5. BIN
      packages/app/screenshots/files_photos.png
  6. BIN
      packages/app/screenshots/files_root.png
  7. BIN
      packages/app/screenshots/home_drawer.png
  8. BIN
      packages/app/screenshots/login_server_selection.png
  9. BIN
      packages/app/screenshots/news_articles_starred_list.png
  10. BIN
      packages/app/screenshots/news_articles_unread_list.png
  11. BIN
      packages/app/screenshots/news_feed_add.png
  12. BIN
      packages/app/screenshots/news_feed_articles_list.png
  13. BIN
      packages/app/screenshots/news_feeds_list.png
  14. BIN
      packages/app/screenshots/news_folders_list.png
  15. BIN
      packages/app/screenshots/notes_categories_list.png
  16. BIN
      packages/app/screenshots/notes_note_create.png
  17. BIN
      packages/app/screenshots/notes_note_edit.png
  18. BIN
      packages/app/screenshots/notes_note_preview.png
  19. BIN
      packages/app/screenshots/notes_notes_list.png
  20. BIN
      packages/app/screenshots/notifications_list.png
  21. BIN
      packages/app/screenshots/settings_account.png
  22. BIN
      packages/app/screenshots/settings_accounts.png
  23. BIN
      packages/app/screenshots/settings_app_files.png
  24. BIN
      packages/app/screenshots/settings_app_news.png
  25. BIN
      packages/app/screenshots/settings_app_notes.png
  26. BIN
      packages/app/screenshots/settings_dark.png
  27. BIN
      packages/app/screenshots/settings_light.png
  28. BIN
      packages/app/screenshots/settings_oled.png
  29. 2
      packages/neon/neon/lib/settings.dart
  30. 1
      packages/neon/neon/lib/src/app.dart
  31. 1
      packages/neon/neon/lib/src/settings/models/storage.dart

5
packages/app/integration_test/screenshot_test.dart

@ -77,8 +77,9 @@ Future main() async {
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: []); await SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: []);
}); });
setUp(() { setUp(() async {
SharedPreferences.setMockInitialValues({}); SharedPreferences.setMockInitialValues({});
NeonStorage.mock(await SharedPreferences.getInstance());
}); });
testWidgets('login', (final tester) async { testWidgets('login', (final tester) async {
@ -364,7 +365,7 @@ Future main() async {
await binding.takeScreenshot('settings_accounts'); await binding.takeScreenshot('settings_accounts');
// Go to account settings // Go to account settings
await tester.tap(find.text('demo@10.0.2.2:80')); await tester.tap(find.text('demo@10.0.2.2'));
await tester.pumpAndSettle(); await tester.pumpAndSettle();
await tester.tap(find.text('Automatic')); await tester.tap(find.text('Automatic'));
await tester.pumpAndSettle(); await tester.pumpAndSettle();

BIN
packages/app/screenshots/files_actions.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 KiB

After

Width:  |  Height:  |  Size: 498 KiB

BIN
packages/app/screenshots/files_create.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 417 KiB

After

Width:  |  Height:  |  Size: 411 KiB

BIN
packages/app/screenshots/files_details.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
packages/app/screenshots/files_photos.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 482 KiB

After

Width:  |  Height:  |  Size: 473 KiB

BIN
packages/app/screenshots/files_root.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 254 KiB

After

Width:  |  Height:  |  Size: 236 KiB

BIN
packages/app/screenshots/home_drawer.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 101 KiB

BIN
packages/app/screenshots/login_server_selection.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 98 KiB

BIN
packages/app/screenshots/news_articles_starred_list.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

After

Width:  |  Height:  |  Size: 154 KiB

BIN
packages/app/screenshots/news_articles_unread_list.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 KiB

After

Width:  |  Height:  |  Size: 469 KiB

BIN
packages/app/screenshots/news_feed_add.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 93 KiB

BIN
packages/app/screenshots/news_feed_articles_list.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 508 KiB

After

Width:  |  Height:  |  Size: 520 KiB

BIN
packages/app/screenshots/news_feeds_list.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 142 KiB

BIN
packages/app/screenshots/news_folders_list.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
packages/app/screenshots/notes_categories_list.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 85 KiB

After

Width:  |  Height:  |  Size: 77 KiB

BIN
packages/app/screenshots/notes_note_create.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 97 KiB

BIN
packages/app/screenshots/notes_note_edit.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 52 KiB

BIN
packages/app/screenshots/notes_note_preview.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 50 KiB

BIN
packages/app/screenshots/notes_notes_list.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 85 KiB

BIN
packages/app/screenshots/notifications_list.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 76 KiB

BIN
packages/app/screenshots/settings_account.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 114 KiB

BIN
packages/app/screenshots/settings_accounts.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 KiB

After

Width:  |  Height:  |  Size: 161 KiB

BIN
packages/app/screenshots/settings_app_files.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 151 KiB

BIN
packages/app/screenshots/settings_app_news.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 KiB

After

Width:  |  Height:  |  Size: 231 KiB

BIN
packages/app/screenshots/settings_app_notes.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 KiB

After

Width:  |  Height:  |  Size: 160 KiB

BIN
packages/app/screenshots/settings_dark.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 144 KiB

BIN
packages/app/screenshots/settings_light.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 KiB

After

Width:  |  Height:  |  Size: 146 KiB

BIN
packages/app/screenshots/settings_oled.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 143 KiB

2
packages/neon/neon/lib/settings.dart

@ -2,6 +2,6 @@ export 'package:neon/src/models/label_builder.dart';
export 'package:neon/src/settings/models/options_category.dart'; export 'package:neon/src/settings/models/options_category.dart';
export 'package:neon/src/settings/models/options_collection.dart'; export 'package:neon/src/settings/models/options_collection.dart';
export 'package:neon/src/settings/models/select_option.dart'; export 'package:neon/src/settings/models/select_option.dart';
export 'package:neon/src/settings/models/storage.dart' show Storable; export 'package:neon/src/settings/models/storage.dart' show NeonStorage, Storable;
export 'package:neon/src/settings/models/toggle_option.dart'; export 'package:neon/src/settings/models/toggle_option.dart';
export 'package:neon/src/settings/widgets/settings_list.dart'; export 'package:neon/src/settings/widgets/settings_list.dart';

1
packages/neon/neon/lib/src/app.dart

@ -297,6 +297,7 @@ class _NeonAppState extends State<NeonApp> with WidgetsBindingObserver, tray.Tra
); );
return MaterialApp.router( return MaterialApp.router(
debugShowCheckedModeBanner: false,
localizationsDelegates: [ localizationsDelegates: [
..._appImplementations.map((final app) => app.localizationsDelegate), ..._appImplementations.map((final app) => app.localizationsDelegate),
...AppLocalizations.localizationsDelegates, ...AppLocalizations.localizationsDelegates,

1
packages/neon/neon/lib/src/settings/models/storage.dart

@ -36,7 +36,6 @@ enum StorageKeys implements Storable {
final String value; final String value;
} }
@internal
final class NeonStorage { final class NeonStorage {
/// Shared preferences instance. /// Shared preferences instance.
/// ///

Loading…
Cancel
Save