Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

Merge dev into fix/mobile-overlay-bottom-nav, resolve conflicts

jubnlb2a39a3071cb
diff --cc client/src/components/SystemNotices/SystemNoticeModal.tsx
index 6b9e23a27,e010bc242..837bef108
--- a/client/src/components/SystemNotices/SystemNoticeModal.tsx
+++ b/client/src/components/SystemNotices/SystemNoticeModal.tsx
@@@ -70,9 -70,9 +71,9 @@@ function NoticeContent({ notice, title
: DefaultIcon;
return (
- <div className="flex flex-col relative">
+ <div className="flex flex-col relative flex-1">
- {/* Dismiss X button */}
- {notice.dismissible && (
+ {/* Dismiss X button — only on last page so users read all notices */}
+ {notice.dismissible && isLastPage && (
<button
onClick={onDismissAll}
className="absolute top-4 right-4 p-2 rounded-lg text-slate-400 hover:text-slate-600 dark:hover:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors"
@@@ -99,9 -99,25 +100,25 @@@
</div>
)}
- <div className="px-8 pt-8 pb-0 sm:pb-8 flex flex-col flex-1">
- {/* Severity icon (when no hero) */}
- {!notice.media && (
+ {/* Special warm header for Heart icon (thank-you notice) */}
+ {notice.icon === 'Heart' && !notice.media && (
+ <div className="relative overflow-hidden bg-gradient-to-br from-rose-500 via-pink-500 to-indigo-500 px-8 py-5 text-center">
+ <div className="absolute inset-0 opacity-10" style={{ backgroundImage: 'radial-gradient(circle at 20% 50%, white 1px, transparent 1px), radial-gradient(circle at 80% 20%, white 1px, transparent 1px), radial-gradient(circle at 60% 80%, white 1px, transparent 1px)', backgroundSize: '60px 60px, 80px 80px, 40px 40px' }} />
+ <div className="relative flex items-center justify-center gap-3">
+ <div className="w-10 h-10 rounded-full bg-white/20 backdrop-blur-sm flex items-center justify-center ring-2 ring-white/10">
+ <LucideIcon size={20} className="text-white" />
+ </div>
+ <div className="text-left">
+ <h2 id={titleId} className="text-lg font-bold text-white leading-tight">{title}</h2>
+ <p className="text-xs text-white/60 font-medium">TREK 3.0</p>
+ </div>
+ </div>
+ </div>
+ )}
+
- <div className={notice.icon === 'Heart' && !notice.media ? 'px-8 py-6' : 'p-8'}>
++ <div className={`${notice.icon === 'Heart' && !notice.media ? 'px-8 py-6' : 'p-8'} flex flex-col flex-1`}>
+ {/* Severity icon (when no hero and not Heart) */}
+ {!notice.media && notice.icon !== 'Heart' && (
<div className={`w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4 ${SEVERITY_ACCENT[notice.severity] ?? ''}`}>
<LucideIcon size={28} />
</div>
@@@ -180,36 -214,9 +215,9 @@@
</ul>
)}
- {/* CTA + dismiss link */}
- <div className="flex flex-col items-center gap-3 mt-auto">
- {ctaLabel ? (
- <button
- id={`notice-cta-${notice.id}`}
- onClick={onCTA}
- className="w-full h-11 rounded-lg bg-blue-600 hover:bg-blue-700 text-white font-medium transition-colors"
- >
- {ctaLabel}
- </button>
- ) : (
- <button
- id={`notice-cta-${notice.id}`}
- onClick={onDismissAll}
- className="w-full h-11 rounded-lg bg-blue-600 hover:bg-blue-700 text-white font-medium transition-colors"
- >
- {t('common.ok')}
- </button>
- )}
- <button
- onClick={notice.dismissible && ctaLabel ? onDismiss : undefined}
- className={`text-sm text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 transition-colors ${!(notice.dismissible && ctaLabel) ? 'invisible' : ''}`}
- >
- Not now
- </button>
- </div>
-
{/* Pager — dots, arrows, counter (only when multiple notices) */}
{total > 1 && (
- <div className="flex flex-col items-center gap-1 mb-4">
+ <div className="flex flex-col items-center gap-1 mt-6 mb-0">
<div className="flex items-center gap-2">
<button
onClick={onPrev}
@@@ -252,6 -259,44 +260,44 @@@
</span>
</div>
)}
+
+ {/* CTA + dismiss link */}
- <div className="flex flex-col items-center gap-3 mt-2">
++ <div className="flex flex-col items-center gap-3 mt-auto">
+ {!isLastPage && total > 1 ? (
+ /* Non-last page: "Next" button to advance through all notices */
+ <button
+ id={`notice-cta-${notice.id}`}
+ onClick={onNext}
+ className="w-full h-11 rounded-lg bg-blue-600 hover:bg-blue-700 text-white font-medium transition-colors flex items-center justify-center gap-2"
+ >
+ {t('system_notice.pager.next')} <ChevronRight size={16} />
+ </button>
+ ) : ctaLabel ? (
+ <button
+ id={`notice-cta-${notice.id}`}
+ onClick={onCTA}
+ className="w-full h-11 rounded-lg bg-blue-600 hover:bg-blue-700 text-white font-medium transition-colors"
+ >
+ {ctaLabel}
+ </button>
+ ) : (
+ <button
+ id={`notice-cta-${notice.id}`}
+ onClick={onDismissAll}
+ className="w-full h-11 rounded-lg bg-blue-600 hover:bg-blue-700 text-white font-medium transition-colors"
+ >
+ {t('common.ok')}
+ </button>
+ )}
+ {notice.dismissible && isLastPage && ctaLabel && (
+ <button
+ onClick={onDismiss}
+ className="text-sm text-slate-500 dark:text-slate-400 hover:text-slate-700 dark:hover:text-slate-200 transition-colors"
+ >
+ Not now
+ </button>
+ )}
+ </div>
</div>
</div>
);
diff --cc client/src/pages/JourneyDetailPage.tsx
index 721bdd6b1,b1bd9931d..3454c4d96
--- a/client/src/pages/JourneyDetailPage.tsx
+++ b/client/src/pages/JourneyDetailPage.tsx
@@@ -2029,8 -2090,9 +2090,9 @@@ function EntryEditor({ entry, journeyId
}
return (
- <div className="fixed inset-0 z-[200] flex items-center justify-center p-5" style={{ background: 'rgba(9,9,11,0.75)' }}>
- <div className="bg-white dark:bg-zinc-900 rounded-2xl shadow-[0_20px_40px_rgba(0,0,0,0.2)] max-w-[640px] w-full max-h-[90vh] flex flex-col overflow-hidden" style={{ paddingBottom: 'var(--bottom-nav-h)' }}>
+ <div className="fixed inset-0 z-[9999] flex items-end sm:items-center sm:justify-center sm:p-5" style={{ background: 'rgba(9,9,11,0.75)' }}>
- <div className="bg-white dark:bg-zinc-900 sm:rounded-2xl shadow-[0_20px_40px_rgba(0,0,0,0.2)] sm:max-w-[640px] w-full flex flex-col overflow-hidden h-full sm:h-auto sm:max-h-[90vh]">
++ <div className="bg-white dark:bg-zinc-900 sm:rounded-2xl shadow-[0_20px_40px_rgba(0,0,0,0.2)] sm:max-w-[640px] w-full flex flex-col overflow-hidden h-full sm:h-auto sm:max-h-[90vh]" style={{ paddingBottom: 'var(--bottom-nav-h)' }}>
+
<div className="flex items-center justify-between px-6 py-4 border-b border-zinc-200 dark:border-zinc-700">
<h2 className="text-[16px] font-bold text-zinc-900 dark:text-white">{entry.id === 0 ? t('journey.detail.newEntry') : t('journey.detail.editEntry')}</h2>