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
+59 -50
View File
@@ -9,7 +9,7 @@ const dashboard: TranslationStrings = {
'dashboard.subtitle.activeMany': '{count} 个进行中的旅行',
'dashboard.subtitle.archivedSuffix': ' · {count} 已归档',
'dashboard.newTrip': '新建旅行',
'dashboard.newTripSub': 'Start blank · or import from another planner',
'dashboard.newTripSub': '从零开始规划新旅行',
'dashboard.gridView': '网格视图',
'dashboard.listView': '列表视图',
'dashboard.currency': '货币',
@@ -102,55 +102,64 @@ const dashboard: TranslationStrings = {
'dashboard.mobile.inMonths': '{count} 个月后',
'dashboard.mobile.completed': '已完成',
'dashboard.mobile.currencyConverter': '汇率转换',
'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.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.filter.planned': '已计划',
'dashboard.hero.badgeLive': '进行中',
'dashboard.hero.badgeToday': '今天开始',
'dashboard.hero.badgeTomorrow': '明天',
'dashboard.hero.badgeNext': '即将开始',
'dashboard.hero.badgeRecent': '最近',
'dashboard.hero.tripDates': '旅行日期',
'dashboard.hero.noDates': '未设置日期',
'dashboard.hero.travelerOne': '{count} 位旅客',
'dashboard.hero.travelerMany': '{count} 位旅客',
'dashboard.hero.destinationOne': '{count} 个目的地',
'dashboard.hero.destinationMany': '{count} 个目的地',
'dashboard.hero.dayUnitOne': '',
'dashboard.hero.dayUnitMany': '',
'dashboard.hero.dayLeft': '剩 1 天',
'dashboard.hero.daysLeft': '剩余天数',
'dashboard.hero.lastDay': '最后一天',
'dashboard.hero.untilStart': '距开始',
'dashboard.hero.startsIn': '距出发',
'dashboard.atlas.countriesVisited': '地图集 · 已访问国家',
'dashboard.atlas.ofTotal': '/ {total}',
'dashboard.atlas.tripsTotal': '旅行总数',
'dashboard.atlas.placesMapped': '已标记 {count} 个地点',
'dashboard.atlas.daysTraveled': '旅行天数',
'dashboard.atlas.daysUnit': '天',
'dashboard.atlas.acrossAllTrips': '所有旅行累计',
'dashboard.atlas.distanceFlown': '飞行距离',
'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}',
'dashboard.card.idea': '想法',
'dashboard.card.buddyOne': '旅伴',
'dashboard.fx.from': '',
'dashboard.fx.to': '',
'dashboard.fx.unavailable': '无法获取汇率',
'dashboard.tz.searchPlaceholder': '搜索时区…',
'dashboard.tz.empty': '还没有其他时区 — 用 + 添加一个',
'dashboard.upcoming.title': '即将到来的预订',
'dashboard.upcoming.empty': '尚未预订任何内容。',
'dashboard.confirm.copy.title': '复制这次旅行?',
'dashboard.confirm.copy.willCopy': '将被复制',
'dashboard.confirm.copy.will1': '天数、地点和每日安排',
'dashboard.confirm.copy.will2': '住宿和预订',
'dashboard.confirm.copy.will3': '预算项和分类顺序',
'dashboard.confirm.copy.will4': '打包清单(未勾选)',
'dashboard.confirm.copy.will5': '待办事项(未分配且未勾选)',
'dashboard.confirm.copy.will6': '每日笔记',
'dashboard.confirm.copy.wontCopy': '不会被复制',
'dashboard.confirm.copy.wont1': '协作者和成员分配',
'dashboard.confirm.copy.wont2': '协作笔记、投票和消息',
'dashboard.confirm.copy.wont3': '文件和照片',
'dashboard.confirm.copy.wont4': '共享令牌',
'dashboard.confirm.copy.confirm': '复制旅行',
'dashboard.aria.toggleView': '切换视图',
'dashboard.aria.filter': '筛选',
'dashboard.aria.duplicate': '复制',
'dashboard.aria.refreshRates': '刷新汇率',
'dashboard.aria.swapCurrencies': '交换货币',
'dashboard.aria.addTimezone': '添加时区',
'dashboard.aria.removeTimezone': '移除 {city}',
};
export default dashboard;