mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 22:31:46 +00:00
* feat(days): reorder whole days and insert a day at a position Adds reorderDays + insertDay to the day service and a PUT /days/reorder route (plus an optional position on create). Day rows stay stable so a day's assignments, notes, bookings and accommodations ride along by id; on a dated trip the calendar dates stay pinned to their slots while the content moves across them, and each booking's date is re-stamped onto its day's new date (time-of-day preserved) so day_id stays consistent. Renumbering uses the two-phase write to avoid the UNIQUE(trip_id, day_number) collision, and a move that would invert an accommodation's check-in/out span is rejected. * feat(planner): reorder days from a toolbar popup, and add days A new toolbar button opens a popup listing the days; drag a row by its grip or use the up/down arrows to reorder, and add a day from there. Reorders apply optimistically with rollback and sync over WebSocket; the day headers are left untouched, so the existing place drop-targets are unaffected. * i18n: add day-reorder strings across all languages
This commit is contained in:
@@ -49,5 +49,14 @@ const dayplan: TranslationStrings = {
|
||||
'dayplan.mobile.allAssigned': 'Όλες οι τοποθεσίες έχουν ανατεθεί',
|
||||
'dayplan.mobile.noMatch': 'Καμία αντιστοιχία',
|
||||
'dayplan.mobile.createNew': 'Δημιουργία νέας τοποθεσίας',
|
||||
'dayplan.reorderDays': 'Αναδιάταξη ημερών',
|
||||
'dayplan.reorderTitle': 'Αναδιάταξη ημερών',
|
||||
'dayplan.reorderHint': 'Τα μέρη, οι σημειώσεις και οι κρατήσεις μιας ημέρας μετακινούνται μαζί της.',
|
||||
'dayplan.addDay': 'Προσθήκη ημέρας',
|
||||
'dayplan.moveUp': 'Μετακίνηση πάνω',
|
||||
'dayplan.moveDown': 'Μετακίνηση κάτω',
|
||||
'dayplan.reorderUndo': 'Αναδιάταξη ημερών',
|
||||
'dayplan.reorderError': 'Η αναδιάταξη των ημερών απέτυχε',
|
||||
'dayplan.addDayError': 'Η προσθήκη ημέρας απέτυχε',
|
||||
};
|
||||
export default dayplan;
|
||||
|
||||
Reference in New Issue
Block a user