Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: polish space selector from the visibility menu

johnnyjoygha80576a6def3
diff --git a/web/src/components/AppSidebar/SpaceSwitcher.tsx b/web/src/components/AppSidebar/SpaceSwitcher.tsx
index 16b18dd93..35f42e8f8 100644
--- a/web/src/components/AppSidebar/SpaceSwitcher.tsx
+++ b/web/src/components/AppSidebar/SpaceSwitcher.tsx
@@ -26,6 +26,7 @@ import { extractSpaceUidFromName } from "@/lib/space-display";
import { cn } from "@/lib/utils";
import { buildCollectionPath, getCreatorSwitchPath, getSpaceSwitchPath, ROUTES } from "@/router/routes";
import { useTranslate } from "@/utils/i18n";
+import SidebarSectionHeader from "./SidebarSectionHeader";
import { sidebarSurfaceVariants } from "./sidebar-layout";
/** One half of the Home/Explore segmented control; the current half is raised. */
@@ -34,12 +35,12 @@ const BrowseLink = ({ to, current, icon: Icon, label }: { to: string; current: b
to={to}
aria-current={current ? "page" : undefined}
className={cn(
- "flex h-8 min-w-0 items-center gap-1.5 rounded-sm px-1.5 text-xs font-medium hover:bg-background/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
+ "flex h-7 min-w-0 items-center gap-1.5 rounded-sm px-1.5 text-ui font-medium hover:bg-background/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40",
current && "bg-background ring-1 ring-border shadow-sm hover:bg-background",
)}
>
<span className="flex size-5 shrink-0 items-center justify-center">
- <Icon aria-hidden="true" className="size-4" strokeWidth={1.8} />
+ <Icon aria-hidden="true" className="size-3.5" strokeWidth={1.8} />
</span>
<span className="min-w-0 truncate">{label}</span>
</Link>
@@ -158,21 +159,21 @@ function SpaceSwitcher({ className, size = "md" }: { className?: string; size?:
>
{/* Guests have one collection, Explore, so they only get a way back to it from a creator. */}
{(currentUser || isOtherCreator) && (
- <div className="px-2 pb-1.5 pt-2">
+ <div className="flex flex-col p-1">
{isOtherCreator ? (
<Link
to={returnPath}
- className="flex h-8 items-center gap-2 rounded-sm px-2 text-xs font-medium hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
+ className="flex h-7 items-center gap-1.5 rounded-sm px-2 text-ui hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40"
>
- <ArrowLeftIcon aria-hidden="true" className="size-3.5 rtl:rotate-180" strokeWidth={1.8} />
+ <span className="flex size-5 shrink-0 items-center justify-center">
+ <ArrowLeftIcon aria-hidden="true" className="size-3.5 rtl:rotate-180" strokeWidth={1.8} />
+ </span>
{t("memo.back-to", { source: t(currentUser ? "common.home" : "common.explore") })}
</Link>
) : (
currentUser && (
<>
- <div className="mb-1.5 px-1 text-[10px] font-semibold tracking-[0.08em] text-muted-foreground uppercase">
- {t("common.browse")}
- </div>
+ <SidebarSectionHeader>{t("common.browse")}</SidebarSectionHeader>
<nav aria-label={t("common.browse")} className="grid grid-cols-2 gap-0.5 rounded-md bg-muted p-0.5">
<BrowseLink
to={getCreatorSwitchPath(location, currentUser.username, currentUser.username)}
@@ -192,23 +193,28 @@ function SpaceSwitcher({ className, size = "md" }: { className?: string; size?:
)}
{currentUser && (
<>
- <div className="mb-1 mt-2 flex h-6 items-center justify-between ps-0.5">
- <span className="text-[10px] font-semibold tracking-[0.08em] text-muted-foreground uppercase">{t("space.spaces")}</span>
- {!isOtherCreator && (
- <Button
- variant="ghost"
- size="icon"
- aria-label={t("space.create")}
- title={t("space.create")}
- onClick={() => {
- setOpen(false);
- setCreateOpen(true);
- }}
- className="size-6 text-muted-foreground hover:text-foreground"
- >
- <PlusIcon className="size-3.5" strokeWidth={1.8} />
- </Button>
- )}
+ <div className="mt-1">
+ <SidebarSectionHeader
+ action={
+ !isOtherCreator && (
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ aria-label={t("space.create")}
+ title={t("space.create")}
+ onClick={() => {
+ setOpen(false);
+ setCreateOpen(true);
+ }}
+ className="me-[3px] text-muted-foreground hover:text-foreground"
+ >
+ <PlusIcon className="size-3.5" strokeWidth={1.8} />
+ </Button>
+ )
+ }
+ >
+ {t("space.spaces")}
+ </SidebarSectionHeader>
</div>
<Select
value={selectedSpaceName ?? "all"}
@@ -217,14 +223,18 @@ function SpaceSwitcher({ className, size = "md" }: { className?: string; size?:
}}
>
<SelectTrigger
+ size="sm"
aria-label={t("space.switch")}
title={selectedSpaceName ? spaceLabel : allSpacesLabel}
- className="h-8 w-full px-2 text-xs font-medium shadow-none"
+ // The border takes 1px of the row inset; the gap matches the panel rows.
+ className="w-full text-ui shadow-none data-[size=sm]:gap-1.5 data-[size=sm]:ps-[7px]"
>
{selectedSpaceName ? (
<SpaceMark icon={selectedSpace?.icon} size="sm" />
) : (
- <AstroidIcon className="size-4 text-muted-foreground" />
+ <span className="flex size-5 shrink-0 items-center justify-center">
+ <AstroidIcon className="size-3.5 text-muted-foreground" strokeWidth={1.8} />
+ </span>
)}
<span className="min-w-0 flex-1 truncate text-start">{selectedSpaceName ? spaceLabel : allSpacesLabel}</span>
</SelectTrigger>
diff --git a/web/src/components/MemoActionMenu/MemoActionMenu.tsx b/web/src/components/MemoActionMenu/MemoActionMenu.tsx
index dcd9addfe..f48aa5d04 100644
--- a/web/src/components/MemoActionMenu/MemoActionMenu.tsx
+++ b/web/src/components/MemoActionMenu/MemoActionMenu.tsx
@@ -8,10 +8,8 @@ import {
CopyIcon,
Edit3Icon,
FileTextIcon,
- FolderInputIcon,
LinkIcon,
ListRestartIcon,
- MoreHorizontalIcon,
MoreVerticalIcon,
TrashIcon,
} from "lucide-react";
@@ -34,13 +32,12 @@ import { State } from "@/types/proto/api/v1/common_pb";
import { useTranslate } from "@/utils/i18n";
import { createMemoNavigationState } from "../MemoView/navigation";
import { useMemoActionHandlers } from "./hooks";
-import MemoMoveDialog from "./MemoMoveDialog";
import type { MemoActionMenuProps } from "./types";
/**
* The memo's action menu, in order of how often each action is reached for:
* open, edit and pin first; then archive, tasks and the Copy submenu; Delete last.
- * Delete joins Move under More only when Move applies. An archived memo offers
+ * A memo's Space is changed in the editor, not here. An archived memo offers
* only Restore and Delete, and a viewer only Open and Copy.
*/
const MemoActionMenu = (props: MemoActionMenuProps) => {
@@ -49,7 +46,6 @@ const MemoActionMenu = (props: MemoActionMenuProps) => {
// Dialog state
const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
- const [moveDialogOpen, setMoveDialogOpen] = useState(false);
// Derived state
const isComment = Boolean(memo.parent);
@@ -59,7 +55,6 @@ const MemoActionMenu = (props: MemoActionMenuProps) => {
// Action handlers
const {
- canMove,
isInMemoDetailPage,
handleTogglePinMemoBtnClick,
handleEditMemoClick,
@@ -175,27 +170,8 @@ const MemoActionMenu = (props: MemoActionMenuProps) => {
))}
{copySubmenu}
- {canMove ? (
- <DropdownMenuSub>
- <DropdownMenuSubTrigger>
- <MoreHorizontalIcon />
- {t("common.more")}
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent>
- <DropdownMenuItem onClick={() => setMoveDialogOpen(true)}>
- <FolderInputIcon />
- {t("memo.move.title")}
- </DropdownMenuItem>
- <DropdownMenuSeparator />
- {deleteItem}
- </DropdownMenuSubContent>
- </DropdownMenuSub>
- ) : (
- <>
- <DropdownMenuSeparator />
- {deleteItem}
- </>
- )}
+ <DropdownMenuSeparator />
+ {deleteItem}
</>
);
};
@@ -209,8 +185,6 @@ const MemoActionMenu = (props: MemoActionMenuProps) => {
{renderItems()}
</DropdownMenuContent>
- {moveDialogOpen && <MemoMoveDialog memo={memo} onOpenChange={setMoveDialogOpen} />}
-
{/* Delete confirmation dialog */}
<ConfirmDialog
open={deleteDialogOpen}
diff --git a/web/src/components/MemoActionMenu/MemoMoveDialog.tsx b/web/src/components/MemoActionMenu/MemoMoveDialog.tsx
deleted file mode 100644
index 1a8877be5..000000000
--- a/web/src/components/MemoActionMenu/MemoMoveDialog.tsx
+++ /dev/null
@@ -1,145 +0,0 @@
-import { type FormEvent, useState } from "react";
-import { toast } from "react-hot-toast";
-import SpaceMark from "@/components/SpaceMark";
-import SpaceSelectItem from "@/components/SpaceSelectItem";
-import { Button } from "@/components/ui/button";
-import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";
-import { Label } from "@/components/ui/label";
-import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
-import useCurrentUser from "@/hooks/useCurrentUser";
-import { useUpdateMemo } from "@/hooks/useMemoQueries";
-import { useSpaces } from "@/hooks/useSpaceQueries";
-import { getErrorMessage } from "@/lib/error";
-import { extractSpaceUidFromName, getDuplicateSpaceTitles } from "@/lib/space-display";
-import { type Memo, Visibility } from "@/types/proto/api/v1/memo_service_pb";
-import { useTranslate } from "@/utils/i18n";
-import { getAssignableVisibilityOptions, getVisibilityOption } from "@/utils/memo";
-import { canManageMemo } from "@/utils/user";
-
-const UNASSIGNED = "unassigned";
-
-export default function MemoMoveDialog({ memo, onOpenChange }: { memo: Memo; onOpenChange: (open: boolean) => void }) {
- const t = useTranslate();
- const currentUser = useCurrentUser();
- const { data: spaces = [], isPending: loadingSpaces, error: spacesError, refetch } = useSpaces(currentUser?.name);
- const { mutateAsync: updateMemo, isPending } = useUpdateMemo();
- const [destination, setDestination] = useState(memo.space || UNASSIGNED);
- const [visibility, setVisibility] = useState(memo.visibility);
- const [error, setError] = useState("");
- const nextSpace = destination === UNASSIGNED ? undefined : destination;
- const duplicateTitles = getDuplicateSpaceTitles(spaces);
- const spaceLabel = (space: (typeof spaces)[number]) =>
- duplicateTitles.has(space.title) ? `${space.title} (${extractSpaceUidFromName(space.name)})` : space.title;
- const selectedSpace = spaces.find((space) => space.name === destination);
- const destinationLabel = nextSpace
- ? selectedSpace
- ? spaceLabel(selectedSpace)
- : extractSpaceUidFromName(nextSpace)
- : t("memo.move.unassigned");
- const visibilityOption = getVisibilityOption(visibility);
- const canSubmit =
- canManageMemo(memo, currentUser) && (memo.space || undefined) !== nextSpace && (!nextSpace || !!selectedSpace) && !isPending;
-
- const handleSubmit = async (event: FormEvent<HTMLFormElement>) => {
- event.preventDefault();
- if (!canSubmit) return;
- setError("");
- try {
- await updateMemo({
- update: { name: memo.name, space: nextSpace ?? "", visibility },
- updateMask: memo.visibility === Visibility.SPACE || visibility !== memo.visibility ? ["space", "visibility"] : ["space"],
- });
- toast.success(t("memo.move.success"));
- onOpenChange(false);
- } catch (error) {
- setError(getErrorMessage(error));
- void refetch();
- }
- };
-
- return (
- <Dialog
- open
- onOpenChange={(open) => {
- if (!isPending) onOpenChange(open);
- }}
- >
- <DialogContent size="sm">
- <form className="flex flex-col gap-4" onSubmit={handleSubmit}>
- <DialogHeader>
- <DialogTitle>{t("memo.move.title")}</DialogTitle>
- <DialogDescription>{t("memo.move.description")}</DialogDescription>
- </DialogHeader>
- <div className="grid gap-2">
- <Label htmlFor="memo-destination">{t("space.current")}</Label>
- <Select
- value={destination}
- disabled={isPending}
- onValueChange={(value) => {
- setDestination(value);
- setError("");
- if (value === UNASSIGNED && visibility === Visibility.SPACE) setVisibility(Visibility.PRIVATE);
- }}
- >
- <SelectTrigger id="memo-destination" className="w-full min-w-0" title={destinationLabel}>
- <SelectValue className="min-w-0 flex-1">
- {nextSpace && <SpaceMark icon={selectedSpace?.icon} size="sm" />}
- <span className="truncate">{destinationLabel}</span>
- </SelectValue>
- </SelectTrigger>
- <SelectContent className="w-(--anchor-width) min-w-0 max-w-[calc(100vw-2rem)]">
- <SelectItem value={UNASSIGNED}>{t("memo.move.unassigned")}</SelectItem>
- {spaces.map((space) => (
- <SpaceSelectItem key={space.name} value={space.name} label={spaceLabel(space)} icon={space.icon} />
- ))}
- </SelectContent>
- </Select>
- {loadingSpaces && <p className="text-xs text-muted-foreground">{t("space.loading")}</p>}
- {spacesError && (
- <div role="alert" className="text-xs text-destructive">
- {t("space.load-error")}{" "}
- <Button type="button" variant="ghost" size="sm" onClick={() => void refetch()}>
- {t("search.retry")}
- </Button>
- </div>
- )}
- </div>
- <div className="grid gap-2">
- <Label htmlFor="memo-move-audience">{t("common.visibility")}</Label>
- <Select value={String(visibility)} disabled={isPending} onValueChange={(value) => setVisibility(Number(value))}>
- <SelectTrigger id="memo-move-audience" className="w-full">
- <SelectValue>{visibilityOption && t(visibilityOption.labelKey)}</SelectValue>
- </SelectTrigger>
- <SelectContent>
- {getAssignableVisibilityOptions({ hasSpacePlacement: !!nextSpace }).map((option) => (
- <SelectItem key={option.value} value={String(option.value)}>
- {t(option.labelKey)}
- </SelectItem>
- ))}
- </SelectContent>
- </Select>
- <p className="text-xs leading-5 text-muted-foreground">
- {visibility === Visibility.SPACE
- ? t("memo.move.space-audience", { space: destinationLabel })
- : visibilityOption && t(visibilityOption.descriptionKey)}
- </p>
- </div>
- <p className="text-xs leading-5 text-muted-foreground">{t("memo.move.history")}</p>
- {error && (
- <p role="alert" className="text-sm text-destructive">
- {error}
- </p>
- )}
- <DialogFooter>
- <Button type="button" variant="ghost" disabled={isPending} onClick={() => onOpenChange(false)}>
- {t("common.cancel")}
- </Button>
- <Button type="submit" disabled={!canSubmit}>
- {t("memo.move.confirm")}
- </Button>
- </DialogFooter>
- </form>
- </DialogContent>
- </Dialog>
- );
-}
diff --git a/web/src/components/MemoActionMenu/hooks.ts b/web/src/components/MemoActionMenu/hooks.ts
index 61ec3d29b..30b0ab031 100644
--- a/web/src/components/MemoActionMenu/hooks.ts
+++ b/web/src/components/MemoActionMenu/hooks.ts
@@ -4,8 +4,6 @@ import { useCallback } from "react";
import toast from "react-hot-toast";
import { useLocation } from "react-router-dom";
import { useInstance } from "@/contexts/InstanceContext";
-import { useSpaceContext } from "@/contexts/SpaceContext";
-import useCurrentUser from "@/hooks/useCurrentUser";
import { memoKeys, useDeleteMemo, useUpdateMemo } from "@/hooks/useMemoQueries";
import useNavigateTo from "@/hooks/useNavigateTo";
import { userKeys } from "@/hooks/useUserQueries";
@@ -16,7 +14,6 @@ import { State } from "@/types/proto/api/v1/common_pb";
import type { Memo } from "@/types/proto/api/v1/memo_service_pb";
import { useTranslate } from "@/utils/i18n";
import { checkAllTasks, uncheckAllTasks } from "@/utils/markdown-task-actions";
-import { canManageMemo } from "@/utils/user";
import { isMemoDetailPath } from "../MemoView/navigation";
interface UseMemoActionHandlersOptions {
@@ -29,12 +26,6 @@ interface UseMemoActionHandlersOptions {
export const useMemoActionHandlers = ({ memo, parentPage, onEdit, setDeleteDialogOpen }: UseMemoActionHandlersOptions) => {
const t = useTranslate();
const location = useLocation();
- const currentUser = useCurrentUser();
- const { spaces } = useSpaceContext();
- // Move needs somewhere to go: another Space to join, or out of the current one.
- const hasMoveDestination = spaces.length > 0 || Boolean(memo.space);
- const canMove =
- !memo.parent && canManageMemo(memo, currentUser) && !location.pathname.startsWith(ROUTES.SHARED_MEMO) && hasMoveDestination;
const navigateTo = useNavigateTo();
const queryClient = useQueryClient();
const { profile } = useInstance();
@@ -165,7 +156,6 @@ export const useMemoActionHandlers = ({ memo, parentPage, onEdit, setDeleteDialo
}, [memo.name, memo.parent, t, isInMemoDetailPage, parentPage, navigateTo, memoUpdatedCallback, deleteMemo, queryClient]);
return {
- canMove,
isInMemoDetailPage,
handleTogglePinMemoBtnClick,
handleEditMemoClick,
diff --git a/web/src/components/MemoEditor/README.md b/web/src/components/MemoEditor/README.md
index 30a23a60a..934f21698 100644
--- a/web/src/components/MemoEditor/README.md
+++ b/web/src/components/MemoEditor/README.md
@@ -56,7 +56,7 @@ MemoEditor/
│ └── ... # Heading/list/viewport decorations, editor.css
├── formatting/
│ └── commands.ts # Backend-agnostic catalog of formatting verbs
-├── Toolbar/ # EditorToolbar, FormattingToolbar, InsertMenu, MemoSettings
+├── Toolbar/ # EditorToolbar, FormattingToolbar, InsertMenu, AudienceMenu
├── constants.ts
└── types/ # EditorController / FormattingController, component props,
# attachment and insert-menu types
@@ -140,7 +140,7 @@ Those toggles travel as a single optional `viewToggles` object (`types/component
### Destination and visibility
-`MemoSettings` combines visibility with a compact Space select for new top-level memos created outside a Space. A host-provided `defaultSpace` fixes placement and hides the select; edits and comments also omit it. The selected destination lives in editor metadata and is sent on creation. Clearing a Space-only audience resets it to Private. Drafts retain destination and visibility alongside content, attachments, and location. Long names are truncated in the toolbar, select, and options, with their full text retained for accessible labels and hover titles.
+`AudienceMenu` is one dropdown for a memo's visibility and, where allowed, its Space. Visibility options come first; the Space is an optional row below them that never names the empty state: it reads "Add to space" until one is chosen, then shows the Space, and the selected Space in its submenu toggles back off (a check at rest, an ✕ under the pointer or keyboard, always an ✕ on touch). New top-level memos and edits of top-level memos the user can manage offer the row; a host-provided `defaultSpace` fixes a new memo's placement, and comments never offer it because their Space is the parent's. The destination lives in editor metadata: it is sent on creation, and an edit that changes it sends `space` and `visibility` together so the server can validate the move as one transition. Clearing a Space-only audience resets it to Private; adding a Space never changes the audience. Drafts retain destination and visibility alongside content, attachments, and location. Long names are truncated, with their full text retained for accessible labels and hover titles. Moving a memo between Spaces happens here; there is no separate move dialog.
### Lifecycle hooks
diff --git a/web/src/components/MemoEditor/Toolbar/AudienceMenu.tsx b/web/src/components/MemoEditor/Toolbar/AudienceMenu.tsx
new file mode 100644
index 000000000..815090aea
--- /dev/null
+++ b/web/src/components/MemoEditor/Toolbar/AudienceMenu.tsx
@@ -0,0 +1,157 @@
+import { CheckIcon, ChevronDownIcon, PlusIcon, XIcon } from "lucide-react";
+import SpaceIcon from "@/components/SpaceIcon";
+import SpaceMark from "@/components/SpaceMark";
+import { Button } from "@/components/ui/button";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuSeparator,
+ DropdownMenuSub,
+ DropdownMenuSubContent,
+ DropdownMenuSubTrigger,
+ DropdownMenuTrigger,
+} from "@/components/ui/dropdown-menu";
+import VisibilityIcon from "@/components/VisibilityIcon";
+import useCurrentUser from "@/hooks/useCurrentUser";
+import { useSpaces } from "@/hooks/useSpaceQueries";
+import { extractSpaceUidFromName, getDuplicateSpaceTitles } from "@/lib/space-display";
+import type { Space_Icon } from "@/types/proto/api/v1/space_service_pb";
+import { useTranslate } from "@/utils/i18n";
+import { getAssignableVisibilityOptions, getVisibilityOption } from "@/utils/memo";
+import type { AudienceMenuProps } from "../types";
+
+/**
+ * One quiet control for a memo's audience and, where the host allows it, its Space.
+ *
+ * Audience comes first: every memo has one. Space is optional, so it is a single
+ * row at the bottom that never names the empty state — "Add to space" before a
+ * choice, the Space itself after. The selected Space toggles back off.
+ */
+const AudienceMenu = ({ value, onChange, space, onSpaceChange, disabled }: AudienceMenuProps) => {
+ const t = useTranslate();
+ const user = useCurrentUser();
+ const { data: spaces = [], isPending, isError, refetch } = useSpaces(user?.name, { enabled: Boolean(onSpaceChange) });
+ const visibilityOptions = getAssignableVisibilityOptions({ hasSpacePlacement: Boolean(space), current: value });
+ const currentOption = getVisibilityOption(value);
+ const visibilityLabel = currentOption ? t(currentOption.labelKey) : "";
+ const duplicates = getDuplicateSpaceTitles(spaces);
+ const spaceLabel = (item: (typeof spaces)[number]) =>
+ duplicates.has(item.title) ? `${item.title} (${extractSpaceUidFromName(item.name)})` : item.title;
+ const selectedSpace = spaces.find((item) => item.name === space);
+ const destination = space ? (selectedSpace ? spaceLabel(selectedSpace) : extractSpaceUidFromName(space)) : "";
+ const summary = onSpaceChange && space ? `${destination} · ${visibilityLabel}` : visibilityLabel;
+ // Nothing to add to and nothing to remove from: the Space row would be a dead end.
+ const showSpaceRow = Boolean(onSpaceChange) && (Boolean(space) || isPending || isError || spaces.length > 0);
+ // A placement outside the member list (e.g. the author left the Space) stays
+ // visible so it can still be removed.
+ const spaceChoices: { name: string; label: string; icon?: Space_Icon }[] = [
+ ...(space && !selectedSpace ? [{ name: space, label: destination }] : []),
+ ...spaces.map((item) => ({ name: item.name, label: spaceLabel(item), icon: item.icon })),
+ ];
+
+ return (
+ <DropdownMenu>
+ <DropdownMenuTrigger
+ render={<Button variant="quiet" size="sm" className="min-w-0 max-w-64 shrink gap-1 text-muted-foreground" disabled={disabled} />}
+ title={summary}
+ aria-label={summary}
+ >
+ {onSpaceChange && space && (
+ <>
+ <span className="flex min-w-0 max-w-32 items-center gap-1 sm:max-w-40">
+ <SpaceIcon icon={selectedSpace?.icon} size={14} />
+ <span className="truncate">{destination}</span>
+ </span>
+ <span aria-hidden className="shrink-0 opacity-40">
+ ·
+ </span>
+ </>
+ )}
+ <span className="flex shrink-0 items-center gap-1">
+ <VisibilityIcon visibility={value} className="size-3.5 text-current" />
+ <span>{visibilityLabel}</span>
+ </span>
+ <ChevronDownIcon className="size-3 opacity-50" strokeWidth={1.8} />
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="start" size="sm" className="w-56" aria-label={t("common.visibility")}>
+ {/* Two lines per audience: the description is the only place the app explains who can
+ read a memo, and translations run long. The menu's fixed width makes long copy wrap
+ instead of widening it; icon and check stay on the title's line. */}
+ {visibilityOptions.map((option) => (
+ <DropdownMenuItem key={option.value} onClick={() => onChange(option.value)}>
+ <span aria-hidden className="flex h-4.5 w-5 shrink-0 items-center justify-center self-start">
+ <VisibilityIcon visibility={option.value} className="size-3.5" />
+ </span>
+ <span className="flex min-w-0 flex-1 flex-col">
+ <span>{t(option.labelKey)}</span>
+ <span className="text-xs text-muted-foreground">{t(option.descriptionKey, { space: destination })}</span>
+ </span>
+ <span aria-hidden className="ms-auto flex h-4.5 w-3.5 shrink-0 items-center justify-center self-start">
+ {option.value === value && <CheckIcon className="size-3.5" />}
+ </span>
+ </DropdownMenuItem>
+ ))}
+ {showSpaceRow && onSpaceChange && (
+ <>
+ <DropdownMenuSeparator />
+ <DropdownMenuSub>
+ <DropdownMenuSubTrigger title={space ? destination : undefined}>
+ {space ? (
+ <>
+ <SpaceMark icon={selectedSpace?.icon} size="sm" />
+ <span className="min-w-0 flex-1 truncate">{destination}</span>
+ </>
+ ) : (
+ <>
+ <span
+ aria-hidden
+ className="flex size-5 shrink-0 items-center justify-center rounded-[5px] border border-dashed border-muted-foreground/45"
+ >
+ <PlusIcon className="size-3" strokeWidth={2} />
+ </span>
+ <span className="flex-1 text-muted-foreground">{t("space.add-to")}</span>
+ </>
+ )}
+ </DropdownMenuSubTrigger>
+ <DropdownMenuSubContent className="w-56">
+ {spaceChoices.map((item) => {
+ const selected = item.name === space;
+ const removeLabel = t("space.remove-from", { space: item.label });
+ return (
+ <DropdownMenuItem
+ key={item.name}
+ title={selected ? removeLabel : item.label}
+ aria-label={selected ? removeLabel : item.label}
+ onClick={() => onSpaceChange(selected ? undefined : item.name)}
+ >
+ <SpaceMark icon={item.icon} size="sm" />
+ <span className="min-w-0 flex-1 truncate">{item.label}</span>
+ {/* The selected Space is its own off switch: a check at rest, an ✕ under the
+ pointer or keyboard, and always an ✕ on touch, which has no hover. */}
+ {selected && (
+ <span aria-hidden className="ms-auto flex size-3.5 shrink-0 items-center justify-center">
+ <CheckIcon className="size-3.5 in-data-highlighted:hidden pointer-coarse:hidden" />
+ <XIcon className="hidden size-3.5 in-data-highlighted:block pointer-coarse:block" />
+ </span>
+ )}
+ </DropdownMenuItem>
+ );
+ })}
+ {isPending && <DropdownMenuItem disabled>{t("space.loading")}</DropdownMenuItem>}
+ {isError && (
+ <DropdownMenuItem closeOnClick={false} onClick={() => void refetch()}>
+ <span className="text-destructive">{t("space.load-error")}</span>
+ <span className="ms-auto text-muted-foreground">{t("search.retry")}</span>
+ </DropdownMenuItem>
+ )}
+ </DropdownMenuSubContent>
+ </DropdownMenuSub>
+ </>
+ )}
+ </DropdownMenuContent>
+ </DropdownMenu>
+ );
+};
+
+export default AudienceMenu;
diff --git a/web/src/components/MemoEditor/Toolbar/EditorToolbar.tsx b/web/src/components/MemoEditor/Toolbar/EditorToolbar.tsx
index 8c0fefae4..bb6ac87f6 100644
--- a/web/src/components/MemoEditor/Toolbar/EditorToolbar.tsx
+++ b/web/src/components/MemoEditor/Toolbar/EditorToolbar.tsx
@@ -9,8 +9,8 @@ import { primaryModifierGlyph } from "@/utils/platform";
import { validationService } from "../services";
import { useEditorContext, useEditorSelector } from "../state";
import type { EditorToolbarProps } from "../types";
+import AudienceMenu from "./AudienceMenu";
import InsertMenu from "./InsertMenu";
-import MemoSettings from "./MemoSettings";
/**
* Shortcut chip inside the commit button. While saving, a spinner takes the
@@ -106,7 +106,7 @@ export const EditorToolbar: FC<EditorToolbarProps> = ({
viewToggles={viewToggles}
onInsertImages={onInsertImages}
/>
- <MemoSettings
+ <AudienceMenu
value={visibility}
space={space}
onChange={handleVisibilityChange}
diff --git a/web/src/components/MemoEditor/Toolbar/MemoSettings.tsx b/web/src/components/MemoEditor/Toolbar/MemoSettings.tsx
deleted file mode 100644
index 3e2a521ab..000000000
--- a/web/src/components/MemoEditor/Toolbar/MemoSettings.tsx
+++ /dev/null
@@ -1,158 +0,0 @@
-import { Radio } from "@base-ui/react/radio";
-import { CheckIcon, ChevronDownIcon } from "lucide-react";
-import { useId, useState } from "react";
-import SpaceIcon from "@/components/SpaceIcon";
-import SpaceMark from "@/components/SpaceMark";
-import SpaceSelectItem from "@/components/SpaceSelectItem";
-import { Button } from "@/components/ui/button";
-import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
-import { RadioGroup } from "@/components/ui/radio-group";
-import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
-import VisibilityIcon from "@/components/VisibilityIcon";
-import useCurrentUser from "@/hooks/useCurrentUser";
-import { useSpaces } from "@/hooks/useSpaceQueries";
-import { extractSpaceUidFromName, getDuplicateSpaceTitles } from "@/lib/space-display";
-import type { Visibility } from "@/types/proto/api/v1/memo_service_pb";
-import { useTranslate } from "@/utils/i18n";
-import { getAssignableVisibilityOptions, getVisibilityOption } from "@/utils/memo";
-import type { MemoSettingsProps } from "../types";
-
-const NO_SPACE = "no-space";
-
-/** One quiet control for audience and, in an unscoped new composer, destination. */
-const MemoSettings = ({ value, onChange, space, onSpaceChange, disabled }: MemoSettingsProps) => {
- const t = useTranslate();
- const user = useCurrentUser();
- const { data: spaces = [], isPending, isError, refetch } = useSpaces(user?.name, { enabled: Boolean(onSpaceChange) });
- const [open, setOpen] = useState(false);
- const spaceId = useId();
- const visibilityOptions = getAssignableVisibilityOptions({ hasSpacePlacement: Boolean(space), current: value });
- const currentOption = getVisibilityOption(value);
- const visibilityLabel = currentOption ? t(currentOption.labelKey) : "";
- const duplicates = getDuplicateSpaceTitles(spaces);
- const spaceLabel = (item: (typeof spaces)[number]) =>
- duplicates.has(item.title) ? `${item.title} (${extractSpaceUidFromName(item.name)})` : item.title;
- const selectedSpace = spaces.find((item) => item.name === space);
- const destination = space ? (selectedSpace ? spaceLabel(selectedSpace) : extractSpaceUidFromName(space)) : t("space.no-space");
- const summary = onSpaceChange && space ? `${destination} · ${visibilityLabel}` : visibilityLabel;
-
- return (
- <Popover open={open} onOpenChange={setOpen}>
- <PopoverTrigger
- render={<Button variant="quiet" size="sm" className="min-w-0 max-w-64 shrink gap-1 text-muted-foreground" disabled={disabled} />}
- title={summary}
- aria-label={summary}
- >
- {onSpaceChange && space && (
- <>
- <span className="flex min-w-0 max-w-32 items-center gap-1 sm:max-w-40">
- <SpaceIcon icon={selectedSpace?.icon} />
- <span className="truncate">{destination}</span>
- </span>
- <span aria-hidden className="shrink-0 opacity-40">
- ·
- </span>
- </>
- )}
- <span className="flex shrink-0 items-center gap-1">
- <VisibilityIcon visibility={value} className="text-current" />
- <span>{visibilityLabel}</span>
- </span>
- <ChevronDownIcon className="size-3 opacity-50" strokeWidth={1.8} />
- </PopoverTrigger>
- <PopoverContent align="start" className="w-64 max-w-[calc(100vw-2rem)] p-1" aria-label={t("common.visibility")}>
- {onSpaceChange && <div className="px-2 py-1 text-xs text-muted-foreground">{t("common.visibility")}</div>}
- <RadioGroup
- value={value}
- onValueChange={(next) => {
- onChange(next as Visibility);
- setOpen(false);
- }}
- disabled={disabled}
- aria-label={t("common.visibility")}
- className="gap-0"
- >
- {visibilityOptions.map((option) => (
- <Radio.Root
- key={option.value}
- value={option.value}
- className="flex w-full min-w-0 cursor-pointer items-center gap-2 rounded-sm px-2 py-1 text-start text-ui outline-none hover:bg-accent focus-visible:bg-accent disabled:opacity-50"
- >
- <VisibilityIcon visibility={option.value} className="size-3.5 shrink-0" />
- <span className="min-w-0 flex-1">
- <span className="block">{t(option.labelKey)}</span>
- <span className="block text-2xs text-muted-foreground">{t(option.descriptionKey)}</span>
- </span>
- <span className="size-3.5 shrink-0">
- <Radio.Indicator>
- <CheckIcon className="size-3.5 text-primary" />
- </Radio.Indicator>
- </span>
- </Radio.Root>
- ))}
- </RadioGroup>
- {onSpaceChange && (
- <div className="mt-1 grid min-w-0 gap-1.5 border-t px-2 pt-2 pb-1">
- <label id={spaceId} className="text-xs text-muted-foreground" htmlFor={`${spaceId}-select`}>
- {t("space.current")}
- </label>
- <Select
- value={space || NO_SPACE}
- onValueChange={(next) => onSpaceChange(next === NO_SPACE ? undefined : next)}
- disabled={disabled}
- >
- <SelectTrigger
- id={`${spaceId}-select`}
- size="sm"
- className="w-full min-w-0 text-ui"
- aria-labelledby={spaceId}
- title={destination}
- >
- <SelectValue className="min-w-0 flex-1">
- {space && <SpaceMark icon={selectedSpace?.icon} size="sm" />}
- <span className="truncate">{destination}</span>
- </SelectValue>
- </SelectTrigger>
- <SelectContent className="max-h-[min(16rem,var(--available-height))] w-(--anchor-width) min-w-0 max-w-[calc(100vw-2rem)]">
- <SelectItem value={NO_SPACE} className="text-ui">
- {t("space.no-space")}
- </SelectItem>
- {space && !selectedSpace && (
- <SelectItem
- value={space}
- disabled
- className="[&>div:first-child]:min-w-0 [&>div:first-child]:flex-1 [&>div:first-child]:truncate"
- title={destination}
- >
- <span className="flex min-w-0 items-center gap-2">
- <SpaceMark size="sm" />
- <span className="truncate">{destination}</span>
- </span>
- </SelectItem>
- )}
- {spaces.map((item) => (
- <SpaceSelectItem key={item.name} value={item.name} label={spaceLabel(item)} icon={item.icon} className="text-ui" />
- ))}
- </SelectContent>
- </Select>
- {isPending && (
- <p role="status" className="text-xs text-muted-foreground">
- {t("space.loading")}
- </p>
- )}
- {isError && (
- <p role="alert" className="text-xs text-destructive">
- {t("space.load-error")}{" "}
- <button type="button" className="underline" onClick={() => void refetch()}>
- {t("search.retry")}
- </button>
- </p>
- )}
- </div>
- )}
- </PopoverContent>
- </Popover>
- );
-};
-
-export default MemoSettings;
diff --git a/web/src/components/MemoEditor/Toolbar/index.ts b/web/src/components/MemoEditor/Toolbar/index.ts
index dd60f3b9a..334926092 100644
--- a/web/src/components/MemoEditor/Toolbar/index.ts
+++ b/web/src/components/MemoEditor/Toolbar/index.ts
@@ -1,5 +1,6 @@
// Toolbar components for MemoEditor
+
+export { default as AudienceMenu } from "./AudienceMenu";
export { EditorToolbar } from "./EditorToolbar";
export { FormattingToolbar } from "./FormattingToolbar";
export { default as InsertMenu } from "./InsertMenu";
-export { default as MemoSettings } from "./MemoSettings";
diff --git a/web/src/components/MemoEditor/hooks/useMemoSave.ts b/web/src/components/MemoEditor/hooks/useMemoSave.ts
index a88ea3949..4919ea33b 100644
--- a/web/src/components/MemoEditor/hooks/useMemoSave.ts
+++ b/web/src/components/MemoEditor/hooks/useMemoSave.ts
@@ -69,6 +69,10 @@ export function useMemoSave({
// Prevent the autosave unmount flush from restoring the saved draft.
discardDraft();
+ // A moved memo may leave the feed it was edited in; say where it went.
+ if (result.moved) {
+ toast.success(t("memo.moved"));
+ }
const invalidationPromises: Promise<unknown>[] = [
queryClient.invalidateQueries({ queryKey: memoKeys.lists() }),
diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx
index 978d49804..f4f4e4644 100644
--- a/web/src/components/MemoEditor/index.tsx
+++ b/web/src/components/MemoEditor/index.tsx
@@ -8,6 +8,7 @@ import { cn } from "@/lib/utils";
import { InstanceSetting_Key } from "@/types/proto/api/v1/instance_service_pb";
import { useTranslate } from "@/utils/i18n";
import { convertVisibilityFromString } from "@/utils/memo";
+import { canManageMemo } from "@/utils/user";
import { AudioRecorderPanel, EditorContent, EditorMetadata, FocusModeOverlay, TimestampPopover } from "./components";
import { EditorSuggestions } from "./components/EditorSuggestions";
import { FOCUS_MODE_STYLES, FORMATTING_TOOLBAR_STORAGE_KEY } from "./constants";
@@ -82,11 +83,12 @@ const MemoEditorImpl: React.FC<MemoEditorProps> = ({
const [isFormattingToolbarVisible, setFormattingToolbarVisible] = useLocalStorage(FORMATTING_TOOLBAR_STORAGE_KEY, false);
const memoName = memo?.name;
- // Existing resources own their placement. New replies are not placed
- // independently; only a new top-level memo inherits its host's target.
+ // Replies are never placed independently: a comment's Space is its parent's.
+ // An edited top-level memo can change its Space; a new one can unless its
+ // host fixes the target (e.g. composing inside a Space).
const draftSpace = useEditorSelector((s) => s.metadata.space);
- const canChooseSpace = !memo && !parentMemoName && !defaultSpace;
- const editorSpace = memo ? memo.space : parentMemoName ? undefined : (defaultSpace ?? draftSpace);
+ const canChooseSpace = memo ? !memo.parent && canManageMemo(memo, currentUser) : !parentMemoName && !defaultSpace;
+ const editorSpace = memo ? draftSpace : parentMemoName ? undefined : (defaultSpace ?? draftSpace);
const canTranscribe = useMemo(() => {
const providerId = aiSetting.transcription?.providerId ?? "";
if (!providerId) return false;
diff --git a/web/src/components/MemoEditor/services/memoService.ts b/web/src/components/MemoEditor/services/memoService.ts
index 5da638b77..db46ee6f5 100644
--- a/web/src/components/MemoEditor/services/memoService.ts
+++ b/web/src/components/MemoEditor/services/memoService.ts
@@ -37,6 +37,14 @@ function buildUpdateMask(
mask.add("visibility");
patch.visibility = state.metadata.visibility;
}
+ // Placement and audience are validated together: a move always states the
+ // audience it lands with, so a Space-only audience never follows it implicitly.
+ if ((state.metadata.space || undefined) !== (prevMemo.space || undefined)) {
+ mask.add("space");
+ mask.add("visibility");
+ patch.space = state.metadata.space ?? "";
+ patch.visibility = state.metadata.visibility;
+ }
if (!isEqual(allAttachments, prevMemo.attachments)) {
mask.add("attachments");
patch.attachments = toAttachmentReferences(allAttachments);
@@ -84,7 +92,7 @@ export const memoService = {
parentMemoName?: string;
space?: string;
},
- ): Promise<{ memoName: string; hasChanges: boolean }> {
+ ): Promise<{ memoName: string; hasChanges: boolean; moved?: boolean }> {
// 1. Upload local files first
const newAttachments = await uploadService.uploadFiles(state.localFiles);
const allAttachments = [...state.metadata.attachments, ...newAttachments];
@@ -102,7 +110,7 @@ export const memoService = {
memo: create(MemoSchema, patch as Record<string, unknown>),
updateMask: create(FieldMaskSchema, { paths: Array.from(mask) }),
});
- return { memoName: memo.name, hasChanges: true };
+ return { memoName: memo.name, hasChanges: true, moved: mask.has("space") };
}
// 3. Create new memo or comment
@@ -137,6 +145,7 @@ export const memoService = {
content: memo.content,
metadata: {
visibility: memo.visibility,
+ space: memo.space || undefined,
attachments: memo.attachments,
relations: memo.relations,
location: memo.location,
diff --git a/web/src/components/MemoEditor/types/components.ts b/web/src/components/MemoEditor/types/components.ts
index d65d1ac90..514c6d768 100644
--- a/web/src/components/MemoEditor/types/components.ts
+++ b/web/src/components/MemoEditor/types/components.ts
@@ -124,7 +124,7 @@ export interface InsertMenuProps {
onInsertImages: (files: File[]) => void;
}
-export interface MemoSettingsProps {
+export interface AudienceMenuProps {
value: Visibility;
onChange: (visibility: Visibility) => void;
/** The memo's actual placement; independent of the ambient collection scope. */
diff --git a/web/src/components/MemoEditor/types/index.ts b/web/src/components/MemoEditor/types/index.ts
index 9b248c89a..572893fe0 100644
--- a/web/src/components/MemoEditor/types/index.ts
+++ b/web/src/components/MemoEditor/types/index.ts
@@ -1,6 +1,7 @@
// MemoEditor type exports
export type {
+ AudienceMenuProps,
AudioRecorderPanelProps,
EditorContentProps,
EditorMetadataProps,
@@ -10,7 +11,6 @@ export type {
FocusModeOverlayProps,
InsertMenuProps,
MemoEditorProps,
- MemoSettingsProps,
} from "./components";
export type { EditorController } from "./editorController";
export type { LocationState } from "./insertMenu";
diff --git a/web/src/components/UserMenu.tsx b/web/src/components/UserMenu.tsx
index 665257b47..d135044af 100644
--- a/web/src/components/UserMenu.tsx
+++ b/web/src/components/UserMenu.tsx
@@ -33,8 +33,11 @@ import { UserNotification_Status } from "@/types/proto/api/v1/user_service_pb";
import { getLocaleDisplayName, getLocaleWithFallback, loadLocale, useTranslate } from "@/utils/i18n";
import { getThemeWithFallback, loadTheme, THEME_OPTIONS } from "@/utils/theme";
-const rowClass = "h-8 w-full justify-start gap-2 rounded-sm px-2 text-xs font-normal shadow-none hover:bg-accent";
-const iconClass = "size-3.5 shrink-0 text-muted-foreground";
+// One row grammar for the whole scope panel: 28px rows, 13px text, and a 20px leading slot
+// (a 14px glyph with 3px each side) so icons, the avatar and Space marks share one column.
+const rowClass = "h-7 w-full justify-start gap-1.5 rounded-sm px-2 text-ui font-normal shadow-none hover:bg-accent";
+const iconClass = "mx-[3px] size-3.5 shrink-0 text-muted-foreground";
+const chevronClass = "size-3.5 shrink-0 text-muted-foreground";
interface PreferenceSubmenuProps {
icon: LucideIcon;
@@ -55,7 +58,7 @@ const PreferenceSubmenu = ({ icon: Icon, label, value, options, onChange, classN
<span className="min-w-0 flex-1 truncate text-end text-muted-foreground">
{options.find((option) => option.value === value)?.label ?? value}
</span>
- <ChevronRightIcon className={cn(iconClass, "rtl:rotate-180")} />
+ <ChevronRightIcon className={cn(chevronClass, "rtl:rotate-180")} />
</DropdownMenuTrigger>
{/* Like a nested submenu: when neither side has room (narrow screens), drop below the row instead of overflowing. */}
<DropdownMenuContent
@@ -108,7 +111,7 @@ const UserPreferenceMenu = () => {
};
return (
- <section aria-label={t("setting.preference.label")} className="border-border/70 px-2 py-1 not-first:border-t">
+ <section aria-label={t("setting.preference.label")} className="border-border/70 p-1 not-first:border-t">
<PreferenceSubmenu
icon={PaletteIcon}
label={t("setting.preference.theme")}
@@ -169,10 +172,10 @@ const UserMenu = ({ onClose }: { onClose: () => void }) => {
return (
<>
<UserPreferenceMenu />
- <section aria-label={t("setting.sso.account")} className="border-t border-border/70 px-2 py-1">
+ <section aria-label={t("setting.sso.account")} className="border-t border-border/70 p-1">
{currentUser && (
<>
- <div className="flex h-8 items-center gap-2 px-2">
+ <div className="flex h-7 items-center gap-1.5 px-2">
<span className="relative flex size-5 shrink-0 items-center justify-center">
<UserAvatar avatarUrl={currentUser.avatarUrl} name={accountLabel} className="size-5" />
{sseStatus !== "connected" && (
@@ -186,13 +189,13 @@ const UserMenu = ({ onClose }: { onClose: () => void }) => {
/>
)}
</span>
- <span className="min-w-0 flex-1 truncate text-xs font-medium">{accountLabel}</span>
+ <span className="min-w-0 flex-1 truncate text-ui font-medium">{accountLabel}</span>
<Button
variant="ghost"
aria-label={inboxLabel}
aria-current={inboxActive ? "page" : undefined}
className={cn(
- "h-5 gap-1 rounded-sm bg-muted/60 px-1.5 text-[10px] font-medium text-muted-foreground shadow-none hover:bg-accent hover:text-foreground",
+ "h-5 gap-1 rounded-sm bg-muted/60 px-1.5 text-2xs font-medium text-muted-foreground shadow-none hover:bg-accent hover:text-foreground",
inboxActive && "bg-accent text-foreground",
)}
onClick={() => navigateFromMenu(Routes.INBOX)}
diff --git a/web/src/locales/ar.json b/web/src/locales/ar.json
index bf629e9a6..eb9231484 100644
--- a/web/src/locales/ar.json
+++ b/web/src/locales/ar.json
@@ -252,8 +252,8 @@
"private-description": "مرئي لك فقط",
"protected-description": "مرئي للمستخدمين المسجلين",
"public-description": "مرئي للجميع",
- "space": "المساحة",
- "space-description": "مرئي لأعضاء هذه المساحة"
+ "space": "الأعضاء",
+ "space-description": "كل من في {{space}}"
},
"share": {
"active-links": "روابط المشاركة النشطة",
@@ -287,15 +287,7 @@
"parent-load-error": "تعذر تحميل المذكرة الأصلية.",
"parent-unavailable": "المذكرة الأصلية غير متوفرة",
"parent-unavailable-description": "ربما تم حذفها أو ربما لم يعد لديك صلاحية الوصول إليها.",
- "move": {
- "title": "نقل إلى مساحة",
- "description": "اختر مكان هذه المذكرة ومن يمكنه قراءتها.",
- "unassigned": "غير مُخصصة",
- "confirm": "نقل",
- "success": "تم نقل المذكرة",
- "space-audience": "سيتمكن أعضاء {{space}} من قراءة هذه المذكرة.",
- "history": "تبقى التفاعلات الموجودة مرتبطة بهذه المذكرة. تحتفظ التعليقات والمذكرات المرتبطة بقواعد الوصول الخاصة بها."
- },
+ "moved": "تم نقل المذكرة",
"back-to": "العودة إلى {{source}}",
"count-memos-updated-in-date": "{{count}} {{memos}} تم التحديث في {{date}}",
"connections": "الاتصالات",
@@ -1002,7 +994,8 @@
"create-success": "تم إنشاء المساحة",
"creator-admin-note": "ستصبح أول مدير.",
"current": "مساحة",
- "no-space": "بلا مساحة",
+ "add-to": "إضافة إلى مساحة",
+ "remove-from": "إزالة من {{space}}",
"custom-id-conflict": "هذه المساحة UID مُستخدمة بالفعل.",
"custom-id-help": "مُستخدمة في الروابط وطلبات API. لا يمكن تغييرها لاحقًا. استخدم من 1 إلى 36 حرفًا أو رقمًا أو واصلة ASCII؛ لا تبدأ أو تنتهي بواصلة.",
"custom-id-invalid": "استخدم من 1 إلى 36 حرفًا أو رقمًا أو واصلة ASCII، بدون واصلة في البداية أو النهاية.",
diff --git a/web/src/locales/az.json b/web/src/locales/az.json
index 394b469f2..b8b4dd6d2 100644
--- a/web/src/locales/az.json
+++ b/web/src/locales/az.json
@@ -328,15 +328,7 @@
"parent-load-error": "İlkin memonu yükləmək mümkün olmadı.",
"parent-unavailable": "İlkin memo əlçatan deyil",
"parent-unavailable-description": "Silinmiş ola bilər və ya artıq giriş icazəniz yoxdur.",
- "move": {
- "title": "Məkana köçür",
- "description": "Bu memonun yerini və onu kimin oxuya biləcəyini seçin.",
- "unassigned": "Təyin edilməyib",
- "confirm": "Köçür",
- "success": "Memo köçürüldü",
- "space-audience": "{{space}} məkanının üzvləri bu memonu oxuya biləcəklər.",
- "history": "Mövcud reaksiyalar bu memo ilə qalır. Şərhlər və əlaqəli memolar öz giriş qaydalarını saxlayır."
- },
+ "moved": "Memo köçürüldü",
"back-to": "{{source}} bölməsinə qayıt",
"click-to-show-sensitive-content": "Həssas məzmunu göstərmək üçün klikləyin",
"comment": {
@@ -416,8 +408,8 @@
"protected-description": "Daxil olmuş istifadəçilərə görünür",
"public": "İctimai",
"public-description": "Hamıya görünür",
- "space": "Sahə",
- "space-description": "Bu sahənin üzvlərinə görünür"
+ "space": "Üzvlər",
+ "space-description": "{{space}} daxilində hamı"
}
},
"message": {
@@ -998,7 +990,8 @@
"create-success": "Sahə yaradıldı",
"creator-admin-note": "Siz ilk admin olacaqsınız.",
"current": "Sahə",
- "no-space": "Məkan yoxdur",
+ "add-to": "Məkana əlavə et",
+ "remove-from": "{{space}} məkanından çıxar",
"custom-id-conflict": "Bu Sahə UID-i artıq istifadədədir.",
"custom-id-help": "Keçidlərdə və API sorğularında istifadə olunur. Sonradan dəyişdirilə bilməz. 1–36 ASCII hərf, rəqəm və ya defis işlədin; defislə başlamayın və bitirməyin.",
"custom-id-invalid": "1–36 ASCII hərf, rəqəm və ya defis işlədin; əvvəldə və sonda defis olmasın.",
diff --git a/web/src/locales/bg.json b/web/src/locales/bg.json
index 52e945702..4f1f01f5e 100644
--- a/web/src/locales/bg.json
+++ b/web/src/locales/bg.json
@@ -330,23 +330,15 @@
"private-description": "Видимо само за вас",
"protected-description": "Видимо за влезли потребители",
"public-description": "Видимо за всички",
- "space": "Пространство",
- "space-description": "Видимо за членовете на това пространство"
+ "space": "Членове",
+ "space-description": "Всички в {{space}}"
},
"new-badge": "Нов",
"parent-loading": "Зареждане на оригиналната бележка…",
"parent-load-error": "Не можа да се зареди оригиналната бележка.",
"parent-unavailable": "Оригиналната бележка не е налична",
"parent-unavailable-description": "Възможно е да е била изтрита или вече да нямате достъп.",
- "move": {
- "title": "Преместване в пространство",
- "description": "Изберете къде принадлежи тази бележка и кой може да я чете.",
- "unassigned": "Неприсвоена",
- "confirm": "Преместване",
- "success": "Бележката е преместена",
- "space-audience": "Членовете на {{space}} ще могат да четат тази бележка.",
- "history": "Съществуващите реакции остават с тази бележка. Коментарите и свързаните бележки запазват свои собствени правила за достъп."
- },
+ "moved": "Бележката е преместена",
"back-to": "Обратно към {{source}}",
"connections": "Връзки",
"grid-compact-hint": "Мрежовите оформления винаги използват компактни карти.",
@@ -1002,7 +994,8 @@
"create-success": "Пространството е създадено",
"creator-admin-note": "Вие ще станете първият администратор.",
"current": "Пространство",
- "no-space": "Без пространство",
+ "add-to": "Добавяне към пространство",
+ "remove-from": "Премахване от {{space}}",
"custom-id-conflict": "Това пространство UID вече се използва.",
"custom-id-help": "Използва се във връзки и API заявки. Не може да се промени по-късно. Използвайте 1–36 ASCII букви, цифри или тирета; не започвайте и не завършвайте с тире.",
"custom-id-invalid": "Използвайте 1–36 ASCII букви, цифри или тирета, без тире в началото или края.",
diff --git a/web/src/locales/ca.json b/web/src/locales/ca.json
index c765fdde7..9ed48c61d 100644
--- a/web/src/locales/ca.json
+++ b/web/src/locales/ca.json
@@ -284,8 +284,8 @@
"private-description": "Només visible per a tu",
"protected-description": "Visible per als usuaris que hagin iniciat sessió",
"public-description": "Visible per a tothom",
- "space": "Espai",
- "space-description": "Visible per als membres d'aquest espai"
+ "space": "Membres",
+ "space-description": "Tothom a {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} actualitzat a {{date}}",
"newest-first": "El més nou primer",
@@ -300,15 +300,7 @@
"parent-load-error": "No s'ha pogut carregar la nota original.",
"parent-unavailable": "Nota original no disponible",
"parent-unavailable-description": "Potser s'ha suprimit o ja no hi tens accés.",
- "move": {
- "title": "Mou a l'espai",
- "description": "Tria on pertany aquesta nota i qui la pot llegir.",
- "unassigned": "Sense assignar",
- "confirm": "Mou",
- "success": "Nota moguda",
- "space-audience": "Els membres de {{space}} podran llegir aquesta nota.",
- "history": "Les reaccions existents es mantenen amb aquesta nota. Els comentaris i les notes enllaçades mantenen les seves pròpies regles d'accés."
- },
+ "moved": "Nota moguda",
"back-to": "Torna a {{source}}",
"connections": "Connexions",
"grid-compact-hint": "Els dissenys de quadrícula sempre utilitzen targetes compactes.",
@@ -1002,7 +994,8 @@
"create-success": "Espai creat",
"creator-admin-note": "Et convertiràs en el primer administrador.",
"current": "Espai",
- "no-space": "Sense espai",
+ "add-to": "Afegeix a un espai",
+ "remove-from": "Treu de {{space}}",
"custom-id-conflict": "Aquest espai UID ja està en ús.",
"custom-id-help": "S'utilitza en enllaços i sol·licituds API. No es pot canviar més tard. Utilitzeu 1–36 ASCII lletres, números o guions; no comenceu ni acabeu amb un guió.",
"custom-id-invalid": "Utilitzeu 1–36 ASCII lletres, números o guions, sense un guió al principi o al final.",
diff --git a/web/src/locales/cs.json b/web/src/locales/cs.json
index 0d25090a6..add9d55c8 100644
--- a/web/src/locales/cs.json
+++ b/web/src/locales/cs.json
@@ -284,8 +284,8 @@
"private-description": "Viditelné pouze pro vás",
"protected-description": "Viditelné pro přihlášené uživatele",
"public-description": "Viditelné pro všechny",
- "space": "Prostor",
- "space-description": "Viditelné pro členy tohoto prostoru"
+ "space": "Členové",
+ "space-description": "Všichni v {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} aktualizováno na {{date}}",
"newest-first": "Nejdříve nejnovější",
@@ -300,15 +300,7 @@
"parent-load-error": "Nepodařilo se načíst původní poznámku.",
"parent-unavailable": "Původní poznámka není k dispozici",
"parent-unavailable-description": "Možná byla smazána nebo k ní již nemáte přístup.",
- "move": {
- "title": "Přesunout do prostoru",
- "description": "Vyberte, kam tato poznámka patří a kdo ji může číst.",
- "unassigned": "Nepřiřazeno",
- "confirm": "Přesunout",
- "success": "Poznámka přesunuta",
- "space-audience": "Členové {{space}} si budou moci tuto poznámku přečíst.",
- "history": "Stávající reakce s touto poznámkou zůstávají. Komentáře a propojené poznámky si zachovávají vlastní pravidla přístupu."
- },
+ "moved": "Poznámka přesunuta",
"back-to": "Zpět na {{source}}",
"connections": "Připojení",
"grid-compact-hint": "Mřížkové rozvržení vždy používá kompaktní karty.",
@@ -1002,7 +994,8 @@
"create-success": "Prostor vytvořen",
"creator-admin-note": "Stanete se prvním administrátorem.",
"current": "Prostor",
- "no-space": "Bez prostoru",
+ "add-to": "Přidat do prostoru",
+ "remove-from": "Odebrat z {{space}}",
"custom-id-conflict": "Tento prostor UID je již používán.",
"custom-id-help": "Používá se v odkazech a požadavcích API. Později to nelze změnit. Používejte 1–36 ASCII písmen, číslic nebo pomlček; nezačínejte ani nekončete pomlčkou.",
"custom-id-invalid": "Používejte 1–36 ASCII písmen, číslic nebo pomlček bez pomlčky na začátku nebo na konci.",
diff --git a/web/src/locales/da.json b/web/src/locales/da.json
index cb61bf89c..5b612dd93 100644
--- a/web/src/locales/da.json
+++ b/web/src/locales/da.json
@@ -330,23 +330,15 @@
"private-description": "Kun synlig for dig",
"protected-description": "Synlig for brugere, der er logget ind",
"public-description": "Synlig for alle",
- "space": "Rum",
- "space-description": "Synlig for medlemmer af dette rum"
+ "space": "Medlemmer",
+ "space-description": "Alle i {{space}}"
},
"new-badge": "Ny",
"parent-loading": "Indlæser originalt notat…",
"parent-load-error": "Kunne ikke indlæse det originale notat.",
"parent-unavailable": "Originalt notat er ikke tilgængeligt",
"parent-unavailable-description": "Det er muligvis blevet slettet, eller du har muligvis ikke længere adgang.",
- "move": {
- "title": "Flyt til rum",
- "description": "Vælg, hvor dette notat hører hjemme, og hvem der kan læse det.",
- "unassigned": "Ikke tildelt",
- "confirm": "Flyt",
- "success": "Notat flyttet",
- "space-audience": "Medlemmer af {{space}} vil kunne læse dette notat.",
- "history": "Eksisterende reaktioner forbliver i dette notat. Kommentarer og linkede notater beholder deres egne adgangsregler."
- },
+ "moved": "Notat flyttet",
"back-to": "Tilbage til {{source}}",
"connections": "Forbindelser",
"grid-compact-hint": "Gitterlayout bruger altid kompakte kort.",
@@ -1002,7 +994,8 @@
"create-success": "Rum oprettet",
"creator-admin-note": "Du bliver den første administrator.",
"current": "Rum",
- "no-space": "Intet rum",
+ "add-to": "Føj til rum",
+ "remove-from": "Fjern fra {{space}}",
"custom-id-conflict": "Dette rum UID er allerede i brug.",
"custom-id-help": "Bruges i links og API anmodninger. Det kan ikke ændres senere. Brug 1–36 ASCII bogstaver, tal eller bindestreger; start eller slut ikke med en bindestreg.",
"custom-id-invalid": "Brug 1–36 ASCII bogstaver, tal eller bindestreger uden en bindestreg i begyndelsen eller slutningen.",
diff --git a/web/src/locales/de.json b/web/src/locales/de.json
index c071f2094..c27fd7be4 100644
--- a/web/src/locales/de.json
+++ b/web/src/locales/de.json
@@ -284,8 +284,8 @@
"private-description": "Nur für Sie sichtbar",
"protected-description": "Für angemeldete Benutzer sichtbar",
"public-description": "Für alle sichtbar",
- "space": "Bereich",
- "space-description": "Für Mitglieder dieses Bereichs sichtbar"
+ "space": "Mitglieder",
+ "space-description": "Alle in {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} aktualisiert auf {{date}}",
"newest-first": "Das Neueste zuerst",
@@ -300,15 +300,7 @@
"parent-load-error": "Original-Memo konnte nicht geladen werden.",
"parent-unavailable": "Original-Memo nicht verfügbar",
"parent-unavailable-description": "Es wurde möglicherweise gelöscht oder Sie haben keinen Zugriff mehr darauf.",
- "move": {
- "title": "In Bereich verschieben",
- "description": "Wählen Sie, wo dieses Memo hingehört und wer es lesen kann.",
- "unassigned": "Nicht zugewiesen",
- "confirm": "Verschieben",
- "success": "Memo verschoben",
- "space-audience": "Mitglieder von {{space}} können dieses Memo lesen.",
- "history": "Vorhandene Reaktionen bleiben diesem Memo zugeordnet. Kommentare und verknüpfte Memos behalten ihre eigenen Zugriffsregeln."
- },
+ "moved": "Memo verschoben",
"back-to": "Zurück zu {{source}}",
"connections": "Verbindungen",
"grid-compact-hint": "Rasterlayouts verwenden immer kompakte Karten.",
@@ -1002,7 +994,8 @@
"create-success": "Bereich erstellt",
"creator-admin-note": "Sie werden der erste Administrator.",
"current": "Bereich",
- "no-space": "Kein Bereich",
+ "add-to": "Zu Bereich hinzufügen",
+ "remove-from": "Aus {{space}} entfernen",
"custom-id-conflict": "Diese Bereichs-UID wird bereits verwendet.",
"custom-id-help": "Wird in Links und API-Anfragen verwendet. Kann später nicht geändert werden. Verwenden Sie 1–36 ASCII Buchstaben, Zahlen oder Bindestriche; beginnen oder enden Sie nicht mit einem Bindestrich.",
"custom-id-invalid": "Verwenden Sie 1–36 ASCII Buchstaben, Zahlen oder Bindestriche, ohne Bindestrich am Anfang oder Ende.",
diff --git a/web/src/locales/el.json b/web/src/locales/el.json
index 50a129a67..6980a94df 100644
--- a/web/src/locales/el.json
+++ b/web/src/locales/el.json
@@ -330,23 +330,15 @@
"private-description": "Ορατό μόνο σε εσάς",
"protected-description": "Ορατό σε συνδεδεμένους χρήστες",
"public-description": "Ορατό σε όλους",
- "space": "Χώρος",
- "space-description": "Ορατό στα μέλη αυτού του χώρου"
+ "space": "Μέλη",
+ "space-description": "Όλοι στο {{space}}"
},
"new-badge": "Νέος",
"parent-loading": "Φόρτωση αρχικού σημειώματος…",
"parent-load-error": "Δεν ήταν δυνατή η φόρτωση του αρχικού σημειώματος.",
"parent-unavailable": "Το αρχικό σημειώμα δεν είναι διαθέσιμο",
"parent-unavailable-description": "Ενδέχεται να έχει διαγραφεί ή να μην έχετε πλέον πρόσβαση.",
- "move": {
- "title": "Μετακίνηση στον χώρο",
- "description": "Επιλέξτε πού ανήκει αυτό το σημειώμα και ποιος μπορεί να το διαβάσει.",
- "unassigned": "Δεν έχει ανατεθεί",
- "confirm": "Μετακίνηση",
- "success": "Το σημειώμα μετακινήθηκε",
- "space-audience": "Τα μέλη του {{space}} θα μπορούν να διαβάσουν αυτό το σημειώμα.",
- "history": "Οι υπάρχουσες αντιδράσεις παραμένουν με αυτό το σημειώμα. Τα σχόλια και τα συνδεδεμένα σημειώματα διατηρούν τους δικούς τους κανόνες πρόσβασης."
- },
+ "moved": "Το σημειώμα μετακινήθηκε",
"back-to": "Επιστροφή στο {{source}}",
"connections": "Συνδέσεις",
"grid-compact-hint": "Οι διατάξεις πλέγματος χρησιμοποιούν πάντα συμπαγείς κάρτες.",
@@ -1002,7 +994,8 @@
"create-success": "Ο χώρος δημιουργήθηκε",
"creator-admin-note": "Θα γίνετε ο πρώτος διαχειριστής.",
"current": "Χώρος",
- "no-space": "Χωρίς χώρο",
+ "add-to": "Προσθήκη σε χώρο",
+ "remove-from": "Αφαίρεση από {{space}}",
"custom-id-conflict": "Αυτός ο Χώρος UID χρησιμοποιείται ήδη.",
"custom-id-help": "Χρησιμοποιείται σε συνδέσμους και API αιτήματα. Δεν μπορεί να αλλάξει αργότερα. Χρησιμοποιήστε γράμματα, αριθμούς ή παύλες 1–36 ASCII. Μην ξεκινάτε ή τελειώνετε με παύλα.",
"custom-id-invalid": "Χρησιμοποιήστε γράμματα, αριθμούς ή παύλες 1–36 ASCII, χωρίς παύλα στην αρχή ή στο τέλος.",
diff --git a/web/src/locales/en-GB.json b/web/src/locales/en-GB.json
index d6f92ffe0..7bd83b90e 100644
--- a/web/src/locales/en-GB.json
+++ b/web/src/locales/en-GB.json
@@ -281,11 +281,11 @@
"private": "Private",
"protected": "Protected",
"public": "Public",
- "private-description": "Only visible to you",
- "protected-description": "Visible to signed-in users",
- "public-description": "Visible to everyone",
- "space": "Space",
- "space-description": "Visible to members of this space"
+ "private-description": "Only you",
+ "protected-description": "Anyone signed in",
+ "public-description": "Anyone, even signed out",
+ "space": "Members",
+ "space-description": "Everyone in {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} updated on {{date}}",
"newest-first": "Newest first",
@@ -299,15 +299,7 @@
"parent-load-error": "Couldn’t load the original memo.",
"parent-unavailable": "Original memo unavailable",
"parent-unavailable-description": "It may have been deleted or you may no longer have access.",
- "move": {
- "title": "Move to Space",
- "description": "Choose where this memo belongs and who can read it.",
- "unassigned": "Unassigned",
- "confirm": "Move",
- "success": "Memo moved",
- "space-audience": "Members of {{space}} will be able to read this memo.",
- "history": "Existing reactions stay with this memo. Comments and linked memos keep their own access rules."
- },
+ "moved": "Memo moved",
"back-to": "Back to {{source}}",
"connections": "Connections",
"grid-compact-hint": "Grid layouts always use compact cards.",
@@ -1002,7 +994,8 @@
"create-success": "Space created",
"creator-admin-note": "You'll become the first admin.",
"current": "Space",
- "no-space": "No space",
+ "add-to": "Add to space",
+ "remove-from": "Remove from {{space}}",
"custom-id-conflict": "This Space UID is already in use.",
"custom-id-help": "Used in links and API requests. It can't be changed later. Use 1–36 ASCII letters, numbers, or hyphens; don't start or end with a hyphen.",
"custom-id-invalid": "Use 1–36 ASCII letters, numbers, or hyphens, without a hyphen at the beginning or end.",
diff --git a/web/src/locales/en.json b/web/src/locales/en.json
index ac9c5c164..a66445df1 100644
--- a/web/src/locales/en.json
+++ b/web/src/locales/en.json
@@ -328,15 +328,7 @@
"parent-load-error": "Couldn’t load the original memo.",
"parent-unavailable": "Original memo unavailable",
"parent-unavailable-description": "It may have been deleted or you may no longer have access.",
- "move": {
- "title": "Move to Space",
- "description": "Choose where this memo belongs and who can read it.",
- "unassigned": "Unassigned",
- "confirm": "Move",
- "success": "Memo moved",
- "space-audience": "Members of {{space}} will be able to read this memo.",
- "history": "Existing reactions stay with this memo. Comments and linked memos keep their own access rules."
- },
+ "moved": "Memo moved",
"back-to": "Back to {{source}}",
"click-to-show-sensitive-content": "Click to show sensitive content",
"comment": {
@@ -411,13 +403,13 @@
"view-options": "View options",
"visibility": {
"private": "Private",
- "private-description": "Only visible to you",
+ "private-description": "Only you",
"protected": "Protected",
- "protected-description": "Visible to signed-in users",
+ "protected-description": "Anyone signed in",
"public": "Public",
- "public-description": "Visible to everyone",
- "space": "Space",
- "space-description": "Visible to members of this space"
+ "public-description": "Anyone, even signed out",
+ "space": "Members",
+ "space-description": "Everyone in {{space}}"
}
},
"message": {
@@ -998,7 +990,8 @@
"create-success": "Space created",
"creator-admin-note": "You'll become the first admin.",
"current": "Space",
- "no-space": "No space",
+ "add-to": "Add to space",
+ "remove-from": "Remove from {{space}}",
"custom-id-conflict": "This Space UID is already in use.",
"custom-id-help": "Used in links and API requests. It can't be changed later. Use 1–36 ASCII letters, numbers, or hyphens; don't start or end with a hyphen.",
"custom-id-invalid": "Use 1–36 ASCII letters, numbers, or hyphens, without a hyphen at the beginning or end.",
diff --git a/web/src/locales/es.json b/web/src/locales/es.json
index 23e13c7a5..fe6c313c8 100644
--- a/web/src/locales/es.json
+++ b/web/src/locales/es.json
@@ -284,8 +284,8 @@
"private-description": "Solo visible para ti",
"protected-description": "Visible para usuarios registrados",
"public-description": "Visible para todos",
- "space": "Espacio",
- "space-description": "Visible para los miembros de este espacio"
+ "space": "Miembros",
+ "space-description": "Todos en {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} actualizado en {{date}}",
"newest-first": "Lo nuevo primero",
@@ -300,15 +300,7 @@
"parent-load-error": "No se pudo cargar el memorándum original.",
"parent-unavailable": "Memorándum original no disponible.",
"parent-unavailable-description": "Es posible que se haya eliminado o que ya no tengas acceso.",
- "move": {
- "title": "Mover a un espacio",
- "description": "Elige dónde pertenece este memorándum y quién puede leerlo.",
- "unassigned": "Sin asignar.",
- "confirm": "Mover.",
- "success": "Memorándum movido.",
- "space-audience": "Los miembros de {{space}} podrán leer este memorándum.",
- "history": "Las reacciones existentes permanecen con este memorándum. Los comentarios y las notas vinculadas conservan sus propias reglas de acceso."
- },
+ "moved": "Memorándum movido.",
"back-to": "Volver a {{source}}",
"connections": "Conexiones",
"grid-compact-hint": "Los diseños de cuadrícula siempre utilizan tarjetas compactas.",
@@ -1002,7 +994,8 @@
"create-success": "Espacio creado",
"creator-admin-note": "Serás el primer administrador.",
"current": "Espacio",
- "no-space": "Sin espacio",
+ "add-to": "Añadir a un espacio",
+ "remove-from": "Quitar de {{space}}",
"custom-id-conflict": "Este espacio UID ya está en uso.",
"custom-id-help": "Se usa en enlaces y solicitudes API. No se puede modificar posteriormente. Use de 1 a 36 ASCII letras, números o guiones; no comience ni termine con un guion.",
"custom-id-invalid": "Use de 1 a 36 ASCII letras, números o guiones, sin guion al principio ni al final.",
diff --git a/web/src/locales/et.json b/web/src/locales/et.json
index d5b9db21b..9c7ef9a85 100644
--- a/web/src/locales/et.json
+++ b/web/src/locales/et.json
@@ -330,23 +330,15 @@
"private-description": "Nähtav ainult teile",
"protected-description": "Nähtav sisselogitud kasutajatele",
"public-description": "Nähtav kõigile",
- "space": "Ruum",
- "space-description": "Nähtav selle ruumi liikmetele"
+ "space": "Liikmed",
+ "space-description": "Kõik ruumis {{space}}"
},
"new-badge": "Uus",
"parent-loading": "Algse memo laadimine…",
"parent-load-error": "Algse memo laadimine ebaõnnestus.",
"parent-unavailable": "Algne memo pole saadaval",
"parent-unavailable-description": "See võib olla kustutatud või teil pole enam juurdepääsu.",
- "move": {
- "title": "Teisalda ruumi",
- "description": "Valige, kuhu see memo kuulub ja kes seda lugeda saab.",
- "unassigned": "Määramata",
- "confirm": "Teisalda",
- "success": "Memo teisaldatud",
- "space-audience": "Ruumi {{space}} liikmed saavad seda memot lugeda.",
- "history": "Olemasolevad reaktsioonid jäävad selle memo juurde. Kommentaaridel ja lingitud memodel säilivad oma juurdepääsureeglid."
- },
+ "moved": "Memo teisaldatud",
"back-to": "Tagasi {{source}} juurde",
"connections": "Ühendused",
"grid-compact-hint": "Ruudustikupaigutused kasutavad alati kompaktseid kaarte.",
@@ -1002,7 +994,8 @@
"create-success": "Ruum loodud",
"creator-admin-note": "Sinust saab esimene administraator.",
"current": "Ruum",
- "no-space": "Ruum puudub",
+ "add-to": "Lisa ruumi",
+ "remove-from": "Eemalda ruumist {{space}}",
"custom-id-conflict": "See ruum UID on juba kasutusel.",
"custom-id-help": "Kasutatakse linkides ja API päringutes. Seda ei saa hiljem muuta. Kasutage 1–36 ASCII tähte, numbrit või sidekriipsu; ärge alustage ega lõpetage sidekriipsuga.",
"custom-id-invalid": "Kasutage 1–36 ASCII tähte, numbrit või sidekriipsu, ilma sidekriipsuta alguses ega lõpus.",
diff --git a/web/src/locales/fa.json b/web/src/locales/fa.json
index d50bd4d8a..70737f8bb 100644
--- a/web/src/locales/fa.json
+++ b/web/src/locales/fa.json
@@ -252,8 +252,8 @@
"private-description": "فقط برای شما قابل مشاهده است",
"protected-description": "قابل مشاهده برای کاربران وارد شده",
"public-description": "قابل مشاهده برای همه",
- "space": "فضا",
- "space-description": "قابل مشاهده برای اعضای این فضا"
+ "space": "اعضا",
+ "space-description": "همه در {{space}}"
},
"share": {
"active-links": "لینک های اشتراک گذاری فعال",
@@ -287,15 +287,7 @@
"parent-load-error": "یادداشت اصلی بارگیری نشد.",
"parent-unavailable": "یادداشت اصلی در دسترس نیست",
"parent-unavailable-description": "ممکن است حذف شده باشد یا دیگر دسترسی نداشته باشید.",
- "move": {
- "title": "انتقال به فضا",
- "description": "انتخاب کنید که این یادداشت متعلق به کجا باشد و چه کسی می‌تواند آن را بخواند.",
- "unassigned": "اختصاص داده نشده",
- "confirm": "انتقال",
- "success": "یادداشت منتقل شد",
- "space-audience": "اعضای {{space}} می‌توانند این یادداشت را بخوانند.",
- "history": "واکنش‌های موجود در این یادداشت باقی می‌مانند. نظرات و یادداشت‌های پیوند داده شده قوانین دسترسی خود را حفظ می‌کنند."
- },
+ "moved": "یادداشت منتقل شد",
"back-to": "بازگشت به {{source}}",
"count-memos-updated-in-date": "{{count}} {{memos}} به‌روزرسانی شده در {{date}}",
"connections": "اتصالات",
@@ -1002,7 +994,8 @@
"create-success": "فضا ایجاد شد",
"creator-admin-note": "شما اولین مدیر خواهید شد.",
"current": "فضا",
- "no-space": "بدون فضا",
+ "add-to": "افزودن به فضا",
+ "remove-from": "حذف از {{space}}",
"custom-id-conflict": "این فضا UID در حال حاضر استفاده می‌شود.",
"custom-id-help": "در لینک‌ها و درخواست‌های API استفاده می‌شود. بعداً قابل تغییر نیست. از حروف، اعداد یا خط فاصله 1 تا 36 ASCII استفاده کنید؛ با خط فاصله شروع یا پایان ندهید.",
"custom-id-invalid": "از حروف، اعداد یا خط فاصله 1 تا 36 ASCII استفاده کنید، بدون خط فاصله در ابتدا یا انتها.",
diff --git a/web/src/locales/fi.json b/web/src/locales/fi.json
index 8181c580d..915308cc3 100644
--- a/web/src/locales/fi.json
+++ b/web/src/locales/fi.json
@@ -330,23 +330,15 @@
"private-description": "Näkyy vain sinulle",
"protected-description": "Näkyy kirjautuneille käyttäjille",
"public-description": "Näkyy kaikille",
- "space": "Tila",
- "space-description": "Näkyy tämän tilan jäsenille"
+ "space": "Jäsenet",
+ "space-description": "Kaikki tilassa {{space}}"
},
"new-badge": "Uusi",
"parent-loading": "Ladataan alkuperäistä muistiota…",
"parent-load-error": "Alkuperäistä muistiota ei voitu ladata.",
"parent-unavailable": "Alkuperäinen muistio ei ole käytettävissä",
"parent-unavailable-description": "Se on ehkä poistettu tai sinulla ei ehkä enää ole siihen pääsyä.",
- "move": {
- "title": "Siirrä tilaan",
- "description": "Valitse, mihin tämä muistio kuuluu ja kuka voi lukea sen.",
- "unassigned": "Ei määritetty",
- "confirm": "Siirrä",
- "success": "Muistio siirretty",
- "space-audience": "Ryhmän {{space}} jäsenet voivat lukea tämän muistion.",
- "history": "Olemassa olevat reaktiot pysyvät tässä muistiossa. Kommentit ja linkitetyt muistiot säilyttävät omat käyttöoikeussääntönsä."
- },
+ "moved": "Muistio siirretty",
"back-to": "Takaisin kohtaan {{source}}",
"connections": "Yhteydet",
"grid-compact-hint": "Ruudukkoasetteluissa käytetään aina kompakteja kortteja.",
@@ -1002,7 +994,8 @@
"create-success": "Tila luotu",
"creator-admin-note": "Sinusta tulee ensimmäinen ylläpitäjä.",
"current": "Tila",
- "no-space": "Ei tilaa",
+ "add-to": "Lisää tilaan",
+ "remove-from": "Poista tilasta {{space}}",
"custom-id-conflict": "Tämä tila UID on jo käytössä.",
"custom-id-help": "Käytetään linkeissä ja API-pyynnöissä. Sitä ei voi muuttaa myöhemmin. Käytä 1–36 ASCII kirjainta, numeroa tai yhdysmerkkiä; älä aloita tai lopeta yhdysmerkillä.",
"custom-id-invalid": "Käytä 1–36 ASCII kirjainta, numeroa tai yhdysmerkkiä ilman yhdysmerkkiä alussa tai lopussa.",
diff --git a/web/src/locales/fr.json b/web/src/locales/fr.json
index dc0d5bf6c..2687bf582 100644
--- a/web/src/locales/fr.json
+++ b/web/src/locales/fr.json
@@ -284,8 +284,8 @@
"private-description": "Visible uniquement pour vous",
"protected-description": "Visible pour les utilisateurs connectés",
"public-description": "Visible pour tous",
- "space": "Espace",
- "space-description": "Visible pour les membres de cet espace"
+ "space": "Membres",
+ "space-description": "Tout le monde dans {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} mis à jour sur {{date}}",
"newest-first": "Le plus récent en premier",
@@ -300,15 +300,7 @@
"parent-load-error": "Impossible de charger le mémo original.",
"parent-unavailable": "Mémo original indisponible.",
"parent-unavailable-description": "Il a peut-être été supprimé ou vous n'y avez plus accès.",
- "move": {
- "title": "Déplacer vers l'espace",
- "description": "Choisissez l'emplacement de ce mémo et les personnes autorisées à le lire.",
- "unassigned": "Non attribué",
- "confirm": "Déplacer",
- "success": "Mémo déplacé",
- "space-audience": "Les membres de {{space}} pourront lire ce mémo.",
- "history": "Les réactions existantes sont conservées pour ce mémo. Les commentaires et les notes liées ont leurs propres règles d'accès."
- },
+ "moved": "Mémo déplacé",
"back-to": "Retour à {{source}}",
"connections": "Connexions",
"grid-compact-hint": "Les mises en page en grille utilisent toujours des cartes compactes.",
@@ -1002,7 +994,8 @@
"create-success": "Espace créé",
"creator-admin-note": "Vous serez le premier administrateur.",
"current": "Espace",
- "no-space": "Aucun espace",
+ "add-to": "Ajouter à un espace",
+ "remove-from": "Retirer de {{space}}",
"custom-id-conflict": "Cet espace UID est déjà utilisé.",
"custom-id-help": "Utilisé dans les liens et les requêtes API. Il ne peut pas être modifié ultérieurement. Utilisez 1 à 36 ASCII lettres, chiffres ou tirets ; ne commencez ni ne terminez par un tiret.",
"custom-id-invalid": "Utilisez 1 à 36 ASCII lettres, chiffres ou tirets, sans tiret au début ni à la fin.",
diff --git a/web/src/locales/gl.json b/web/src/locales/gl.json
index 04c434e32..8fe823765 100644
--- a/web/src/locales/gl.json
+++ b/web/src/locales/gl.json
@@ -284,8 +284,8 @@
"private-description": "Só visible para ti",
"protected-description": "Visible para os usuarios que iniciaron sesión",
"public-description": "Visible para todos",
- "space": "Espazo",
- "space-description": "Visible para os membros deste espazo"
+ "space": "Membros",
+ "space-description": "Todos en {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} actualizado en {{date}}",
"newest-first": "O máis novo primeiro",
@@ -300,15 +300,7 @@
"parent-load-error": "Non se puido cargar a nota orixinal.",
"parent-unavailable": "Nota orixinal non dispoñible",
"parent-unavailable-description": "Pode que se eliminase ou que xa non teñas acceso.",
- "move": {
- "title": "Mover ao espazo",
- "description": "Escolle onde pertence esta nota e quen pode lela.",
- "unassigned": "Sen asignar",
- "confirm": "Mover",
- "success": "Nota movida",
- "space-audience": "Os membros de {{space}} poderán ler esta nota.",
- "history": "As reaccións existentes permanecen con esta nota. Os comentarios e as notas vinculadas manteñen as súas propias regras de acceso."
- },
+ "moved": "Nota movida",
"back-to": "Volver a {{source}}",
"connections": "Conexións",
"grid-compact-hint": "Os deseños de cuadrícula sempre usan tarxetas compactas.",
@@ -1002,7 +994,8 @@
"create-success": "Espazo creado",
"creator-admin-note": "Converteraste no primeiro administrador.",
"current": "Espazo",
- "no-space": "Sen espazo",
+ "add-to": "Engadir a un espazo",
+ "remove-from": "Quitar de {{space}}",
"custom-id-conflict": "Este espazo UID xa está en uso.",
"custom-id-help": "Úsase en ligazóns e solicitudes API. Non se pode cambiar máis tarde. Usa de 1 a 36 ASCII letras, números ou guións; non comeces nin remates cun guión.",
"custom-id-invalid": "Usa de 1 a 36 ASCII letras, números ou guións, sen un guión ao principio ou ao final.",
diff --git a/web/src/locales/he.json b/web/src/locales/he.json
index 49b0470de..be88433fc 100644
--- a/web/src/locales/he.json
+++ b/web/src/locales/he.json
@@ -373,22 +373,14 @@
"protected-description": "גלוי למשתמשים מחוברים",
"public": "ציבורי",
"public-description": "גלוי לכולם",
- "space": "מרחב",
- "space-description": "גלוי לחברי מרחב זה"
+ "space": "חברים",
+ "space-description": "כל מי שב-{{space}}"
},
"parent-loading": "טוען את התזכיר המקורי…",
"parent-load-error": "לא ניתן היה לטעון את התזכיר המקורי.",
"parent-unavailable": "התזכיר המקורי אינו זמין",
"parent-unavailable-description": "ייתכן שהוא נמחק או שאין לך עוד גישה.",
- "move": {
- "title": "העברה למרחב",
- "description": "בחר היכן שייך התזכיר הזה ומי יכול לקרוא אותו.",
- "unassigned": "לא הוקצה",
- "confirm": "העברה",
- "success": "התזכיר הועבר",
- "space-audience": "חברים ב-{{space}} יוכלו לקרוא את התזכיר הזה.",
- "history": "תגובות קיימות נשארות עם התזכיר הזה. תגובות ותזכירים מקושרים שומרים על כללי גישה משלהם."
- },
+ "moved": "התזכיר הועבר",
"back-to": "חזרה אל {{source}}",
"connections": "חיבורים",
"on-this-memo": "על תזכיר זה",
@@ -1002,7 +994,8 @@
"create-success": "נוצר מרחב",
"creator-admin-note": "תהפוך למנהל הראשון.",
"current": "מרחב",
- "no-space": "ללא מרחב",
+ "add-to": "הוספה למרחב",
+ "remove-from": "הסרה מ-{{space}}",
"custom-id-conflict": "מרחב זה UID כבר בשימוש.",
"custom-id-help": "משמש בקישורים ובקשות API. לא ניתן לשנותו מאוחר יותר. השתמש באותיות, מספרים או מקפים 1–36 ASCII; אין להתחיל או לסיים במקף.",
"custom-id-invalid": "השתמש באותיות, מספרים או מקפים 1–36 ASCII, ללא מקף בהתחלה או בסוף.",
diff --git a/web/src/locales/hi.json b/web/src/locales/hi.json
index c65d3a61a..f4d3c9290 100644
--- a/web/src/locales/hi.json
+++ b/web/src/locales/hi.json
@@ -252,8 +252,8 @@
"private-description": "सिर्फ़ आपको दिखेगा",
"protected-description": "साइन-इन यूज़र्स को दिखेगा",
"public-description": "सभी को दिखेगा",
- "space": "स्पेस",
- "space-description": "इस स्पेस के मेंबर्स को दिखेगा"
+ "space": "सदस्य",
+ "space-description": "{{space}} में सभी"
},
"share": {
"active-links": "सक्रिय शेयर लिंक",
@@ -287,15 +287,7 @@
"parent-load-error": "ओरिजिनल मेमो लोड नहीं हो सका.",
"parent-unavailable": "ओरिजिनल मेमो उपलब्ध नहीं है",
"parent-unavailable-description": "हो सकता है कि इसे डिलीट कर दिया गया हो या अब आपके पास एक्सेस न हो.",
- "move": {
- "title": "स्पेस में ले जाएं",
- "description": "चुनें कि यह मेमो कहां है और इसे कौन पढ़ सकता है.",
- "unassigned": "अनअसाइन किया गया",
- "confirm": "मूव",
- "success": "मेमो मूव किया गया",
- "space-audience": "{{space}} के मेंबर इस मेमो को पढ़ पाएंगे।",
- "history": "मौजूदा रिएक्शन इस मेमो के साथ रहेंगे। कमेंट और लिंक किए गए मेमो अपने खुद के एक्सेस रूल रखते हैं।"
- },
+ "moved": "मेमो मूव किया गया",
"back-to": "{{source}} पर वापस जाएं",
"count-memos-updated-in-date": "{{count}} {{memos}} को {{date}} पर अपडेट किया गया",
"connections": "कनेक्शन",
@@ -1002,7 +994,8 @@
"create-success": "स्पेस बनाया गया",
"creator-admin-note": "आप पहले एडमिन बन जाएंगे.",
"current": "स्पेस",
- "no-space": "कोई स्पेस नहीं",
+ "add-to": "स्पेस में जोड़ें",
+ "remove-from": "{{space}} से हटाएं",
"custom-id-conflict": "यह स्पेस UID पहले से इस्तेमाल में है.",
"custom-id-help": "लिंक और API रिक्वेस्ट में इस्तेमाल किया जाता है. इसे बाद में बदला नहीं जा सकता. 1–36 ASCII लेटर, नंबर या हाइफ़न का इस्तेमाल करें; हाइफ़न से शुरू या खत्म न करें.",
"custom-id-invalid": "1–36 ASCII लेटर, नंबर या हाइफ़न का इस्तेमाल करें, बिना शुरुआत या आखिर में हाइफ़न के.",
diff --git a/web/src/locales/hr.json b/web/src/locales/hr.json
index 588e0b4f0..6f4bc9b27 100644
--- a/web/src/locales/hr.json
+++ b/web/src/locales/hr.json
@@ -284,8 +284,8 @@
"private-description": "Vidljivo samo vama",
"protected-description": "Vidljivo prijavljenim korisnicima",
"public-description": "Vidljivo svima",
- "space": "Prostor",
- "space-description": "Vidljivo članovima ovog prostora"
+ "space": "Članovi",
+ "space-description": "Svi u {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} ažurirano na {{date}}",
"newest-first": "Prvo najnoviji",
@@ -300,15 +300,7 @@
"parent-load-error": "Nije moguće učitati izvornu bilješku.",
"parent-unavailable": "Izvorna bilješka nije dostupna",
"parent-unavailable-description": "Možda je izbrisana ili više nemate pristup.",
- "move": {
- "title": "Premjesti u prostor",
- "description": "Odaberite gdje ova bilješka pripada i tko je može čitati.",
- "unassigned": "Nedodijeljeno",
- "confirm": "Premjesti",
- "success": "Bilješka je premještena",
- "space-audience": "Članovi {{space}} moći će čitati ovu bilješku.",
- "history": "Postojeće reakcije ostaju s ovom bilješkom. Komentari i povezane bilješke zadržavaju vlastita pravila pristupa."
- },
+ "moved": "Bilješka je premještena",
"back-to": "Natrag na {{source}}",
"connections": "Veze",
"grid-compact-hint": "Mrežni rasporedi uvijek koriste kompaktne kartice.",
@@ -1002,7 +994,8 @@
"create-success": "Prostor stvoren",
"creator-admin-note": "Postat ćete prvi administrator.",
"current": "Prostor",
- "no-space": "Bez prostora",
+ "add-to": "Dodaj u prostor",
+ "remove-from": "Ukloni iz {{space}}",
"custom-id-conflict": "Ovaj prostor UID već se koristi.",
"custom-id-help": "Koristi se u poveznicama i API zahtjevima. Ne može se kasnije promijeniti. Koristite 1–36 ASCII slova, brojeva ili crtica; nemojte započinjati ili završavati crticom.",
"custom-id-invalid": "Koristite 1–36 ASCII slova, brojeva ili crtica, bez crtice na početku ili kraju.",
diff --git a/web/src/locales/hu.json b/web/src/locales/hu.json
index d21858ed9..7de970a1f 100644
--- a/web/src/locales/hu.json
+++ b/web/src/locales/hu.json
@@ -284,8 +284,8 @@
"private-description": "Csak Önnek látható",
"protected-description": "Bejelentkezett felhasználók számára látható",
"public-description": "Mindenki számára látható",
- "space": "Tér",
- "space-description": "A tér tagjai számára látható"
+ "space": "Tagok",
+ "space-description": "Mindenki itt: {{space}}"
},
"count-memos-updated-in-date": "{{count}} Az {{memos}} frissítve az {{date}}-en",
"newest-first": "Először a legújabb",
@@ -300,15 +300,7 @@
"parent-load-error": "Az eredeti feljegyzés nem tölthető be.",
"parent-unavailable": "Az eredeti feljegyzés nem érhető el.",
"parent-unavailable-description": "Lehet, hogy törölték, vagy már nincs hozzáférésed.",
- "move": {
- "title": "Áthelyezés a térbe.",
- "description": "Válaszd ki, hová tartozik ez a feljegyzés, és ki olvashatja el.",
- "unassigned": "Nincs hozzárendelve.",
- "confirm": "Áthelyezés.",
- "success": "Feljegyzés áthelyezve.",
- "space-audience": "A(z) {{space}} tagjai olvashatják ezt a feljegyzést.",
- "history": "A meglévő reakciók ehhez a feljegyzéshez maradnak. A megjegyzések és a kapcsolódó feljegyzések megtartják a saját hozzáférési szabályaikat."
- },
+ "moved": "Feljegyzés áthelyezve.",
"back-to": "Vissza a {{source}}-hez",
"connections": "Kapcsolatok",
"grid-compact-hint": "A rácsos elrendezések mindig kompakt kártyákat használnak.",
@@ -1002,7 +994,8 @@
"create-success": "Tér létrehozva",
"creator-admin-note": "Te leszel az első adminisztrátor.",
"current": "Tér",
- "no-space": "Nincs tér",
+ "add-to": "Hozzáadás térhez",
+ "remove-from": "Eltávolítás innen: {{space}}",
"custom-id-conflict": "Ez a tér (UID) már használatban van.",
"custom-id-help": "Hivatkozásokban és API kérésekben használatos. Később nem módosítható. Használjon 1–36 ASCII betűt, számot vagy kötőjelet; ne kezdődjön vagy végződjön kötőjellel.",
"custom-id-invalid": "Használjon 1–36 ASCII betűt, számot vagy kötőjelet, kötőjel nélkül az elején vagy a végén.",
diff --git a/web/src/locales/id.json b/web/src/locales/id.json
index 2cae3212d..c84fb9409 100644
--- a/web/src/locales/id.json
+++ b/web/src/locales/id.json
@@ -252,8 +252,8 @@
"private-description": "Hanya terlihat oleh Anda",
"protected-description": "Terlihat oleh pengguna yang masuk",
"public-description": "Terlihat oleh semua orang",
- "space": "Ruang",
- "space-description": "Terlihat oleh anggota ruang ini"
+ "space": "Anggota",
+ "space-description": "Semua di {{space}}"
},
"share": {
"active-links": "Tautan berbagi aktif",
@@ -287,15 +287,7 @@
"parent-load-error": "Tidak dapat memuat memo asli.",
"parent-unavailable": "Memo asli tidak tersedia",
"parent-unavailable-description": "Memo tersebut mungkin telah dihapus atau Anda mungkin tidak lagi memiliki akses.",
- "move": {
- "title": "Pindah ke Ruang",
- "description": "Pilih di mana memo ini berada dan siapa yang dapat membacanya.",
- "unassigned": "Tidak ditugaskan",
- "confirm": "Pindah",
- "success": "Memo dipindahkan",
- "space-audience": "Anggota {{space}} akan dapat membaca memo ini.",
- "history": "Reaksi yang sudah ada tetap ada pada memo ini. Komentar dan memo yang ditautkan tetap memiliki aturan aksesnya sendiri."
- },
+ "moved": "Memo dipindahkan",
"back-to": "Kembali ke {{source}}",
"count-memos-updated-in-date": "{{count}} {{memos}} diperbarui pada {{date}}",
"connections": "Koneksi",
@@ -1002,7 +994,8 @@
"create-success": "Ruang dibuat",
"creator-admin-note": "Anda akan menjadi admin pertama.",
"current": "Ruang",
- "no-space": "Tanpa ruang",
+ "add-to": "Tambahkan ke ruang",
+ "remove-from": "Hapus dari {{space}}",
"custom-id-conflict": "Ruang UID ini sudah digunakan.",
"custom-id-help": "Digunakan dalam tautan dan permintaan API. Tidak dapat diubah nanti. Gunakan 1–36 huruf, angka, atau tanda hubung ASCII; jangan diawali atau diakhiri dengan tanda hubung.",
"custom-id-invalid": "Gunakan 1–36 huruf, angka, atau tanda hubung ASCII, tanpa tanda hubung di awal atau akhir.",
diff --git a/web/src/locales/it.json b/web/src/locales/it.json
index 761516524..2c71d5cf2 100644
--- a/web/src/locales/it.json
+++ b/web/src/locales/it.json
@@ -284,8 +284,8 @@
"private-description": "Visibile solo a te",
"protected-description": "Visibile agli utenti che hanno effettuato l'accesso",
"public-description": "Visibile a tutti",
- "space": "Spazio",
- "space-description": "Visibile ai membri di questo spazio"
+ "space": "Membri",
+ "space-description": "Tutti in {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} aggiornato su {{date}}",
"newest-first": "Prima il più recente",
@@ -300,15 +300,7 @@
"parent-load-error": "Impossibile caricare il memo originale.",
"parent-unavailable": "Memo originale non disponibile",
"parent-unavailable-description": "Potrebbe essere stato eliminato o potresti non avere più accesso.",
- "move": {
- "title": "Sposta nello spazio",
- "description": "Scegli dove collocare questo memo e chi può leggerlo.",
- "unassigned": "Non assegnato",
- "confirm": "Sposta",
- "success": "Memo spostato",
- "space-audience": "I membri di {{space}} potranno leggere questo memo.",
- "history": "Le reazioni esistenti rimangono associate a questo memo. I commenti e i memo collegati mantengono le proprie regole di accesso."
- },
+ "moved": "Memo spostato",
"back-to": "Torna a {{source}}",
"connections": "Connessioni",
"grid-compact-hint": "I layout a griglia utilizzano sempre schede compatte.",
@@ -1002,7 +994,8 @@
"create-success": "Spazio creato",
"creator-admin-note": "Diventerai il primo amministratore.",
"current": "Spazio",
- "no-space": "Nessuno spazio",
+ "add-to": "Aggiungi a uno spazio",
+ "remove-from": "Rimuovi da {{space}}",
"custom-id-conflict": "Questo spazio UID è già in uso.",
"custom-id-help": "Utilizzato nei link e nelle richieste API. Non può essere modificato in seguito. Utilizzare da 1 a 36 ASCII lettere, numeri o trattini; non iniziare o terminare con un trattino.",
"custom-id-invalid": "Utilizzare da 1 a 36 ASCII lettere, numeri o trattini, senza trattino all'inizio o alla fine.",
diff --git a/web/src/locales/ja.json b/web/src/locales/ja.json
index 6059da842..ce7a54831 100644
--- a/web/src/locales/ja.json
+++ b/web/src/locales/ja.json
@@ -293,8 +293,8 @@
"protected-description": "サインインしたユーザーに表示",
"public": "公開メモ",
"public-description": "全員に表示",
- "space": "スペース",
- "space-description": "このスペースのメンバーに表示"
+ "space": "メンバー",
+ "space-description": "{{space}} の全員"
},
"count-memos-updated-in-date": "{{count}} {{memos}} を {{date}} に更新",
"newest-first": "新しい順",
@@ -309,15 +309,7 @@
"parent-load-error": "元のメモを読み込めませんでした。",
"parent-unavailable": "元のメモが利用できません",
"parent-unavailable-description": "削除されたか、アクセス権がなくなった可能性があります。",
- "move": {
- "title": "スペースに移動",
- "description": "このメモの保存場所と閲覧権限を持つユーザーを選択してください。",
- "unassigned": "未割り当て",
- "confirm": "移動",
- "success": "メモが移動されました",
- "space-audience": "{{space}} のメンバーがこのメモを閲覧できます。",
- "history": "既存のリアクションはこのメモに残ります。コメントとリンクされたメモは、それぞれ独自のアクセスルールが適用されます。"
- },
+ "moved": "メモが移動されました",
"back-to": "{{source}}に戻る",
"connections": "接続",
"on-this-memo": "このメモについて",
@@ -1002,7 +994,8 @@
"create-success": "スペースが作成されました",
"creator-admin-note": "あなたが最初の管理者になります。",
"current": "スペース",
- "no-space": "スペースなし",
+ "add-to": "スペースに追加",
+ "remove-from": "{{space}} から外す",
"custom-id-conflict": "このスペース UID は既に使用されています。",
"custom-id-help": "リンクおよび API リクエストで使用されます。後から変更することはできません。1~36文字の ASCII の英字、数字、またはハイフンを使用してください。ハイフンで開始または終了しないでください。",
"custom-id-invalid": "1~36文字の ASCII の英字、数字、またはハイフンを使用してください。ハイフンで開始または終了しないでください。",
diff --git a/web/src/locales/ka-GE.json b/web/src/locales/ka-GE.json
index 2bd475bcb..0d2619a15 100644
--- a/web/src/locales/ka-GE.json
+++ b/web/src/locales/ka-GE.json
@@ -284,8 +284,8 @@
"private-description": "მხოლოდ თქვენთვის ჩანს",
"protected-description": "შესული მომხმარებლებისთვის ჩანს",
"public-description": "ყველასთვის ჩანს",
- "space": "სივრცე",
- "space-description": "ამ სივრცის წევრებისთვის ჩანს"
+ "space": "წევრები",
+ "space-description": "ყველა {{space}}-ში"
},
"count-memos-updated-in-date": "{{count}} {{memos}} განახლებულია {{date}}-ზე",
"newest-first": "ჯერ უახლესი",
@@ -300,15 +300,7 @@
"parent-load-error": "ორიგინალი მემორის ჩატვირთვა ვერ მოხერხდა.",
"parent-unavailable": "ორიგინალი მემორანდუმი მიუწვდომელია",
"parent-unavailable-description": "შესაძლოა, ის წაშლილია ან აღარ გაქვთ წვდომა.",
- "move": {
- "title": "გადატანა სივრცეში",
- "description": "აირჩიეთ, სად უნდა იყოს ეს მემორანდუმი და ვის შეუძლია მისი წაკითხვა.",
- "unassigned": "დაუვალებელი",
- "confirm": "გადატანა",
- "success": "მემორანდუმი გადატანილია",
- "space-audience": "{{space}}-ის წევრებს შეეძლებათ ამ მემორანდუმის წაკითხვა.",
- "history": "არსებული რეაქციები ამ მემორანდუმთან ერთად რჩება. კომენტარები და დაკავშირებული მემორანდუმები ინარჩუნებენ საკუთარ წვდომის წესებს."
- },
+ "moved": "მემორანდუმი გადატანილია",
"back-to": "დაბრუნება {{source}}-ზე",
"connections": "კავშირები",
"grid-compact-hint": "ბადისებრი განლაგებები ყოველთვის კომპაქტურ ბარათებს იყენებს.",
@@ -1002,7 +994,8 @@
"create-success": "სივრცე შეიქმნა",
"creator-admin-note": "თქვენ გახდებით პირველი ადმინისტრატორი.",
"current": "სივრცე",
- "no-space": "სივრცის გარეშე",
+ "add-to": "სივრცეში დამატება",
+ "remove-from": "{{space}}-დან ამოღება",
"custom-id-conflict": "ეს სივრცე UID უკვე გამოიყენება.",
"custom-id-help": "გამოიყენება ბმულებსა და API მოთხოვნებში. მისი შეცვლა მოგვიანებით შეუძლებელია. გამოიყენეთ 1–36 ASCII ასოები, რიცხვები ან დეფისები; არ დაიწყოთ ან დასრულდეთ დეფისით.",
"custom-id-invalid": "გამოიყენეთ 1–36 ASCII ასოები, რიცხვები ან დეფისები, დასაწყისში ან ბოლოს დეფისის გარეშე.",
diff --git a/web/src/locales/ko.json b/web/src/locales/ko.json
index 6d2198509..9ebdede33 100644
--- a/web/src/locales/ko.json
+++ b/web/src/locales/ko.json
@@ -252,8 +252,8 @@
"private-description": "나만 보기",
"protected-description": "로그인한 사용자에게 표시",
"public-description": "모든 사람에게 표시",
- "space": "스페이스",
- "space-description": "이 스페이스의 구성원에게 표시"
+ "space": "멤버",
+ "space-description": "{{space}}의 모든 사람"
},
"share": {
"active-links": "활성 공유 링크",
@@ -287,15 +287,7 @@
"parent-load-error": "원본 메모를 불러올 수 없습니다.",
"parent-unavailable": "원본 메모를 사용할 수 없습니다.",
"parent-unavailable-description": "메모가 삭제되었거나 더 이상 접근 권한이 없을 수 있습니다.",
- "move": {
- "title": "다른 공간으로 이동",
- "description": "이 메모를 어느 공간에 배치하고 누가 읽을 수 있는지 선택하세요.",
- "unassigned": "지정되지 않음",
- "confirm": "이동",
- "success": "메모가 이동되었습니다.",
- "space-audience": "{{space}}개의 공간이 있으며, 해당 공간의 구성원이 이 메모를 읽을 수 있습니다.",
- "history": "기존 반응은 이 메모에 유지됩니다. 댓글과 연결된 메모는 자체 액세스 규칙을 유지합니다."
- },
+ "moved": "메모가 이동되었습니다.",
"back-to": "{{source}}으로 돌아가기",
"count-memos-updated-in-date": "{{count}} {{memos}}이 {{date}}에 업데이트되었습니다.",
"connections": "연결",
@@ -1002,7 +994,8 @@
"create-success": "공간이 생성되었습니다.",
"creator-admin-note": "초대 관리자가 됩니다.",
"current": "공간",
- "no-space": "스페이스 없음",
+ "add-to": "스페이스에 추가",
+ "remove-from": "{{space}}에서 제거",
"custom-id-conflict": "이 공간 UID은 이미 사용 중입니다.",
"custom-id-help": "링크 및 API 요청에 사용됩니다. 나중에 변경할 수 없습니다. 1~36개의 ASCII 문자, 숫자 또는 하이픈을 사용하세요. 하이픈으로 시작하거나 끝나지 않도록 하세요.",
"custom-id-invalid": "1~36개의 ASCII 문자, 숫자 또는 하이픈을 사용하세요. 시작이나 끝에 하이픈을 사용하지 마세요.",
diff --git a/web/src/locales/lt.json b/web/src/locales/lt.json
index d26c30431..0b9dfdbd2 100644
--- a/web/src/locales/lt.json
+++ b/web/src/locales/lt.json
@@ -330,23 +330,15 @@
"private-description": "Matoma tik jums",
"protected-description": "Matoma prisijungusiems vartotojams",
"public-description": "Matoma visiems",
- "space": "Erdvė",
- "space-description": "Matoma šios erdvės nariams"
+ "space": "Nariai",
+ "space-description": "Visi erdvėje {{space}}"
},
"new-badge": "Nauja",
"parent-loading": "Įkeliamas originalus priminimas…",
"parent-load-error": "Nepavyko įkelti originalaus priminimo.",
"parent-unavailable": "Originalus priminimas nepasiekiamas",
"parent-unavailable-description": "Jis galėjo būti ištrintas arba jūs nebeturite prieigos.",
- "move": {
- "title": "Perkelti į erdvę",
- "description": "Pasirinkite, kur priklauso šis priminimas ir kas gali jį skaityti.",
- "unassigned": "Nepriskirta",
- "confirm": "Perkelti",
- "success": "Priminimas perkeltas",
- "space-audience": "{{space}} nariai galės skaityti šį priminimą.",
- "history": "Esamos reakcijos lieka šiame priminime. Komentarai ir susieti priminimai išlaiko savo prieigos taisykles."
- },
+ "moved": "Priminimas perkeltas",
"back-to": "Atgal į {{source}}",
"connections": "Ryšiai",
"grid-compact-hint": "Tinklelio išdėstymuose visada naudojamos kompaktiškos kortelės.",
@@ -1002,7 +994,8 @@
"create-success": "Erdvė sukurta",
"creator-admin-note": "Jūs tapsite pirmuoju administratoriumi.",
"current": "Erdvė",
- "no-space": "Be erdvės",
+ "add-to": "Pridėti į erdvę",
+ "remove-from": "Pašalinti iš {{space}}",
"custom-id-conflict": "Ši erdvė UID jau naudojama.",
"custom-id-help": "Naudojama nuorodose ir API užklausose. Vėliau pakeisti negalima. Naudokite 1–36 ASCII raides, skaičius arba brūkšnelius; nepradėkite ir nesibaikite brūkšneliu.",
"custom-id-invalid": "Naudokite 1–36 ASCII raides, skaičius arba brūkšnelius be brūkšnelio pradžioje ar pabaigoje.",
diff --git a/web/src/locales/lv.json b/web/src/locales/lv.json
index 0395cec51..391380a3d 100644
--- a/web/src/locales/lv.json
+++ b/web/src/locales/lv.json
@@ -330,23 +330,15 @@
"private-description": "Redzams tikai jums",
"protected-description": "Redzams pieteiktajiem lietotājiem",
"public-description": "Redzams visiem",
- "space": "Telpa",
- "space-description": "Redzams šīs telpas dalībniekiem"
+ "space": "Dalībnieki",
+ "space-description": "Visi telpā {{space}}"
},
"new-badge": "Jauns",
"parent-loading": "Notiek sākotnējās piezīmes ielāde…",
"parent-load-error": "Nevarēja ielādēt sākotnējo piezīmi.",
"parent-unavailable": "Sākotnējā piezīme nav pieejama",
"parent-unavailable-description": "Iespējams, tā ir izdzēsta vai jums vairs nav piekļuves.",
- "move": {
- "title": "Pārvietot uz telpu",
- "description": "Izvēlieties, kur pieder šī piezīme un kas to var lasīt.",
- "unassigned": "Nepiešķirts",
- "confirm": "Pārvietot",
- "success": "Piezīme pārvietota",
- "space-audience": "{{space}} dalībnieki varēs lasīt šo piezīmi.",
- "history": "Esošās reakcijas paliek šajā piezīmē. Komentāriem un saistītajām piezīmēm ir savi piekļuves noteikumi."
- },
+ "moved": "Piezīme pārvietota",
"back-to": "Atpakaļ uz {{source}}",
"connections": "Savienojumi",
"grid-compact-hint": "Režģa izkārtojumos vienmēr tiek izmantotas kompaktas kartes.",
@@ -1002,7 +994,8 @@
"create-success": "Telpa izveidota",
"creator-admin-note": "Jūs kļūsiet par pirmo administratoru.",
"current": "Telpa",
- "no-space": "Bez telpas",
+ "add-to": "Pievienot telpai",
+ "remove-from": "Noņemt no {{space}}",
"custom-id-conflict": "Šī telpa UID jau tiek izmantota.",
"custom-id-help": "Izmanto saitēs un API pieprasījumos. To vēlāk nevar mainīt. Izmantojiet 1–36 ASCII burtus, ciparus vai defises; nesāciet un nebeidziet ar defisi.",
"custom-id-invalid": "Izmantojiet 1–36 ASCII burtus, ciparus vai defises, bez defises sākumā vai beigās.",
diff --git a/web/src/locales/mr.json b/web/src/locales/mr.json
index ff70fa8a3..563065014 100644
--- a/web/src/locales/mr.json
+++ b/web/src/locales/mr.json
@@ -252,8 +252,8 @@
"private-description": "फक्त तुम्हाला दृश्यमान",
"protected-description": "साइन-इन केलेल्या वापरकर्त्यांना दृश्यमान",
"public-description": "सर्वांना दृश्यमान",
- "space": "जागा",
- "space-description": "या जागेच्या सदस्यांना दृश्यमान"
+ "space": "सदस्य",
+ "space-description": "{{space}} मधील सर्व"
},
"share": {
"active-links": "सक्रिय शेअर दुवे",
@@ -287,15 +287,7 @@
"parent-load-error": "मूळ मेमो लोड होऊ शकला नाही.",
"parent-unavailable": "मूळ मेमो अनुपलब्ध",
"parent-unavailable-description": "तो कदाचित हटवला गेला असेल किंवा तुमचा प्रवेश आता नसेल.",
- "move": {
- "title": "स्पेसमध्ये हलवा",
- "description": "हा मेमो कोठे ठेवावा आणि कोण वाचू शकेल ते निवडा.",
- "unassigned": "नियुक्त नाही",
- "confirm": "हलवा",
- "success": "ज्ञापन हलवले",
- "space-audience": "{{space}} चे सदस्य हे ज्ञापन वाचू शकतील.",
- "history": "विद्यमान प्रतिक्रिया या ज्ञापनासोबत राहतील. टिप्पण्या आणि जोडलेल्या ज्ञापनांचे स्वतःचे प्रवेश नियम असतील."
- },
+ "moved": "ज्ञापन हलवले",
"back-to": "{{source}} कडे परत",
"count-memos-updated-in-date": "{{count}} {{memos}} हे {{date}} वर अद्यतनित केले",
"connections": "जोडण्या",
@@ -1002,7 +994,8 @@
"create-success": "जागा तयार झाली",
"creator-admin-note": "तुम्ही पहिले प्रशासक व्हाल.",
"current": "जागा",
- "no-space": "स्पेस नाही",
+ "add-to": "स्पेसमध्ये जोडा",
+ "remove-from": "{{space}} मधून काढा",
"custom-id-conflict": "ही जागा UID आधीच वापरात आहे.",
"custom-id-help": "लिंक्स आणि API विनंत्यांमध्ये वापरले जाते. ते नंतर बदलता येणार नाही. १-३६ ASCII अक्षरे, अंक किंवा हायफन वापरा; सुरुवात किंवा शेवट हायफनने करू नका.",
"custom-id-invalid": "सुरुवातीला किंवा शेवटी हायफन न वापरता १-३६ ASCII अक्षरे, अंक किंवा हायफन वापरा.",
diff --git a/web/src/locales/nb.json b/web/src/locales/nb.json
index ed73f8101..87b7a6559 100644
--- a/web/src/locales/nb.json
+++ b/web/src/locales/nb.json
@@ -284,8 +284,8 @@
"private-description": "Bare synlig for deg",
"protected-description": "Synlig for påloggede brukere",
"public-description": "Synlig for alle",
- "space": "Rom",
- "space-description": "Synlig for medlemmer av dette området"
+ "space": "Medlemmer",
+ "space-description": "Alle i {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} oppdatert på {{date}}",
"newest-first": "Nyeste først",
@@ -300,15 +300,7 @@
"parent-load-error": "Kunne ikke laste inn det originale notatet.",
"parent-unavailable": "Originalt notat er ikke tilgjengelig",
"parent-unavailable-description": "Det kan ha blitt slettet, eller du har kanskje ikke lenger tilgang.",
- "move": {
- "title": "Flytt til rom",
- "description": "Velg hvor dette notatet hører hjemme og hvem som kan lese det.",
- "unassigned": "Ikke tilordnet",
- "confirm": "Flytt",
- "success": "Notat flyttet",
- "space-audience": "Medlemmer av {{space}} vil kunne lese dette notatet.",
- "history": "Eksisterende reaksjoner forblir med dette notatet. Kommentarer og koblede notater beholder sine egne tilgangsregler."
- },
+ "moved": "Notat flyttet",
"back-to": "Tilbake til {{source}}",
"connections": "Tilkoblinger",
"grid-compact-hint": "Rutenettoppsett bruker alltid kompakte kort.",
@@ -1002,7 +994,8 @@
"create-success": "Rom opprettet",
"creator-admin-note": "Du blir den første administratoren.",
"current": "Rom",
- "no-space": "Ingen plass",
+ "add-to": "Legg til i rom",
+ "remove-from": "Fjern fra {{space}}",
"custom-id-conflict": "Dette rommet UID er allerede i bruk.",
"custom-id-help": "Brukes i lenker og API-forespørsler. Kan ikke endres senere. Bruk 1–36 ASCII bokstaver, tall eller bindestreker; ikke start eller slutt med bindestrek.",
"custom-id-invalid": "Bruk 1–36 ASCII bokstaver, tall eller bindestreker, uten bindestrek i begynnelsen eller slutten.",
diff --git a/web/src/locales/nl.json b/web/src/locales/nl.json
index de11e44b2..17a8c5dd1 100644
--- a/web/src/locales/nl.json
+++ b/web/src/locales/nl.json
@@ -284,8 +284,8 @@
"private-description": "Alleen voor u zichtbaar",
"protected-description": "Zichtbaar voor aangemelde gebruikers",
"public-description": "Zichtbaar voor iedereen",
- "space": "Ruimte",
- "space-description": "Zichtbaar voor leden van deze ruimte"
+ "space": "Leden",
+ "space-description": "Iedereen in {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} bijgewerkt op {{date}}",
"newest-first": "Nieuwste eerst",
@@ -300,15 +300,7 @@
"parent-load-error": "De originele memo kon niet worden geladen.",
"parent-unavailable": "Originele memo niet beschikbaar",
"parent-unavailable-description": "Deze is mogelijk verwijderd of je hebt er geen toegang meer toe.",
- "move": {
- "title": "Verplaatsen naar ruimte",
- "description": "Kies waar deze memo thuishoort en wie hem kan lezen.",
- "unassigned": "Niet toegewezen",
- "confirm": "Verplaatsen",
- "success": "Memo verplaatst",
- "space-audience": "Leden van {{space}} kunnen deze memo lezen.",
- "history": "Bestaande reacties blijven bij deze memo. Opmerkingen en gekoppelde memo's behouden hun eigen toegangsregels."
- },
+ "moved": "Memo verplaatst",
"back-to": "Terug naar {{source}}",
"connections": "Verbindingen",
"grid-compact-hint": "Rasterindelingen gebruiken altijd compacte kaarten.",
@@ -1002,7 +994,8 @@
"create-success": "Ruimte aangemaakt",
"creator-admin-note": "Je wordt de eerste beheerder.",
"current": "Ruimte",
- "no-space": "Geen ruimte",
+ "add-to": "Toevoegen aan ruimte",
+ "remove-from": "Verwijderen uit {{space}}",
"custom-id-conflict": "Deze ruimte UID is al in gebruik.",
"custom-id-help": "Gebruikt in links en API-verzoeken. Kan later niet meer worden gewijzigd. Gebruik 1–36 ASCII letters, cijfers of koppeltekens; begin of eindig niet met een koppelteken.",
"custom-id-invalid": "Gebruik 1–36 ASCII letters, cijfers of koppeltekens, zonder koppelteken aan het begin of einde.",
diff --git a/web/src/locales/nn.json b/web/src/locales/nn.json
index 478284ccc..71516196e 100644
--- a/web/src/locales/nn.json
+++ b/web/src/locales/nn.json
@@ -354,15 +354,7 @@
"layout-list-description": "Éin kolonne med høveleg lesebreidd",
"link-preview": "Førehandsvising av lenkje",
"load-more": "Last fleire",
- "move": {
- "confirm": "Flytt",
- "description": "Vel kvar dette notatet høyrer heime, og kven som kan lesa det.",
- "history": "Reaksjonane som alt finst, fylgjer notatet. Kommentarar og tilknytte notat held på sine eigne åtgangsreglar.",
- "space-audience": "Medlemer i {{space}} vil kunne lesa dette notatet.",
- "success": "Notatet er flytt",
- "title": "Flytt til rom",
- "unassigned": "Utan rom"
- },
+ "moved": "Notatet er flytt",
"new-badge": "Nytt",
"newest-first": "Nyaste fyrst",
"oldest-first": "Eldste fyrst",
@@ -416,8 +408,8 @@
"protected-description": "Synleg for innlogga brukarar",
"public": "Offentleg",
"public-description": "Synleg for alle",
- "space": "Rom",
- "space-description": "Synleg for medlemer i dette rommet"
+ "space": "Medlemer",
+ "space-description": "Alle i {{space}}"
}
},
"message": {
@@ -1006,7 +998,8 @@
"load-error": "Klarte diverre ikkje å laste romma",
"loading": "Lastar rom…",
"name-placeholder": "t.d. Produkt",
- "no-space": "Utan rom",
+ "add-to": "Legg til i rom",
+ "remove-from": "Fjern frå {{space}}",
"spaces": "Rom",
"switch": "Byt rom",
"unavailable": "Dette rommet finst ikkje, eller du har ikkje åtgang til det."
diff --git a/web/src/locales/pl.json b/web/src/locales/pl.json
index 3b045f1d7..7b10b2ee4 100644
--- a/web/src/locales/pl.json
+++ b/web/src/locales/pl.json
@@ -285,8 +285,8 @@
"private-description": "Widoczne tylko dla Ciebie",
"protected-description": "Widoczne dla zalogowanych użytkowników",
"public-description": "Widoczne dla wszystkich",
- "space": "Przestrzeń",
- "space-description": "Widoczne dla członków tej przestrzeni"
+ "space": "Członkowie",
+ "space-description": "Wszyscy w {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} zaktualizowano na {{date}}",
"newest-first": "Najpierw najnowsze",
@@ -300,15 +300,7 @@
"parent-load-error": "Nie można załadować oryginalnej notatki.",
"parent-unavailable": "Oryginalna notatka jest niedostępna",
"parent-unavailable-description": "Mogła zostać usunięta lub nie masz już do niej dostępu.",
- "move": {
- "title": "Przenieś do przestrzeni",
- "description": "Wybierz, gdzie ma się znaleźć ta notatka i kto może ją przeczytać.",
- "unassigned": "Nieprzypisane",
- "confirm": "Przenieś",
- "success": "Notatka przeniesiona",
- "space-audience": "Członkowie grupy {{space}} będą mogli przeczytać tę notatkę.",
- "history": "Istniejące reakcje pozostają z tą notatką. Komentarze i powiązane notatki zachowują własne zasady dostępu."
- },
+ "moved": "Notatka przeniesiona",
"back-to": "Powrót do {{source}}",
"connections": "Połączenia",
"grid-compact-hint": "Układy siatki zawsze korzystają z kart kompaktowych.",
@@ -1002,7 +994,8 @@
"create-success": "Utworzono przestrzeń",
"creator-admin-note": "Zostaniesz pierwszym administratorem.",
"current": "Przestrzeń",
- "no-space": "Bez przestrzeni",
+ "add-to": "Dodaj do przestrzeni",
+ "remove-from": "Usuń z {{space}}",
"custom-id-conflict": "Ta przestrzeń UID jest już używana.",
"custom-id-help": "Używana w linkach i prośbach o API. Nie można jej później zmienić. Użyj 1–36 ASCII liter, cyfr lub łączników; nie zaczynaj ani nie kończ łącznikiem.",
"custom-id-invalid": "Użyj 1–36 ASCII liter, cyfr lub myślników, bez myślnika na początku lub na końcu.",
diff --git a/web/src/locales/pt-BR.json b/web/src/locales/pt-BR.json
index 6308f7703..2d1997959 100644
--- a/web/src/locales/pt-BR.json
+++ b/web/src/locales/pt-BR.json
@@ -252,8 +252,8 @@
"private-description": "Visível apenas para você",
"protected-description": "Visível para usuários conectados",
"public-description": "Visível para todos",
- "space": "Espaço",
- "space-description": "Visível para membros deste espaço"
+ "space": "Membros",
+ "space-description": "Todos em {{space}}"
},
"share": {
"active-links": "Links de compartilhamento ativos",
@@ -287,15 +287,7 @@
"parent-load-error": "Não foi possível carregar o memorando original.",
"parent-unavailable": "Memorando original indisponível",
"parent-unavailable-description": "Ele pode ter sido excluído ou você pode não ter mais acesso a ele.",
- "move": {
- "title": "Mover para o espaço",
- "description": "Escolha onde este memorando pertence e quem pode lê-lo.",
- "unassigned": "Não atribuído",
- "confirm": "Mover",
- "success": "Memorando movido",
- "space-audience": "Os membros de {{space}} poderão ler este memorando.",
- "history": "As reações existentes permanecem com este memorando. Os comentários e os memorandos vinculados mantêm suas próprias regras de acesso."
- },
+ "moved": "Memorando movido",
"back-to": "Voltar para {{source}}",
"count-memos-updated-in-date": "{{count}} {{memos}} atualizado em {{date}}",
"connections": "Conexões",
@@ -1002,7 +994,8 @@
"create-success": "Espaço criado",
"creator-admin-note": "Você será o primeiro administrador.",
"current": "Espaço",
- "no-space": "Sem espaço",
+ "add-to": "Adicionar a um espaço",
+ "remove-from": "Remover de {{space}}",
"custom-id-conflict": "Este espaço UID já está em uso.",
"custom-id-help": "Usado em links e solicitações API. Não pode ser alterado posteriormente. Use de 1 a 36 ASCII letras, números ou hífens; não comece nem termine com um hífen.",
"custom-id-invalid": "Use de 1 a 36 ASCII letras, números ou hífens, sem hífen no início ou no fim.",
diff --git a/web/src/locales/pt-PT.json b/web/src/locales/pt-PT.json
index 3baa27089..18493425d 100644
--- a/web/src/locales/pt-PT.json
+++ b/web/src/locales/pt-PT.json
@@ -284,8 +284,8 @@
"private-description": "Visível apenas para si",
"protected-description": "Visível para utilizadores ligados",
"public-description": "Visível para todos",
- "space": "Espaço",
- "space-description": "Visível para os membros deste espaço"
+ "space": "Membros",
+ "space-description": "Todos em {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} atualizado em {{date}}",
"newest-first": "O mais novo primeiro",
@@ -300,15 +300,7 @@
"parent-load-error": "Não foi possível carregar o memorando original.",
"parent-unavailable": "Memorando original indisponível",
"parent-unavailable-description": "Pode ter sido eliminado ou pode já não ter acesso a ele.",
- "move": {
- "title": "Mover para o Espaço",
- "description": "Escolha onde pertence este memorando e quem o pode ler.",
- "unassigned": "Não atribuído",
- "confirm": "Mover",
- "success": "Memorando movido",
- "space-audience": "Os membros do {{space}} poderão ler este memorando.",
- "history": "As reações existentes mantêm-se com este memorando. Os comentários e memorandos vinculados mantêm as suas próprias regras de acesso."
- },
+ "moved": "Memorando movido",
"back-to": "Voltar para {{source}}",
"connections": "Ligações",
"grid-compact-hint": "Os layouts de grelha utilizam sempre cartões compactos.",
@@ -1002,7 +994,8 @@
"create-success": "Espaço criado",
"creator-admin-note": "Será o primeiro administrador.",
"current": "Espaço",
- "no-space": "Sem espaço",
+ "add-to": "Adicionar a um espaço",
+ "remove-from": "Remover de {{space}}",
"custom-id-conflict": "Este espaço UID já está em utilização.",
"custom-id-help": "Utilizado em ligações e pedidos API. Não pode ser alterado posteriormente. Utilize de 1 a 36 ASCII letras, números ou hífens; não comece nem termine com um hífen.",
"custom-id-invalid": "Utilizar de 1 a 36 ASCII letras, números ou hífens, sem hífen no início ou no fim.",
diff --git a/web/src/locales/ro.json b/web/src/locales/ro.json
index ae22145ed..033be16cf 100644
--- a/web/src/locales/ro.json
+++ b/web/src/locales/ro.json
@@ -330,23 +330,15 @@
"private-description": "Vizibil doar pentru dvs.",
"protected-description": "Vizibil pentru utilizatorii conectați",
"public-description": "Vizibil pentru toată lumea",
- "space": "Spațiu",
- "space-description": "Vizibil pentru membrii acestui spațiu"
+ "space": "Membri",
+ "space-description": "Toți din {{space}}"
},
"new-badge": "Nou",
"parent-loading": "Se încarcă nota originală…",
"parent-load-error": "Nu s-a putut încărca nota originală.",
"parent-unavailable": "Nota originală nu este disponibilă",
"parent-unavailable-description": "Este posibil să fi fost ștersă sau să nu mai ai acces.",
- "move": {
- "title": "Mută ​​în spațiu",
- "description": "Alege unde aparține această notă și cine o poate citi.",
- "unassigned": "Neatribuită",
- "confirm": "Mută",
- "success": "Nota mutată",
- "space-audience": "Membrii {{space}} vor putea citi această notă.",
- "history": "Reacțiile existente rămân la această notă. Comentariile și notele legate își păstrează propriile reguli de acces."
- },
+ "moved": "Nota mutată",
"back-to": "Înapoi la {{source}}",
"connections": "Conexiuni",
"grid-compact-hint": "Aspectele de tip grilă utilizează întotdeauna carduri compacte.",
@@ -1002,7 +994,8 @@
"create-success": "Spațiu creat",
"creator-admin-note": "Vei deveni primul administrator.",
"current": "Spațiu",
- "no-space": "Fără spațiu",
+ "add-to": "Adaugă într-un spațiu",
+ "remove-from": "Elimină din {{space}}",
"custom-id-conflict": "Acest spațiu UID este deja utilizat.",
"custom-id-help": "Folosit în linkuri și cereri API. Nu poate fi modificat ulterior. Folosește 1–36 ASCII litere, cifre sau cratime; nu începe sau se termină cu o cratimă.",
"custom-id-invalid": "Folosește 1–36 ASCII litere, cifre sau cratime, fără cratimă la început sau la sfârșit.",
diff --git a/web/src/locales/ru.json b/web/src/locales/ru.json
index e57a1d0b3..7ee66987f 100644
--- a/web/src/locales/ru.json
+++ b/web/src/locales/ru.json
@@ -278,14 +278,14 @@
"show-less": "Показать меньше",
"show-more": "Подробнее",
"visibility": {
- "private": "Видно только вам",
- "protected": "Видно только авторизованным пользователям",
+ "private": "Приватная",
+ "protected": "Защищённая",
"public": "Публичная",
- "private-description": "Видно только вам",
- "protected-description": "Видно пользователям, вошедшим в систему",
- "public-description": "Видно всем",
- "space": "Пространство",
- "space-description": "Видно участникам этого пространства"
+ "private-description": "Только вы",
+ "protected-description": "Все, кто вошёл в систему",
+ "public-description": "Все, даже без входа",
+ "space": "Участники",
+ "space-description": "Все в {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} обновлен на {{date}}",
"newest-first": "Сначала самые новые",
@@ -309,15 +309,7 @@
"parent-load-error": "Не удалось загрузить исходную заметку.",
"parent-unavailable": "Оригинальная записка недоступна",
"parent-unavailable-description": "Возможно, она была удалена или у вас больше нет доступа.",
- "move": {
- "title": "Переместить в пространство",
- "description": "Выберите, куда должна быть отнесена эта записка и кто сможет ее прочитать.",
- "unassigned": "Не назначено",
- "confirm": "Переместить",
- "success": "Записка перемещена",
- "space-audience": "Члены {{space}} смогут прочитать эту записку.",
- "history": "Существующие реакции остаются с этой запиской. Комментарии и связанные записки сохраняют свои собственные правила доступа."
- },
+ "moved": "Записка перемещена",
"back-to": "Назад к {{source}}",
"connections": "Подключения",
"on-this-memo": "К этой заметке",
@@ -1002,7 +994,8 @@
"create-success": "Пространство создано",
"creator-admin-note": "Вы станете первым администратором.",
"current": "Пространство",
- "no-space": "Без пространства",
+ "add-to": "Добавить в пространство",
+ "remove-from": "Убрать из {{space}}",
"custom-id-conflict": "Это пространство UID уже используется.",
"custom-id-help": "Используется в ссылках и запросах API. Его нельзя изменить позже. Используйте от 1 до 36 букв, цифр или дефисов ASCII; не начинайте и не заканчивайте дефисом.",
"custom-id-invalid": "Используйте 1–36 ASCII букв, цифр или дефисов без дефиса в начале или конце.",
diff --git a/web/src/locales/sk.json b/web/src/locales/sk.json
index c6ac96653..595c19098 100644
--- a/web/src/locales/sk.json
+++ b/web/src/locales/sk.json
@@ -330,23 +330,15 @@
"private-description": "Viditeľné iba pre vás",
"protected-description": "Viditeľné pre prihlásených používateľov",
"public-description": "Viditeľné pre všetkých",
- "space": "Priestor",
- "space-description": "Viditeľné pre členov tohto priestoru"
+ "space": "Členovia",
+ "space-description": "Všetci v {{space}}"
},
"new-badge": "Nové",
"parent-loading": "Načítava sa pôvodná poznámka…",
"parent-load-error": "Nepodarilo sa načítať pôvodnú poznámku.",
"parent-unavailable": "Pôvodná poznámka nie je k dispozícii",
"parent-unavailable-description": "Možno bola odstránená alebo k nej už nemáte prístup.",
- "move": {
- "title": "Presunúť do priestoru",
- "description": "Vyberte, kam táto poznámka patrí a kto si ju môže prečítať.",
- "unassigned": "Nepriradené",
- "confirm": "Presunúť",
- "success": "Poznámka presunutá",
- "space-audience": "Členovia {{space}} si budú môcť túto poznámku prečítať.",
- "history": "Existujúce reakcie zostávajú s touto poznámkou. Komentáre a prepojené poznámky si zachovávajú vlastné pravidlá prístupu."
- },
+ "moved": "Poznámka presunutá",
"back-to": "Späť na {{source}}",
"connections": "Pripojenia",
"grid-compact-hint": "Mriežkové rozloženia vždy používajú kompaktné karty.",
@@ -1002,7 +994,8 @@
"create-success": "Priestor vytvorený",
"creator-admin-note": "Stanete sa prvým správcom.",
"current": "Priestor",
- "no-space": "Bez priestoru",
+ "add-to": "Pridať do priestoru",
+ "remove-from": "Odobrať z {{space}}",
"custom-id-conflict": "Tento priestor UID sa už používa.",
"custom-id-help": "Používa sa v odkazoch a požiadavkách API. Neskôr sa to nedá zmeniť. Použite 1–36 ASCII písmen, číslic alebo pomlčiek; nezačínajte ani nekončite pomlčkou.",
"custom-id-invalid": "Použite 1–36 ASCII písmen, číslic alebo pomlčiek bez pomlčky na začiatku alebo na konci.",
diff --git a/web/src/locales/sl.json b/web/src/locales/sl.json
index 9af60cb93..ff793037e 100644
--- a/web/src/locales/sl.json
+++ b/web/src/locales/sl.json
@@ -284,8 +284,8 @@
"private-description": "Vidno samo vam",
"protected-description": "Vidno prijavljenim uporabnikom",
"public-description": "Vidno vsem",
- "space": "Prostor",
- "space-description": "Vidno članom tega prostora"
+ "space": "Člani",
+ "space-description": "Vsi v {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} posodobljeno na {{date}}",
"newest-first": "Najprej najnovejše",
@@ -300,15 +300,7 @@
"parent-load-error": "Izvirnega zapiska ni bilo mogoče naložiti.",
"parent-unavailable": "Izvirni zapisek ni na voljo",
"parent-unavailable-description": "Morda je bil izbrisan ali pa nimate več dostopa.",
- "move": {
- "title": "Premakni v prostor",
- "description": "Izberite, kam spada ta zapisek in kdo ga lahko bere.",
- "unassigned": "Nedodeljeno",
- "confirm": "Premakni",
- "success": "Zapisek premaknjen",
- "space-audience": "Člani {{space}} bodo lahko prebrali ta zapisek.",
- "history": "Obstoječi odzivi ostanejo s tem zapiskom. Komentarji in povezani zapiski ohranijo svoja pravila dostopa."
- },
+ "moved": "Zapisek premaknjen",
"back-to": "Nazaj na {{source}}",
"connections": "Povezave",
"grid-compact-hint": "Mrežne postavitve vedno uporabljajo kompaktne kartice.",
@@ -1002,7 +994,8 @@
"create-success": "Prostor ustvarjen",
"creator-admin-note": "Postali boste prvi skrbnik.",
"current": "Prostor",
- "no-space": "Brez prostora",
+ "add-to": "Dodaj v prostor",
+ "remove-from": "Odstrani iz {{space}}",
"custom-id-conflict": "Ta prostor UID je že v uporabi.",
"custom-id-help": "Uporablja se v povezavah in zahtevah API. Kasneje ga ni mogoče spremeniti. Uporabite črke, številke ali vezaje od 1 do 36 ASCII; ne začnite ali končajte z vezajem.",
"custom-id-invalid": "Uporabite črke, številke ali vezaje od 1 do 36 ASCII brez vezaja na začetku ali koncu.",
diff --git a/web/src/locales/sr.json b/web/src/locales/sr.json
index 5258c5798..2460be242 100644
--- a/web/src/locales/sr.json
+++ b/web/src/locales/sr.json
@@ -330,23 +330,15 @@
"private-description": "Видљиво само вама",
"protected-description": "Видљиво пријављеним корисницима",
"public-description": "Видљиво свима",
- "space": "Простор",
- "space-description": "Видљиво члановима овог простора"
+ "space": "Чланови",
+ "space-description": "Сви у {{space}}"
},
"new-badge": "Ново",
"parent-loading": "Учитавање оригиналне белешке…",
"parent-load-error": "Није могуће учитати оригиналну белешку.",
"parent-unavailable": "Оригинална белешка није доступна",
"parent-unavailable-description": "Можда је обрисана или више немате приступ.",
- "move": {
- "title": "Премести у простор",
- "description": "Изаберите где ова белешка припада и ко може да је чита.",
- "unassigned": "Недодељено",
- "confirm": "Премести",
- "success": "Белешка је премештена",
- "space-audience": "Чланови {{space}} ће моћи да прочитају ову белешку.",
- "history": "Постојеће реакције остају уз ову белешку. Коментари и повезане белешке задржавају своја правила приступа."
- },
+ "moved": "Белешка је премештена",
"back-to": "Назад на {{source}}",
"connections": "Везе",
"grid-compact-hint": "Распореди мреже увек користе компактне картице.",
@@ -1002,7 +994,8 @@
"create-success": "Простор је креиран",
"creator-admin-note": "Постаћете први администратор.",
"current": "Простор",
- "no-space": "Без простора",
+ "add-to": "Додај у простор",
+ "remove-from": "Уклони из {{space}}",
"custom-id-conflict": "Овај простор UID је већ у употреби.",
"custom-id-help": "Користи се у линковима и API захтевима. Не може се касније променити. Користите 1–36 ASCII слова, бројева или цртица; не почињите нити се завршавајте цртицом.",
"custom-id-invalid": "Користите 1–36 ASCII слова, бројева или цртица, без цртице на почетку или крају.",
diff --git a/web/src/locales/sv.json b/web/src/locales/sv.json
index d58be4cc2..a68f72ba8 100644
--- a/web/src/locales/sv.json
+++ b/web/src/locales/sv.json
@@ -284,8 +284,8 @@
"private-description": "Endast synlig för dig",
"protected-description": "Synlig för inloggade användare",
"public-description": "Synlig för alla",
- "space": "Utrymme",
- "space-description": "Synlig för medlemmar i detta utrymme"
+ "space": "Medlemmar",
+ "space-description": "Alla i {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} uppdaterad på {{date}}",
"newest-first": "Nyaste först",
@@ -300,15 +300,7 @@
"parent-load-error": "Kunde inte läsa in originalmemot.",
"parent-unavailable": "Originalmemot är inte tillgängligt",
"parent-unavailable-description": "Det kan ha tagits bort eller så har du inte längre åtkomst.",
- "move": {
- "title": "Flytta till utrymme",
- "description": "Välj var detta memot hör hemma och vem som kan läsa det.",
- "unassigned": "Ej tilldelat",
- "confirm": "Flytta",
- "success": "Memot flyttat",
- "space-audience": "Medlemmar i {{space}} kommer att kunna läsa detta memot.",
- "history": "Befintliga reaktioner finns kvar i detta memot. Kommentarer och länkade memot behåller sina egna åtkomstregler."
- },
+ "moved": "Memot flyttat",
"back-to": "Tillbaka till {{source}}",
"connections": "Anslutningar",
"grid-compact-hint": "Rutnätslayouter använder alltid kompakta kort.",
@@ -1002,7 +994,8 @@
"create-success": "Utrymme skapat",
"creator-admin-note": "Du blir den första administratören.",
"current": "Utrymme",
- "no-space": "Inget utrymme",
+ "add-to": "Lägg till i utrymme",
+ "remove-from": "Ta bort från {{space}}",
"custom-id-conflict": "Detta utrymme UID används redan.",
"custom-id-help": "Används i länkar och API-förfrågningar. Kan inte ändras senare. Använd 1–36 ASCII bokstäver, siffror eller bindestreck; börja eller sluta inte med ett bindestreck.",
"custom-id-invalid": "Använd 1–36 ASCII bokstäver, siffror eller bindestreck, utan bindestreck i början eller slutet.",
diff --git a/web/src/locales/th.json b/web/src/locales/th.json
index 89bc1678a..9544123c0 100644
--- a/web/src/locales/th.json
+++ b/web/src/locales/th.json
@@ -252,8 +252,8 @@
"private-description": "เฉพาะคุณเท่านั้นที่มองเห็นได้",
"protected-description": "มองเห็นได้สำหรับผู้ใช้ที่ลงชื่อเข้าใช้",
"public-description": "มองเห็นได้สำหรับทุกคน",
- "space": "พื้นที่",
- "space-description": "มองเห็นได้สำหรับสมาชิกของพื้นที่นี้"
+ "space": "สมาชิก",
+ "space-description": "ทุกคนใน {{space}}"
},
"share": {
"active-links": "ลิงก์แชร์ที่ใช้งานอยู่",
@@ -287,15 +287,7 @@
"parent-load-error": "ไม่สามารถโหลดบันทึกต้นฉบับได้",
"parent-unavailable": "บันทึกต้นฉบับไม่พร้อมใช้งาน",
"parent-unavailable-description": "อาจถูกลบไปแล้วหรือคุณอาจไม่สามารถเข้าถึงได้อีกต่อไป",
- "move": {
- "title": "ย้ายไปยังพื้นที่",
- "description": "เลือกตำแหน่งที่บันทึกนี้ควรอยู่และผู้ที่สามารถอ่านได้",
- "unassigned": "ยังไม่ได้กำหนด",
- "confirm": "ย้าย",
- "success": "ย้ายบันทึกแล้ว",
- "space-audience": "สมาชิกของ {{space}} จะสามารถอ่านบันทึกนี้ได้",
- "history": "ปฏิกิริยาที่มีอยู่จะยังคงอยู่กับบันทึกนี้ ความคิดเห็นและบันทึกที่เชื่อมโยงจะยังคงใช้กฎการเข้าถึงของตนเอง"
- },
+ "moved": "ย้ายบันทึกแล้ว",
"back-to": "กลับไปที่ {{source}}",
"count-memos-updated-in-date": "{{count}} {{memos}} อัปเดตเมื่อ {{date}}",
"connections": "การเชื่อมต่อ",
@@ -1002,7 +994,8 @@
"create-success": "สร้างพื้นที่แล้ว",
"creator-admin-note": "คุณจะเป็นผู้ดูแลระบบคนแรก",
"current": "พื้นที่",
- "no-space": "ไม่มีพื้นที่",
+ "add-to": "เพิ่มไปยังพื้นที่",
+ "remove-from": "นำออกจาก {{space}}",
"custom-id-conflict": "พื้นที่ UID นี้ถูกใช้งานอยู่แล้ว",
"custom-id-help": "ใช้ในลิงก์และคำขอ API ไม่สามารถเปลี่ยนแปลงได้ในภายหลัง ใช้ตัวอักษร ตัวเลข หรือเครื่องหมายยัติภังค์ 1–36 ตัว ASCII ห้ามขึ้นต้นหรือลงท้ายด้วยเครื่องหมายยัติภังค์",
"custom-id-invalid": "ใช้ตัวอักษร ตัวเลข หรือเครื่องหมายยัติภังค์ 1–36 ตัว ASCII โดยไม่มีเครื่องหมายยัติภังค์ที่ต้นหรือท้าย",
diff --git a/web/src/locales/tr.json b/web/src/locales/tr.json
index 07e33957a..90692a804 100644
--- a/web/src/locales/tr.json
+++ b/web/src/locales/tr.json
@@ -257,15 +257,7 @@
"parent-load-error": "Özgün not yüklenemedi.",
"parent-unavailable": "Özgün not kullanılamıyor",
"parent-unavailable-description": "Silinmiş olabilir ya da artık erişiminiz olmayabilir.",
- "move": {
- "title": "Alana Taşı",
- "description": "Bu notun nereye ait olduğunu ve kimlerin okuyabileceğini seçin.",
- "unassigned": "Atanmamış",
- "confirm": "Taşı",
- "success": "Not taşındı",
- "space-audience": "{{space}} üyeleri bu notu okuyabilecek.",
- "history": "Mevcut tepkiler bu notla birlikte kalır. Yorumlar ve bağlantılı notlar kendi erişim kurallarını korur."
- },
+ "moved": "Not taşındı",
"back-to": "Geri dön: {{source}}",
"click-to-show-sensitive-content": "Hassas içeriği göstermek için tıklayın",
"comment": {
@@ -336,8 +328,8 @@
"protected-description": "Giriş yapmış kullanıcılar görebilir",
"public": "Herkese Açık",
"public-description": "Herkes görebilir",
- "space": "Alan",
- "space-description": "Bu alanın üyeleri görebilir"
+ "space": "Üyeler",
+ "space-description": "{{space}} içindeki herkes"
},
"count-memos-updated-in-date": "{{count}} {{memos}}, {{date}}'te güncellendi",
"newest-first": "Önce en yeni",
@@ -927,7 +919,8 @@
"create-success": "Alan oluşturuldu",
"creator-admin-note": "İlk yönetici siz olacaksınız.",
"current": "Alan",
- "no-space": "Alan yok",
+ "add-to": "Alana ekle",
+ "remove-from": "{{space}} alanından çıkar",
"custom-id-conflict": "Bu alan UID'si zaten kullanılıyor.",
"custom-id-help": "Bağlantılarda ve API isteklerinde kullanılır. Sonradan değiştirilemez. 1–36 ASCII harf, rakam ya da tire kullanın; tireyle başlamayın ve bitirmeyin.",
"custom-id-invalid": "Başında ve sonunda tire olmadan 1–36 ASCII harf, rakam ya da tire kullanın.",
diff --git a/web/src/locales/uk.json b/web/src/locales/uk.json
index 469b915d1..592791a80 100644
--- a/web/src/locales/uk.json
+++ b/web/src/locales/uk.json
@@ -284,8 +284,8 @@
"private-description": "Видимо лише вам",
"protected-description": "Видимо для зареєстрованих користувачів",
"public-description": "Видимо для всіх",
- "space": "Простір",
- "space-description": "Видимо для учасників цього простору"
+ "space": "Учасники",
+ "space-description": "Усі в {{space}}"
},
"count-memos-updated-in-date": "{{count}} {{memos}} оновлено на {{date}}",
"newest-first": "Спочатку найновіші",
@@ -300,15 +300,7 @@
"parent-load-error": "Не вдалося завантажити оригінальну нотатку.",
"parent-unavailable": "Оригінальна нотатка недоступна",
"parent-unavailable-description": "Можливо, її було видалено, або ви більше не маєте до неї доступу.",
- "move": {
- "title": "Перемістити до простору",
- "description": "Виберіть, куди належить ця нотатка та хто може її читати.",
- "unassigned": "Не призначено",
- "confirm": "Перемістити",
- "success": "Нотатку переміщено",
- "space-audience": "Учасники {{space}} зможуть прочитати цю нотатку.",
- "history": "Існуючі реакції залишаються з цією нотаткою. Коментарі та пов'язані нотатки зберігають власні правила доступу."
- },
+ "moved": "Нотатку переміщено",
"back-to": "Назад до {{source}}",
"connections": "З'єднання",
"grid-compact-hint": "Макети сітки завжди використовують компактні картки.",
@@ -1002,7 +994,8 @@
"create-success": "Простір створено",
"creator-admin-note": "Ви станете першим адміністратором.",
"current": "Простір",
- "no-space": "Без простору",
+ "add-to": "Додати до простору",
+ "remove-from": "Прибрати з {{space}}",
"custom-id-conflict": "Цей простір UID вже використовується.",
"custom-id-help": "Використовується в посиланнях та запитах API. Його не можна змінити пізніше. Використовуйте літери, цифри або дефіси від 1 до 36 ASCII; не починайте та не закінчуйте дефісом.",
"custom-id-invalid": "Використовуйте літери, цифри або дефіси від 1 до 36 ASCII без дефісу на початку чи в кінці.",
diff --git a/web/src/locales/vi.json b/web/src/locales/vi.json
index 2a152fc0d..c0482a9d5 100644
--- a/web/src/locales/vi.json
+++ b/web/src/locales/vi.json
@@ -252,8 +252,8 @@
"private-description": "Chỉ hiển thị với bạn",
"protected-description": "Hiển thị với người dùng đã đăng nhập",
"public-description": "Hiển thị với mọi người",
- "space": "Không gian",
- "space-description": "Hiển thị với các thành viên của không gian này"
+ "space": "Thành viên",
+ "space-description": "Mọi người trong {{space}}"
},
"share": {
"active-links": "Liên kết chia sẻ đang hoạt động",
@@ -287,15 +287,7 @@
"parent-load-error": "Không thể tải bản ghi nhớ gốc.",
"parent-unavailable": "Bản ghi nhớ gốc không khả dụng",
"parent-unavailable-description": "Có thể bản ghi nhớ đã bị xóa hoặc bạn không còn quyền truy cập nữa.",
- "move": {
- "title": "Di chuyển đến Không gian",
- "description": "Chọn nơi bản ghi nhớ này thuộc về và ai có thể đọc nó.",
- "unassigned": "Chưa được chỉ định",
- "confirm": "Di chuyển",
- "success": "Bản ghi nhớ đã được di chuyển",
- "space-audience": "Các thành viên của {{space}} sẽ có thể đọc bản ghi nhớ này.",
- "history": "Các phản hồi hiện có vẫn giữ nguyên với bản ghi nhớ này. Bình luận và các bản ghi nhớ được liên kết vẫn giữ nguyên quy tắc truy cập riêng."
- },
+ "moved": "Bản ghi nhớ đã được di chuyển",
"back-to": "Quay lại {{source}}",
"count-memos-updated-in-date": "{{count}} {{memos}} được cập nhật vào {{date}}",
"connections": "Kết nối",
@@ -1002,7 +994,8 @@
"create-success": "Không gian đã được tạo",
"creator-admin-note": "Bạn sẽ trở thành quản trị viên đầu tiên.",
"current": "Không gian",
- "no-space": "Không có không gian",
+ "add-to": "Thêm vào không gian",
+ "remove-from": "Xóa khỏi {{space}}",
"custom-id-conflict": "Không gian UID này đã được sử dụng.",
"custom-id-help": "Được sử dụng trong các liên kết và yêu cầu API. Không thể thay đổi sau này. Sử dụng 1–36 ASCII chữ cái, số hoặc dấu gạch ngang; không bắt đầu hoặc kết thúc bằng dấu gạch ngang.",
"custom-id-invalid": "Sử dụng 1–36 ASCII chữ cái, số hoặc dấu gạch ngang, không có dấu gạch ngang ở đầu hoặc cuối.",
diff --git a/web/src/locales/zh-Hans.json b/web/src/locales/zh-Hans.json
index 7bca8f5ea..e9d1aa26e 100644
--- a/web/src/locales/zh-Hans.json
+++ b/web/src/locales/zh-Hans.json
@@ -299,8 +299,8 @@
"protected-description": "对登录用户可见",
"public": "公开",
"public-description": "对所有人可见",
- "space": "空间",
- "space-description": "此空间成员可见"
+ "space": "成员",
+ "space-description": "{{space}} 的所有人"
},
"share": {
"active-links": "活跃的分享链接",
@@ -339,15 +339,7 @@
"parent-load-error": "无法加载原始备忘录。",
"parent-unavailable": "原始备忘录不可用",
"parent-unavailable-description": "它可能已被删除,或者您可能已失去访问权限。",
- "move": {
- "title": "移动到空间",
- "description": "选择此备忘录的归属位置以及谁可以阅读它。",
- "unassigned": "未分配",
- "confirm": "移动",
- "success": "备忘录已移动",
- "space-audience": "{{space}} 的成员将可以阅读此备忘录。",
- "history": "现有表态会保留在此备忘录上。评论和关联的备忘录仍遵循各自的访问规则。"
- }
+ "moved": "备忘录已移动"
},
"message": {
"archived-successfully": "归档成功",
@@ -988,7 +980,8 @@
"create-success": "空间已创建",
"creator-admin-note": "您将成为第一个管理员。",
"current": "空间",
- "no-space": "不属于任何空间",
+ "add-to": "添加到空间",
+ "remove-from": "从 {{space}} 移除",
"custom-id-conflict": "此空间 UID 已被使用。",
"description-placeholder": "此空间的用途是什么?",
"load-error": "无法加载空间",
diff --git a/web/src/locales/zh-Hant.json b/web/src/locales/zh-Hant.json
index de452620c..fab9ca3c8 100644
--- a/web/src/locales/zh-Hant.json
+++ b/web/src/locales/zh-Hant.json
@@ -381,22 +381,14 @@
"protected-description": "已登入的使用者可見",
"public": "公開",
"public-description": "所有人皆可見",
- "space": "空間",
- "space-description": "此空間的成員可見"
+ "space": "成員",
+ "space-description": "{{space}} 的所有人"
},
"parent-loading": "正在載入原始備忘錄…",
"parent-load-error": "無法載入原始備忘錄。",
"parent-unavailable": "原始備忘錄不可用",
"parent-unavailable-description": "它可能已被刪除,或者您可能已失去存取權限。",
- "move": {
- "title": "移動到空間",
- "description": "選擇此備忘錄的存放位置以及誰可以閱讀它。",
- "unassigned": "未分配",
- "confirm": "移動",
- "success": "備忘錄已移動",
- "space-audience": "{{space}} 的成員將可閱讀此備忘錄。",
- "history": "現有表態會保留在此備忘錄上。留言和關聯的備忘錄仍遵循各自的存取規則。"
- },
+ "moved": "備忘錄已移動",
"back-to": "返回 {{source}}",
"connections": "關聯",
"on-this-memo": "在此備忘錄中",
@@ -954,7 +946,8 @@
"create-success": "已建立空間",
"creator-admin-note": "你將成為第一位管理員。",
"current": "空間",
- "no-space": "不屬於任何空間",
+ "add-to": "加入空間",
+ "remove-from": "從 {{space}} 移除",
"custom-id-conflict": "此空間 UID 已被使用。",
"custom-id-help": "用於連結與 API 請求,之後無法變更。請使用 1 至 36 個 ASCII 字母、數字或連字號,且開頭與結尾不得為連字號。",
"custom-id-invalid": "請使用 1 至 36 個 ASCII 字母、數字或連字號,且開頭與結尾不得為連字號。",
diff --git a/web/tests/audience-menu.test.tsx b/web/tests/audience-menu.test.tsx
new file mode 100644
index 000000000..8b2b026ad
--- /dev/null
+++ b/web/tests/audience-menu.test.tsx
@@ -0,0 +1,220 @@
+import { fireEvent, render, screen } from "@testing-library/react";
+import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
+import { createInitialState, EditorProvider, useEditorContext, useEditorSelector } from "@/components/MemoEditor/state";
+import AudienceMenu from "@/components/MemoEditor/Toolbar/AudienceMenu";
+import { EditorToolbar } from "@/components/MemoEditor/Toolbar/EditorToolbar";
+import { Visibility } from "@/types/proto/api/v1/memo_service_pb";
+
+const spacesQuery = vi.hoisted(() => ({
+ data: [
+ { name: "spaces/work", title: "Work", icon: { value: { case: "emoji", value: "💎" } } },
+ { name: "spaces/reading", title: "Reading" },
+ ] as { name: string; title: string; icon?: unknown }[],
+ isPending: false,
+ isError: false,
+ refetch: vi.fn(),
+}));
+vi.mock("@/components/MemoEditor/Toolbar/InsertMenu", () => ({ default: () => null }));
+vi.mock("@/hooks/useCurrentUser", () => ({ default: () => ({ name: "users/test" }) }));
+vi.mock("@/hooks/useSpaceQueries", () => ({ useSpaces: () => spacesQuery }));
+
+// Echo interpolation so tests can see which Space a string names.
+vi.mock("@/utils/i18n", () => ({
+ useTranslate: () => (key: string, options?: { space?: string }) => (options?.space ? `${key}(${options.space})` : key),
+}));
+
+// Base UI menus reach for layout/pointer APIs jsdom doesn't implement.
+beforeAll(() => {
+ Element.prototype.scrollIntoView = vi.fn();
+ Element.prototype.hasPointerCapture = vi.fn(() => false);
+ Element.prototype.setPointerCapture = vi.fn();
+ Element.prototype.releasePointerCapture = vi.fn();
+});
+
+const openMenu = async () => {
+ fireEvent.click(screen.getByRole("button"));
+ await screen.findByRole("menu");
+};
+
+const openSpaces = async (name: string) => {
+ fireEvent.click(screen.getByRole("menuitem", { name }));
+ return screen.findAllByRole("menu");
+};
+
+const visibilityRows = () =>
+ screen
+ .getAllByRole("menuitem")
+ .map((item) => item.textContent)
+ .filter((text) => text?.startsWith("memo.visibility."));
+
+beforeEach(() => {
+ vi.clearAllMocks();
+ spacesQuery.isPending = false;
+ spacesQuery.isError = false;
+ spacesQuery.data = [
+ { name: "spaces/work", title: "Work", icon: { value: { case: "emoji", value: "💎" } } },
+ { name: "spaces/reading", title: "Reading" },
+ ];
+});
+
+describe("AudienceMenu visibility", () => {
+ it("omits the Members audience when the memo has no Space", async () => {
+ render(<AudienceMenu value={Visibility.PRIVATE} onChange={vi.fn()} />);
+ await openMenu();
+
+ expect(visibilityRows()).toEqual([
+ "memo.visibility.privatememo.visibility.private-description",
+ "memo.visibility.protectedmemo.visibility.protected-description",
+ "memo.visibility.publicmemo.visibility.public-description",
+ ]);
+ });
+
+ it("offers the Members audience, described with the Space's name, when the memo belongs to a Space", async () => {
+ render(<AudienceMenu value={Visibility.PRIVATE} space="spaces/work" onChange={vi.fn()} />);
+ await openMenu();
+
+ expect(screen.getByRole("menuitem", { name: /memo\.visibility\.space/ })).toHaveTextContent("memo.visibility.space-description(Work)");
+ });
+
+ it("keeps naming the current Members audience even when placement is unavailable", async () => {
+ render(<AudienceMenu value={Visibility.SPACE} onChange={vi.fn()} />);
+
+ expect(screen.getByRole("button")).toHaveTextContent("memo.visibility.space");
+ await openMenu();
+ expect(screen.getByRole("menuitem", { name: /memo\.visibility\.space/ })).toBeInTheDocument();
+ });
+
+ it("reports the picked audience", async () => {
+ const onChange = vi.fn();
+ render(<AudienceMenu value={Visibility.PRIVATE} onChange={onChange} />);
+ await openMenu();
+
+ fireEvent.click(screen.getByRole("menuitem", { name: /memo\.visibility\.public/ }));
+
+ expect(onChange).toHaveBeenCalledWith(Visibility.PUBLIC);
+ });
+
+ it("has no Space row when the host fixes placement", async () => {
+ render(<AudienceMenu value={Visibility.PRIVATE} space="spaces/work" onChange={vi.fn()} />);
+ await openMenu();
+
+ expect(screen.queryByRole("menuitem", { name: "space.add-to" })).not.toBeInTheDocument();
+ expect(screen.queryByRole("menuitem", { name: "Work" })).not.toBeInTheDocument();
+ expect(screen.getByRole("button")).not.toHaveTextContent("Work");
+ });
+});
+
+describe("AudienceMenu Space row", () => {
+ it("adds a memo to a Space from an unnamed empty state below the audiences", async () => {
+ const onSpaceChange = vi.fn();
+ const onChange = vi.fn();
+ render(<AudienceMenu value={Visibility.PRIVATE} onChange={onChange} onSpaceChange={onSpaceChange} />);
+ expect(screen.getByRole("button")).toHaveAccessibleName("memo.visibility.private");
+ await openMenu();
+
+ const items = screen.getAllByRole("menuitem");
+ expect(items[items.length - 1]).toHaveAccessibleName("space.add-to");
+ await openSpaces("space.add-to");
+ expect(screen.getByRole("menuitem", { name: "Reading" })).toBeInTheDocument();
+ fireEvent.click(screen.getByRole("menuitem", { name: "Work" }));
+
+ expect(onSpaceChange).toHaveBeenCalledWith("spaces/work");
+ expect(onChange).not.toHaveBeenCalled();
+ });
+
+ it("shows the chosen Space and toggles it off from the submenu", async () => {
+ const onSpaceChange = vi.fn();
+ render(<AudienceMenu value={Visibility.PRIVATE} space="spaces/work" onChange={vi.fn()} onSpaceChange={onSpaceChange} />);
+ expect(screen.getByRole("button")).toHaveAccessibleName("Work · memo.visibility.private");
+ await openMenu();
+
+ expect(screen.queryByRole("menuitem", { name: "space.add-to" })).not.toBeInTheDocument();
+ await openSpaces("Work");
+ const selected = screen.getByRole("menuitem", { name: "space.remove-from(Work)" });
+ expect(selected).toHaveAttribute("title", "space.remove-from(Work)");
+ expect(screen.getByRole("menuitem", { name: "Reading" })).toBeInTheDocument();
+ fireEvent.click(selected);
+
+ expect(onSpaceChange).toHaveBeenCalledWith(undefined);
+ });
+
+ it("keeps a Space the user is no longer a member of removable", async () => {
+ const onSpaceChange = vi.fn();
+ render(<AudienceMenu value={Visibility.PRIVATE} space="spaces/gone" onChange={vi.fn()} onSpaceChange={onSpaceChange} />);
+ await openMenu();
+
+ await openSpaces("gone");
+ fireEvent.click(screen.getByRole("menuitem", { name: "space.remove-from(gone)" }));
+
+ expect(onSpaceChange).toHaveBeenCalledWith(undefined);
+ });
+
+ it("disambiguates duplicate Space titles and keeps long titles for hover and assistive text", async () => {
+ const longTitle = `Work ${"a very long Space title ".repeat(15).trim()}`;
+ spacesQuery.data = [
+ { name: "spaces/work", title: longTitle },
+ { name: "spaces/a", title: "Twin" },
+ { name: "spaces/b", title: "Twin" },
+ ];
+ render(<AudienceMenu value={Visibility.PRIVATE} space="spaces/work" onChange={vi.fn()} onSpaceChange={vi.fn()} />);
+
+ expect(screen.getByRole("button")).toHaveAttribute("title", `${longTitle} · memo.visibility.private`);
+ await openMenu();
+ await openSpaces(longTitle);
+ expect(screen.getByRole("menuitem", { name: "Twin (a)" })).toBeInTheDocument();
+ expect(screen.getByRole("menuitem", { name: "Twin (b)" })).toBeInTheDocument();
+ });
+
+ it("hides the Space row when there is no Space to add to", async () => {
+ spacesQuery.data = [];
+ render(<AudienceMenu value={Visibility.PRIVATE} onChange={vi.fn()} onSpaceChange={vi.fn()} />);
+ await openMenu();
+
+ expect(screen.queryByRole("menuitem", { name: "space.add-to" })).not.toBeInTheDocument();
+ expect(screen.queryByRole("separator")).not.toBeInTheDocument();
+ });
+
+ it("shows loading and retry states in the submenu without losing audiences", async () => {
+ spacesQuery.data = [];
+ spacesQuery.isPending = true;
+ const props = { value: Visibility.PRIVATE, onChange: vi.fn(), onSpaceChange: vi.fn() };
+ const { rerender } = render(<AudienceMenu {...props} />);
+ await openMenu();
+ await openSpaces("space.add-to");
+ expect(screen.getByRole("menuitem", { name: "space.loading" })).toHaveAttribute("aria-disabled", "true");
+
+ spacesQuery.isPending = false;
+ spacesQuery.isError = true;
+ rerender(<AudienceMenu {...props} />);
+ fireEvent.click(screen.getByRole("menuitem", { name: /space\.load-error/ }));
+
+ expect(spacesQuery.refetch).toHaveBeenCalled();
+ expect(visibilityRows()).toHaveLength(3);
+ });
+});
+
+it("removing a Members memo from its Space falls back to Private without discarding content", async () => {
+ let getState: ReturnType<typeof useEditorContext>["getState"];
+ function Toolbar() {
+ getState = useEditorContext().getState;
+ const space = useEditorSelector((state) => state.metadata.space);
+ return <EditorToolbar space={space} canChooseSpace onSave={vi.fn()} onAudioRecorderClick={vi.fn()} onInsertImages={vi.fn()} />;
+ }
+ const initial = createInitialState();
+ initial.content = "Keep this draft";
+ initial.metadata = { ...initial.metadata, space: "spaces/work", visibility: Visibility.SPACE };
+ render(
+ <EditorProvider initialEditorState={initial}>
+ <Toolbar />
+ </EditorProvider>,
+ );
+
+ fireEvent.click(screen.getByRole("button", { name: "Work · memo.visibility.space" }));
+ await screen.findByRole("menu");
+ await openSpaces("Work");
+ fireEvent.click(screen.getByRole("menuitem", { name: "space.remove-from(Work)" }));
+
+ expect(getState!().metadata.space).toBeUndefined();
+ expect(getState!().metadata.visibility).toBe(Visibility.PRIVATE);
+ expect(getState!().content).toBe("Keep this draft");
+});
diff --git a/web/tests/memo-action-menu.test.tsx b/web/tests/memo-action-menu.test.tsx
index 3e76eda10..79e8254a3 100644
--- a/web/tests/memo-action-menu.test.tsx
+++ b/web/tests/memo-action-menu.test.tsx
@@ -7,7 +7,6 @@ import { State } from "@/types/proto/api/v1/common_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(),
@@ -24,10 +23,6 @@ vi.mock("@/components/ConfirmDialog", () => ({
default: () => null,
}));
-vi.mock("@/components/MemoActionMenu/MemoMoveDialog", () => ({
- default: () => <div role="dialog" aria-label="Move to Space" />,
-}));
-
vi.mock("@/components/MemoActionMenu/hooks", () => ({
useMemoActionHandlers: () => handlers,
}));
@@ -64,28 +59,16 @@ const memoOf = (fields: Parameters<typeof create<typeof MemoSchema>>[1] = {}) =>
describe("MemoActionMenu", () => {
beforeEach(() => {
vi.clearAllMocks();
- handlers.canMove = false;
handlers.isInMemoDetailPage = false;
});
- it("orders an owner's memo actions and puts Delete last when Move does not apply", async () => {
- await openMenu(memoOf());
+ it("orders an owner's memo actions and puts Delete last, with no Move entry", async () => {
+ await openMenu(memoOf({ space: "spaces/work" }));
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" }));
- 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("offers Unpin on a pinned memo", async () => {
await openMenu(memoOf({ pinned: true }));
fireEvent.click(screen.getByRole("menuitem", { name: "common.unpin" }));
@@ -129,7 +112,6 @@ describe("MemoActionMenu", () => {
});
it("offers only Restore and Delete on an archived memo", async () => {
- handlers.canMove = true;
render(
<MemoryRouter>
<MemoActionMenu memo={memoOf({ state: State.ARCHIVED, property: { hasTaskList: true } })} />
diff --git a/web/tests/memo-action-navigation.test.tsx b/web/tests/memo-action-navigation.test.tsx
index 4277f4e97..db3fe513b 100644
--- a/web/tests/memo-action-navigation.test.tsx
+++ b/web/tests/memo-action-navigation.test.tsx
@@ -11,15 +11,10 @@ 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", () => ({
memoKeys: {
comments: (name: string) => ["memos", name, "comments"],
@@ -33,8 +28,6 @@ vi.mock("@/hooks/useUserQueries", () => ({
userKeys: { stats: () => ["users", "stats"] },
}));
-vi.mock("@/hooks/useCurrentUser", () => ({ default: () => ({ name: "users/alice" }) }));
-
vi.mock("@/contexts/InstanceContext", () => ({
useInstance: () => ({ profile: { instanceUrl: "" } }),
}));
@@ -47,17 +40,16 @@ vi.mock("react-hot-toast", () => ({
default: { success: vi.fn(), error: vi.fn() },
}));
-const createMemo = (state: State, parent = "", space = ""): Memo =>
+const createMemo = (state: State, parent = ""): Memo =>
({
name: "memos/1",
creator: "users/alice",
content: "memo",
state,
parent,
- space,
}) as Memo;
-const renderActions = (state: State, parent = "", parentPage?: string, space = "") => {
+const renderActions = (state: State, parent = "", parentPage?: string) => {
const queryClient = new QueryClient({ defaultOptions: { queries: { retry: false } } });
const invalidateQueries = vi.spyOn(queryClient, "invalidateQueries");
const wrapper = ({ children }: { children: ReactNode }) => (
@@ -70,7 +62,7 @@ const renderActions = (state: State, parent = "", parentPage?: string, space = "
() => {
const location = useLocation();
const handlers = useMemoActionHandlers({
- memo: createMemo(state, parent, space),
+ memo: createMemo(state, parent),
parentPage,
setDeleteDialogOpen: vi.fn(),
});
@@ -86,7 +78,6 @@ describe("Memo detail mutation navigation", () => {
mocks.updateMemo.mockReset().mockResolvedValue(undefined);
mocks.deleteMemo.mockReset().mockResolvedValue(undefined);
mocks.copy.mockReset();
- mocks.spaces = [];
});
it.each([
@@ -138,15 +129,4 @@ describe("Memo detail mutation navigation", () => {
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-editor-space-move.test.ts b/web/tests/memo-editor-space-move.test.ts
new file mode 100644
index 000000000..dcd47585f
--- /dev/null
+++ b/web/tests/memo-editor-space-move.test.ts
@@ -0,0 +1,72 @@
+import { create } from "@bufbuild/protobuf";
+import { beforeEach, describe, expect, it, vi } from "vitest";
+import { memoService } from "@/components/MemoEditor/services/memoService";
+import { createInitialState, type EditorState } from "@/components/MemoEditor/state";
+import { type Memo, MemoSchema, Visibility } from "@/types/proto/api/v1/memo_service_pb";
+
+const clients = vi.hoisted(() => ({
+ getMemo: vi.fn(),
+ updateMemo: vi.fn(),
+}));
+
+vi.mock("@/connect", () => ({
+ attachmentServiceClient: { createAttachment: vi.fn() },
+ memoServiceClient: { getMemo: clients.getMemo, updateMemo: clients.updateMemo },
+}));
+
+const stored = (fields: Partial<Memo> = {}) =>
+ create(MemoSchema, { name: "memos/1", content: "Same", visibility: Visibility.PRIVATE, ...fields } as Parameters<typeof create>[1]);
+
+const editedFrom = (memo: Memo, metadata: Partial<EditorState["metadata"]>): EditorState => {
+ const state = createInitialState();
+ const initial = memoService.fromMemo(memo);
+ return { ...state, ...initial, metadata: { ...state.metadata, ...initial.metadata, ...metadata } };
+};
+
+const savedMask = () => clients.updateMemo.mock.calls[0][0].updateMask.paths as string[];
+const savedMemo = () => clients.updateMemo.mock.calls[0][0].memo as Memo;
+
+describe("editing a memo's Space", () => {
+ beforeEach(() => {
+ clients.getMemo.mockReset();
+ clients.updateMemo.mockReset();
+ clients.updateMemo.mockImplementation(async ({ memo }: { memo: Memo }) => memo);
+ });
+
+ it("loads the memo's Space into the editor", () => {
+ expect(memoService.fromMemo(stored({ space: "spaces/work" })).metadata.space).toBe("spaces/work");
+ expect(memoService.fromMemo(stored()).metadata.space).toBeUndefined();
+ });
+
+ it("sends placement and audience together when the Space changes, and reports the move", async () => {
+ const memo = stored({ space: "spaces/work", visibility: Visibility.SPACE });
+ clients.getMemo.mockResolvedValue(memo);
+
+ const result = await memoService.save(editedFrom(memo, { space: "spaces/reading" }), { memoName: memo.name });
+
+ expect(new Set(savedMask())).toEqual(new Set(["space", "visibility"]));
+ expect(savedMemo().space).toBe("spaces/reading");
+ expect(savedMemo().visibility).toBe(Visibility.SPACE);
+ expect(result).toMatchObject({ hasChanges: true, moved: true });
+ });
+
+ it("clears the Space with an empty name when the memo leaves it", async () => {
+ const memo = stored({ space: "spaces/work" });
+ clients.getMemo.mockResolvedValue(memo);
+
+ await memoService.save(editedFrom(memo, { space: undefined }), { memoName: memo.name });
+
+ expect(savedMask()).toContain("space");
+ expect(savedMemo().space).toBe("");
+ });
+
+ it("leaves placement out of the update when the Space is unchanged", async () => {
+ const memo = stored({ space: "spaces/work" });
+ clients.getMemo.mockResolvedValue(memo);
+
+ const result = await memoService.save({ ...editedFrom(memo, {}), content: "Edited" }, { memoName: memo.name });
+
+ expect(savedMask()).not.toContain("space");
+ expect(result.moved).toBe(false);
+ });
+});
diff --git a/web/tests/memo-move-dialog.test.tsx b/web/tests/memo-move-dialog.test.tsx
deleted file mode 100644
index 5b1ddd6c4..000000000
--- a/web/tests/memo-move-dialog.test.tsx
+++ /dev/null
@@ -1,93 +0,0 @@
-import { create } from "@bufbuild/protobuf";
-import { fireEvent, render, screen, waitFor } from "@testing-library/react";
-import { beforeEach, describe, expect, it, vi } from "vitest";
-import MemoMoveDialog from "@/components/MemoActionMenu/MemoMoveDialog";
-import { MemoSchema, Visibility } from "@/types/proto/api/v1/memo_service_pb";
-import { SpaceSchema } from "@/types/proto/api/v1/space_service_pb";
-
-const state = vi.hoisted(() => ({ update: vi.fn(), refetch: vi.fn(), user: "users/alice" }));
-vi.mock("@/hooks/useCurrentUser", () => ({ default: () => ({ name: state.user }) }));
-vi.mock("@/hooks/useMemoQueries", () => ({ useUpdateMemo: () => ({ mutateAsync: state.update, isPending: false }) }));
-vi.mock("@/hooks/useSpaceQueries", () => ({
- useSpaces: () => ({
- data: [create(SpaceSchema, { name: "spaces/a", title: "Design" }), create(SpaceSchema, { name: "spaces/b", title: "Product" })],
- isPending: false,
- refetch: state.refetch,
- }),
-}));
-vi.mock("@/utils/i18n", () => ({ useTranslate: () => (key: string) => key }));
-vi.mock("react-hot-toast", () => ({ toast: { success: vi.fn() } }));
-
-const memo = create(MemoSchema, { name: "memos/original", creator: "users/alice", space: "spaces/a", visibility: Visibility.SPACE });
-const selectDestination = async (name: string) => {
- fireEvent.click(screen.getByRole("combobox", { name: "space.current" }));
- const option = await screen.findByRole("option", { name });
- fireEvent.pointerDown(option, { pointerType: "mouse" });
- fireEvent.click(option);
-};
-
-describe("Move to Space", () => {
- beforeEach(() => {
- vi.clearAllMocks();
- state.user = "users/alice";
- state.update.mockResolvedValue(memo);
- });
-
- it("requires a new destination and moves with explicit Space audience", async () => {
- const close = vi.fn();
- render(<MemoMoveDialog memo={memo} onOpenChange={close} />);
- expect(screen.getByRole("combobox", { name: "space.current" }).querySelector(".bg-sidebar-accent")).not.toBeNull();
- expect(screen.getByRole("button", { name: "memo.move.confirm" })).toBeDisabled();
- await selectDestination("Product");
- fireEvent.click(screen.getByRole("button", { name: "memo.move.confirm" }));
- await waitFor(() => expect(close).toHaveBeenCalledWith(false));
- expect(state.update).toHaveBeenCalledWith({
- update: { name: memo.name, space: "spaces/b", visibility: Visibility.SPACE },
- updateMask: ["space", "visibility"],
- });
- });
-
- it("defaults to Private when unassigning a Space-visible memo", async () => {
- render(<MemoMoveDialog memo={memo} onOpenChange={vi.fn()} />);
- await selectDestination("memo.move.unassigned");
- expect(screen.getByRole("combobox", { name: "space.current" }).querySelector(".bg-sidebar-accent")).toBeNull();
- fireEvent.click(screen.getByRole("button", { name: "memo.move.confirm" }));
- await waitFor(() =>
- expect(state.update).toHaveBeenCalledWith({
- update: { name: memo.name, space: "", visibility: Visibility.PRIVATE },
- updateMask: ["space", "visibility"],
- }),
- );
- });
-
- it("preserves non-Space audience while assigning a memo", async () => {
- render(<MemoMoveDialog memo={{ ...memo, space: undefined, visibility: Visibility.PUBLIC }} onOpenChange={vi.fn()} />);
- await selectDestination("Product");
- fireEvent.click(screen.getByRole("button", { name: "memo.move.confirm" }));
- await waitFor(() =>
- expect(state.update).toHaveBeenCalledWith({
- update: { name: memo.name, space: "spaces/b", visibility: Visibility.PUBLIC },
- updateMask: ["space"],
- }),
- );
- });
-
- it("keeps the dialog open and refreshes destinations when a move is rejected", async () => {
- state.update.mockRejectedValue(new Error("Membership changed"));
- const close = vi.fn();
- render(<MemoMoveDialog memo={memo} onOpenChange={close} />);
- await selectDestination("Product");
- fireEvent.click(screen.getByRole("button", { name: "memo.move.confirm" }));
- expect(await screen.findByRole("alert")).toHaveTextContent("Membership changed");
- expect(close).not.toHaveBeenCalled();
- expect(state.refetch).toHaveBeenCalledOnce();
- });
-
- it("does not allow another user to submit a move", async () => {
- state.user = "users/bob";
- render(<MemoMoveDialog memo={memo} onOpenChange={vi.fn()} />);
- await selectDestination("Product");
- expect(screen.getByRole("button", { name: "memo.move.confirm" })).toBeDisabled();
- expect(state.update).not.toHaveBeenCalled();
- });
-});
diff --git a/web/tests/memo-settings.test.tsx b/web/tests/memo-settings.test.tsx
deleted file mode 100644
index 3187efed3..000000000
--- a/web/tests/memo-settings.test.tsx
+++ /dev/null
@@ -1,176 +0,0 @@
-import { fireEvent, render, screen } from "@testing-library/react";
-import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
-import { createInitialState, EditorProvider, useEditorContext, useEditorSelector } from "@/components/MemoEditor/state";
-import { EditorToolbar } from "@/components/MemoEditor/Toolbar/EditorToolbar";
-import MemoSettings from "@/components/MemoEditor/Toolbar/MemoSettings";
-import { Visibility } from "@/types/proto/api/v1/memo_service_pb";
-
-const spacesQuery = vi.hoisted(() => ({
- data: [
- { name: "spaces/work", title: "Work", icon: { value: { case: "emoji", value: "💎" } } },
- { name: "spaces/reading", title: "Reading" },
- ],
- isPending: false,
- isError: false,
- refetch: vi.fn(),
-}));
-vi.mock("@/components/MemoEditor/Toolbar/InsertMenu", () => ({ default: () => null }));
-vi.mock("@/hooks/useCurrentUser", () => ({ default: () => ({ name: "users/test" }) }));
-vi.mock("@/hooks/useSpaceQueries", () => ({ useSpaces: () => spacesQuery }));
-
-vi.mock("@/utils/i18n", () => ({ useTranslate: () => (key: string) => key }));
-
-// Base UI menus reach for layout/pointer APIs jsdom doesn't implement.
-beforeAll(() => {
- Element.prototype.scrollIntoView = vi.fn();
- Element.prototype.hasPointerCapture = vi.fn(() => false);
- Element.prototype.setPointerCapture = vi.fn();
- Element.prototype.releasePointerCapture = vi.fn();
-});
-
-const openMenu = async (value: Visibility, onChange = vi.fn(), space?: string) => {
- render(<MemoSettings value={value} space={space} onChange={onChange} />);
- fireEvent.click(screen.getByRole("button"));
- await screen.findByRole("dialog");
- return onChange;
-};
-
-beforeEach(() => {
- spacesQuery.isPending = false;
- spacesQuery.isError = false;
- spacesQuery.data[0].title = "Work";
-});
-
-describe("MemoSettings", () => {
- it("omits the Space audience when the edited memo has no Space placement", async () => {
- await openMenu(Visibility.PRIVATE);
-
- expect(screen.getAllByRole("radio").map((item) => item.textContent)).toEqual([
- "memo.visibility.privatememo.visibility.private-description",
- "memo.visibility.protectedmemo.visibility.protected-description",
- "memo.visibility.publicmemo.visibility.public-description",
- ]);
- });
-
- it("offers the Space audience with its own description when the edited memo belongs to a Space", async () => {
- await openMenu(Visibility.PRIVATE, vi.fn(), "spaces/product");
-
- const spaceItem = screen.getByRole("radio", { name: /memo\.visibility\.space/ });
- expect(spaceItem).toHaveTextContent("memo.visibility.space-description");
- });
-
- it("names the current Space audience even when placement is unavailable", () => {
- render(<MemoSettings value={Visibility.SPACE} onChange={vi.fn()} />);
-
- expect(screen.getByRole("button")).toHaveTextContent("memo.visibility.space");
- });
-
- it("keeps the current Space audience selectable when placement is unavailable", async () => {
- await openMenu(Visibility.SPACE);
-
- expect(screen.getByRole("radio", { name: /memo\.visibility\.space/ })).toBeInTheDocument();
- });
-
- it("reports the picked audience", async () => {
- const onChange = await openMenu(Visibility.PRIVATE);
-
- fireEvent.click(screen.getByRole("radio", { name: /memo\.visibility\.public/ }));
-
- expect(onChange).toHaveBeenCalledWith(Visibility.PUBLIC);
- });
-});
-
-describe("composer Space selection", () => {
- it("keeps Space choices behind a select in the existing settings popover", async () => {
- const onSpaceChange = vi.fn();
- const onChange = vi.fn();
- render(<MemoSettings value={Visibility.PRIVATE} onChange={onChange} onSpaceChange={onSpaceChange} />);
- expect(screen.getAllByRole("button")).toHaveLength(1);
- expect(screen.getByRole("button")).not.toHaveTextContent("space.no-space");
- fireEvent.click(screen.getByRole("button"));
- const select = await screen.findByRole("combobox", { name: "space.current" });
- expect(select).toHaveTextContent("space.no-space");
- expect(select.querySelector(".bg-sidebar-accent")).toBeNull();
- expect(screen.queryByRole("option")).not.toBeInTheDocument();
- fireEvent.click(select);
- const work = await screen.findByRole("option", { name: "Work" });
- expect(work.querySelector(".bg-sidebar-accent")).not.toBeNull();
- fireEvent.pointerDown(work, { pointerType: "mouse" });
- fireEvent.click(work);
- expect(onSpaceChange).toHaveBeenCalledWith("spaces/work");
- expect(onChange).not.toHaveBeenCalled();
- expect(screen.getByRole("dialog")).toBeInTheDocument();
- });
-
- it("clears the destination and retains full long titles for the selected value and options", async () => {
- const onSpaceChange = vi.fn();
- const longTitle = "Work " + "a very long Space title ".repeat(15);
- spacesQuery.data[0].title = longTitle;
- const { rerender } = render(
- <MemoSettings value={Visibility.PRIVATE} space="spaces/work" onChange={vi.fn()} onSpaceChange={onSpaceChange} />,
- );
- expect(screen.getByRole("button")).toHaveAttribute("title", `${longTitle} · memo.visibility.private`);
- expect(screen.getByRole("button")).toHaveTextContent("💎");
- expect(screen.getByRole("button").querySelector(".bg-sidebar-accent")).toBeNull();
- fireEvent.click(screen.getByRole("button"));
- const select = await screen.findByRole("combobox");
- expect(select).toHaveAttribute("title", longTitle);
- expect(select.querySelector(".bg-sidebar-accent")).not.toBeNull();
- fireEvent.click(select);
- expect(await screen.findByRole("option", { name: /Work a very long Space title/ })).toHaveAttribute("title", longTitle);
- const noSpace = screen.getByRole("option", { name: "space.no-space" });
- fireEvent.pointerDown(noSpace, { pointerType: "mouse" });
- fireEvent.click(noSpace);
- expect(onSpaceChange).toHaveBeenCalledWith(undefined);
- rerender(<MemoSettings value={Visibility.PRIVATE} onChange={vi.fn()} onSpaceChange={onSpaceChange} />);
- expect(screen.getByRole("combobox")).toHaveTextContent("space.no-space");
- spacesQuery.data[0].title = "Work";
- });
-
- it("omits the destination section and summary for a fixed Space", async () => {
- await openMenu(Visibility.PRIVATE, vi.fn(), "spaces/work");
- expect(screen.queryByRole("combobox")).not.toBeInTheDocument();
- expect(screen.getByRole("button")).not.toHaveTextContent("Work");
- });
-
- it("shows loading and retry states without losing visibility choices", async () => {
- spacesQuery.isPending = true;
- const props = { value: Visibility.PRIVATE, onChange: vi.fn(), onSpaceChange: vi.fn() };
- const { rerender } = render(<MemoSettings {...props} />);
- fireEvent.click(screen.getByRole("button"));
- expect(await screen.findByRole("status")).toHaveTextContent("space.loading");
- spacesQuery.isPending = false;
- spacesQuery.isError = true;
- rerender(<MemoSettings {...props} />);
- expect(screen.getByRole("alert")).toHaveTextContent("space.load-error");
- fireEvent.click(screen.getByRole("button", { name: "search.retry" }));
- expect(spacesQuery.refetch).toHaveBeenCalled();
- expect(screen.getAllByRole("radio")).toHaveLength(3);
- });
-});
-
-it("clearing Space visibility falls back to Private without discarding content", async () => {
- let getState: ReturnType<typeof useEditorContext>["getState"];
- function Toolbar() {
- getState = useEditorContext().getState;
- const space = useEditorSelector((state) => state.metadata.space);
- return <EditorToolbar space={space} canChooseSpace onSave={vi.fn()} onAudioRecorderClick={vi.fn()} onInsertImages={vi.fn()} />;
- }
- const initial = createInitialState();
- initial.content = "Keep this draft";
- initial.metadata = { ...initial.metadata, space: "spaces/work", visibility: Visibility.SPACE };
- render(
- <EditorProvider initialEditorState={initial}>
- <Toolbar />
- </EditorProvider>,
- );
- fireEvent.click(screen.getByRole("button", { name: "Work · memo.visibility.space" }));
- fireEvent.click(await screen.findByRole("combobox"));
- const noSpace = await screen.findByRole("option", { name: "space.no-space" });
- fireEvent.pointerDown(noSpace, { pointerType: "mouse" });
- fireEvent.click(noSpace);
- expect(getState!().metadata.space).toBeUndefined();
- expect(getState!().metadata.visibility).toBe(Visibility.PRIVATE);
- expect(getState!().content).toBe("Keep this draft");
- expect(screen.queryByRole("radio", { name: /memo.visibility.space/ })).not.toBeInTheDocument();
-});
diff --git a/web/tests/user-menu.test.tsx b/web/tests/user-menu.test.tsx
index e6ef97562..fb10e7473 100644
--- a/web/tests/user-menu.test.tsx
+++ b/web/tests/user-menu.test.tsx
@@ -71,7 +71,7 @@ describe("User menu panel", () => {
const inbox = within(accountHeader).getByRole("button", { name: "common.inbox" });
const archived = screen.getByRole("button", { name: "common.archived" });
expect(screen.queryByText("setting.sso.account")).not.toBeInTheDocument();
- expect(inbox).toHaveClass("h-5", "text-[10px]");
+ expect(inbox).toHaveClass("h-5", "text-2xs");
expect(inbox.compareDocumentPosition(archived) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
expect(archived.nextElementSibling).toBe(screen.getByRole("button", { name: "common.settings" }));
expect(archived).toHaveClass("bg-accent");