Add Trash/Shares/Recent tabs, file sharing, Details sheet, and rebrand to Noo
Major additions since the initial rebuild: - New tabs: Trash, Shares, Recent, configurable tab visibility/order/default - Nextcloud sharing: search users/teams, internal link, email shares, public links, "others with access" - in its own Share bottom sheet - Details bottom sheet (Info/Versions/Activity) with a persistent peek panel in the media viewer, reachable from selection, swipe, and the media viewer - Files/Photos: tap-and-hold multi-select with a sticky selection toolbar, swipe actions (favorite/delete/share), sticky sort/filter controls, list/grid views, breadcrumb chips, whole-account Photos view - Media viewer: pinch/double-tap zoom on images, predictive-back support, fixed PDF zoom-out floor - Settings: Material You theming incl. AMOLED black, configurable bottom bar tabs, swipe actions, media seek bar style, and folder-listing cache policy (never/periodic/manual) to cut down on refetching - Login flow moved to an in-app Chrome Custom Tab with retry-tolerant polling - Replaced ad hoc widgets with native Material 3 equivalents (toggle IconButtons, SliverAppBar selection toolbar, SearchBar, drag handles) - Rebrand: app renamed to Noo throughout, package id -> dev.ayushya.noo, new adaptive launcher icon Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+24
-7
@@ -1,16 +1,35 @@
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:nextcloud_client/main.dart';
|
||||
import 'package:nextcloud_client/providers/server_provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:noo/main.dart';
|
||||
import 'package:noo/providers/server_provider.dart';
|
||||
|
||||
void main() {
|
||||
const secureStorageChannel = MethodChannel(
|
||||
'plugins.it_nomads.com/flutter_secure_storage',
|
||||
);
|
||||
|
||||
setUpAll(() {
|
||||
GoogleFonts.config.allowRuntimeFetching = false;
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
|
||||
.setMockMethodCallHandler(secureStorageChannel, (call) async {
|
||||
if (call.method == 'readAll') return <String, String>{};
|
||||
return null;
|
||||
});
|
||||
});
|
||||
|
||||
test('ServerProvider initializes unauthenticated', () {
|
||||
final provider = ServerProvider();
|
||||
expect(provider.isLoggedIn, false);
|
||||
expect(provider.items.isEmpty, true);
|
||||
});
|
||||
|
||||
testWidgets('App renders LoginView when not logged in', (WidgetTester tester) async {
|
||||
testWidgets('App renders LoginView when not logged in', (
|
||||
WidgetTester tester,
|
||||
) async {
|
||||
final provider = ServerProvider();
|
||||
|
||||
await tester.pumpWidget(
|
||||
@@ -21,10 +40,8 @@ void main() {
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
expect(find.text('Nextcloud Client'), findsOneWidget);
|
||||
expect(find.text('Noo'), findsOneWidget);
|
||||
expect(find.text('Server Address'), findsOneWidget);
|
||||
expect(find.text('Username'), findsOneWidget);
|
||||
expect(find.text('Password or App Password'), findsOneWidget);
|
||||
expect(find.text('Log In'), findsOneWidget);
|
||||
expect(find.text('Continue'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user