feat(web): improve web build configuration and accessibility
Test Suite / backend-pr-quick (push) Has been skipped
Test Suite / quick-import-pr-quick (push) Has been skipped
Test Suite / backend-full (push) Successful in 14m6s
Test Suite / flutter-quality (push) Failing after 4m44s

- Add source maps and web renderer build arguments with defaults
- Configure Caddy with CSP headers, cache policies, and service worker handling
- Defer loading of import screen for performance optimization
- Add semantic labels to icons for accessibility
- Update web index.html with Swedish language, meta tags, and description
- Add robots.txt and lighthouse configuration
- Add new planning documents and archive entries
This commit is contained in:
Nils-Johan Gynther
2026-05-23 18:04:27 +02:00
parent 30d27d6b8a
commit 69bcc3e342
16 changed files with 1847 additions and 301 deletions
+12 -4
View File
@@ -181,9 +181,14 @@ class AppShell extends ConsumerWidget {
tooltip: view.mode == RecipesViewMode.grid
? 'Visa som lista'
: 'Visa som grid',
icon: Icon(view.mode == RecipesViewMode.grid
? Icons.view_list
: Icons.grid_view),
icon: Icon(
view.mode == RecipesViewMode.grid
? Icons.view_list
: Icons.grid_view,
semanticLabel: view.mode == RecipesViewMode.grid
? 'Visa som lista'
: 'Visa som grid',
),
onPressed: () =>
ref.read(recipesViewProvider.notifier).toggleMode(),
),
@@ -207,7 +212,10 @@ class AppShell extends ConsumerWidget {
),
PopupMenuButton<String>(
tooltip: 'Profil och konto',
icon: const Icon(Icons.account_circle_outlined),
icon: const Icon(
Icons.account_circle_outlined,
semanticLabel: 'Profil och konto',
),
onSelected: (value) async {
switch (value) {
case 'profile':