- {!forceReadonly && parentPage && (
-
-
-
-
- {hasExplicitOrigin ? t("memo.back-to", { source: originLabel }) : t("memo.go-to", { source: originLabel })}
-
-
-
- )}
-
{showOnThisMemo && (
{headings.length > 1 && }
diff --git a/web/src/components/MemoView/components/MemoHeader.tsx b/web/src/components/MemoView/components/MemoHeader.tsx
index b5e365c85..b8ee57429 100644
--- a/web/src/components/MemoView/components/MemoHeader.tsx
+++ b/web/src/components/MemoView/components/MemoHeader.tsx
@@ -1,11 +1,9 @@
-import { useCallback } from "react";
-import { Link } from "react-router-dom";
+import { Link, useLocation } from "react-router-dom";
import RelativeTime from "@/components/RelativeTime";
import { Button, buttonVariants } from "@/components/ui/button";
import { FOCUS_VISIBLE_OUTLINE_CLASSES } from "@/components/ui/focus";
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";
import { useNewMemo } from "@/contexts/NewMemoContext";
-import useNavigateTo from "@/hooks/useNavigateTo";
import i18n from "@/i18n";
import { cn } from "@/lib/utils";
import { getCreatorHomePath } from "@/router/routes";
@@ -19,7 +17,7 @@ import UserAvatar from "../../UserAvatar";
import VisibilityIcon from "../../VisibilityIcon";
import { MEMO_TIME_CONTROL_CLASSES } from "../constants";
import { useMemoViewContext, useMemoViewDerived } from "../MemoViewContext";
-import { createMemoNavigationState } from "../navigation";
+import { createMemoNavigationState, isMemoDetailPath } from "../navigation";
import type { MemoHeaderProps } from "../types";
import MemoSpaceBadge from "./MemoSpaceBadge";
@@ -30,15 +28,11 @@ const MemoHeader: React.FC = ({ timeDisplay = "relative", showC
const t = useTranslate();
const { memo, creator, currentUser, parentPage, isArchived, readonly, openEditor } = useMemoViewContext();
+ const location = useLocation();
const { createTime, updateTime, displayTime: memoDisplayTime, isDisplayingUpdatedTime, relativeTimeFormat } = useMemoViewDerived();
const { newMemoName } = useNewMemo();
const visibilityOption = getVisibilityOption(memo.visibility);
- const navigateTo = useNavigateTo();
- const handleGotoMemoDetailPage = useCallback(() => {
- navigateTo(`/${memo.name}`, { state: createMemoNavigationState(parentPage) });
- }, [memo.name, parentPage, navigateTo]);
-
const timeValue = isArchived ? (
memoDisplayTime?.toLocaleString(i18n.language)
) : timeDisplay === "time" ? (
@@ -70,7 +64,13 @@ const MemoHeader: React.FC = ({ timeDisplay = "relative", showC
{/* The time stays visible while the creator and Space badge can shrink and truncate. */}
{showCreator && creator && }
-
+
{spaceMetadata}
{memo.name === newMemoName && (
@@ -147,14 +147,27 @@ const TimeTooltip = ({ children, content }: { children: React.ReactElement; cont
interface TimeDisplayProps {
displayTime: React.ReactNode;
timeTooltip: TimeTooltipContent;
- onGotoDetail: () => void;
+ memoName: string;
+ parentPage: string;
+ /** On the memo's own page the permalink would lead nowhere, so the time is plain text. */
+ isCurrentPage: boolean;
}
-const TimeDisplay: React.FC = ({ displayTime, timeTooltip, onGotoDetail }) => (
+/** The timestamp is the memo's permalink: a real link, so it previews its URL and opens in a new tab. */
+const TimeDisplay: React.FC = ({ displayTime, timeTooltip, memoName, parentPage, isCurrentPage }) => (
-
+ {isCurrentPage ? (
+ {displayTime}
+ ) : (
+
+ {displayTime}
+
+ )}
);
diff --git a/web/src/components/ui/dropdown-menu.tsx b/web/src/components/ui/dropdown-menu.tsx
index 1d3be49e4..7676082b7 100644
--- a/web/src/components/ui/dropdown-menu.tsx
+++ b/web/src/components/ui/dropdown-menu.tsx
@@ -60,6 +60,14 @@ function DropdownMenuGroup({ ...props }: DropdownMenuPrimitive.Group.Props) {
return ;
}
+const dropdownMenuItemClasses = (size: DropdownMenuSize) =>
+ cn(
+ "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center rounded-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ size === "sm"
+ ? "min-h-7 gap-1.5 px-2 py-1 text-ui data-[inset]:ps-7 [&_svg:not([class*='size-'])]:size-3.5"
+ : "gap-2 px-2 py-1.5 text-sm data-[inset]:ps-8 [&_svg:not([class*='size-'])]:size-4",
+ );
+
function DropdownMenuItem({
className,
inset,
@@ -76,13 +84,21 @@ function DropdownMenuItem({
data-slot="dropdown-menu-item"
data-inset={inset}
data-variant={variant}
- className={cn(
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center rounded-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
- size === "sm"
- ? "min-h-7 gap-1.5 px-2 py-1 text-ui data-[inset]:ps-7 [&_svg:not([class*='size-'])]:size-3.5"
- : "gap-2 px-2 py-1.5 text-sm data-[inset]:ps-8 [&_svg:not([class*='size-'])]:size-4",
- className,
- )}
+ className={cn(dropdownMenuItemClasses(size), className)}
+ {...props}
+ />
+ );
+}
+
+/** A menu item that is a real link, so the browser's open-in-new-tab gestures work on it. */
+function DropdownMenuLinkItem({ className, inset, ...props }: DropdownMenuPrimitive.LinkItem.Props & { inset?: boolean }) {
+ const size = React.useContext(DropdownMenuSizeContext);
+
+ return (
+
);
@@ -242,6 +258,7 @@ export {
DropdownMenuGroup,
DropdownMenuItem,
DropdownMenuLabel,
+ DropdownMenuLinkItem,
DropdownMenuPortal,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
diff --git a/web/src/contexts/AppSidebarContext.tsx b/web/src/contexts/AppSidebarContext.tsx
index 9a5118c99..57a6770f6 100644
--- a/web/src/contexts/AppSidebarContext.tsx
+++ b/web/src/contexts/AppSidebarContext.tsx
@@ -12,7 +12,6 @@ export interface MemoDetailSidebarDescriptor {
parentStatus?: MemoParentStatus;
onParentRetry?: () => void;
from?: string;
- hasExplicitOrigin?: boolean;
commentCount?: number;
readonly?: boolean;
onEdit?: () => void;
diff --git a/web/src/locales/ar.json b/web/src/locales/ar.json
index 29f871a06..e03ff2ff3 100644
--- a/web/src/locales/ar.json
+++ b/web/src/locales/ar.json
@@ -94,6 +94,7 @@
"more": "المزيد",
"name": "الاسم",
"nickname": "الاسم المستعار",
+ "open": "فتح",
"or": "أو",
"password": "كلمة المرور",
"pin": "ثبّت",
@@ -298,7 +299,6 @@
"count-memos-updated-in-date": "{{count}} {{memos}} تم التحديث في {{date}}",
"connections": "الاتصالات",
"grid-compact-hint": "تستخدم تخطيطات الشبكة دائمًا بطاقات مضغوطة.",
- "go-to": "الانتقال إلى {{source}}",
"layout": "التخطيط",
"layout-auto": "تلقائي",
"layout-auto-description": "عدد الأعمدة حسب عرض الشاشة",
@@ -312,7 +312,6 @@
"parent-memo": "المذكرة الأصلية",
"task-actions": {
"check-all": "تحديد جميع المهام",
- "title": "المهام",
"uncheck-all": "إلغاء تحديد جميع المهام",
"updated": "تم تحديث المهام"
},
diff --git a/web/src/locales/az.json b/web/src/locales/az.json
index 055ffca34..f16b856fb 100644
--- a/web/src/locales/az.json
+++ b/web/src/locales/az.json
@@ -196,6 +196,7 @@
"name": "Ad",
"next-month": "Növbəti ay",
"nickname": "Ləqəb",
+ "open": "Aç",
"or": "və ya",
"password": "Parol",
"pin": "Sancaqla",
@@ -356,7 +357,6 @@
"compact-mode": "Yığcam rejim",
"connections": "Bağlantılar",
"grid-compact-hint": "Şəbəkə düzülüşləri həmişə yığcam kartlardan istifadə edir.",
- "go-to": "{{source}} bölməsinə keç",
"layout": "Düzülüş",
"layout-auto": "Avtomatik",
"layout-auto-description": "Ekrana sığdığı qədər sütun",
@@ -403,7 +403,6 @@
"show-more": "Daha çox göstər",
"task-actions": {
"check-all": "Bütün tapşırıqları işarələ",
- "title": "Tapşırıqlar",
"uncheck-all": "Bütün tapşırıqların işarəsini götür",
"updated": "Tapşırıqlar yeniləndi"
},
diff --git a/web/src/locales/bg.json b/web/src/locales/bg.json
index a0796c8d9..f03a71fc1 100644
--- a/web/src/locales/bg.json
+++ b/web/src/locales/bg.json
@@ -133,6 +133,7 @@
"more": "повече",
"name": "Име",
"nickname": "Псевдоним",
+ "open": "Отвори",
"or": "или",
"password": "Парола",
"pin": "ПИН",
@@ -318,7 +319,6 @@
"show-more": "Покажи повече",
"task-actions": {
"check-all": "Проверете всички задачи",
- "title": "Задачи",
"uncheck-all": "Премахнете отметката от всички задачи",
"updated": "Задачите са актуализирани"
},
@@ -349,7 +349,6 @@
"back-to": "Обратно към {{source}}",
"connections": "Връзки",
"grid-compact-hint": "Мрежовите оформления винаги използват компактни карти.",
- "go-to": "Отидете на {{source}}",
"layout": "Оформление",
"layout-auto": "Автоматично",
"layout-auto-description": "Толкова колони, колкото се побират на екрана",
diff --git a/web/src/locales/ca.json b/web/src/locales/ca.json
index ff2b25e03..ea66cb4c1 100644
--- a/web/src/locales/ca.json
+++ b/web/src/locales/ca.json
@@ -94,6 +94,7 @@
"more": "Més",
"name": "Nom",
"nickname": "Sobrenom",
+ "open": "Obre",
"or": "o",
"password": "Contrasenya",
"pin": "Enganxa",
@@ -290,7 +291,6 @@
"oldest-first": "El més vell primer",
"task-actions": {
"check-all": "Comproveu totes les tasques",
- "title": "Tasques",
"uncheck-all": "Desmarqueu totes les tasques",
"updated": "Tasques actualitzades"
},
@@ -311,7 +311,6 @@
"back-to": "Torna a {{source}}",
"connections": "Connexions",
"grid-compact-hint": "Els dissenys de quadrícula sempre utilitzen targetes compactes.",
- "go-to": "Ves a {{source}}",
"layout": "Disseny",
"layout-auto": "Automàtic",
"layout-auto-description": "Tantes columnes com càpiguen a la pantalla",
diff --git a/web/src/locales/cs.json b/web/src/locales/cs.json
index 36b1fdcbc..49267916e 100644
--- a/web/src/locales/cs.json
+++ b/web/src/locales/cs.json
@@ -94,6 +94,7 @@
"more": "Více",
"name": "Jméno",
"nickname": "Přezdívka",
+ "open": "Otevřít",
"or": "nebo",
"password": "Heslo",
"pin": "Připnout",
@@ -290,7 +291,6 @@
"oldest-first": "Nejdříve nejstarší",
"task-actions": {
"check-all": "Zkontrolujte všechny úkoly",
- "title": "Úkoly",
"uncheck-all": "Zrušte zaškrtnutí všech úkolů",
"updated": "Úkoly aktualizovány"
},
@@ -311,7 +311,6 @@
"back-to": "Zpět na {{source}}",
"connections": "Připojení",
"grid-compact-hint": "Mřížkové rozvržení vždy používá kompaktní karty.",
- "go-to": "Přejít na {{source}}",
"layout": "Rozvržení",
"layout-auto": "Automaticky",
"layout-auto-description": "Tolik sloupců, kolik se vejde na obrazovku",
diff --git a/web/src/locales/da.json b/web/src/locales/da.json
index 4dd42067e..ad9ae5e53 100644
--- a/web/src/locales/da.json
+++ b/web/src/locales/da.json
@@ -133,6 +133,7 @@
"more": "Mere",
"name": "Navn",
"nickname": "Kaldenavn",
+ "open": "Åbn",
"or": "eller",
"password": "Adgangskode",
"pin": "Stift",
@@ -318,7 +319,6 @@
"show-more": "Vis mere",
"task-actions": {
"check-all": "Tjek alle opgaver",
- "title": "Opgaver",
"uncheck-all": "Fjern markeringen i alle opgaver",
"updated": "Opgaver opdateret"
},
@@ -349,7 +349,6 @@
"back-to": "Tilbage til {{source}}",
"connections": "Forbindelser",
"grid-compact-hint": "Gitterlayout bruger altid kompakte kort.",
- "go-to": "Gå til {{source}}",
"layout": "Layout",
"layout-auto": "Auto",
"layout-auto-description": "Så mange kolonner som der er plads til på skærmen",
diff --git a/web/src/locales/de.json b/web/src/locales/de.json
index 8efaa3396..ea89dbcb6 100644
--- a/web/src/locales/de.json
+++ b/web/src/locales/de.json
@@ -94,6 +94,7 @@
"more": "Mehr",
"name": "Name",
"nickname": "Spitzname",
+ "open": "Öffnen",
"or": "oder",
"password": "Passwort",
"pin": "Anpinnen",
@@ -290,7 +291,6 @@
"oldest-first": "Älteste zuerst",
"task-actions": {
"check-all": "Überprüfen Sie alle Aufgaben",
- "title": "Aufgaben",
"uncheck-all": "Deaktivieren Sie alle Aufgaben",
"updated": "Aufgaben aktualisiert"
},
@@ -311,7 +311,6 @@
"back-to": "Zurück zu {{source}}",
"connections": "Verbindungen",
"grid-compact-hint": "Rasterlayouts verwenden immer kompakte Karten.",
- "go-to": "Gehe zu {{source}}",
"layout": "Layout",
"layout-auto": "Automatisch",
"layout-auto-description": "So viele Spalten, wie auf den Bildschirm passen",
diff --git a/web/src/locales/el.json b/web/src/locales/el.json
index 1878a6d37..6ce131450 100644
--- a/web/src/locales/el.json
+++ b/web/src/locales/el.json
@@ -133,6 +133,7 @@
"more": "Περισσότερο",
"name": "Ονομα",
"nickname": "Παρατσούκλι",
+ "open": "Άνοιγμα",
"or": "ή",
"password": "Σύνθημα",
"pin": "Καρφίτσα",
@@ -318,7 +319,6 @@
"show-more": "Εμφάνιση περισσότερων",
"task-actions": {
"check-all": "Ελέγξτε όλες τις εργασίες",
- "title": "Καθήκοντα",
"uncheck-all": "Καταργήστε την επιλογή όλων των εργασιών",
"updated": "Οι εργασίες ενημερώθηκαν"
},
@@ -349,7 +349,6 @@
"back-to": "Επιστροφή στο {{source}}",
"connections": "Συνδέσεις",
"grid-compact-hint": "Οι διατάξεις πλέγματος χρησιμοποιούν πάντα συμπαγείς κάρτες.",
- "go-to": "Μετάβαση στο {{source}}",
"layout": "Διάταξη",
"layout-auto": "Αυτόματη",
"layout-auto-description": "Τόσες στήλες όσες χωράνε στην οθόνη",
diff --git a/web/src/locales/en-GB.json b/web/src/locales/en-GB.json
index d89cca592..7a1449dcf 100644
--- a/web/src/locales/en-GB.json
+++ b/web/src/locales/en-GB.json
@@ -94,6 +94,7 @@
"more": "More",
"name": "Name",
"nickname": "Nickname",
+ "open": "Open",
"or": "or",
"password": "Password",
"pin": "Pin",
@@ -290,7 +291,6 @@
"oldest-first": "Oldest first",
"task-actions": {
"check-all": "Check all tasks",
- "title": "Tasks",
"uncheck-all": "Uncheck all tasks",
"updated": "Tasks updated"
},
@@ -310,7 +310,6 @@
"back-to": "Back to {{source}}",
"connections": "Connections",
"grid-compact-hint": "Grid layouts always use compact cards.",
- "go-to": "Go to {{source}}",
"layout": "Layout",
"layout-auto": "Auto",
"layout-auto-description": "As many columns as fit the screen",
diff --git a/web/src/locales/en.json b/web/src/locales/en.json
index eddb21eb7..12f6d740f 100644
--- a/web/src/locales/en.json
+++ b/web/src/locales/en.json
@@ -196,6 +196,7 @@
"name": "Name",
"next-month": "Next month",
"nickname": "Nickname",
+ "open": "Open",
"or": "or",
"password": "Password",
"pin": "Pin",
@@ -356,7 +357,6 @@
"compact-mode": "Compact mode",
"connections": "Connections",
"grid-compact-hint": "Grid layouts always use compact cards.",
- "go-to": "Go to {{source}}",
"layout": "Layout",
"layout-auto": "Auto",
"layout-auto-description": "As many columns as fit the screen",
@@ -403,7 +403,6 @@
"show-more": "Show more",
"task-actions": {
"check-all": "Check all tasks",
- "title": "Tasks",
"uncheck-all": "Uncheck all tasks",
"updated": "Tasks updated"
},
diff --git a/web/src/locales/es.json b/web/src/locales/es.json
index 8da44afb5..962b52d0e 100644
--- a/web/src/locales/es.json
+++ b/web/src/locales/es.json
@@ -94,6 +94,7 @@
"more": "Más",
"name": "Nombre",
"nickname": "Apodo",
+ "open": "Abrir",
"or": "o",
"password": "Contraseña",
"pin": "Enganchar",
@@ -290,7 +291,6 @@
"oldest-first": "El más viejo primero",
"task-actions": {
"check-all": "Verificar todas las tareas",
- "title": "Tareas",
"uncheck-all": "Desmarque todas las tareas",
"updated": "Tareas actualizadas"
},
@@ -311,7 +311,6 @@
"back-to": "Volver a {{source}}",
"connections": "Conexiones",
"grid-compact-hint": "Los diseños de cuadrícula siempre utilizan tarjetas compactas.",
- "go-to": "Ir a {{source}}",
"layout": "Diseño",
"layout-auto": "Automático",
"layout-auto-description": "Tantas columnas como quepan en la pantalla",
diff --git a/web/src/locales/et.json b/web/src/locales/et.json
index 208b547be..77ef294eb 100644
--- a/web/src/locales/et.json
+++ b/web/src/locales/et.json
@@ -133,6 +133,7 @@
"more": "Rohkem",
"name": "Nimi",
"nickname": "Hüüdnimi",
+ "open": "Ava",
"or": "või",
"password": "Parool",
"pin": "Pin",
@@ -318,7 +319,6 @@
"show-more": "Näita rohkem",
"task-actions": {
"check-all": "Kontrollige kõiki ülesandeid",
- "title": "Ülesanded",
"uncheck-all": "Tühjendage kõigi ülesannete märge",
"updated": "Ülesanded värskendatud"
},
@@ -349,7 +349,6 @@
"back-to": "Tagasi {{source}} juurde",
"connections": "Ühendused",
"grid-compact-hint": "Ruudustikupaigutused kasutavad alati kompaktseid kaarte.",
- "go-to": "Mine {{source}} juurde",
"layout": "Paigutus",
"layout-auto": "Automaatne",
"layout-auto-description": "Nii palju veerge kui ekraanile mahub",
diff --git a/web/src/locales/fa.json b/web/src/locales/fa.json
index e6c05dbdc..9ed874c7f 100644
--- a/web/src/locales/fa.json
+++ b/web/src/locales/fa.json
@@ -94,6 +94,7 @@
"more": "بیشتر",
"name": "نام",
"nickname": "نام مستعار",
+ "open": "باز کردن",
"or": "یا",
"password": "گذرواژه",
"pin": "نشان",
@@ -298,7 +299,6 @@
"count-memos-updated-in-date": "{{count}} {{memos}} بهروزرسانی شده در {{date}}",
"connections": "اتصالات",
"grid-compact-hint": "طرحبندیهای شبکهای همیشه از کارتهای فشرده استفاده میکنند.",
- "go-to": "برو به {{source}}",
"layout": "طرحبندی",
"layout-auto": "خودکار",
"layout-auto-description": "به تعداد ستونهایی که صفحه نمایش را پر میکنند",
@@ -312,7 +312,6 @@
"parent-memo": "یادداشت والد",
"task-actions": {
"check-all": "انتخاب همه وظایف",
- "title": "وظایف",
"uncheck-all": "انتخاب همه وظایف را بردارید",
"updated": "وظایف بهروزرسانی شدند"
},
diff --git a/web/src/locales/fi.json b/web/src/locales/fi.json
index 4d12364ae..32e2b9b8d 100644
--- a/web/src/locales/fi.json
+++ b/web/src/locales/fi.json
@@ -133,6 +133,7 @@
"more": "Lisää",
"name": "Nimi",
"nickname": "Lempinimi",
+ "open": "Avaa",
"or": "tai",
"password": "Salasana",
"pin": "Pin",
@@ -318,7 +319,6 @@
"show-more": "Näytä lisää",
"task-actions": {
"check-all": "Tarkista kaikki tehtävät",
- "title": "Tehtävät",
"uncheck-all": "Poista kaikkien tehtävien valinta",
"updated": "Tehtävät päivitetty"
},
@@ -349,7 +349,6 @@
"back-to": "Takaisin kohtaan {{source}}",
"connections": "Yhteydet",
"grid-compact-hint": "Ruudukkoasetteluissa käytetään aina kompakteja kortteja.",
- "go-to": "Siirry kohtaan {{source}}",
"layout": "Asettelu",
"layout-auto": "Automaattinen",
"layout-auto-description": "Niin monta saraketta kuin näytölle mahtuu",
diff --git a/web/src/locales/fr.json b/web/src/locales/fr.json
index 57d244a69..7ea0b72b4 100644
--- a/web/src/locales/fr.json
+++ b/web/src/locales/fr.json
@@ -94,6 +94,7 @@
"more": "Plus",
"name": "Nom",
"nickname": "Surnom",
+ "open": "Ouvrir",
"or": "ou",
"password": "Mot de passe",
"pin": "Épingler",
@@ -290,7 +291,6 @@
"oldest-first": "Le plus ancien en premier",
"task-actions": {
"check-all": "Vérifiez toutes les tâches",
- "title": "Tâches",
"uncheck-all": "Décochez toutes les tâches",
"updated": "Tâches mises à jour"
},
@@ -311,7 +311,6 @@
"back-to": "Retour à {{source}}",
"connections": "Connexions",
"grid-compact-hint": "Les mises en page en grille utilisent toujours des cartes compactes.",
- "go-to": "Aller à {{source}}",
"layout": "Mise en page",
"layout-auto": "Automatique",
"layout-auto-description": "Autant de colonnes que l'écran peut en afficher",
diff --git a/web/src/locales/gl.json b/web/src/locales/gl.json
index e4e0e82c1..e8a94f3ba 100644
--- a/web/src/locales/gl.json
+++ b/web/src/locales/gl.json
@@ -94,6 +94,7 @@
"more": "Máis",
"name": "Nome",
"nickname": "Alcume",
+ "open": "Abrir",
"or": "ou",
"password": "Contrasinal",
"pin": "Fixar",
@@ -290,7 +291,6 @@
"oldest-first": "Os máis vellos primeiro",
"task-actions": {
"check-all": "Comprobe todas as tarefas",
- "title": "Tarefas",
"uncheck-all": "Desmarque todas as tarefas",
"updated": "Tarefas actualizadas"
},
@@ -311,7 +311,6 @@
"back-to": "Volver a {{source}}",
"connections": "Conexións",
"grid-compact-hint": "Os deseños de cuadrícula sempre usan tarxetas compactas.",
- "go-to": "Ir a {{source}}",
"layout": "Deseño",
"layout-auto": "Automático",
"layout-auto-description": "Tantas columnas como axusten á pantalla",
diff --git a/web/src/locales/he.json b/web/src/locales/he.json
index 4c4160cfa..f1b6f6bfd 100644
--- a/web/src/locales/he.json
+++ b/web/src/locales/he.json
@@ -169,6 +169,7 @@
"name": "שם",
"next-month": "החודש הבא",
"nickname": "כינוי",
+ "open": "פתח",
"or": "או",
"password": "סיסמה",
"pin": "הצמד",
@@ -360,7 +361,6 @@
"show-more": "הצג עוד",
"task-actions": {
"check-all": "סמן את כל המשימות",
- "title": "משימות",
"uncheck-all": "בטל סימון של כל המשימות",
"updated": "המשימות עודכנו"
},
@@ -390,7 +390,6 @@
},
"back-to": "חזרה אל {{source}}",
"connections": "חיבורים",
- "go-to": "עבור אל {{source}}",
"on-this-memo": "על תזכיר זה",
"parent-memo": "תזכיר אב"
},
diff --git a/web/src/locales/hi.json b/web/src/locales/hi.json
index 7532863ba..75fe7402c 100644
--- a/web/src/locales/hi.json
+++ b/web/src/locales/hi.json
@@ -94,6 +94,7 @@
"more": "अधिक",
"name": "नाम",
"nickname": "उपनाम",
+ "open": "खोलें",
"or": "या",
"password": "पासवर्ड",
"pin": "पिन करें",
@@ -298,7 +299,6 @@
"count-memos-updated-in-date": "{{count}} {{memos}} को {{date}} पर अपडेट किया गया",
"connections": "कनेक्शन",
"grid-compact-hint": "ग्रिड लेआउट हमेशा कॉम्पैक्ट कार्ड का इस्तेमाल करते हैं।",
- "go-to": "{{source}} पर जाएं",
"layout": "लेआउट",
"layout-auto": "ऑटो",
"layout-auto-description": "स्क्रीन में जितने कॉलम फिट हों",
@@ -312,7 +312,6 @@
"parent-memo": "पैरेंट मेमो",
"task-actions": {
"check-all": "सभी टास्क चेक करें",
- "title": "टास्क",
"uncheck-all": "सभी टास्क अनचेक करें",
"updated": "टास्क अपडेट किए गए"
},
diff --git a/web/src/locales/hr.json b/web/src/locales/hr.json
index bb0848efb..c2e14a987 100644
--- a/web/src/locales/hr.json
+++ b/web/src/locales/hr.json
@@ -94,6 +94,7 @@
"more": "Više",
"name": "Ime",
"nickname": "Nadimak",
+ "open": "Otvori",
"or": "ili",
"password": "Lozinka",
"pin": "Prikvači",
@@ -290,7 +291,6 @@
"oldest-first": "Prvo najstariji",
"task-actions": {
"check-all": "Provjerite sve zadatke",
- "title": "Zadaci",
"uncheck-all": "Odznačite sve zadatke",
"updated": "Zadaci ažurirani"
},
@@ -311,7 +311,6 @@
"back-to": "Natrag na {{source}}",
"connections": "Veze",
"grid-compact-hint": "Mrežni rasporedi uvijek koriste kompaktne kartice.",
- "go-to": "Idi na {{source}}",
"layout": "Raspored",
"layout-auto": "Automatski",
"layout-auto-description": "Onoliko stupaca koliko stane na zaslon",
diff --git a/web/src/locales/hu.json b/web/src/locales/hu.json
index fc759db44..1bc418800 100644
--- a/web/src/locales/hu.json
+++ b/web/src/locales/hu.json
@@ -94,6 +94,7 @@
"more": "Több",
"name": "Név",
"nickname": "Becenév",
+ "open": "Megnyitás",
"or": "vagy",
"password": "Jelszó",
"pin": "Kitűzés",
@@ -290,7 +291,6 @@
"oldest-first": "Először a legidősebb",
"task-actions": {
"check-all": "Ellenőrizze az összes feladatot",
- "title": "Feladatok",
"uncheck-all": "Törölje az összes feladat jelölését",
"updated": "Feladatok frissítve"
},
@@ -311,7 +311,6 @@
"back-to": "Vissza a {{source}}-hez",
"connections": "Kapcsolatok",
"grid-compact-hint": "A rácsos elrendezések mindig kompakt kártyákat használnak.",
- "go-to": "Ugrás a {{source}}-hez",
"layout": "Elrendezés",
"layout-auto": "Automatikus",
"layout-auto-description": "Annyi oszlop, amennyi elfér a képernyőn",
diff --git a/web/src/locales/id.json b/web/src/locales/id.json
index 88d801217..433ae62ac 100644
--- a/web/src/locales/id.json
+++ b/web/src/locales/id.json
@@ -94,6 +94,7 @@
"more": "Lainnya",
"name": "Nama",
"nickname": "Nama Panggilan",
+ "open": "Buka",
"or": "atau",
"password": "Kata sandi",
"pin": "Jepit",
@@ -298,7 +299,6 @@
"count-memos-updated-in-date": "{{count}} {{memos}} diperbarui pada {{date}}",
"connections": "Koneksi",
"grid-compact-hint": "Tata letak grid selalu menggunakan kartu ringkas.",
- "go-to": "Buka {{source}}",
"layout": "Tata Letak",
"layout-auto": "Otomatis",
"layout-auto-description": "Sebanyak kolom yang sesuai dengan layar",
@@ -312,7 +312,6 @@
"parent-memo": "Memo induk",
"task-actions": {
"check-all": "Centang semua tugas",
- "title": "Tugas",
"uncheck-all": "Hapus centang semua tugas",
"updated": "Tugas diperbarui"
},
diff --git a/web/src/locales/it.json b/web/src/locales/it.json
index a2016717f..18f023c1b 100644
--- a/web/src/locales/it.json
+++ b/web/src/locales/it.json
@@ -94,6 +94,7 @@
"more": "Altro",
"name": "Nome",
"nickname": "Nickname",
+ "open": "Apri",
"or": "oppure",
"password": "Password",
"pin": "Fissa",
@@ -290,7 +291,6 @@
"oldest-first": "Prima il più vecchio",
"task-actions": {
"check-all": "Controlla tutte le attività",
- "title": "Compiti",
"uncheck-all": "Deseleziona tutte le attività",
"updated": "Attività aggiornate"
},
@@ -311,7 +311,6 @@
"back-to": "Torna a {{source}}",
"connections": "Connessioni",
"grid-compact-hint": "I layout a griglia utilizzano sempre schede compatte.",
- "go-to": "Vai a {{source}}",
"layout": "Layout",
"layout-auto": "Automatico",
"layout-auto-description": "Tante colonne quante ne possono entrare nello schermo",
diff --git a/web/src/locales/ja.json b/web/src/locales/ja.json
index 487fea956..d4ab5e8d5 100644
--- a/web/src/locales/ja.json
+++ b/web/src/locales/ja.json
@@ -97,6 +97,7 @@
"name": "名前",
"next-month": "翌月",
"nickname": "ニックネーム",
+ "open": "開く",
"or": "もしくは",
"password": "パスワード",
"pin": "ピン",
@@ -299,7 +300,6 @@
"oldest-first": "古い順",
"task-actions": {
"check-all": "すべてのタスクをチェックする",
- "title": "タスク",
"uncheck-all": "すべてのタスクのチェックを外します",
"updated": "タスクが更新されました"
},
@@ -319,7 +319,6 @@
},
"back-to": "{{source}}に戻る",
"connections": "接続",
- "go-to": "{{source}}へ移動",
"on-this-memo": "このメモについて",
"parent-memo": "親メモ"
},
diff --git a/web/src/locales/ka-GE.json b/web/src/locales/ka-GE.json
index caa80744f..81e36bcee 100644
--- a/web/src/locales/ka-GE.json
+++ b/web/src/locales/ka-GE.json
@@ -94,6 +94,7 @@
"more": "მეტი",
"name": "სახელი",
"nickname": "მეტსახელი",
+ "open": "გახსნა",
"or": "ან",
"password": "პაროლი",
"pin": "პინი",
@@ -290,7 +291,6 @@
"oldest-first": "ჯერ ყველაზე ძველი",
"task-actions": {
"check-all": "შეამოწმეთ ყველა დავალება",
- "title": "ამოცანები",
"uncheck-all": "მოხსენით ყველა დავალება",
"updated": "ამოცანები განახლებულია"
},
@@ -311,7 +311,6 @@
"back-to": "დაბრუნება {{source}}-ზე",
"connections": "კავშირები",
"grid-compact-hint": "ბადისებრი განლაგებები ყოველთვის კომპაქტურ ბარათებს იყენებს.",
- "go-to": "გადასვლა {{source}}-ზე",
"layout": "განლაგება",
"layout-auto": "ავტომატური",
"layout-auto-description": "ეკრანზე რამდენიც უნდა მოთავსდეს",
diff --git a/web/src/locales/ko.json b/web/src/locales/ko.json
index b56597967..ec3e0336f 100644
--- a/web/src/locales/ko.json
+++ b/web/src/locales/ko.json
@@ -94,6 +94,7 @@
"more": "더보기",
"name": "이름",
"nickname": "닉네임",
+ "open": "열기",
"or": "또는",
"password": "비밀번호",
"pin": "고정",
@@ -298,7 +299,6 @@
"count-memos-updated-in-date": "{{count}} {{memos}}이 {{date}}에 업데이트되었습니다.",
"connections": "연결",
"grid-compact-hint": "그리드 레이아웃은 항상 컴팩트 카드를 사용합니다.",
- "go-to": "{{source}}으로 이동",
"layout": "레이아웃",
"layout-auto": "자동",
"layout-auto-description": "화면에 맞는 열 개수",
@@ -312,7 +312,6 @@
"parent-memo": "상위 메모",
"task-actions": {
"check-all": "모든 작업 선택",
- "title": "작업",
"uncheck-all": "모든 작업 선택 해제",
"updated": "작업 업데이트됨"
},
diff --git a/web/src/locales/lt.json b/web/src/locales/lt.json
index d784d4360..6e5bb540c 100644
--- a/web/src/locales/lt.json
+++ b/web/src/locales/lt.json
@@ -133,6 +133,7 @@
"more": "Daugiau",
"name": "Vardas",
"nickname": "Slapyvardis",
+ "open": "Atidaryti",
"or": "arba",
"password": "Slaptažodis",
"pin": "Smeigtukas",
@@ -318,7 +319,6 @@
"show-more": "Rodyti daugiau",
"task-actions": {
"check-all": "Patikrinkite visas užduotis",
- "title": "Užduotys",
"uncheck-all": "Panaikinkite visų užduočių žymėjimą",
"updated": "Užduotys atnaujintos"
},
@@ -349,7 +349,6 @@
"back-to": "Atgal į {{source}}",
"connections": "Ryšiai",
"grid-compact-hint": "Tinklelio išdėstymuose visada naudojamos kompaktiškos kortelės.",
- "go-to": "Eiti į {{source}}",
"layout": "Išdėstymas",
"layout-auto": "Automatinis",
"layout-auto-description": "Tiek stulpelių, kiek telpa ekrane",
diff --git a/web/src/locales/lv.json b/web/src/locales/lv.json
index e9eb4efe2..dcd5647a3 100644
--- a/web/src/locales/lv.json
+++ b/web/src/locales/lv.json
@@ -133,6 +133,7 @@
"more": "Vairāk",
"name": "Vārds",
"nickname": "Segvārds",
+ "open": "Atvērt",
"or": "vai",
"password": "Parole",
"pin": "Piespraust",
@@ -318,7 +319,6 @@
"show-more": "Rādīt vairāk",
"task-actions": {
"check-all": "Pārbaudiet visus uzdevumus",
- "title": "Uzdevumi",
"uncheck-all": "Noņemiet atzīmi no visiem uzdevumiem",
"updated": "Uzdevumi atjaunināti"
},
@@ -349,7 +349,6 @@
"back-to": "Atpakaļ uz {{source}}",
"connections": "Savienojumi",
"grid-compact-hint": "Režģa izkārtojumos vienmēr tiek izmantotas kompaktas kartes.",
- "go-to": "Dodieties uz {{source}}",
"layout": "Izkārtojums",
"layout-auto": "Automātiski",
"layout-auto-description": "Tik daudz kolonnu, cik ietilpst ekrānā",
diff --git a/web/src/locales/mr.json b/web/src/locales/mr.json
index ca5dafebb..2ee158885 100644
--- a/web/src/locales/mr.json
+++ b/web/src/locales/mr.json
@@ -94,6 +94,7 @@
"more": "अधिक",
"name": "नाव",
"nickname": "टोपणनाव",
+ "open": "उघडा",
"or": "किंवा",
"password": "गुप्त शब्द",
"pin": "पिन",
@@ -298,7 +299,6 @@
"count-memos-updated-in-date": "{{count}} {{memos}} हे {{date}} वर अद्यतनित केले",
"connections": "जोडण्या",
"grid-compact-hint": "ग्रिड लेआउटमध्ये नेहमी संक्षिप्त कार्ड वापरले जातात.",
- "go-to": "{{source}} वर जा",
"layout": "लेआउट",
"layout-auto": "ऑटो",
"layout-auto-description": "स्क्रीनवर मावतील तितके स्तंभ",
@@ -312,7 +312,6 @@
"parent-memo": "पालक मेमो",
"task-actions": {
"check-all": "सर्व कार्ये तपासा",
- "title": "कार्ये",
"uncheck-all": "सर्व कार्ये निवड रद्द करा",
"updated": "कार्ये अद्यतनित केली"
},
diff --git a/web/src/locales/nb.json b/web/src/locales/nb.json
index 633eb0f35..31a33d421 100644
--- a/web/src/locales/nb.json
+++ b/web/src/locales/nb.json
@@ -94,6 +94,7 @@
"more": "Mer",
"name": "Navn",
"nickname": "Kallenavn",
+ "open": "Åpne",
"or": "eller",
"password": "Passord",
"pin": "Fest",
@@ -290,7 +291,6 @@
"oldest-first": "Eldste først",
"task-actions": {
"check-all": "Sjekk alle oppgaver",
- "title": "Oppgaver",
"uncheck-all": "Fjern merket for alle oppgaver",
"updated": "Oppgaver oppdatert"
},
@@ -311,7 +311,6 @@
"back-to": "Tilbake til {{source}}",
"connections": "Tilkoblinger",
"grid-compact-hint": "Rutenettoppsett bruker alltid kompakte kort.",
- "go-to": "Gå til {{source}}",
"layout": "Oppsett",
"layout-auto": "Auto",
"layout-auto-description": "Så mange kolonner som får plass på skjermen",
diff --git a/web/src/locales/nl.json b/web/src/locales/nl.json
index 4c4eedbda..0c8e308f2 100644
--- a/web/src/locales/nl.json
+++ b/web/src/locales/nl.json
@@ -94,6 +94,7 @@
"more": "Meer",
"name": "Naam",
"nickname": "Bijnaam",
+ "open": "Openen",
"or": "of",
"password": "Wachtwoord",
"pin": "Vastzetten",
@@ -290,7 +291,6 @@
"oldest-first": "Oudste eerst",
"task-actions": {
"check-all": "Controleer alle taken",
- "title": "Taken",
"uncheck-all": "Schakel alle taken uit",
"updated": "Taken bijgewerkt"
},
@@ -311,7 +311,6 @@
"back-to": "Terug naar {{source}}",
"connections": "Verbindingen",
"grid-compact-hint": "Rasterindelingen gebruiken altijd compacte kaarten.",
- "go-to": "Ga naar {{source}}",
"layout": "Indeling",
"layout-auto": "Automatisch",
"layout-auto-description": "Zoveel kolommen als er op het scherm passen",
diff --git a/web/src/locales/pl.json b/web/src/locales/pl.json
index a6e968ee7..aa3d831b0 100644
--- a/web/src/locales/pl.json
+++ b/web/src/locales/pl.json
@@ -94,6 +94,7 @@
"more": "Więcej",
"name": "Nazwa",
"nickname": "Pseudonim",
+ "open": "Otwórz",
"or": "lub",
"password": "Hasło",
"pin": "Przypnij",
@@ -291,7 +292,6 @@
"oldest-first": "Najpierw najstarszy",
"task-actions": {
"check-all": "Sprawdź wszystkie zadania",
- "title": "Zadania",
"uncheck-all": "Odznacz wszystkie zadania",
"updated": "Zadania zaktualizowane"
},
@@ -311,7 +311,6 @@
"back-to": "Powrót do {{source}}",
"connections": "Połączenia",
"grid-compact-hint": "Układy siatki zawsze korzystają z kart kompaktowych.",
- "go-to": "Przejdź do {{source}}",
"layout": "Układ",
"layout-auto": "Automatycznie",
"layout-auto-description": "Tyle kolumn, ile mieści się na ekranie",
diff --git a/web/src/locales/pt-BR.json b/web/src/locales/pt-BR.json
index fd63917e2..8942fa306 100644
--- a/web/src/locales/pt-BR.json
+++ b/web/src/locales/pt-BR.json
@@ -94,6 +94,7 @@
"more": "Mais",
"name": "Nome",
"nickname": "Apelido",
+ "open": "Abrir",
"or": "ou",
"password": "Senha",
"pin": "Fixar",
@@ -298,7 +299,6 @@
"count-memos-updated-in-date": "{{count}} {{memos}} atualizado em {{date}}",
"connections": "Conexões",
"grid-compact-hint": "Os layouts de grade sempre usam cartões compactos.",
- "go-to": "Ir para {{source}}",
"layout": "Layout",
"layout-auto": "Automático",
"layout-auto-description": "Quantas colunas couberem na tela",
@@ -312,7 +312,6 @@
"parent-memo": "Memorando pai",
"task-actions": {
"check-all": "Verificar todas as tarefas",
- "title": "Tarefas",
"uncheck-all": "Desmarcar todas as tarefas",
"updated": "Tarefas atualizadas"
},
diff --git a/web/src/locales/pt-PT.json b/web/src/locales/pt-PT.json
index 800ec5e1b..5f381a01b 100644
--- a/web/src/locales/pt-PT.json
+++ b/web/src/locales/pt-PT.json
@@ -94,6 +94,7 @@
"more": "Mais",
"name": "Nome",
"nickname": "Apelido",
+ "open": "Abrir",
"or": "ou",
"password": "Palavra-passe",
"pin": "Afixar",
@@ -290,7 +291,6 @@
"oldest-first": "Mais antigo primeiro",
"task-actions": {
"check-all": "Verifique todas as tarefas",
- "title": "Tarefas",
"uncheck-all": "Desmarque todas as tarefas",
"updated": "Tarefas atualizadas"
},
@@ -311,7 +311,6 @@
"back-to": "Voltar para {{source}}",
"connections": "Ligações",
"grid-compact-hint": "Os layouts de grelha utilizam sempre cartões compactos.",
- "go-to": "Ir para {{source}}",
"layout": "Layout",
"layout-auto": "Automático",
"layout-auto-description": "Quantas colunas couberem no ecrã",
diff --git a/web/src/locales/ro.json b/web/src/locales/ro.json
index 972e014e2..6dc8aae2e 100644
--- a/web/src/locales/ro.json
+++ b/web/src/locales/ro.json
@@ -133,6 +133,7 @@
"more": "Mai mult",
"name": "Nume",
"nickname": "Pseudonim",
+ "open": "Deschide",
"or": "sau",
"password": "Parolă",
"pin": "Pin",
@@ -318,7 +319,6 @@
"show-more": "Arată mai multe",
"task-actions": {
"check-all": "Verificați toate sarcinile",
- "title": "Sarcini",
"uncheck-all": "Debifați toate sarcinile",
"updated": "Sarcini actualizate"
},
@@ -349,7 +349,6 @@
"back-to": "Înapoi la {{source}}",
"connections": "Conexiuni",
"grid-compact-hint": "Aspectele de tip grilă utilizează întotdeauna carduri compacte.",
- "go-to": "Mergi la {{source}}",
"layout": "Aspect",
"layout-auto": "Automat",
"layout-auto-description": "Atâtea coloane câte se potrivesc pe ecran",
diff --git a/web/src/locales/ru.json b/web/src/locales/ru.json
index 3c7660945..ffa95e69c 100644
--- a/web/src/locales/ru.json
+++ b/web/src/locales/ru.json
@@ -94,6 +94,7 @@
"more": "Еще",
"name": "Название",
"nickname": "Псевдоним",
+ "open": "Открыть",
"or": "или",
"password": "Пароль",
"pin": "Закрепить",
@@ -290,7 +291,6 @@
"oldest-first": "Сначала самый старый",
"task-actions": {
"check-all": "Проверьте все задачи",
- "title": "Задачи",
"uncheck-all": "Снимите галочки со всех задач",
"updated": "Задачи обновлены"
},
@@ -319,7 +319,6 @@
},
"back-to": "Назад к {{source}}",
"connections": "Подключения",
- "go-to": "Перейти к {{source}}",
"on-this-memo": "К этой заметке",
"parent-memo": "Родительская заметка"
},
diff --git a/web/src/locales/sk.json b/web/src/locales/sk.json
index 765eea79a..e5d0a4614 100644
--- a/web/src/locales/sk.json
+++ b/web/src/locales/sk.json
@@ -133,6 +133,7 @@
"more": "Viac",
"name": "Meno",
"nickname": "prezývka",
+ "open": "Otvoriť",
"or": "alebo",
"password": "heslo",
"pin": "Pin",
@@ -318,7 +319,6 @@
"show-more": "Ukáž viac",
"task-actions": {
"check-all": "Skontrolujte všetky úlohy",
- "title": "Úlohy",
"uncheck-all": "Zrušte začiarknutie všetkých úloh",
"updated": "Úlohy aktualizované"
},
@@ -349,7 +349,6 @@
"back-to": "Späť na {{source}}",
"connections": "Pripojenia",
"grid-compact-hint": "Mriežkové rozloženia vždy používajú kompaktné karty.",
- "go-to": "Prejsť na {{source}}",
"layout": "Rozloženie",
"layout-auto": "Automaticky",
"layout-auto-description": "Toľko stĺpcov, koľko sa zmestí na obrazovku",
diff --git a/web/src/locales/sl.json b/web/src/locales/sl.json
index 42dc0fb6e..dfcfbe168 100644
--- a/web/src/locales/sl.json
+++ b/web/src/locales/sl.json
@@ -94,6 +94,7 @@
"more": "Več",
"name": "Ime",
"nickname": "Nadimek",
+ "open": "Odpri",
"or": "ali",
"password": "Geslo",
"pin": "Pripni",
@@ -290,7 +291,6 @@
"oldest-first": "Najprej najstarejši",
"task-actions": {
"check-all": "Preverite vse naloge",
- "title": "Naloge",
"uncheck-all": "Odkljukajte vse naloge",
"updated": "Naloge posodobljene"
},
@@ -311,7 +311,6 @@
"back-to": "Nazaj na {{source}}",
"connections": "Povezave",
"grid-compact-hint": "Mrežne postavitve vedno uporabljajo kompaktne kartice.",
- "go-to": "Pojdi na {{source}}",
"layout": "Postavitev",
"layout-auto": "Samodejno",
"layout-auto-description": "Toliko stolpcev, kolikor se prilega zaslonu",
diff --git a/web/src/locales/sr.json b/web/src/locales/sr.json
index 7611dd047..175a24e80 100644
--- a/web/src/locales/sr.json
+++ b/web/src/locales/sr.json
@@ -133,6 +133,7 @@
"more": "Више",
"name": "Име",
"nickname": "Надимак",
+ "open": "Отвори",
"or": "или",
"password": "Лозинка",
"pin": "Пин",
@@ -318,7 +319,6 @@
"show-more": "Покажи више",
"task-actions": {
"check-all": "Проверите све задатке",
- "title": "Задаци",
"uncheck-all": "Поништите избор свих задатака",
"updated": "Задаци су ажурирани"
},
@@ -349,7 +349,6 @@
"back-to": "Назад на {{source}}",
"connections": "Везе",
"grid-compact-hint": "Распореди мреже увек користе компактне картице.",
- "go-to": "Иди на {{source}}",
"layout": "Распоред",
"layout-auto": "Аутоматски",
"layout-auto-description": "Колико год колона стане на екран",
diff --git a/web/src/locales/sv.json b/web/src/locales/sv.json
index 3444abd23..c83e512e0 100644
--- a/web/src/locales/sv.json
+++ b/web/src/locales/sv.json
@@ -94,6 +94,7 @@
"more": "Mer",
"name": "Namn",
"nickname": "Smeknamn",
+ "open": "Öppna",
"or": "eller",
"password": "Lösenord",
"pin": "Fäst",
@@ -290,7 +291,6 @@
"oldest-first": "Äldst först",
"task-actions": {
"check-all": "Kontrollera alla uppgifter",
- "title": "Uppgifter",
"uncheck-all": "Avmarkera alla uppgifter",
"updated": "Uppgifter uppdaterade"
},
@@ -311,7 +311,6 @@
"back-to": "Tillbaka till {{source}}",
"connections": "Anslutningar",
"grid-compact-hint": "Rutnätslayouter använder alltid kompakta kort.",
- "go-to": "Gå till {{source}}",
"layout": "Layout",
"layout-auto": "Auto",
"layout-auto-description": "Så många kolumner som får plats på skärmen",
diff --git a/web/src/locales/th.json b/web/src/locales/th.json
index d15a35ffb..c0da9aa6a 100644
--- a/web/src/locales/th.json
+++ b/web/src/locales/th.json
@@ -94,6 +94,7 @@
"more": "เพิ่มเติม",
"name": "ชื่อ",
"nickname": "ชื่อเล่น",
+ "open": "เปิด",
"or": "หรือ",
"password": "รหัสผ่าน",
"pin": "ปักหมุด",
@@ -298,7 +299,6 @@
"count-memos-updated-in-date": "{{count}} {{memos}} อัปเดตเมื่อ {{date}}",
"connections": "การเชื่อมต่อ",
"grid-compact-hint": "รูปแบบตารางจะใช้การ์ดแบบกะทัดรัดเสมอ",
- "go-to": "ไปที่ {{source}}",
"layout": "รูปแบบการจัดวาง",
"layout-auto": "อัตโนมัติ",
"layout-auto-description": "จำนวนคอลัมน์มากที่สุดเท่าที่จะพอดีกับหน้าจอ",
@@ -312,7 +312,6 @@
"parent-memo": "บันทึกหลัก",
"task-actions": {
"check-all": "ตรวจสอบงานทั้งหมด",
- "title": "งาน",
"uncheck-all": "ยกเลิกการเลือกงานทั้งหมด",
"updated": "อัปเดตงานแล้ว"
},
diff --git a/web/src/locales/tr.json b/web/src/locales/tr.json
index f5ae1830f..a7e404cf4 100644
--- a/web/src/locales/tr.json
+++ b/web/src/locales/tr.json
@@ -124,6 +124,7 @@
"name": "İsim",
"next-month": "Sonraki ay",
"nickname": "Takma Ad",
+ "open": "Aç",
"or": "veya",
"password": "Şifre",
"pin": "Sabitle",
@@ -284,7 +285,6 @@
"compact-mode": "Kompakt mod",
"connections": "Bağlantılar",
"grid-compact-hint": "Izgara düzenleri her zaman kompakt kartlar kullanır.",
- "go-to": "Git: {{source}}",
"layout": "Düzen",
"layout-auto": "Otomatik",
"layout-auto-description": "Ekrana sığdığı kadar sütun",
@@ -343,7 +343,6 @@
"on-this-memo": "Bu notta",
"task-actions": {
"check-all": "Tüm görevleri kontrol et",
- "title": "Görevler",
"uncheck-all": "Tüm görevlerin işaretini kaldırın",
"updated": "Görevler güncellendi"
}
diff --git a/web/src/locales/uk.json b/web/src/locales/uk.json
index 28bed0b49..59f460884 100644
--- a/web/src/locales/uk.json
+++ b/web/src/locales/uk.json
@@ -94,6 +94,7 @@
"more": "Більше",
"name": "Назва",
"nickname": "Нікнейм",
+ "open": "Відкрити",
"or": "або",
"password": "Пароль",
"pin": "Закріпити",
@@ -290,7 +291,6 @@
"oldest-first": "Спочатку найстаріші",
"task-actions": {
"check-all": "Перевірити всі завдання",
- "title": "завдання",
"uncheck-all": "Зніміть галочки з усіх завдань",
"updated": "Завдання оновлено"
},
@@ -311,7 +311,6 @@
"back-to": "Назад до {{source}}",
"connections": "З'єднання",
"grid-compact-hint": "Макети сітки завжди використовують компактні картки.",
- "go-to": "Перейти до {{source}}",
"layout": "Макет",
"layout-auto": "Авто",
"layout-auto-description": "Стільки стовпців, скільки поміщається на екран",
diff --git a/web/src/locales/vi.json b/web/src/locales/vi.json
index 9fed9f176..e7a00e38c 100644
--- a/web/src/locales/vi.json
+++ b/web/src/locales/vi.json
@@ -94,6 +94,7 @@
"more": "Thêm",
"name": "Tên",
"nickname": "Biệt danh",
+ "open": "Mở",
"or": "hoặc",
"password": "Mật khẩu",
"pin": "Ghim",
@@ -298,7 +299,6 @@
"count-memos-updated-in-date": "{{count}} {{memos}} được cập nhật vào {{date}}",
"connections": "Kết nối",
"grid-compact-hint": "Bố cục lưới luôn sử dụng thẻ nhỏ gọn.",
- "go-to": "Chuyển đến {{source}}",
"layout": "Bố cục",
"layout-auto": "Tự động",
"layout-auto-description": "Số cột tùy ý cho vừa màn hình",
@@ -312,7 +312,6 @@
"parent-memo": "Ghi chú cha",
"task-actions": {
"check-all": "Chọn tất cả nhiệm vụ",
- "title": "Nhiệm vụ",
"uncheck-all": "Bỏ chọn tất cả nhiệm vụ",
"updated": "Nhiệm vụ đã được cập nhật"
},
diff --git a/web/src/locales/zh-Hans.json b/web/src/locales/zh-Hans.json
index 7af3a3e38..f03990a8c 100644
--- a/web/src/locales/zh-Hans.json
+++ b/web/src/locales/zh-Hans.json
@@ -130,6 +130,7 @@
"name": "名称",
"next-month": "下个月",
"nickname": "昵称",
+ "open": "打开",
"or": "或者",
"password": "密码",
"pin": "置顶",
@@ -271,7 +272,6 @@
"compact-mode": "紧凑模式",
"connections": "关联",
"grid-compact-hint": "网格布局始终使用紧凑卡片。",
- "go-to": "前往{{source}}",
"layout": "布局",
"layout-auto": "自动",
"layout-auto-description": "根据屏幕宽度显示尽可能多的列",
@@ -330,7 +330,6 @@
"count-memos-updated-in-date": "{{date}} 更新了 {{count}} 条{{memos}}",
"task-actions": {
"check-all": "全部完成",
- "title": "任务",
"uncheck-all": "全部取消完成",
"updated": "任务已更新"
},
diff --git a/web/src/locales/zh-Hant.json b/web/src/locales/zh-Hant.json
index 9eeb6b842..524174a55 100644
--- a/web/src/locales/zh-Hant.json
+++ b/web/src/locales/zh-Hant.json
@@ -176,6 +176,7 @@
"name": "名稱",
"next-month": "下個月",
"nickname": "暱稱",
+ "open": "開啟",
"or": "或",
"password": "密碼",
"pin": "置頂",
@@ -367,7 +368,6 @@
"show-more": "查看更多",
"task-actions": {
"check-all": "勾選所有待辦事項",
- "title": "待辦事項",
"uncheck-all": "取消勾選所有待辦事項",
"updated": "待辦事項已更新"
},
@@ -397,7 +397,6 @@
},
"back-to": "返回 {{source}}",
"connections": "關聯",
- "go-to": "轉到 {{source}}",
"on-this-memo": "在此備忘錄中",
"parent-memo": "原始備忘錄"
},
diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsx
index b2c83cf6b..b011bfca0 100644
--- a/web/src/pages/MemoDetail.tsx
+++ b/web/src/pages/MemoDetail.tsx
@@ -28,7 +28,6 @@ const MemoSidebarRegistration = ({
parentStatus,
onParentRetry,
from,
- hasExplicitOrigin,
commentCount,
readonly,
onEdit,
@@ -41,7 +40,6 @@ const MemoSidebarRegistration = ({
parentStatus?: MemoParentStatus;
onParentRetry?: () => void;
from: string;
- hasExplicitOrigin: boolean;
commentCount?: number;
readonly: boolean;
onEdit: () => void;
@@ -58,7 +56,6 @@ const MemoSidebarRegistration = ({
parentStatus,
onParentRetry,
from,
- hasExplicitOrigin,
commentCount,
readonly,
onEdit,
@@ -69,7 +66,6 @@ const MemoSidebarRegistration = ({
}, [
commentCount,
from,
- hasExplicitOrigin,
memo,
onCommentCreate,
onCommentsOpen,
@@ -233,7 +229,6 @@ const MemoDetail = () => {
parentStatus={parentStatus}
onParentRetry={handleParentRetry}
from={parentPage}
- hasExplicitOrigin={hasExplicitOrigin}
commentCount={isShareMode ? undefined : commentCount}
readonly={isShareMode}
onEdit={handleEdit}
diff --git a/web/tests/memo-action-menu.test.tsx b/web/tests/memo-action-menu.test.tsx
index 7b63e16d5..3e76eda10 100644
--- a/web/tests/memo-action-menu.test.tsx
+++ b/web/tests/memo-action-menu.test.tsx
@@ -1,12 +1,14 @@
import { create } from "@bufbuild/protobuf";
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
+import { MemoryRouter, useLocation } from "react-router-dom";
import { beforeEach, describe, expect, it, vi } from "vitest";
import MemoActionMenu from "@/components/MemoActionMenu";
import { State } from "@/types/proto/api/v1/common_pb";
-import { MemoSchema } from "@/types/proto/api/v1/memo_service_pb";
+import { type Memo, MemoSchema } from "@/types/proto/api/v1/memo_service_pb";
const handlers = vi.hoisted(() => ({
canMove: true,
+ isInMemoDetailPage: false,
handleTogglePinMemoBtnClick: vi.fn(),
handleEditMemoClick: vi.fn(),
handleToggleMemoStatusClick: vi.fn(),
@@ -34,87 +36,139 @@ vi.mock("@/utils/i18n", () => ({
useTranslate: () => (key: string) => key,
}));
+const LocationProbe = () => {
+ const location = useLocation();
+ return (
+
+ );
+};
+
+const openMenu = async (memo: Memo, props: { readonly?: boolean; parentPage?: string } = {}) => {
+ render(
+
+
+
+ ,
+ );
+ fireEvent.click(screen.getByRole("button", { name: "common.more" }));
+ await screen.findByRole("menuitem", { name: "common.copy" });
+};
+
+const menuItemLabels = () => screen.getAllByRole("menuitem").map((item) => item.textContent);
+
+const memoOf = (fields: Parameters>[1] = {}) =>
+ create(MemoSchema, { name: "memos/1", state: State.NORMAL, ...fields });
+
describe("MemoActionMenu", () => {
beforeEach(() => {
vi.clearAllMocks();
- handlers.canMove = true;
+ handlers.canMove = false;
+ handlers.isInMemoDetailPage = false;
});
- it.each(["move", "delete"])("places %s inside More while keeping frequent actions in the main menu", async (action) => {
- render();
- fireEvent.click(screen.getByRole("button", { name: "common.more" }));
- expect(await screen.findByRole("menuitem", { name: "common.edit" })).toBeInTheDocument();
- expect(screen.getByRole("menuitem", { name: "common.archive" })).toBeInTheDocument();
- expect(screen.queryByRole("menuitem", { name: "memo.move.title" })).not.toBeInTheDocument();
- expect(screen.queryByRole("menuitem", { name: "common.delete" })).not.toBeInTheDocument();
+ it("orders an owner's memo actions and puts Delete last when Move does not apply", async () => {
+ await openMenu(memoOf());
+ expect(menuItemLabels()).toEqual(["common.open", "common.edit", "common.pin", "common.archive", "common.copy", "common.delete"]);
+ const separators = screen.getAllByRole("separator");
+ expect(separators[separators.length - 1].nextElementSibling).toBe(screen.getByRole("menuitem", { name: "common.delete" }));
+ });
+
+ it.each(["move", "delete"])("keeps Move and Delete together under More when Move applies (%s)", async (action) => {
+ handlers.canMove = true;
+ await openMenu(memoOf());
+ expect(menuItemLabels()).toEqual(["common.open", "common.edit", "common.pin", "common.archive", "common.copy", "common.more"]);
fireEvent.click(screen.getByRole("menuitem", { name: "common.more" }));
- expect(await screen.findByRole("menuitem", { name: "memo.move.title" })).toBeInTheDocument();
- expect(screen.getByRole("menuitem", { name: "common.delete" })).toBeInTheDocument();
- fireEvent.click(screen.getByRole("menuitem", { name: action === "move" ? "memo.move.title" : "common.delete" }));
+ fireEvent.click(await screen.findByRole("menuitem", { name: action === "move" ? "memo.move.title" : "common.delete" }));
if (action === "move") expect(await screen.findByRole("dialog", { name: "Move to Space" })).toBeInTheDocument();
else expect(handlers.handleDeleteMemoClick).toHaveBeenCalledOnce();
});
- it("omits More when neither action is available", async () => {
- handlers.canMove = false;
- render();
- fireEvent.click(screen.getByRole("button", { name: "common.more" }));
- expect(await screen.findByRole("menuitem", { name: "common.copy" })).toBeInTheDocument();
- expect(screen.queryByRole("menuitem", { name: "common.more" })).not.toBeInTheDocument();
+ it("offers Unpin on a pinned memo", async () => {
+ await openMenu(memoOf({ pinned: true }));
+ fireEvent.click(screen.getByRole("menuitem", { name: "common.unpin" }));
+ expect(handlers.handleTogglePinMemoBtnClick).toHaveBeenCalledOnce();
});
- it("shows comment actions with Delete last and no memo organization actions", async () => {
- render();
- fireEvent.click(screen.getByRole("button", { name: "common.more" }));
- await screen.findByRole("menuitem", { name: "common.edit" });
+ it("opens the memo through a real link that keeps the origin page", async () => {
+ await openMenu(memoOf(), { parentPage: "/explore" });
+ const open = screen.getByRole("menuitem", { name: "common.open" });
+ expect(open.tagName).toBe("A");
+ expect(open).toHaveAttribute("href", "/memos/1");
- expect(screen.getAllByRole("menuitem").map((item) => item.textContent)).toEqual(["common.edit", "common.copy", "common.delete"]);
- expect(screen.getByRole("separator").nextElementSibling).toBe(screen.getByRole("menuitem", { name: "common.delete" }));
+ fireEvent.click(open);
+ expect(screen.getByTestId("location")).toHaveTextContent('/memos/1|{"from":"/explore"}');
+ });
+
+ it("hides Open on the memo's own page", async () => {
+ handlers.isInMemoDetailPage = true;
+ await openMenu(memoOf());
+ expect(menuItemLabels()[0]).toBe("common.edit");
+ });
+
+ it.each([
+ [true, "memo.task-actions.check-all", "handleCheckAllTaskListItemsClick"],
+ [false, "memo.task-actions.uncheck-all", "handleUncheckAllTaskListItemsClick"],
+ ] as const)("shows one task action after Archive (open tasks: %s)", async (hasIncompleteTasks, label, handler) => {
+ await openMenu(memoOf({ property: { hasTaskList: true, hasIncompleteTasks } }));
+ expect(menuItemLabels().slice(3, 5)).toEqual(["common.archive", label]);
+ fireEvent.click(screen.getByRole("menuitem", { name: label }));
+ expect(handlers[handler]).toHaveBeenCalledOnce();
+ });
+
+ it.each([
+ ["memo.copy-link", "handleCopyLink"],
+ ["memo.copy-content", "handleCopyContent"],
+ ] as const)("runs %s from the Copy submenu", async (label, handler) => {
+ await openMenu(memoOf());
+ fireEvent.click(screen.getByRole("menuitem", { name: "common.copy" }));
+ fireEvent.click(await screen.findByRole("menuitem", { name: label }));
+ expect(handlers[handler]).toHaveBeenCalledOnce();
+ });
+
+ it("offers only Restore and Delete on an archived memo", async () => {
+ handlers.canMove = true;
+ render(
+
+
+ ,
+ );
+ fireEvent.click(screen.getByRole("button", { name: "common.more" }));
+ await screen.findByRole("menuitem", { name: "common.restore" });
+ expect(menuItemLabels()).toEqual(["common.restore", "common.delete"]);
+ });
+
+ it("gives a viewer Open and Copy only", async () => {
+ await openMenu(memoOf(), { readonly: true });
+ expect(menuItemLabels()).toEqual(["common.open", "common.copy"]);
+ });
+
+ it.each([
+ [false, ["common.edit", "common.copy", "common.delete"]],
+ [true, ["common.edit", "memo.task-actions.check-all", "common.copy", "common.delete"]],
+ ] as const)("shows comment actions without Open, Pin, Archive or More (tasks: %s)", async (hasTaskList, labels) => {
+ await openMenu(memoOf({ name: "memos/2", parent: "memos/1", property: { hasTaskList, hasIncompleteTasks: hasTaskList } }));
+ expect(menuItemLabels()).toEqual(labels);
fireEvent.click(screen.getByRole("menuitem", { name: "common.delete" }));
expect(handlers.handleDeleteMemoClick).toHaveBeenCalledOnce();
expect(handlers.confirmDeleteMemo).not.toHaveBeenCalled();
});
- it.each([
- ["memo.copy-link", "handleCopyLink"],
- ["memo.copy-content", "handleCopyContent"],
- ] as const)("allows %s on a read-only comment", async (label, handler) => {
- render();
- fireEvent.click(screen.getByRole("button", { name: "common.more" }));
- await screen.findByRole("menuitem", { name: "common.copy" });
- expect(screen.getAllByRole("menuitem").map((item) => item.textContent)).toEqual(["common.copy"]);
-
- fireEvent.click(screen.getByRole("menuitem", { name: "common.copy" }));
- fireEvent.click(await screen.findByRole("menuitem", { name: label }));
- expect(handlers[handler]).toHaveBeenCalledOnce();
- });
-
- it.each([false, true])("only shows task actions on writable task comments (readonly: %s)", async (readonly) => {
- const memo = create(MemoSchema, {
- name: "memos/2",
- parent: "memos/1",
- state: State.NORMAL,
- property: { hasTaskList: true, hasIncompleteTasks: true },
- });
- render();
- fireEvent.click(screen.getByRole("button", { name: "common.more" }));
- await screen.findByRole("menuitem", { name: "common.copy" });
-
- if (readonly) {
- expect(screen.queryByRole("menuitem", { name: "memo.task-actions.title" })).not.toBeInTheDocument();
- } else {
- fireEvent.click(screen.getByRole("menuitem", { name: "memo.task-actions.title" }));
- expect(await screen.findByRole("menuitem", { name: "memo.task-actions.uncheck-all" })).toBeInTheDocument();
- fireEvent.click(screen.getByRole("menuitem", { name: "memo.task-actions.check-all" }));
- expect(handlers.handleCheckAllTaskListItemsClick).toHaveBeenCalledOnce();
- }
+ it("gives a read-only comment only Copy", async () => {
+ await openMenu(memoOf({ name: "memos/2", parent: "memos/1" }), { readonly: true });
+ expect(menuItemLabels()).toEqual(["common.copy"]);
});
it("is a quiet compact control that takes the accent fill while open", async () => {
const memo = create(MemoSchema, { name: "memos/1", state: State.NORMAL, pinned: false });
- render();
+ render(
+
+
+ ,
+ );
const trigger = screen.getByRole("button", { name: "common.more" });
expect(trigger).toHaveClass("size-6", "rounded-md", "text-muted-foreground/70", "hover:bg-muted/60", "data-popup-open:bg-accent");
diff --git a/web/tests/memo-action-navigation.test.tsx b/web/tests/memo-action-navigation.test.tsx
index 425d818fe..4277f4e97 100644
--- a/web/tests/memo-action-navigation.test.tsx
+++ b/web/tests/memo-action-navigation.test.tsx
@@ -10,6 +10,14 @@ import type { Memo } from "@/types/proto/api/v1/memo_service_pb";
const mocks = vi.hoisted(() => ({
updateMemo: vi.fn(),
deleteMemo: vi.fn(),
+ copy: vi.fn(),
+ spaces: [] as { name: string }[],
+}));
+
+vi.mock("copy-to-clipboard", () => ({ default: mocks.copy }));
+
+vi.mock("@/contexts/SpaceContext", () => ({
+ useSpaceContext: () => ({ spaces: mocks.spaces }),
}));
vi.mock("@/hooks/useMemoQueries", () => ({
@@ -39,15 +47,17 @@ vi.mock("react-hot-toast", () => ({
default: { success: vi.fn(), error: vi.fn() },
}));
-const createMemo = (state: State, parent = ""): Memo =>
+const createMemo = (state: State, parent = "", space = ""): Memo =>
({
name: "memos/1",
+ creator: "users/alice",
content: "memo",
state,
parent,
+ space,
}) as Memo;
-const renderActions = (state: State, parent = "", parentPage?: string) => {
+const renderActions = (state: State, parent = "", parentPage?: string, space = "") => {
const queryClient = new QueryClient({ defaultOptions: { queries: { retry: false } } });
const invalidateQueries = vi.spyOn(queryClient, "invalidateQueries");
const wrapper = ({ children }: { children: ReactNode }) => (
@@ -60,7 +70,7 @@ const renderActions = (state: State, parent = "", parentPage?: string) => {
() => {
const location = useLocation();
const handlers = useMemoActionHandlers({
- memo: createMemo(state, parent),
+ memo: createMemo(state, parent, space),
parentPage,
setDeleteDialogOpen: vi.fn(),
});
@@ -75,6 +85,8 @@ describe("Memo detail mutation navigation", () => {
beforeEach(() => {
mocks.updateMemo.mockReset().mockResolvedValue(undefined);
mocks.deleteMemo.mockReset().mockResolvedValue(undefined);
+ mocks.copy.mockReset();
+ mocks.spaces = [];
});
it.each([
@@ -117,4 +129,24 @@ describe("Memo detail mutation navigation", () => {
expect(invalidateQueries).toHaveBeenCalledWith({ queryKey: ["memos", "memos/parent", "comments"] });
expect(invalidateQueries).toHaveBeenCalledWith({ queryKey: ["memos", "memos/parent", "detail"] });
});
+
+ it.each([
+ ["", "http://localhost:3000/memos/1"],
+ ["memos/parent", "http://localhost:3000/memos/parent#1"],
+ ])("copies a link that lands on the memo, or on the comment inside its parent (parent: %s)", (parent, link) => {
+ const { result } = renderActions(State.NORMAL, parent);
+ act(() => result.current.handlers.handleCopyLink());
+ expect(mocks.copy).toHaveBeenCalledWith(link);
+ });
+
+ it.each([
+ ["no Space and not in one", [], "", "", false],
+ ["a Space to move to", [{ name: "spaces/product" }], "", "", true],
+ ["a memo already in a Space", [], "spaces/product", "", true],
+ ["a comment", [{ name: "spaces/product" }], "", "memos/parent", false],
+ ] as const)("offers Move only when it applies: %s", (_, spaces, space, parent, expected) => {
+ mocks.spaces = [...spaces];
+ const { result } = renderActions(State.NORMAL, parent, undefined, space);
+ expect(result.current.handlers.canMove).toBe(expected);
+ });
});
diff --git a/web/tests/memo-detail-sidebar.test.tsx b/web/tests/memo-detail-sidebar.test.tsx
index c5aaf61c4..73c905ee8 100644
--- a/web/tests/memo-detail-sidebar.test.tsx
+++ b/web/tests/memo-detail-sidebar.test.tsx
@@ -46,11 +46,11 @@ describe("MemoDetailSidebar", () => {
currentUserState.value = { name: "users/alice" };
});
- it("returns to the scoped map with its filters, viewport, and selection", () => {
+ it("leaves returning to the origin to browser back and the app navigation", () => {
const parentPage = "/spaces/travel/map?filter=tagSearch%3Atravel&lat=35&lng=135&zoom=12&memo=memos%2Fdetail";
- renderSidebar();
+ const { container } = renderSidebar();
- expect(screen.getByRole("link", { name: "memo.back-to:common.map" })).toHaveAttribute("href", parentPage);
+ expect(container.querySelector(`a[href="${parentPage}"]`)).toBeNull();
});
it("organizes source, in-page navigation, connections, and frequent actions without repeating metadata", async () => {
@@ -90,7 +90,6 @@ describe("MemoDetailSidebar", () => {
memo={memo}
parentMemo={parentMemo}
parentPage="/explore?filter=tagSearch%3Awork"
- hasExplicitOrigin
commentCount={3}
onEdit={onEdit}
onCommentsOpen={onCommentsOpen}
@@ -99,7 +98,6 @@ describe("MemoDetailSidebar", () => {
/>,
);
- expect(screen.getByRole("link", { name: "memo.back-to:common.explore" })).toHaveAttribute("href", "/explore?filter=tagSearch%3Awork");
expect(screen.getByText("memo.on-this-memo")).toBeInTheDocument();
expect(screen.getByTestId("outline")).toHaveTextContent("2");
expect(screen.getByRole("link", { name: /memo.comment.self/ })).toHaveTextContent("3");
@@ -155,8 +153,6 @@ describe("MemoDetailSidebar", () => {
expect(screen.queryByRole("button", { name: "common.edit" })).not.toBeInTheDocument();
expect(screen.getByRole("button", { name: "memo.comment.write-a-comment" })).toBeInTheDocument();
expect(screen.getByRole("link", { name: "common.referenced-by: Incoming backlink" })).toBeInTheDocument();
-
- expect(screen.getByRole("link", { name: "memo.go-to:common.explore" })).toHaveAttribute("href", "/explore");
});
it("keeps a simple memo useful without rendering empty navigation or connections", () => {
@@ -169,7 +165,6 @@ describe("MemoDetailSidebar", () => {
renderSidebar();
- expect(screen.getByRole("link", { name: "memo.go-to:common.home" })).toHaveAttribute("href", "/");
expect(screen.queryByText("memo.on-this-memo")).not.toBeInTheDocument();
expect(screen.queryByText("memo.connections")).not.toBeInTheDocument();
expect(screen.getByRole("button", { name: "common.edit" })).toBeInTheDocument();
@@ -206,7 +201,6 @@ describe("MemoDetailSidebar", () => {
renderSidebar();
- expect(screen.getByRole("link", { name: "memo.go-to:common.archived" })).toBeInTheDocument();
expect(screen.getByRole("link", { name: /memo.comment.self/ })).toHaveTextContent("2");
expect(screen.queryByRole("button", { name: "common.edit" })).not.toBeInTheDocument();
expect(screen.queryByRole("button", { name: "memo.comment.write-a-comment" })).not.toBeInTheDocument();
@@ -230,7 +224,6 @@ describe("MemoDetailSidebar", () => {
memo={memo}
parentMemo={parentMemo}
parentPage="/explore"
- hasExplicitOrigin
commentCount={4}
forceReadonly
onEdit={vi.fn()}
@@ -239,7 +232,6 @@ describe("MemoDetailSidebar", () => {
"/memos/shares/share-token",
);
- expect(screen.queryByRole("link", { name: /memo.back-to/ })).not.toBeInTheDocument();
expect(screen.getByText("memo.on-this-memo")).toBeInTheDocument();
expect(screen.getByTestId("outline")).toHaveTextContent("2");
expect(screen.queryByRole("link", { name: /memo.comment.self/ })).not.toBeInTheDocument();
diff --git a/web/tests/memo-header-navigation.test.tsx b/web/tests/memo-header-navigation.test.tsx
index 8c3e5b8e5..27b3f9081 100644
--- a/web/tests/memo-header-navigation.test.tsx
+++ b/web/tests/memo-header-navigation.test.tsx
@@ -110,7 +110,7 @@ describe("MemoHeader navigation", () => {
expect(reaction.className).not.toMatch(/border-none|rounded-full|ring-/);
});
- it.each([false, true])("uses a keyboard-operable timestamp and preserves origin when showCreator=%s", (showCreator) => {
+ it.each([false, true])("links the timestamp to the memo and preserves origin when showCreator=%s", (showCreator) => {
if (showCreator) {
state.creator = { username: "alice", displayName: "Alice", avatarUrl: "" };
}
@@ -122,7 +122,8 @@ describe("MemoHeader navigation", () => {
,
);
- const timestamp = screen.getByRole("button", { name: "time" });
+ const timestamp = screen.getByRole("link", { name: "time" });
+ expect(timestamp).toHaveAttribute("href", "/memos/123");
if (showCreator) expect(screen.getByRole("link", { name: /Alice/ })).toHaveAttribute("href", "/?creator=alice");
timestamp.focus();
expect(timestamp).toHaveFocus();
@@ -131,6 +132,17 @@ describe("MemoHeader navigation", () => {
expect(screen.getByTestId("location")).toHaveTextContent('/memos/123|{"from":"/explore?filter=tagSearch%3Awork"}');
});
+ it("shows the time as plain text on the memo's own page", () => {
+ render(
+
+
+ ,
+ );
+
+ expect(screen.queryByRole("link", { name: "time" })).not.toBeInTheDocument();
+ expect(screen.getByText("time").closest("a, button")).toBeNull();
+ });
+
it.each([false, true])("keeps the Space pill beside the timestamp when showCreator=%s", (showCreator) => {
if (showCreator) {
state.creator = { username: "alice", displayName: "Alice", avatarUrl: "" };
@@ -142,7 +154,7 @@ describe("MemoHeader navigation", () => {
,
);
- const timestamp = screen.getByRole("button", { name: "time" });
+ const timestamp = screen.getByRole("link", { name: "time" });
const space = screen.getByTestId("memo-space");
const metadata = space.closest('[data-slot="memo-header-meta"]');