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.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix: address PR review feedback
Gérnyi Márk9a2c7c5db630
diff --git a/client/src/components/Collab/CollabNotes.tsx b/client/src/components/Collab/CollabNotes.tsxindex bee4e0db6..1486b5581 100644--- a/client/src/components/Collab/CollabNotes.tsx+++ b/client/src/components/Collab/CollabNotes.tsx@@ -222,13 +222,15 @@ interface NoteFormModalProps {existingCategories: string[]categoryColors: Record<string, string>getCategoryColor: (category: string) => string- note?: CollabNote | null- tripId?: number+ note: CollabNote | null+ tripId: numbert: (key: string) => string- canUploadFiles?: boolean}-function NoteFormModal({ onClose, onSubmit, onDeleteFile, existingCategories, categoryColors, getCategoryColor, note, tripId, t, canUploadFiles = true }: NoteFormModalProps) {+function NoteFormModal({ onClose, onSubmit, onDeleteFile, existingCategories, categoryColors, getCategoryColor, note, tripId, t }: NoteFormModalProps) {+ const can = useCanDo()+ const tripObj = useTripStore((s) => s.trip)+ const canUploadFiles = can('file_upload', tripObj)const isEdit = !!noteconst allCategories = [...new Set([...existingCategories, ...Object.keys(categoryColors || {})])].filter(Boolean)@@ -887,7 +889,6 @@ export default function CollabNotes({ tripId, currentUser }: CollabNotesProps) {const can = useCanDo()const trip = useTripStore((s) => s.trip)const canEdit = can('collab_edit', trip)- const canUploadFiles = can('file_upload', trip)const [notes, setNotes] = useState([])const [loading, setLoading] = useState(true)const [showNewModal, setShowNewModal] = useState(false)@@ -1337,12 +1338,13 @@ export default function CollabNotes({ tripId, currentUser }: CollabNotesProps) {{showNewModal && (<NoteFormModal+ note={null}+ tripId={tripId}onClose={() => setShowNewModal(false)}onSubmit={handleCreateNote}existingCategories={categories}categoryColors={categoryColors}getCategoryColor={getCategoryColor}- canUploadFiles={canUploadFiles}t={t}/>)}@@ -1358,7 +1360,6 @@ export default function CollabNotes({ tripId, currentUser }: CollabNotesProps) {existingCategories={categories}categoryColors={categoryColors}getCategoryColor={getCategoryColor}- canUploadFiles={canUploadFiles}t={t}/>)}diff --git a/client/src/components/Collab/CollabPolls.tsx b/client/src/components/Collab/CollabPolls.tsxindex dc71ff947..1a63ea1aa 100644--- a/client/src/components/Collab/CollabPolls.tsx+++ b/client/src/components/Collab/CollabPolls.tsx@@ -270,15 +270,15 @@ function PollCard({ poll, currentUser, canEdit, onVote, onClose, onDelete, t }:const isWinner = isClosed && count === Math.max(...(poll.options || []).map(o => o.voters?.length || 0)) && count > 0return (- <button key={idx} onClick={() => !isClosed && canEdit && onVote(poll.id, idx)}- disabled={isClosed || !canEdit}+ <button key={idx} onClick={() => !isClosed && onVote(poll.id, idx)}+ disabled={isClosed}style={{position: 'relative', display: 'flex', alignItems: 'center', gap: 8,- padding: '10px 12px', borderRadius: 10, border: 'none', cursor: (isClosed || !canEdit) ? 'default' : 'pointer',+ padding: '10px 12px', borderRadius: 10, border: 'none', cursor: isClosed ? 'default' : 'pointer',background: 'var(--bg-secondary)', fontFamily: FONT, textAlign: 'left', width: '100%',overflow: 'hidden', transition: 'transform 0.1s',}}- onMouseEnter={e => { if (!isClosed && canEdit) e.currentTarget.style.transform = 'scale(1.01)' }}+ onMouseEnter={e => { if (!isClosed) e.currentTarget.style.transform = 'scale(1.01)' }}onMouseLeave={e => e.currentTarget.style.transform = 'scale(1)'}>{/* Progress bar background */}diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsxindex 6841bbd39..6081b728c 100644--- a/client/src/components/Planner/DayPlanSidebar.tsx+++ b/client/src/components/Planner/DayPlanSidebar.tsx@@ -1302,11 +1302,11 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar({handleMergedDrop(day.id, 'place', Number(fromAssignmentId), 'note', note.id)}}}- onContextMenu={e => ctxMenu.open(e, [- canEditDays && { label: t('common.edit'), icon: Pencil, onClick: () => openEditNote(day.id, note) },- canEditDays && { divider: true },- canEditDays && { label: t('common.delete'), icon: Trash2, danger: true, onClick: () => deleteNote(day.id, note.id) },- ])}+ onContextMenu={canEditDays ? e => ctxMenu.open(e, [+ { label: t('common.edit'), icon: Pencil, onClick: () => openEditNote(day.id, note) },+ { divider: true },+ { label: t('common.delete'), icon: Trash2, danger: true, onClick: () => deleteNote(day.id, note.id) },+ ]) : undefined}onMouseEnter={() => setHoveredId(`note-${note.id}`)}onMouseLeave={() => setHoveredId(null)}style={{