added uptime monitoring

This commit is contained in:
2026-06-24 00:31:01 +02:00
parent e89c711d00
commit 1866e60518
16 changed files with 2220 additions and 19 deletions

View File

@@ -30,6 +30,9 @@ import 'package:qpay/screens/receipt/receipt_screen.dart';
import 'package:qpay/screens/recipient/recipients_screen.dart';
import 'package:qpay/screens/splash_screen.dart';
import 'package:qpay/screens/workspaces/workspace_screen.dart';
import 'package:qpay/screens/users/screens/user_list_screen.dart';
import 'package:qpay/screens/more/more_screen.dart';
import 'package:qpay/screens/uptime/uptime_status_screen.dart';
/// Tracks whether the splash animation is complete so that
/// GoRouter's redirect can show the splash first, then release
@@ -65,7 +68,7 @@ final SplashState splashState = SplashState();
/// Route prefixes that require the user to be signed in. Any URL
/// whose path starts with one of these strings will be redirected
/// to the sign-in screen when no auth token is present.
const List<String> _authProtectedRoutePrefixes = ['/groups'];
const List<String> _authProtectedRoutePrefixes = ['/groups', '/users'];
bool _isAuthProtected(String path) {
for (final prefix in _authProtectedRoutePrefixes) {
@@ -225,6 +228,18 @@ GoRouter buildRouter() {
path: '/profile',
builder: (context, state) => const ProfileScreen(),
),
GoRoute(
path: '/more',
builder: (context, state) => const MoreScreen(),
),
GoRoute(
path: '/uptime',
builder: (context, state) => const UptimeStatusScreen(),
),
GoRoute(
path: '/users',
builder: (context, state) => const UserListScreen(),
),
GoRoute(
path: '/groups',
builder: (context, state) => const GroupsScreen(),