feat: Enhance admin panel navigation and UI by implementing tab management and improving layout structure
Test Suite / test (24.15.0) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-11 10:10:03 +02:00
parent 06492ff099
commit afbc5b91b2
5 changed files with 128 additions and 148 deletions
+6 -1
View File
@@ -267,7 +267,12 @@ final appRouterProvider = Provider<GoRouter>((ref) {
.maybeWhen(data: (t) => t, orElse: () => null);
return jwtIsAdmin(token) ? null : '/recipes';
},
builder: (context, state) => const AdminScreen(),
builder: (context, state) {
final tab = AdminViewTabX.fromQuery(
state.uri.queryParameters['tab'],
);
return AdminScreen(initialTab: tab);
},
),
],
),