feat(dashboard): mobile layout, glass UI, context bottom nav + OIDC PKCE (#1079)

* feat(dashboard): mobile layout, glass tiles, plain-text countdown, place photos

- Rework the mobile dashboard: cover hero, separate boarding-pass card,
  trimmed atlas (trips + days only), stacked widgets
- New floating bottom tab bar with a centred context-aware + button
  (new trip / place / journey / entry depending on the page)
- Move profile + notifications into a small top strip on the dashboard
- Desktop: glassmorphic tiles (light + dark), neutral dark palette,
  plain-text countdown module, real place photos in the boarding pass

* i18n(dashboard): translate new dashboard keys across all locales

Fill the dashboard-rework keys (hero, atlas, fx, tz, upcoming, copy
dialog, aria labels, countdown) that were left as English placeholders,
plus the new startsIn/aria keys, for all 19 languages.

* feat(oidc): send PKCE (S256) in the OIDC login flow

The OIDC client now generates a code_verifier per login, sends the
S256 code_challenge on the authorize request and the code_verifier on
the token exchange. Works whether the provider has PKCE optional or
required (fixes login against providers that require PKCE, e.g. Pocket ID).
This commit is contained in:
Maurice
2026-05-27 23:19:03 +02:00
committed by GitHub
parent 0d2657ee37
commit 6d2dd37414
34 changed files with 1692 additions and 1296 deletions
+57 -48
View File
@@ -9,7 +9,7 @@ const dashboard: TranslationStrings = {
'dashboard.subtitle.activeMany': '{count} voyages actifs',
'dashboard.subtitle.archivedSuffix': ' · {count} archivés',
'dashboard.newTrip': 'Nouveau voyage',
'dashboard.newTripSub': 'Start blank · or import from another planner',
'dashboard.newTripSub': 'Planifiez un nouveau voyage à partir de zéro',
'dashboard.gridView': 'Vue en grille',
'dashboard.listView': 'Vue en liste',
'dashboard.currency': 'Devise',
@@ -107,55 +107,64 @@ const dashboard: TranslationStrings = {
'dashboard.mobile.inMonths': 'Dans {count} mois',
'dashboard.mobile.completed': 'Terminé',
'dashboard.mobile.currencyConverter': 'Convertisseur de devises',
'dashboard.filter.planned': 'Planned',
'dashboard.hero.badgeLive': 'LIVE NOW',
'dashboard.hero.badgeToday': 'STARTS TODAY',
'dashboard.hero.badgeTomorrow': 'TOMORROW',
'dashboard.hero.badgeNext': 'UP NEXT',
'dashboard.hero.badgeRecent': 'RECENT',
'dashboard.hero.tripDates': 'Trip dates',
'dashboard.hero.noDates': 'No dates set',
'dashboard.hero.travelerOne': '{count} traveler',
'dashboard.hero.travelerMany': '{count} travelers',
'dashboard.filter.planned': 'Planifiés',
'dashboard.hero.badgeLive': 'EN DIRECT',
'dashboard.hero.badgeToday': 'DÉBUTE AUJOURD\'HUI',
'dashboard.hero.badgeTomorrow': 'DEMAIN',
'dashboard.hero.badgeNext': 'À SUIVRE',
'dashboard.hero.badgeRecent': 'RÉCENT',
'dashboard.hero.tripDates': 'Dates du voyage',
'dashboard.hero.noDates': 'Aucune date définie',
'dashboard.hero.travelerOne': '{count} voyageur',
'dashboard.hero.travelerMany': '{count} voyageurs',
'dashboard.hero.destinationOne': '{count} destination',
'dashboard.hero.destinationMany': '{count} destinations',
'dashboard.hero.dayUnitOne': 'day',
'dashboard.hero.dayUnitMany': 'days',
'dashboard.hero.dayLeft': 'Day left',
'dashboard.hero.daysLeft': 'Days left',
'dashboard.hero.lastDay': 'Last day',
'dashboard.atlas.countriesVisited': 'Atlas · Countries visited',
'dashboard.atlas.ofTotal': 'of {total}',
'dashboard.atlas.tripsTotal': 'Trips total',
'dashboard.atlas.placesMapped': '{count} places mapped',
'dashboard.atlas.daysTraveled': 'Days traveled',
'dashboard.atlas.daysUnit': 'days',
'dashboard.atlas.acrossAllTrips': 'across all trips',
'dashboard.atlas.distanceFlown': 'Distance flown',
'dashboard.hero.dayUnitOne': 'jour',
'dashboard.hero.dayUnitMany': 'jours',
'dashboard.hero.dayLeft': 'Jour restant',
'dashboard.hero.daysLeft': 'Jours restants',
'dashboard.hero.lastDay': 'Dernier jour',
'dashboard.hero.untilStart': 'Avant le départ',
'dashboard.hero.startsIn': 'Départ dans',
'dashboard.atlas.countriesVisited': 'Atlas · Pays visités',
'dashboard.atlas.ofTotal': 'sur {total}',
'dashboard.atlas.tripsTotal': 'Voyages au total',
'dashboard.atlas.placesMapped': '{count} lieux cartographiés',
'dashboard.atlas.daysTraveled': 'Jours de voyage',
'dashboard.atlas.daysUnit': 'jours',
'dashboard.atlas.acrossAllTrips': 'sur tous les voyages',
'dashboard.atlas.distanceFlown': 'Distance parcourue en avion',
'dashboard.atlas.kmUnit': 'km',
'dashboard.atlas.aroundEquator': '≈ {count}× around the equator',
'dashboard.card.idea': 'Idea',
'dashboard.card.buddyOne': 'Buddy',
'dashboard.fx.from': 'From',
'dashboard.fx.to': 'To',
'dashboard.fx.unavailable': 'Rate unavailable',
'dashboard.tz.searchPlaceholder': 'Search timezone…',
'dashboard.tz.empty': 'No other timezones yet — add one with +',
'dashboard.upcoming.title': 'Upcoming reservations',
'dashboard.upcoming.empty': 'Nothing booked yet.',
'dashboard.confirm.copy.title': 'Copy this trip?',
'dashboard.confirm.copy.willCopy': 'Will be copied',
'dashboard.confirm.copy.will1': 'Days, places & day assignments',
'dashboard.confirm.copy.will2': 'Accommodations & reservations',
'dashboard.confirm.copy.will3': 'Budget items & category order',
'dashboard.confirm.copy.will4': 'Packing lists (unchecked)',
'dashboard.confirm.copy.will5': 'TODOs (unassigned & unchecked)',
'dashboard.confirm.copy.will6': 'Day notes',
'dashboard.confirm.copy.wontCopy': 'Won\'t be copied',
'dashboard.confirm.copy.wont1': 'Collaborators & member assignments',
'dashboard.confirm.copy.wont2': 'Collab notes, polls & messages',
'dashboard.confirm.copy.wont3': 'Files & photos',
'dashboard.confirm.copy.wont4': 'Share tokens',
'dashboard.confirm.copy.confirm': 'Copy trip',
'dashboard.atlas.aroundEquator': '≈ {count}× le tour de l\'équateur',
'dashboard.card.idea': 'Idée',
'dashboard.card.buddyOne': 'Compagnon',
'dashboard.fx.from': 'De',
'dashboard.fx.to': 'Vers',
'dashboard.fx.unavailable': 'Taux indisponible',
'dashboard.tz.searchPlaceholder': 'Rechercher un fuseau horaire…',
'dashboard.tz.empty': 'Pas encore d\'autres fuseaux horaires — ajoutez-en un avec +',
'dashboard.upcoming.title': 'Prochaines réservations',
'dashboard.upcoming.empty': 'Rien de réservé pour l\'instant.',
'dashboard.confirm.copy.title': 'Copier ce voyage ?',
'dashboard.confirm.copy.willCopy': 'Sera copié',
'dashboard.confirm.copy.will1': 'Jours, lieux et affectations par jour',
'dashboard.confirm.copy.will2': 'Hébergements et réservations',
'dashboard.confirm.copy.will3': 'Postes de budget et ordre des catégories',
'dashboard.confirm.copy.will4': 'Listes de bagages (non cochées)',
'dashboard.confirm.copy.will5': 'Tâches (non attribuées et non cochées)',
'dashboard.confirm.copy.will6': 'Notes du jour',
'dashboard.confirm.copy.wontCopy': 'Ne sera pas copié',
'dashboard.confirm.copy.wont1': 'Collaborateurs et affectations des membres',
'dashboard.confirm.copy.wont2': 'Notes, sondages et messages partagés',
'dashboard.confirm.copy.wont3': 'Fichiers et photos',
'dashboard.confirm.copy.wont4': 'Jetons de partage',
'dashboard.confirm.copy.confirm': 'Copier le voyage',
'dashboard.aria.toggleView': 'Changer d\'affichage',
'dashboard.aria.filter': 'Filtrer',
'dashboard.aria.duplicate': 'Dupliquer',
'dashboard.aria.refreshRates': 'Actualiser les taux',
'dashboard.aria.swapCurrencies': 'Inverser les devises',
'dashboard.aria.addTimezone': 'Ajouter un fuseau horaire',
'dashboard.aria.removeTimezone': 'Supprimer {city}',
};
export default dashboard;