Shuffle/app/lib/features/catalog/presentation/catalog_routes.dart
cschlaefke 25212929ce
All checks were successful
CI / flutter (pull_request) Successful in 1m46s
CI / web-build (pull_request) Successful in 59s
CI / supabase (pull_request) Successful in 12s
CI / supabase-tests (pull_request) Successful in 31s
CI / e2e (pull_request) Successful in 2m54s
feat(catalog): review fixes for catalog search
Word limit and no-retry state for rejected input, nested /catalog route for
system back, logger filter for supabase libs, more mutation-proof tests,
doc fix, umlaut-aware term sorting, thousands separators. Refs #3

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 10:17:54 +01:00

19 lines
815 B
Dart

import 'package:go_router/go_router.dart';
import 'package:shuffle/core/routing/app_routes.dart';
import 'package:shuffle/features/catalog/presentation/catalog_query_params.dart';
import 'package:shuffle/features/catalog/presentation/search/catalog_search_screen.dart';
/// Routes of the catalog (Spec #3 § 5.5). `/catalog` is public.
///
/// These are sub-routes of the start page (path `catalog` below `/`), so the
/// URL stays `/catalog`, but a deep link builds the stack [home, catalog] and
/// the system back button (Android) returns to the start page instead of
/// closing the app.
final List<RouteBase> catalogRoutes = [
GoRoute(
path: AppRoutes.catalogSegment,
builder: (context, state) => CatalogSearchScreen(
initialQuery: parseCatalogQuery(state.uri.queryParameters),
),
),
];