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.

feat(collections): show and edit the own notes of a saved place

Mauricedd1a117b9207
diff --git a/client/src/components/Collections/CollectionPlaceDetail.tsx b/client/src/components/Collections/CollectionPlaceDetail.tsx
index c7bf24169..c4612f9e5 100644
--- a/client/src/components/Collections/CollectionPlaceDetail.tsx
+++ b/client/src/components/Collections/CollectionPlaceDetail.tsx
@@ -32,7 +32,7 @@ interface CollectionPlaceDetailProps {
anchorRect?: { left: number; width: number } | null
onClose: () => void
onSetStatus: (status: CollectionStatus) => void
- onSave: (patch: { name?: string; description?: string | null; links?: CollectionLink[]; category_id?: number | null; label_ids?: number[]; image_url?: string | null; lat?: number | null; lng?: number | null; address?: string | null }) => Promise<void>
+ onSave: (patch: { name?: string; description?: string | null; notes?: string | null; links?: CollectionLink[]; category_id?: number | null; label_ids?: number[]; image_url?: string | null; lat?: number | null; lng?: number | null; address?: string | null }) => Promise<void>
/** Upload a custom cover image (#1136); enables the cover change/remove controls. */
onUploadImage?: (file: File) => Promise<void>
onCopyToTrip: () => void
@@ -74,7 +74,7 @@ export default function CollectionPlaceDetail({
const navigationTargets = getNavigationTargets(place)
const descRef = useRef<HTMLTextAreaElement>(null)
const {
- editing, setEditing, name, setName, categoryId, setCategoryId, description, setDescription, links, setLinks, setLink,
+ editing, setEditing, name, setName, categoryId, setCategoryId, description, setDescription, notes, setNotes, links, setLinks, setLink,
labelIds, toggleLabel, address, setAddress, lat, setLat, lng, setLng, saving, imgBusy, cover: banner, assignedLabels,
handleImagePick: handleCoverPick, handleImageRemove, cancelEdit: resetForm, save,
} = useCollectionPlaceForm({ place, labels, onSave, onUploadImage, t, normalizeLinkUrl, withCoordinates: true })
@@ -226,6 +226,11 @@ export default function CollectionPlaceDetail({
<MarkdownToolbar textareaRef={descRef} onUpdate={setDescription} />
<textarea ref={descRef} value={description} onChange={e => setDescription(e.target.value)} rows={4} placeholder={t('collections.descriptionPlaceholder')} className="col-detail-textarea" />
</div>
+ {/* Notes: the traveller's own, apart from the description (#3168) */}
+ <div className="col-detail-field">
+ <div className="col-detail-label">{t('collections.notes')}</div>
+ <textarea value={notes} onChange={e => setNotes(e.target.value)} rows={3} placeholder={t('collections.notesPlaceholder')} className="col-detail-textarea" />
+ </div>
{/* Links */}
<div className="col-detail-field">
<div className="col-detail-label">{t('collections.links')}</div>
@@ -248,6 +253,12 @@ export default function CollectionPlaceDetail({
<Markdown remarkPlugins={[remarkGfm, remarkBreaks]} components={markdownLinkComponents}>{place.description}</Markdown>
</div>
)}
+ {place.notes?.trim() && (
+ <div className="col-detail-field">
+ <div className="col-detail-label">{t('collections.notes')}</div>
+ <p className="m-0 whitespace-pre-wrap text-body text-content-muted [overflow-wrap:anywhere]">{place.notes}</p>
+ </div>
+ )}
{place.links && place.links.length > 0 && (
<div className="col-detail-links">
{place.links.map((l, i) => (
diff --git a/client/src/components/Collections/useCollectionPlaceForm.test.ts b/client/src/components/Collections/useCollectionPlaceForm.test.ts
index 7807a0f1d..786990821 100644
--- a/client/src/components/Collections/useCollectionPlaceForm.test.ts
+++ b/client/src/components/Collections/useCollectionPlaceForm.test.ts
@@ -176,6 +176,7 @@ describe('useCollectionPlaceForm', () => {
expect(detail.props.onSave).toHaveBeenCalledWith({
name: 'Louvre',
description: 'Museum',
+ notes: null,
links: [{ label: 'Map', url: 'https://maps.example' }],
category_id: 3,
label_ids: [11],
@@ -192,6 +193,7 @@ describe('useCollectionPlaceForm', () => {
expect(sheet.props.onSave).toHaveBeenCalledWith({
name: 'Louvre',
description: 'Museum',
+ notes: null,
links: [{ label: 'Site', url: 'https://louvre.example' }],
category_id: 3,
label_ids: [10],
@@ -199,6 +201,25 @@ describe('useCollectionPlaceForm', () => {
});
});
+ it('FE-COMP-COLPLACEHOOK-014: seeds, edits and saves the own notes on a saved place (#3168)', async () => {
+ const sheet = setup({ place: place({ notes: 'Book a week ahead' }) });
+ expect(sheet.result.current.notes).toBe('Book a week ahead');
+ act(() => {
+ sheet.result.current.setEditing(true);
+ sheet.result.current.setNotes(' Closed on Tuesdays ');
+ });
+ await act(async () => {
+ await sheet.result.current.save();
+ });
+ expect(sheet.props.onSave).toHaveBeenCalledWith(expect.objectContaining({ notes: 'Closed on Tuesdays' }));
+
+ act(() => sheet.result.current.setNotes(' '));
+ await act(async () => {
+ await sheet.result.current.save();
+ });
+ expect(sheet.props.onSave).toHaveBeenLastCalledWith(expect.objectContaining({ notes: null }));
+ });
+
it('FE-COMP-COLPLACEHOOK-010: a failed save stays in edit mode and toasts', async () => {
const onSave = vi.fn().mockRejectedValue({ response: { data: { error: 'Locked' } } });
const { result } = setup({ onSave });
diff --git a/client/src/components/Collections/useCollectionPlaceForm.ts b/client/src/components/Collections/useCollectionPlaceForm.ts
index 7202c9ab9..7af75304c 100644
--- a/client/src/components/Collections/useCollectionPlaceForm.ts
+++ b/client/src/components/Collections/useCollectionPlaceForm.ts
@@ -12,6 +12,7 @@ import { cleanListLinks } from './useListEditor';
export interface CollectionPlacePatch {
name?: string;
description?: string | null;
+ notes?: string | null;
links?: CollectionLink[];
category_id?: number | null;
label_ids?: number[];
@@ -84,6 +85,8 @@ export function useCollectionPlaceForm({
const [name, setName] = useState(shown?.name ?? '');
const [categoryId, setCategoryId] = useState<number | null>(shown?.category_id ?? null);
const [description, setDescription] = useState(shown?.description ?? '');
+ // The traveller's own notes on the place (#3168), apart from its description.
+ const [notes, setNotes] = useState(shown?.notes ?? '');
const [links, setLinks] = useState<CollectionLink[]>(shown?.links ?? []);
const [labelIds, setLabelIds] = useState<number[]>(shown?.label_ids ?? []);
const [address, setAddress] = useState(shown?.address ?? '');
@@ -101,6 +104,7 @@ export function useCollectionPlaceForm({
setName(p.name);
setCategoryId(p.category_id ?? null);
setDescription(p.description ?? '');
+ setNotes(p.notes ?? '');
setLinks(p.links ?? []);
setLabelIds(p.label_ids ?? []);
setAddress(p.address ?? '');
@@ -189,6 +193,7 @@ export function useCollectionPlaceForm({
const base = {
name: name.trim() || shown.name,
description: description.trim() || null,
+ notes: notes.trim() || null,
links: cleanListLinks(links, normalizeLinkUrl),
category_id: categoryId,
label_ids: labelIds,
@@ -215,6 +220,8 @@ export function useCollectionPlaceForm({
setCategoryId,
description,
setDescription,
+ notes,
+ setNotes,
links,
setLinks,
setLink,
diff --git a/client/src/mobile/screens/collections/MCollPlaceSheet.tsx b/client/src/mobile/screens/collections/MCollPlaceSheet.tsx
index e76105d1a..02b1bc80b 100644
--- a/client/src/mobile/screens/collections/MCollPlaceSheet.tsx
+++ b/client/src/mobile/screens/collections/MCollPlaceSheet.tsx
@@ -35,7 +35,7 @@ interface MCollPlaceSheetProps {
labels: CollectionLabel[]
onClose: () => void
onSetStatus: (status: CollectionStatus) => void
- onSave: (patch: { name?: string; description?: string | null; links?: CollectionLink[]; category_id?: number | null; label_ids?: number[]; image_url?: string | null; address?: string | null }) => Promise<void>
+ onSave: (patch: { name?: string; description?: string | null; notes?: string | null; links?: CollectionLink[]; category_id?: number | null; label_ids?: number[]; image_url?: string | null; address?: string | null }) => Promise<void>
onUploadImage?: (file: File) => Promise<void>
onCopyToTrip: () => void
onRemove: () => void
@@ -57,7 +57,7 @@ export default function MCollPlaceSheet({
const [navOpen, setNavOpen] = useState(false)
const navBtnRef = useRef<HTMLButtonElement | null>(null)
const {
- shown: held, editing, setEditing, name, setName, address, setAddress, categoryId, setCategoryId, description, setDescription,
+ shown: held, editing, setEditing, name, setName, address, setAddress, categoryId, setCategoryId, description, setDescription, notes, setNotes,
links, setLinks, labelIds, toggleLabel, saving, imgBusy, cover, assignedLabels, handleImagePick, handleImageRemove, cancelEdit, save,
} = useCollectionPlaceForm({
place, labels, onSave, onUploadImage, t, normalizeLinkUrl, holdLastPlace: true, dropPhotoOnPlaceUpdate: true,
@@ -195,6 +195,8 @@ export default function MCollPlaceSheet({
)}
<Eyebrow className="mb-[6px] mt-[14px]">{t('collections.description').toUpperCase()}</Eyebrow>
<textarea rows={4} value={description} onChange={e => setDescription(e.target.value)} placeholder={t('collections.descriptionPlaceholder')} className={TEXTAREA_CLS} />
+ <Eyebrow className="mb-[6px] mt-[14px]">{t('collections.notes').toUpperCase()}</Eyebrow>
+ <textarea rows={3} value={notes} onChange={e => setNotes(e.target.value)} placeholder={t('collections.notesPlaceholder')} className={TEXTAREA_CLS} />
<Eyebrow className="mb-[6px] mt-[14px]">{t('collections.links').toUpperCase()}</Eyebrow>
<MCollLinksEditor links={links} onChange={setLinks} t={t} />
<div className="mt-4 flex items-center gap-2">
@@ -228,6 +230,15 @@ export default function MCollPlaceSheet({
<Markdown remarkPlugins={[remarkGfm, remarkBreaks]}>{held.description}</Markdown>
</div>
)}
+ {/* The traveller's own notes (#3168), the way the place sheet of a trip shows them. */}
+ {held.notes?.trim() && (
+ <>
+ <Eyebrow className="mb-[6px] mt-[14px]">{t('collections.notes').toUpperCase()}</Eyebrow>
+ <p className="m-0 whitespace-pre-wrap rounded-[14px] bg-m-card px-[13px] py-[10px] font-geist text-caption leading-[1.55] text-m-muted [overflow-wrap:anywhere]">
+ {held.notes}
+ </p>
+ </>
+ )}
{held.links && held.links.length > 0 && (
<div className="mt-3 flex flex-wrap gap-[6px]">
{held.links.map((l, i) => (
diff --git a/shared/src/i18n/ar/collection.ts b/shared/src/i18n/ar/collection.ts
index 0faec9752..c21f8839e 100644
--- a/shared/src/i18n/ar/collection.ts
+++ b/shared/src/i18n/ar/collection.ts
@@ -64,6 +64,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'تغيير الغلاف',
'collections.description': 'الوصف',
'collections.descriptionPlaceholder': 'أضف وصفًا…',
+ 'collections.notes': 'ملاحظات',
+ 'collections.notesPlaceholder': 'ملاحظاتك الخاصة…',
'collections.links': 'روابط',
'collections.linkLabel': 'التسمية',
'collections.addLink': 'إضافة رابط',
diff --git a/shared/src/i18n/az/collection.ts b/shared/src/i18n/az/collection.ts
index 29c1eae93..4761a20be 100644
--- a/shared/src/i18n/az/collection.ts
+++ b/shared/src/i18n/az/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Üzlüyü dəyiş',
'collections.description': 'Təsvir',
'collections.descriptionPlaceholder': 'Təsvir əlavə edin…',
+ 'collections.notes': 'Qeydlər',
+ 'collections.notesPlaceholder': 'Öz qeydləriniz…',
'collections.links': 'Linklər',
'collections.linkLabel': 'Etiket',
'collections.addLink': 'Link əlavə et',
diff --git a/shared/src/i18n/br/collection.ts b/shared/src/i18n/br/collection.ts
index 1e9edb262..5d3b08d23 100644
--- a/shared/src/i18n/br/collection.ts
+++ b/shared/src/i18n/br/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Alterar capa',
'collections.description': 'Descrição',
'collections.descriptionPlaceholder': 'Adicione uma descrição…',
+ 'collections.notes': 'Notas',
+ 'collections.notesPlaceholder': 'Suas anotações…',
'collections.links': 'Links', // same-as-en
'collections.linkLabel': 'Rótulo',
'collections.addLink': 'Adicionar link',
diff --git a/shared/src/i18n/ca/collection.ts b/shared/src/i18n/ca/collection.ts
index 61a36a88d..cbd4aeab4 100644
--- a/shared/src/i18n/ca/collection.ts
+++ b/shared/src/i18n/ca/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Canviar portada',
'collections.description': 'Descripció',
'collections.descriptionPlaceholder': 'Afegeix una descripció…',
+ 'collections.notes': 'Notes',
+ 'collections.notesPlaceholder': 'Les teves notes…',
'collections.links': 'Enllaços',
'collections.linkLabel': 'Etiqueta',
'collections.addLink': 'Afegir enllaç',
diff --git a/shared/src/i18n/cs/collection.ts b/shared/src/i18n/cs/collection.ts
index 4bab0f6c6..13562a9e2 100644
--- a/shared/src/i18n/cs/collection.ts
+++ b/shared/src/i18n/cs/collection.ts
@@ -43,6 +43,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Změnit obálku',
'collections.description': 'Popis',
'collections.descriptionPlaceholder': 'Přidejte popis…',
+ 'collections.notes': 'Poznámky',
+ 'collections.notesPlaceholder': 'Vlastní poznámky…',
'collections.links': 'Odkazy',
'collections.linkLabel': 'Popisek',
'collections.addLink': 'Přidat odkaz',
diff --git a/shared/src/i18n/de/collection.ts b/shared/src/i18n/de/collection.ts
index b46d9015a..659692abb 100644
--- a/shared/src/i18n/de/collection.ts
+++ b/shared/src/i18n/de/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Titelbild ändern',
'collections.description': 'Beschreibung',
'collections.descriptionPlaceholder': 'Beschreibung hinzufügen…',
+ 'collections.notes': 'Notizen',
+ 'collections.notesPlaceholder': 'Eigene Notizen…',
'collections.links': 'Links', // same-as-en
'collections.linkLabel': 'Bezeichnung',
'collections.addLink': 'Link hinzufügen',
diff --git a/shared/src/i18n/en/collection.ts b/shared/src/i18n/en/collection.ts
index c04af48f1..c98de1c1d 100644
--- a/shared/src/i18n/en/collection.ts
+++ b/shared/src/i18n/en/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Change cover',
'collections.description': 'Description',
'collections.descriptionPlaceholder': 'Add a description…',
+ 'collections.notes': 'Notes',
+ 'collections.notesPlaceholder': 'Your own notes…',
'collections.links': 'Links',
'collections.linkLabel': 'Label',
'collections.addLink': 'Add link',
diff --git a/shared/src/i18n/es/collection.ts b/shared/src/i18n/es/collection.ts
index 4c3090a93..71eba36c4 100644
--- a/shared/src/i18n/es/collection.ts
+++ b/shared/src/i18n/es/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Cambiar portada',
'collections.description': 'Descripción',
'collections.descriptionPlaceholder': 'Añade una descripción…',
+ 'collections.notes': 'Notas',
+ 'collections.notesPlaceholder': 'Tus notas…',
'collections.links': 'Enlaces',
'collections.linkLabel': 'Etiqueta',
'collections.addLink': 'Añadir enlace',
diff --git a/shared/src/i18n/et/collection.ts b/shared/src/i18n/et/collection.ts
index 4836c0496..623dce76f 100644
--- a/shared/src/i18n/et/collection.ts
+++ b/shared/src/i18n/et/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Muuda kaanepilti',
'collections.description': 'Kirjeldus',
'collections.descriptionPlaceholder': 'Lisa kirjeldus…',
+ 'collections.notes': 'Märkmed',
+ 'collections.notesPlaceholder': 'Sinu märkmed…',
'collections.links': 'Lingid',
'collections.linkLabel': 'Nimetus',
'collections.addLink': 'Lisa link',
diff --git a/shared/src/i18n/fr/collection.ts b/shared/src/i18n/fr/collection.ts
index 8b33811a3..edf6953bb 100644
--- a/shared/src/i18n/fr/collection.ts
+++ b/shared/src/i18n/fr/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Changer la couverture',
'collections.description': 'Description', // same-as-en
'collections.descriptionPlaceholder': 'Ajouter une description…',
+ 'collections.notes': 'Notes',
+ 'collections.notesPlaceholder': 'Vos notes…',
'collections.links': 'Liens',
'collections.linkLabel': 'Libellé',
'collections.addLink': 'Ajouter un lien',
diff --git a/shared/src/i18n/gr/collection.ts b/shared/src/i18n/gr/collection.ts
index 529823a11..d64d0e239 100644
--- a/shared/src/i18n/gr/collection.ts
+++ b/shared/src/i18n/gr/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Αλλαγή εξωφύλλου',
'collections.description': 'Περιγραφή',
'collections.descriptionPlaceholder': 'Προσθέστε μια περιγραφή…',
+ 'collections.notes': 'Σημειώσεις',
+ 'collections.notesPlaceholder': 'Οι σημειώσεις σας…',
'collections.links': 'Σύνδεσμοι',
'collections.linkLabel': 'Ετικέτα',
'collections.addLink': 'Προσθήκη συνδέσμου',
diff --git a/shared/src/i18n/he/collection.ts b/shared/src/i18n/he/collection.ts
index 524065cec..86367c446 100644
--- a/shared/src/i18n/he/collection.ts
+++ b/shared/src/i18n/he/collection.ts
@@ -43,6 +43,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'החלפת שער',
'collections.description': 'תיאור',
'collections.descriptionPlaceholder': 'הוספת תיאור…',
+ 'collections.notes': 'הערות',
+ 'collections.notesPlaceholder': 'ההערות שלך…',
'collections.links': 'קישורים',
'collections.linkLabel': 'תווית',
'collections.addLink': 'הוספת קישור',
diff --git a/shared/src/i18n/hu/collection.ts b/shared/src/i18n/hu/collection.ts
index 2bb7dd2cd..5957a5040 100644
--- a/shared/src/i18n/hu/collection.ts
+++ b/shared/src/i18n/hu/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Borító módosítása',
'collections.description': 'Leírás',
'collections.descriptionPlaceholder': 'Adjon hozzá leírást…',
+ 'collections.notes': 'Jegyzetek',
+ 'collections.notesPlaceholder': 'Saját jegyzetek…',
'collections.links': 'Hivatkozások',
'collections.linkLabel': 'Címke',
'collections.addLink': 'Hivatkozás hozzáadása',
diff --git a/shared/src/i18n/id/collection.ts b/shared/src/i18n/id/collection.ts
index 8a112901b..3d2a99bfa 100644
--- a/shared/src/i18n/id/collection.ts
+++ b/shared/src/i18n/id/collection.ts
@@ -29,6 +29,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Ubah sampul',
'collections.description': 'Deskripsi',
'collections.descriptionPlaceholder': 'Tambahkan deskripsi…',
+ 'collections.notes': 'Catatan',
+ 'collections.notesPlaceholder': 'Catatan Anda…',
'collections.links': 'Tautan',
'collections.linkLabel': 'Label', // same-as-en
'collections.addLink': 'Tambah tautan',
diff --git a/shared/src/i18n/it/collection.ts b/shared/src/i18n/it/collection.ts
index 996869fcd..68cb586cb 100644
--- a/shared/src/i18n/it/collection.ts
+++ b/shared/src/i18n/it/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Cambia copertina',
'collections.description': 'Descrizione',
'collections.descriptionPlaceholder': 'Aggiungi una descrizione…',
+ 'collections.notes': 'Note',
+ 'collections.notesPlaceholder': 'Le tue note…',
'collections.links': 'Link',
'collections.linkLabel': 'Etichetta',
'collections.addLink': 'Aggiungi link',
diff --git a/shared/src/i18n/ja/collection.ts b/shared/src/i18n/ja/collection.ts
index cbcd79568..bf3d0eef5 100644
--- a/shared/src/i18n/ja/collection.ts
+++ b/shared/src/i18n/ja/collection.ts
@@ -29,6 +29,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'カバーを変更',
'collections.description': '説明',
'collections.descriptionPlaceholder': '説明を追加…',
+ 'collections.notes': 'メモ',
+ 'collections.notesPlaceholder': '自分用のメモ…',
'collections.links': 'リンク',
'collections.linkLabel': 'ラベル',
'collections.addLink': 'リンクを追加',
diff --git a/shared/src/i18n/ko/collection.ts b/shared/src/i18n/ko/collection.ts
index 13345501c..8e90de9c3 100644
--- a/shared/src/i18n/ko/collection.ts
+++ b/shared/src/i18n/ko/collection.ts
@@ -29,6 +29,8 @@ const collection: TranslationStrings = {
'collections.changeCover': '커버 변경',
'collections.description': '설명',
'collections.descriptionPlaceholder': '설명 추가…',
+ 'collections.notes': '메모',
+ 'collections.notesPlaceholder': '나만의 메모…',
'collections.links': '링크',
'collections.linkLabel': '레이블',
'collections.addLink': '링크 추가',
diff --git a/shared/src/i18n/nl/collection.ts b/shared/src/i18n/nl/collection.ts
index c40a65763..af2a4f929 100644
--- a/shared/src/i18n/nl/collection.ts
+++ b/shared/src/i18n/nl/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Omslag wijzigen',
'collections.description': 'Beschrijving',
'collections.descriptionPlaceholder': 'Voeg een beschrijving toe…',
+ 'collections.notes': 'Notities',
+ 'collections.notesPlaceholder': 'Je eigen notities…',
'collections.links': 'Links', // same-as-en
'collections.linkLabel': 'Label', // same-as-en
'collections.addLink': 'Link toevoegen',
diff --git a/shared/src/i18n/pl/collection.ts b/shared/src/i18n/pl/collection.ts
index fb821f9aa..26bac1326 100644
--- a/shared/src/i18n/pl/collection.ts
+++ b/shared/src/i18n/pl/collection.ts
@@ -50,6 +50,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Zmień okładkę',
'collections.description': 'Opis',
'collections.descriptionPlaceholder': 'Dodaj opis…',
+ 'collections.notes': 'Notatki',
+ 'collections.notesPlaceholder': 'Twoje notatki…',
'collections.links': 'Linki',
'collections.linkLabel': 'Etykieta',
'collections.addLink': 'Dodaj link',
diff --git a/shared/src/i18n/ru/collection.ts b/shared/src/i18n/ru/collection.ts
index 6cedceb4a..a9d0575aa 100644
--- a/shared/src/i18n/ru/collection.ts
+++ b/shared/src/i18n/ru/collection.ts
@@ -50,6 +50,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Изменить обложку',
'collections.description': 'Описание',
'collections.descriptionPlaceholder': 'Добавьте описание…',
+ 'collections.notes': 'Заметки',
+ 'collections.notesPlaceholder': 'Ваши заметки…',
'collections.links': 'Ссылки',
'collections.linkLabel': 'Название',
'collections.addLink': 'Добавить ссылку',
diff --git a/shared/src/i18n/sk/collection.ts b/shared/src/i18n/sk/collection.ts
index 05d6d0cda..cc6d40939 100644
--- a/shared/src/i18n/sk/collection.ts
+++ b/shared/src/i18n/sk/collection.ts
@@ -43,6 +43,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Zmeniť obálku',
'collections.description': 'Popis',
'collections.descriptionPlaceholder': 'Pridajte popis…',
+ 'collections.notes': 'Poznámky',
+ 'collections.notesPlaceholder': 'Vlastné poznámky…',
'collections.links': 'Odkazy',
'collections.linkLabel': 'Popisok',
'collections.addLink': 'Pridať odkaz',
diff --git a/shared/src/i18n/sv/collection.ts b/shared/src/i18n/sv/collection.ts
index e9acdabbb..a4df72123 100644
--- a/shared/src/i18n/sv/collection.ts
+++ b/shared/src/i18n/sv/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Byt omslag',
'collections.description': 'Beskrivning',
'collections.descriptionPlaceholder': 'Lägg till en beskrivning…',
+ 'collections.notes': 'Anteckningar',
+ 'collections.notesPlaceholder': 'Egna anteckningar…',
'collections.links': 'Länkar',
'collections.linkLabel': 'Etikett',
'collections.addLink': 'Lägg till länk',
diff --git a/shared/src/i18n/th/collection.ts b/shared/src/i18n/th/collection.ts
index 5abe7c497..a952b3031 100644
--- a/shared/src/i18n/th/collection.ts
+++ b/shared/src/i18n/th/collection.ts
@@ -29,6 +29,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'เปลี่ยนปก',
'collections.description': 'คำอธิบาย',
'collections.descriptionPlaceholder': 'เพิ่มคำอธิบาย...',
+ 'collections.notes': 'บันทึก',
+ 'collections.notesPlaceholder': 'บันทึกของคุณ…',
'collections.links': 'ลิงก์',
'collections.linkLabel': 'ป้ายกำกับ',
'collections.addLink': 'เพิ่มลิงก์',
diff --git a/shared/src/i18n/tr/collection.ts b/shared/src/i18n/tr/collection.ts
index cefbe7952..5cad3570d 100644
--- a/shared/src/i18n/tr/collection.ts
+++ b/shared/src/i18n/tr/collection.ts
@@ -36,6 +36,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Kapağı değiştir',
'collections.description': 'Açıklama',
'collections.descriptionPlaceholder': 'Bir açıklama ekleyin…',
+ 'collections.notes': 'Notlar',
+ 'collections.notesPlaceholder': 'Notlarınız…',
'collections.links': 'Bağlantılar',
'collections.linkLabel': 'Etiket',
'collections.addLink': 'Bağlantı ekle',
diff --git a/shared/src/i18n/uk/collection.ts b/shared/src/i18n/uk/collection.ts
index febbdfb97..6817c4ce2 100644
--- a/shared/src/i18n/uk/collection.ts
+++ b/shared/src/i18n/uk/collection.ts
@@ -50,6 +50,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Змінити обкладинку',
'collections.description': 'Опис',
'collections.descriptionPlaceholder': 'Додайте опис…',
+ 'collections.notes': 'Нотатки',
+ 'collections.notesPlaceholder': 'Ваші нотатки…',
'collections.links': 'Посилання',
'collections.linkLabel': 'Підпис',
'collections.addLink': 'Додати посилання',
diff --git a/shared/src/i18n/vi/collection.ts b/shared/src/i18n/vi/collection.ts
index ad003c92f..48d38c3ca 100644
--- a/shared/src/i18n/vi/collection.ts
+++ b/shared/src/i18n/vi/collection.ts
@@ -29,6 +29,8 @@ const collection: TranslationStrings = {
'collections.changeCover': 'Đổi ảnh bìa',
'collections.description': 'Mô tả',
'collections.descriptionPlaceholder': 'Thêm mô tả…',
+ 'collections.notes': 'Ghi chú',
+ 'collections.notesPlaceholder': 'Ghi chú của bạn…',
'collections.links': 'Liên kết',
'collections.linkLabel': 'Nhãn',
'collections.addLink': 'Thêm liên kết',
diff --git a/shared/src/i18n/zh-TW/collection.ts b/shared/src/i18n/zh-TW/collection.ts
index cf01ac093..e6e0a3108 100644
--- a/shared/src/i18n/zh-TW/collection.ts
+++ b/shared/src/i18n/zh-TW/collection.ts
@@ -29,6 +29,8 @@ const collection: TranslationStrings = {
'collections.changeCover': '更換封面',
'collections.description': '描述',
'collections.descriptionPlaceholder': '新增描述…',
+ 'collections.notes': '備註',
+ 'collections.notesPlaceholder': '你的備註…',
'collections.links': '連結',
'collections.linkLabel': '標籤',
'collections.addLink': '新增連結',
diff --git a/shared/src/i18n/zh/collection.ts b/shared/src/i18n/zh/collection.ts
index 1c513ddf9..acc181668 100644
--- a/shared/src/i18n/zh/collection.ts
+++ b/shared/src/i18n/zh/collection.ts
@@ -29,6 +29,8 @@ const collection: TranslationStrings = {
'collections.changeCover': '更换封面',
'collections.description': '描述',
'collections.descriptionPlaceholder': '添加描述…',
+ 'collections.notes': '备注',
+ 'collections.notesPlaceholder': '你的备注…',
'collections.links': '链接',
'collections.linkLabel': '标签',
'collections.addLink': '添加链接',