feat(trips): trip settings with a linked journal tab

The Share button becomes the trip's Settings, a round button beside the back
pill. The dialog is rebuilt around three areas (People, Sharing, Journal) with
a side navigation, a fixed height and 960 px width on wide screens.

Journal links one of your journals from the Journey addon to the trip. Every
trip member is ticked as a reader by default, each can be raised to editor or
left out, and the people a save would let in for the first time are named
before it saves. The link can be changed or removed. With a link the trip gets
a Journal tab on desktop and phone that shows the Journey addon's own view,
live through its sync and trip:journal:changed. Nothing shows with the addon
off.

members.shareTrip and nav.share are gone with the button that used them.
This commit is contained in:
Maurice
2026-10-18 17:41:25 +02:00
parent 89f3055a29
commit fe05afec19
109 changed files with 2707 additions and 156 deletions
-1
View File
@@ -1,7 +1,6 @@
import type { TranslationStrings } from '../types';
const members: TranslationStrings = {
'members.shareTrip': 'แบ่งปันการเดินทาง',
'members.inviteUser': 'เชิญผู้ใช้',
'members.selectUser': 'เลือกผู้ใช้...',
'members.invite': 'เชิญ',
-1
View File
@@ -2,7 +2,6 @@ import type { TranslationStrings } from '../types';
const nav: TranslationStrings = {
'nav.trip': 'การเดินทาง',
'nav.share': 'แบ่งปัน',
'nav.settings': 'การตั้งค่า',
'nav.admin': 'ผู้ดูแลระบบ',
'nav.logout': 'ออกจากระบบ',
+39
View File
@@ -94,5 +94,44 @@ const trip: TranslationStrings = {
'การดำเนินการนี้จะลบการพักที่จองไว้ที่ “{name}” รวมถึงการจองและค่าใช้จ่ายที่ผูกไว้ด้วย',
'trip.toast.loadError': 'ไม่สามารถโหลดทริปได้',
'transit.noResultsVia': 'ไม่พบเส้นทางผ่าน {provider} ลองเปลี่ยนเวลาหรือตัวกรอง',
'trip.settings.title': 'การตั้งค่าทริป',
'trip.settings.people': 'ผู้คน',
'trip.settings.peopleHint': 'ใครอยู่ในทริปนี้ และแขกที่ไม่มีบัญชี',
'trip.settings.sharing': 'การแชร์',
'trip.settings.sharingHint': 'ลิงก์อ่านอย่างเดียวสำหรับทุกคน และลิงก์เชิญเพื่อเข้าร่วม',
'trip.tabs.journal': 'บันทึก',
'trip.journal.title': 'บันทึก',
'trip.journal.hint': 'เชื่อมบันทึกของคุณเล่มหนึ่งเข้ากับทริปนี้ ผู้ที่คุณให้สิทธิ์จะเปิดได้ที่แท็บบันทึกตรงนี้ แบบสด',
'trip.journal.link': 'เชื่อมบันทึก',
'trip.journal.linkSubmit': 'เชื่อมบันทึก',
'trip.journal.change': 'เปลี่ยนบันทึก',
'trip.journal.editMembers': 'แก้ไขสิทธิ์',
'trip.journal.unlink': 'ยกเลิกการเชื่อม',
'trip.journal.unlinkTitle': 'ยกเลิกการเชื่อมบันทึกนี้หรือไม่',
'trip.journal.unlinkMessage':
'แท็บบันทึกจะหายไปจากทริปนี้ สมาชิกที่เปิดบันทึกได้ผ่านทริปนี้เท่านั้นจะเสียสิทธิ์ ส่วนผู้ที่ถูกเพิ่มในบันทึกโดยตรงยังคงมีสิทธิ์อยู่',
'trip.journal.linkedBadge': 'เชื่อมแล้ว',
'trip.journal.yourRole.owner': 'บันทึกของคุณ',
'trip.journal.yourRole.editor': 'คุณแก้ไขได้',
'trip.journal.yourRole.viewer': 'คุณอ่านได้',
'trip.journal.onlyYou': 'ยังไม่มีใครอื่นในทริปนี้ที่มีสิทธิ์',
'trip.journal.noJournals': 'คุณยังไม่มีบันทึก สร้างก่อนใน การเดินทาง',
'trip.journal.pickPlaceholder': 'เลือกบันทึก',
'trip.journal.noMembers': 'ยังไม่มีใครอื่นในทริปนี้',
'trip.journal.members': 'สิทธิ์สำหรับสมาชิกทริป',
'trip.journal.allRead': 'ทุกคนอ่านได้',
'trip.journal.allNone': 'ไม่มีใคร',
'trip.journal.roleNone': 'ไม่มีสิทธิ์',
'trip.journal.roleViewer': 'อ่าน',
'trip.journal.roleEditor': 'แก้ไข',
'trip.journal.hasAccess': 'มีสิทธิ์',
'trip.journal.warnNew':
'{names} จะได้รับสิทธิ์เข้าถึงบันทึกนี้เป็นครั้งแรก และจากนี้จะเห็นบันทึกนี้ในรายการบันทึกของตนเองด้วย',
'trip.journal.errorOffline': 'ต้องเชื่อมต่ออินเทอร์เน็ตเพื่อเชื่อมบันทึก',
'trip.journal.errorForbidden': 'คุณไม่ได้รับอนุญาตให้ทำสิ่งนี้',
'trip.journal.errorGeneric': 'ไม่สำเร็จ โปรดลองอีกครั้ง',
'trip.journal.linked': 'เชื่อมบันทึกแล้ว',
'trip.journal.membersSaved': 'บันทึกสิทธิ์แล้ว',
'trip.journal.unlinked': 'ยกเลิกการเชื่อมบันทึกแล้ว',
};
export default trip;