From 8fc8422fbcfa08927cb4e0144030446c48550cff Mon Sep 17 00:00:00 2001 From: Philip Okugbe <16838612+Philipinho@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:31:03 +0000 Subject: [PATCH 1/8] fix: increase max length for groups and spaces (#1840) --- .../src/features/group/components/create-group-form.tsx | 2 +- .../src/features/space/components/create-space-form.tsx | 7 ++++--- apps/server/src/core/group/dto/create-group.dto.ts | 2 +- apps/server/src/core/space/dto/create-space.dto.ts | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/apps/client/src/features/group/components/create-group-form.tsx b/apps/client/src/features/group/components/create-group-form.tsx index a08e725a..c11be8f2 100644 --- a/apps/client/src/features/group/components/create-group-form.tsx +++ b/apps/client/src/features/group/components/create-group-form.tsx @@ -9,7 +9,7 @@ import { useTranslation } from "react-i18next"; import { zodResolver } from 'mantine-form-zod-resolver'; const formSchema = z.object({ - name: z.string().trim().min(2).max(50), + name: z.string().trim().min(2).max(100), description: z.string().max(500), }); diff --git a/apps/client/src/features/space/components/create-space-form.tsx b/apps/client/src/features/space/components/create-space-form.tsx index 96d42be4..02ac65ce 100644 --- a/apps/client/src/features/space/components/create-space-form.tsx +++ b/apps/client/src/features/space/components/create-space-form.tsx @@ -1,6 +1,7 @@ import { Group, Box, Button, TextInput, Stack, Textarea } from "@mantine/core"; import React, { useEffect } from "react"; -import { useForm, zodResolver } from "@mantine/form"; +import { useForm } from "@mantine/form"; +import { zodResolver } from "mantine-form-zod-resolver"; import * as z from "zod"; import { useNavigate } from "react-router-dom"; import { useCreateSpaceMutation } from "@/features/space/queries/space-query.ts"; @@ -9,12 +10,12 @@ import { getSpaceUrl } from "@/lib/config.ts"; import { useTranslation } from "react-i18next"; const formSchema = z.object({ - name: z.string().trim().min(2).max(50), + name: z.string().trim().min(2).max(100), slug: z .string() .trim() .min(2) - .max(50) + .max(100) .regex( /^[a-zA-Z0-9]+$/, "Space slug must be alphanumeric. No special characters", diff --git a/apps/server/src/core/group/dto/create-group.dto.ts b/apps/server/src/core/group/dto/create-group.dto.ts index 2efdad35..34a759cb 100644 --- a/apps/server/src/core/group/dto/create-group.dto.ts +++ b/apps/server/src/core/group/dto/create-group.dto.ts @@ -11,7 +11,7 @@ import {Transform, TransformFnParams} from "class-transformer"; export class CreateGroupDto { @MinLength(2) - @MaxLength(50) + @MaxLength(100) @IsString() @Transform(({ value }: TransformFnParams) => value?.trim()) name: string; diff --git a/apps/server/src/core/space/dto/create-space.dto.ts b/apps/server/src/core/space/dto/create-space.dto.ts index bd7e6689..310bdcf2 100644 --- a/apps/server/src/core/space/dto/create-space.dto.ts +++ b/apps/server/src/core/space/dto/create-space.dto.ts @@ -9,7 +9,7 @@ import {Transform, TransformFnParams} from "class-transformer"; export class CreateSpaceDto { @MinLength(2) - @MaxLength(50) + @MaxLength(100) @IsString() @Transform(({ value }: TransformFnParams) => value?.trim()) name: string; @@ -19,7 +19,7 @@ export class CreateSpaceDto { description?: string; @MinLength(2) - @MaxLength(50) + @MaxLength(100) @IsAlphanumeric() slug: string; } From 13f529e06483067e9d20365da796eb19e070533b Mon Sep 17 00:00:00 2001 From: Philip Okugbe <16838612+Philipinho@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:35:53 +0000 Subject: [PATCH 2/8] fix anchor scroll in same page (#1834) --- .../components/mention/mention-view.tsx | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/apps/client/src/features/editor/components/mention/mention-view.tsx b/apps/client/src/features/editor/components/mention/mention-view.tsx index 1ba55380..22cb8be6 100644 --- a/apps/client/src/features/editor/components/mention/mention-view.tsx +++ b/apps/client/src/features/editor/components/mention/mention-view.tsx @@ -1,19 +1,21 @@ import { NodeViewProps, NodeViewWrapper } from "@tiptap/react"; import { ActionIcon, Anchor, Text } from "@mantine/core"; import { IconFileDescription } from "@tabler/icons-react"; -import { Link, useLocation, useParams } from "react-router-dom"; +import { Link, useLocation, useNavigate, useParams } from "react-router-dom"; import { usePageQuery } from "@/features/page/queries/page-query.ts"; import { buildPageUrl, buildSharedPageUrl, } from "@/features/page/page.utils.ts"; +import { extractPageSlugId } from "@/lib"; import classes from "./mention.module.css"; export default function MentionView(props: NodeViewProps) { const { node } = props; const { label, entityType, entityId, slugId, anchorId } = node.attrs; - const { spaceSlug } = useParams(); + const { spaceSlug, pageSlug } = useParams(); const { shareId } = useParams(); + const navigate = useNavigate(); const { data: page, isLoading, @@ -23,6 +25,20 @@ export default function MentionView(props: NodeViewProps) { const location = useLocation(); const isShareRoute = location.pathname.startsWith("/share"); + const currentPageSlugId = extractPageSlugId(pageSlug); + const isSamePage = currentPageSlugId === slugId; + + const handleClick = (e: React.MouseEvent) => { + if (isSamePage && anchorId) { + e.preventDefault(); + const element = document.querySelector(`[id="${anchorId}"]`); + if (element) { + element.scrollIntoView({ behavior: "smooth", block: "start" }); + navigate(`#${anchorId}`, { replace: true }); + } + } + }; + const shareSlugUrl = buildSharedPageUrl({ shareId, pageSlugId: slugId, @@ -45,6 +61,7 @@ export default function MentionView(props: NodeViewProps) { to={ isShareRoute ? shareSlugUrl : buildPageUrl(spaceSlug, slugId, label, anchorId) } + onClick={handleClick} underline="never" className={classes.pageMentionLink} > From 47097969a02d8627e5fed17e5243fa38a1502761 Mon Sep 17 00:00:00 2001 From: Philip Okugbe <16838612+Philipinho@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:58:26 +0000 Subject: [PATCH 3/8] fix: use subquery (#1833) - enhance file tasks list endpoint --- .../file-task/services/file-task-service.ts | 9 +++- apps/server/src/core/search/search.service.ts | 17 +++----- .../src/database/repos/page/page.repo.ts | 10 +---- .../src/database/repos/share/share.repo.ts | 10 +---- .../database/repos/space/space-member.repo.ts | 26 +++++------ apps/server/src/ee | 2 +- .../import/file-task.controller.ts | 43 ++++++++++++------- 7 files changed, 57 insertions(+), 60 deletions(-) diff --git a/apps/client/src/features/file-task/services/file-task-service.ts b/apps/client/src/features/file-task/services/file-task-service.ts index ffccbaae..dba3e5cd 100644 --- a/apps/client/src/features/file-task/services/file-task-service.ts +++ b/apps/client/src/features/file-task/services/file-task-service.ts @@ -1,5 +1,7 @@ import api from "@/lib/api-client"; import { IFileTask } from "@/features/file-task/types/file-task.types.ts"; +import { IPagination, QueryParams } from "@/lib/types.ts"; +import { IApiKey } from "@/ee/api-key"; export async function getFileTaskById(fileTaskId: string): Promise { const req = await api.post("/file-tasks/info", { @@ -8,7 +10,10 @@ export async function getFileTaskById(fileTaskId: string): Promise { return req.data; } -export async function getFileTasks(): Promise { - const req = await api.post("/file-tasks"); +export async function getFileTasks( + params?: QueryParams, +): Promise> { + const req = await api.post("/file-tasks", { ...params }); return req.data; } + diff --git a/apps/server/src/core/search/search.service.ts b/apps/server/src/core/search/search.service.ts index 29508797..376f5c9f 100644 --- a/apps/server/src/core/search/search.service.ts +++ b/apps/server/src/core/search/search.service.ts @@ -74,16 +74,13 @@ export class SearchService { queryResults = queryResults.where('spaceId', '=', searchParams.spaceId); } else if (opts.userId && !searchParams.spaceId) { // only search spaces the user is a member of - const userSpaceIds = await this.spaceMemberRepo.getUserSpaceIds( - opts.userId, - ); - if (userSpaceIds.length > 0) { - queryResults = queryResults - .where('spaceId', 'in', userSpaceIds) - .where('workspaceId', '=', opts.workspaceId); - } else { - return []; - } + queryResults = queryResults + .where( + 'spaceId', + 'in', + this.spaceMemberRepo.getUserSpaceIdsQuery(opts.userId), + ) + .where('workspaceId', '=', opts.workspaceId); } else if (searchParams.shareId && !searchParams.spaceId && !opts.userId) { // search in shares const shareId = searchParams.shareId; diff --git a/apps/server/src/database/repos/page/page.repo.ts b/apps/server/src/database/repos/page/page.repo.ts index 3b948a48..f2b27abb 100644 --- a/apps/server/src/database/repos/page/page.repo.ts +++ b/apps/server/src/database/repos/page/page.repo.ts @@ -293,24 +293,18 @@ export class PageRepo { } async getRecentPages(userId: string, pagination: PaginationOptions) { - const userSpaceIds = await this.spaceMemberRepo.getUserSpaceIds(userId); - const query = this.db .selectFrom('pages') .select(this.baseFields) .select((eb) => this.withSpace(eb)) - .where('spaceId', 'in', userSpaceIds) + .where('spaceId', 'in', this.spaceMemberRepo.getUserSpaceIdsQuery(userId)) .where('deletedAt', 'is', null) .orderBy('updatedAt', 'desc'); - const hasEmptyIds = userSpaceIds.length === 0; - const result = executeWithPagination(query, { + return executeWithPagination(query, { page: pagination.page, perPage: pagination.limit, - hasEmptyIds, }); - - return result; } async getDeletedPagesInSpace(spaceId: string, pagination: PaginationOptions) { diff --git a/apps/server/src/database/repos/share/share.repo.ts b/apps/server/src/database/repos/share/share.repo.ts index c2943c07..3cf4ab3b 100644 --- a/apps/server/src/database/repos/share/share.repo.ts +++ b/apps/server/src/database/repos/share/share.repo.ts @@ -137,25 +137,19 @@ export class ShareRepo { } async getShares(userId: string, pagination: PaginationOptions) { - const userSpaceIds = await this.spaceMemberRepo.getUserSpaceIds(userId); - const query = this.db .selectFrom('shares') .select(this.baseFields) .select((eb) => this.withPage(eb)) .select((eb) => this.withSpace(eb, userId)) .select((eb) => this.withCreator(eb)) - .where('spaceId', 'in', userSpaceIds) + .where('spaceId', 'in', this.spaceMemberRepo.getUserSpaceIdsQuery(userId)) .orderBy('updatedAt', 'desc'); - const hasEmptyIds = userSpaceIds.length === 0; - const result = executeWithPagination(query, { + return executeWithPagination(query, { page: pagination.page, perPage: pagination.limit, - hasEmptyIds, }); - - return result; } withPage(eb: ExpressionBuilder) { diff --git a/apps/server/src/database/repos/space/space-member.repo.ts b/apps/server/src/database/repos/space/space-member.repo.ts index 0850c5e1..64e4ba2c 100644 --- a/apps/server/src/database/repos/space/space-member.repo.ts +++ b/apps/server/src/database/repos/space/space-member.repo.ts @@ -209,34 +209,33 @@ export class SpaceMemberRepo { return roles; } - async getUserSpaceIds(userId: string): Promise { - const membership = await this.db + getUserSpaceIdsQuery(userId: string) { + return this.db .selectFrom('spaceMembers') .innerJoin('spaces', 'spaces.id', 'spaceMembers.spaceId') - .select(['spaces.id']) + .select('spaces.id') .where('userId', '=', userId) .union( this.db .selectFrom('spaceMembers') .innerJoin('groupUsers', 'groupUsers.groupId', 'spaceMembers.groupId') .innerJoin('spaces', 'spaces.id', 'spaceMembers.spaceId') - .select(['spaces.id']) + .select('spaces.id') .where('groupUsers.userId', '=', userId), - ) - .execute(); + ); + } + async getUserSpaceIds(userId: string): Promise { + const membership = await this.getUserSpaceIdsQuery(userId).execute(); return membership.map((space) => space.id); } async getUserSpaces(userId: string, pagination: PaginationOptions) { - const userSpaceIds = await this.getUserSpaceIds(userId); - let query = this.db .selectFrom('spaces') .selectAll() .select((eb) => [this.spaceRepo.withMemberCount(eb)]) - //.where('workspaceId', '=', workspaceId) - .where('id', 'in', userSpaceIds) + .where('id', 'in', this.getUserSpaceIdsQuery(userId)) .orderBy('createdAt', 'asc'); if (pagination.query) { @@ -253,14 +252,9 @@ export class SpaceMemberRepo { ); } - const hasEmptyIds = userSpaceIds.length === 0; - - const result = executeWithPagination(query, { + return executeWithPagination(query, { page: pagination.page, perPage: pagination.limit, - hasEmptyIds, }); - - return result; } } diff --git a/apps/server/src/ee b/apps/server/src/ee index 075761c2..b55f6f5d 160000 --- a/apps/server/src/ee +++ b/apps/server/src/ee @@ -1 +1 @@ -Subproject commit 075761c2d9bcae7adcc3de4b1c5b8f8c3b315878 +Subproject commit b55f6f5d236a40e0ebe831d4a07320137589f2f5 diff --git a/apps/server/src/integrations/import/file-task.controller.ts b/apps/server/src/integrations/import/file-task.controller.ts index 305779b4..096cd5aa 100644 --- a/apps/server/src/integrations/import/file-task.controller.ts +++ b/apps/server/src/integrations/import/file-task.controller.ts @@ -10,46 +10,59 @@ import { } from '@nestjs/common'; import SpaceAbilityFactory from '../../core/casl/abilities/space-ability.factory'; import { JwtAuthGuard } from '../../common/guards/jwt-auth.guard'; -import { User } from '@docmost/db/types/entity.types'; +import { User, Workspace } from '@docmost/db/types/entity.types'; import { SpaceCaslAction, SpaceCaslSubject, } from '../../core/casl/interfaces/space-ability.type'; +import { + WorkspaceCaslAction, + WorkspaceCaslSubject, +} from '../../core/casl/interfaces/workspace-ability.type'; +import WorkspaceAbilityFactory from '../../core/casl/abilities/workspace-ability.factory'; +import { AuthWorkspace } from '../../common/decorators/auth-workspace.decorator'; import { InjectKysely } from 'nestjs-kysely'; import { KyselyDB } from '@docmost/db/types/kysely.types'; import { AuthUser } from '../../common/decorators/auth-user.decorator'; import { FileTaskIdDto } from './dto/file-task-dto'; import { SpaceMemberRepo } from '@docmost/db/repos/space/space-member.repo'; +import { PaginationOptions } from '@docmost/db/pagination/pagination-options'; +import { executeWithPagination } from '@docmost/db/pagination/pagination'; @Controller('file-tasks') export class FileTaskController { constructor( - private readonly spaceMemberRepo: SpaceMemberRepo, private readonly spaceAbility: SpaceAbilityFactory, + private readonly workspaceAbility: WorkspaceAbilityFactory, + private readonly spaceMemberRepo: SpaceMemberRepo, @InjectKysely() private readonly db: KyselyDB, ) {} @UseGuards(JwtAuthGuard) @HttpCode(HttpStatus.OK) @Post() - async getFileTasks(@AuthUser() user: User) { - const userSpaceIds = await this.spaceMemberRepo.getUserSpaceIds(user.id); - - if (!userSpaceIds || userSpaceIds.length === 0) { - return []; + async getFileTasks( + @Body() pagination: PaginationOptions, + @AuthUser() user: User, + @AuthWorkspace() workspace: Workspace, + ) { + const ability = this.workspaceAbility.createForUser(user, workspace); + if ( + ability.cannot(WorkspaceCaslAction.Manage, WorkspaceCaslSubject.Settings) + ) { + throw new ForbiddenException(); } - const fileTasks = await this.db + const query = this.db .selectFrom('fileTasks') .selectAll() - .where('spaceId', 'in', userSpaceIds) - .execute(); + .where('spaceId', 'in', this.spaceMemberRepo.getUserSpaceIdsQuery(user.id)) + .orderBy('createdAt', 'desc'); - if (!fileTasks) { - throw new NotFoundException('File task not found'); - } - - return fileTasks; + return executeWithPagination(query, { + page: pagination.page, + perPage: pagination.limit, + }); } @UseGuards(JwtAuthGuard) From 0bbc1c35deb5a9ab2545a662f4ba7c81197644cd Mon Sep 17 00:00:00 2001 From: Philip Okugbe <16838612+Philipinho@users.noreply.github.com> Date: Tue, 13 Jan 2026 16:00:22 +0000 Subject: [PATCH 4/8] fix: public sharing performance improvements (#1841) --- .../page/tree/components/space-tree.tsx | 11 +- .../features/share/components/share-modal.tsx | 7 +- .../src/features/share/queries/share-query.ts | 4 +- apps/server/src/core/share/share.service.ts | 100 +++++++++--------- 4 files changed, 63 insertions(+), 59 deletions(-) diff --git a/apps/client/src/features/page/tree/components/space-tree.tsx b/apps/client/src/features/page/tree/components/space-tree.tsx index e8abcae8..d889a89e 100644 --- a/apps/client/src/features/page/tree/components/space-tree.tsx +++ b/apps/client/src/features/page/tree/components/space-tree.tsx @@ -269,12 +269,15 @@ function Node({ node, style, dragHandle, tree }: NodeRendererProps) { const toggleMobileSidebar = useToggleSidebar(mobileSidebarAtom); const prefetchPage = () => { - timerRef.current = setTimeout(() => { - queryClient.prefetchQuery({ - queryKey: ["pages", node.data.slugId], - queryFn: () => getPageById({ pageId: node.data.slugId }), + timerRef.current = setTimeout(async () => { + const page = await queryClient.fetchQuery({ + queryKey: ["pages", node.data.id], + queryFn: () => getPageById({ pageId: node.data.id }), staleTime: 5 * 60 * 1000, }); + if (page?.slugId) { + queryClient.setQueryData(["pages", page.slugId], page); + } }, 150); }; diff --git a/apps/client/src/features/share/components/share-modal.tsx b/apps/client/src/features/share/components/share-modal.tsx index a39effca..cf597e0a 100644 --- a/apps/client/src/features/share/components/share-modal.tsx +++ b/apps/client/src/features/share/components/share-modal.tsx @@ -8,7 +8,6 @@ import { Switch, Text, TextInput, - Tooltip, } from "@mantine/core"; import { IconExternalLink, IconWorld, IconLock } from "@tabler/icons-react"; import React, { useEffect, useMemo, useState } from "react"; @@ -21,12 +20,12 @@ import { import { Link, useNavigate, useParams } from "react-router-dom"; import { extractPageSlugId, getPageIcon } from "@/lib"; import { useTranslation } from "react-i18next"; +import { usePageQuery } from "@/features/page/queries/page-query.ts"; import CopyTextButton from "@/components/common/copy.tsx"; import { getAppUrl, isCloud } from "@/lib/config.ts"; import { buildPageUrl } from "@/features/page/page.utils.ts"; import classes from "@/features/share/components/share.module.css"; import useTrial from "@/ee/hooks/use-trial.tsx"; -import { getCheckoutLink } from "@/ee/billing/services/billing-service.ts"; interface ShareModalProps { readOnly: boolean; @@ -35,7 +34,9 @@ export default function ShareModal({ readOnly }: ShareModalProps) { const { t } = useTranslation(); const navigate = useNavigate(); const { pageSlug } = useParams(); - const pageId = extractPageSlugId(pageSlug); + const pageSlugId = extractPageSlugId(pageSlug); + const { data: page } = usePageQuery({ pageId: pageSlugId }); + const pageId = page?.id; const { data: share } = useShareForPageQuery(pageId); const { spaceSlug } = useParams(); const { isTrial } = useTrial(); diff --git a/apps/client/src/features/share/queries/share-query.ts b/apps/client/src/features/share/queries/share-query.ts index dea047bf..97ecff76 100644 --- a/apps/client/src/features/share/queries/share-query.ts +++ b/apps/client/src/features/share/queries/share-query.ts @@ -27,9 +27,7 @@ import { getShares, updateShare, } from "@/features/share/services/share-service.ts"; -import { IPage } from "@/features/page/types/page.types.ts"; import { IPagination, QueryParams } from "@/lib/types.ts"; -import { useEffect } from "react"; export function useGetSharesQuery( params?: QueryParams, @@ -72,7 +70,7 @@ export function useShareForPageQuery( queryKey: ["share-for-page", pageId], queryFn: () => getShareForPage(pageId), enabled: !!pageId, - staleTime: 0, + staleTime: 60 * 1000, retry: false, }); diff --git a/apps/server/src/core/share/share.service.ts b/apps/server/src/core/share/share.service.ts index d065f860..82b8660c 100644 --- a/apps/server/src/core/share/share.service.ts +++ b/apps/server/src/core/share/share.service.ts @@ -123,80 +123,82 @@ export class ShareService { .withRecursive('page_hierarchy', (cte) => cte .selectFrom('pages') + .leftJoin('shares', 'shares.pageId', 'pages.id') .select([ - 'id', - 'slugId', + 'pages.id', + 'pages.slugId', 'pages.title', 'pages.icon', - 'parentPageId', + 'pages.parentPageId', sql`0`.as('level'), + 'shares.id as shareId', + 'shares.key as shareKey', + 'shares.includeSubPages', + 'shares.searchIndexing', + 'shares.creatorId', + 'shares.spaceId', + 'shares.workspaceId', + 'shares.createdAt', ]) - .where(isValidUUID(pageId) ? 'id' : 'slugId', '=', pageId) - .where('deletedAt', 'is', null) - .unionAll((union) => - union - .selectFrom('pages as p') - .select([ - 'p.id', - 'p.slugId', - 'p.title', - 'p.icon', - 'p.parentPageId', - // Increase the level by 1 for each ancestor. - sql`ph.level + 1`.as('level'), - ]) - .innerJoin('page_hierarchy as ph', 'ph.parentPageId', 'p.id') - .where('p.deletedAt', 'is', null), + .where(isValidUUID(pageId) ? 'pages.id' : 'pages.slugId', '=', pageId) + .where('pages.deletedAt', 'is', null) + .unionAll( + (union) => + union + .selectFrom('pages as p') + .innerJoin('page_hierarchy as ph', 'ph.parentPageId', 'p.id') + .leftJoin('shares as s', 's.pageId', 'p.id') + .select([ + 'p.id', + 'p.slugId', + 'p.title', + 'p.icon', + 'p.parentPageId', + sql`ph.level + 1`.as('level'), + 's.id as shareId', + 's.key as shareKey', + 's.includeSubPages', + 's.searchIndexing', + 's.creatorId', + 's.spaceId', + 's.workspaceId', + 's.createdAt', + ]) + .where('p.deletedAt', 'is', null) + .where(sql`ph.share_id`, 'is', null) // stop if share found + .where(sql`ph.level`, '<', sql`25`), // prevent loop ), ) .selectFrom('page_hierarchy') - .leftJoin('shares', 'shares.pageId', 'page_hierarchy.id') - .select([ - 'page_hierarchy.id as sharedPageId', - 'page_hierarchy.slugId as sharedPageSlugId', - 'page_hierarchy.title as sharedPageTitle', - 'page_hierarchy.icon as sharedPageIcon', - 'page_hierarchy.level as level', - 'shares.id', - 'shares.key', - 'shares.pageId', - 'shares.includeSubPages', - 'shares.searchIndexing', - 'shares.creatorId', - 'shares.spaceId', - 'shares.workspaceId', - 'shares.createdAt', - 'shares.updatedAt', - ]) - .where('shares.id', 'is not', null) - .orderBy('page_hierarchy.level', 'asc') + .selectAll() + .where('shareId', 'is not', null) + .limit(1) .executeTakeFirst(); - if (!share || share.workspaceId != workspaceId) { + if (!share || share.workspaceId !== workspaceId) { return undefined; } - if (share.level === 1 && !share.includeSubPages) { - // we can only show a page if its shared ancestor permits it + if ((share.level as number) > 0 && !share.includeSubPages) { return undefined; } return { - id: share.id, - key: share.key, + id: share.shareId, + key: share.shareKey, includeSubPages: share.includeSubPages, searchIndexing: share.searchIndexing, - pageId: share.pageId, + pageId: share.id, creatorId: share.creatorId, spaceId: share.spaceId, workspaceId: share.workspaceId, createdAt: share.createdAt, level: share.level, sharedPage: { - id: share.sharedPageId, - slugId: share.sharedPageSlugId, - title: share.sharedPageTitle, - icon: share.sharedPageIcon, + id: share.id, + slugId: share.slugId, + title: share.title, + icon: share.icon, }, }; } From 6d148a35eb7437bbcb704818c91554158b1dc8ec Mon Sep 17 00:00:00 2001 From: Philip Okugbe <16838612+Philipinho@users.noreply.github.com> Date: Tue, 13 Jan 2026 16:01:08 +0000 Subject: [PATCH 5/8] New Crowdin updates (#1830) * New translations translation.json (Japanese) * New translations translation.json (Japanese) --- .../public/locales/ja-JP/translation.json | 288 +++++++++--------- 1 file changed, 144 insertions(+), 144 deletions(-) diff --git a/apps/client/public/locales/ja-JP/translation.json b/apps/client/public/locales/ja-JP/translation.json index 6ea006d7..2c3cce5a 100644 --- a/apps/client/public/locales/ja-JP/translation.json +++ b/apps/client/public/locales/ja-JP/translation.json @@ -13,21 +13,21 @@ "Are you sure you want to remove this user from the group? The user will lose access to resources this group has access to.": "このユーザをグループから削除してもよろしいですか? ユーザはこのグループがアクセス権を持つリソースにアクセスできなくなります。", "Are you sure you want to remove this user from the space? The user will lose all access to this space.": "このユーザをスペースから削除してもよろしいですか? ユーザはこのスペースへのアクセス権をすべて失います。", "Are you sure you want to restore this version? Any changes not versioned will be lost.": "このバージョンを復元してもよろしいですか? バージョン管理されていない変更は失われます。", - "Can become members of groups and spaces in workspace": "ワークスペース内のグループやスペースのメンバーになることができます", - "Can create and edit pages in space.": "スペース内のページを作成および編集できます。", + "Can become members of groups and spaces in workspace": "ワークスペース内のグループやスペースのメンバーになれます", + "Can create and edit pages in space.": "スペース内のページを作成・編集できます", "Can edit": "編集可能", "Can manage workspace": "ワークスペースを管理できます", - "Can manage workspace but cannot delete it": "ワークスペースを管理できますが、削除はできません", + "Can manage workspace but cannot delete it": "ワークスペースを管理できますが削除はできません", "Can view": "閲覧可能", - "Can view pages in space but not edit.": "スペース内のページを閲覧できますが、編集はできません。", + "Can view pages in space but not edit.": "スペース内のページを閲覧できますが編集はできません", "Cancel": "キャンセル", "Change email": "メールアドレスの変更", "Change password": "パスワードの変更", "Change photo": "画像の変更", "Choose a role": "ロールを選んでください", - "Choose your preferred color scheme.": "お好みのカラースキームを選択してください。", - "Choose your preferred interface language.": "お好みのインターフェース言語を選択してください。", - "Choose your preferred page width.": "左右の余白を縮小する場合はオンにしてください。", + "Choose your preferred color scheme.": "お好みのカラースキームを選択してください", + "Choose your preferred interface language.": "お好みの言語を選択してください", + "Choose your preferred page width.": "お好みのページ幅を選択してください", "Confirm": "確認", "Copy link": "リンクをコピー", "Create": "新規作成", @@ -40,24 +40,24 @@ "Date": "日付", "Delete": "削除", "Delete group": "グループを削除", - "Are you sure you want to delete this page? This will delete its children and page history. This action is irreversible.": "このページを削除してもよろしいですか?この操作により、子ページおよびページ履歴が削除されます。この操作は元に戻せません。", + "Are you sure you want to delete this page? This will delete its children and page history. This action is irreversible.": "このページを削除してもよろしいですか?子ページとページ履歴も削除されます。この操作は取り消せません。", "Description": "説明", "Details": "詳細", "e.g ACME": "例: 山田太郎", "e.g ACME Inc": "例: 株式会社サンプル", "e.g Developers": "例: エンジニア", - "e.g Group for developers": "例: エンジニアグループ", + "e.g Group for developers": "例: 開発チーム", "e.g product": "例: product", - "e.g Product Team": "例: 製品チーム", - "e.g Sales": "例: 営業", - "e.g Space for product team": "例: 製品チームのスペース", - "e.g Space for sales team to collaborate": "例: 営業チーム連携用スペース", + "e.g Product Team": "例: プロダクトチーム", + "e.g Sales": "例: 営業部", + "e.g Space for product team": "例: プロダクトチーム用スペース", + "e.g Space for sales team to collaborate": "例: 営業チーム用スペース", "Edit": "編集", - "Read": "読む", + "Read": "閲覧", "Edit group": "グループを編集", "Email": "メールアドレス", "Enter a strong password": "強力なパスワードを入力してください", - "Enter valid email addresses separated by comma or space max_50": "有効なメールアドレスをカンマまたはスペースで区切って入力してください(最大 50 個)", + "Enter valid email addresses separated by comma or space max_50": "メールアドレスをカンマまたはスペース区切りで入力(最大50件)", "enter valid emails addresses": "有効なメールアドレスを入力してください", "Enter your current password": "現在のパスワードを入力してください", "enter your full name": "氏名を入力してください", @@ -81,18 +81,18 @@ "Group description": "グループ説明", "Group name": "グループ名", "Groups": "グループ", - "Has full access to space settings and pages.": "スペース設定とページにフルアクセスできます。", + "Has full access to space settings and pages.": "スペース設定とページにフルアクセスできます", "Home": "ホーム", "Import pages": "ページをインポート", "Import pages & space settings": "ページとスペース設定をインポート", "Importing pages": "ページをインポートしています", - "invalid invitation link": "招待リンクが間違っています", + "invalid invitation link": "無効な招待リンクです", "Invitation signup": "招待登録", "Invite by email": "メールアドレスで招待する", "Invite members": "メンバーを招待する", "Invite new members": "新しいメンバーを招待する", - "Invited members who are yet to accept their invitation will appear here.": "招待をまだ承諾していないメンバーはここに表示されます。", - "Invited members will be granted access to spaces the groups can access": "招待されたメンバーは、グループがアクセスできるスペースにアクセス権が付与されます", + "Invited members who are yet to accept their invitation will appear here.": "招待を承諾していないメンバーがここに表示されます", + "Invited members will be granted access to spaces the groups can access": "招待されたメンバーはグループがアクセスできるスペースにアクセスできます", "Join the workspace": "ワークスペースに参加", "Language": "言語", "Light": "ライト", @@ -113,20 +113,20 @@ "New page": "新規ページ", "New password": "新しいパスワード", "No group found": "グループが見つかりません", - "No page history saved yet.": "まだページの履歴が保存されていません。", + "No page history saved yet.": "ページ履歴がありません", "No pages yet": "ページがありません", - "No results found...": "結果が見つかりませんでした...", - "No user found": "ユーザがいません", + "No results found...": "結果が見つかりません", + "No user found": "ユーザーが見つかりません", "Overview": "概要", "Owner": "所有者", "page": "ページ", - "Page deleted successfully": "ページが正常に削除されました", - "Page history": "ページの履歴", - "Page import is in progress. Please do not close this tab.": "ページのインポートが進行中です。このタブを閉じないでください。", + "Page deleted successfully": "ページを削除しました", + "Page history": "ページ履歴", + "Page import is in progress. Please do not close this tab.": "ページをインポート中です。このタブを閉じないでください", "Pages": "ページ", "pages": "ページ", "Password": "パスワード", - "Password changed successfully": "パスワードが正常に変更されました", + "Password changed successfully": "パスワードを変更しました", "Pending": "保留中", "Please confirm your action": "アクションを確認してください", "Preferences": "設定", @@ -143,95 +143,95 @@ "Search for groups": "グループを検索", "Search for users": "ユーザーを検索", "Search for users and groups": "ユーザーとグループを検索", - "Search...": "検索する語句を入力", + "Search...": "検索", "Select language": "言語を選択", "Select role": "ロールを選択", - "Select role to assign to all invited members": "招待されたすべてのメンバーに割り当てるロールを選択してください", + "Select role to assign to all invited members": "招待するメンバーに割り当てるロールを選択", "Select theme": "テーマを選択", "Send invitation": "招待を送る", - "Invitation sent": "招待が送信されました", + "Invitation sent": "招待を送信しました", "Settings": "設定", "Setup workspace": "ワークスペースを設定する", "Sign In": "サインイン", - "Sign Up": "アカウント登録", - "Slug": "Slug (URL用文字列)", + "Sign Up": "新規登録", + "Slug": "スラッグ(URL識別子)", "Space": "スペース", "Space description": "スペース説明", "Space menu": "スペースメニュー", "Space name": "スペース名", "Space settings": "スペース設定", - "Space slug": "スペースのSlug (URL用文字列)", + "Space slug": "スペースのスラッグ(URL識別子)", "Spaces": "スペース", "Spaces you belong to": "所属しているスペース", "No space found": "スペースが見つかりません", "Search for spaces": "スペースを検索", - "Start typing to search...": "検索を開始するには入力してください...", + "Start typing to search...": "入力して検索", "Status": "ステータス", - "Successfully imported": "インポートに成功しました", - "Successfully restored": "正常に復元されました", + "Successfully imported": "インポートしました", + "Successfully restored": "復元しました", "System settings": "システム設定", "Theme": "テーマ", - "To change your email, you have to enter your password and new email.": "メールアドレスを変更するには、パスワードと新しいメールアドレスを入力する必要があります。", - "Toggle full page width": "ページ幅を切り替える", - "Unable to import pages. Please try again.": "ページをインポートできません。もう一度お試しください。", + "To change your email, you have to enter your password and new email.": "メールアドレスを変更するには、パスワードと新しいメールアドレスを入力してください", + "Toggle full page width": "ページ幅を切り替え", + "Unable to import pages. Please try again.": "ページをインポートできませんでした。もう一度お試しください", "untitled": "無題", "Untitled": "無題", - "Updated successfully": "正常に更新されました", + "Updated successfully": "更新しました", "User": "ユーザー", "Workspace": "ワークスペース", "Workspace Name": "ワークスペース名", "Workspace settings": "ワークスペース設定", - "You can change your password here.": "パスワードを変更できます。", + "You can change your password here.": "パスワードを変更できます", "Your Email": "メールアドレス", - "Your import is complete.": "インポートが完了しました。", + "Your import is complete.": "インポートが完了しました", "Your name": "名前", "Your Name": "名前", "Your password": "パスワード", - "Your password must be a minimum of 8 characters.": "パスワードは最低 8 文字必要です。", + "Your password must be a minimum of 8 characters.": "パスワードは8文字以上にしてください", "Sidebar toggle": "サイドバー切り替え", "Comments": "コメント", "404 page not found": "404 ページが見つかりません", - "Sorry, we can't find the page you are looking for.": "お探しのページが見つかりません。", + "Sorry, we can't find the page you are looking for.": "お探しのページが見つかりません", "Take me back to homepage": "ホームに戻る", "Forgot password": "パスワードを忘れた", "Forgot your password?": "パスワードを忘れましたか?", - "A password reset link has been sent to your email. Please check your inbox.": "パスワードリセットリンクがあなたのメールアドレスに送信されました。受信箱を確認してください。", - "Send reset link": "リセットリンクを送る", + "A password reset link has been sent to your email. Please check your inbox.": "パスワードリセット用のリンクをメールに送信しました。受信トレイを確認してください", + "Send reset link": "リセットリンクを送信", "Password reset": "パスワードリセット", "Your new password": "新しいパスワード", "Set password": "パスワードを設定", "Write a comment": "コメントを書く", "Reply...": "返信...", - "Error loading comments.": "コメントの読み込み中にエラーが発生しました。", - "No comments yet.": "コメントがありません。", + "Error loading comments.": "コメントの読み込みに失敗しました", + "No comments yet.": "コメントがありません", "Edit comment": "コメントを編集する", "Delete comment": "コメントを削除する", "Are you sure you want to delete this comment?": "このコメントを削除してもよろしいですか?", - "Comment created successfully": "コメントが作成されました", - "Error creating comment": "コメントの作成中にエラーが発生しました", - "Comment updated successfully": "コメントが更新されました", + "Comment created successfully": "コメントを作成しました", + "Error creating comment": "コメントの作成に失敗しました", + "Comment updated successfully": "コメントを更新しました", "Failed to update comment": "コメントの更新に失敗しました", - "Comment deleted successfully": "コメントが削除されました", + "Comment deleted successfully": "コメントを削除しました", "Failed to delete comment": "コメントの削除に失敗しました", - "Comment resolved successfully": "コメントが解決されました", - "Comment re-opened successfully": "コメントが再開されました", - "Comment unresolved successfully": "コメントが再解決されました", + "Comment resolved successfully": "コメントを解決しました", + "Comment re-opened successfully": "コメントを再開しました", + "Comment unresolved successfully": "コメントを未解決に戻しました", "Failed to resolve comment": "コメントの解決に失敗しました", "Resolve comment": "コメントを解決", - "Unresolve comment": "コメントを再解決", + "Unresolve comment": "コメントを未解決に戻す", "Resolve Comment Thread": "コメントスレッドを解決", - "Unresolve Comment Thread": "コメントスレッドを再解決", - "Are you sure you want to resolve this comment thread? This will mark it as completed.": "このコメントスレッドを解決しますか? これにより完了としてマークされます。", - "Are you sure you want to unresolve this comment thread?": "このコメントスレッドを再解決しますか?", + "Unresolve Comment Thread": "コメントスレッドを未解決に戻す", + "Are you sure you want to resolve this comment thread? This will mark it as completed.": "このコメントスレッドを解決しますか?完了としてマークされます", + "Are you sure you want to unresolve this comment thread?": "このコメントスレッドを未解決に戻しますか?", "Resolved": "解決済", - "No active comments.": "アクティブなコメントはありません。", - "No resolved comments.": "解決されたコメントはありません。", + "No active comments.": "アクティブなコメントはありません", + "No resolved comments.": "解決済みのコメントはありません", "Revoke invitation": "招待を取り消す", "Revoke": "取り消す", "Don't": "取り消さない", - "Are you sure you want to revoke this invitation? The user will not be able to join the workspace.": "この招待を取り消してもよろしいですか? ユーザはワークスペースに参加できなくなります。", + "Are you sure you want to revoke this invitation? The user will not be able to join the workspace.": "この招待を取り消してもよろしいですか?ユーザーはワークスペースに参加できなくなります", "Resend invitation": "招待を再度送る", - "Anyone with this link can join this workspace.": "このリンクを持っている人は誰でもこのワークスペースに参加できます。", + "Anyone with this link can join this workspace.": "このリンクを知っている人は誰でもワークスペースに参加できます", "Invite link": "招待リンク", "Copy": "コピー", "Copy to space": "スペースにコピー", @@ -239,13 +239,13 @@ "Duplicate": "複製", "Select a user": "ユーザを選択", "Select a group": "グループを選択", - "Export all pages and attachments in this space.": "このスペースのすべてのページと添付ファイルをエクスポートします。", + "Export all pages and attachments in this space.": "このスペースのすべてのページと添付ファイルをエクスポートします", "Delete space": "スペースを削除", "Are you sure you want to delete this space?": "このスペースを削除してもよろしいですか?", - "Delete this space with all its pages and data.": "このスペースおよびスペース内のすべてのページとデータを削除します。", - "All pages, comments, attachments and permissions in this space will be deleted irreversibly.": "このスペース内のすべてのページ、コメント、添付ファイル、および権限は完全に削除されます。", + "Delete this space with all its pages and data.": "このスペースとすべてのページ、データを削除します", + "All pages, comments, attachments and permissions in this space will be deleted irreversibly.": "スペース内のすべてのページ、コメント、添付ファイル、権限が完全に削除されます", "Confirm space name": "スペース名を確認する", - "Type the space name {{spaceName}} to confirm your action.": "アクションを確認するためにスペース名 {{spaceName}} を入力してください。", + "Type the space name {{spaceName}} to confirm your action.": "確認のためスペース名 {{spaceName}} を入力してください", "Format": "フォーマット", "Include subpages": "サブページを含める", "Include attachments": "添付ファイルを含める", @@ -273,12 +273,12 @@ "Success": "成功", "Warning": "警告", "Danger": "危険", - "Mermaid diagram error:": "Mermaid コードエラー", - "Invalid Mermaid diagram": "無効な Mermaid コードです", - "Double-click to edit Draw.io diagram": "ダブルクリックしてDraw.ioの図を編集", + "Mermaid diagram error:": "Mermaid ダイアグラムエラー:", + "Invalid Mermaid diagram": "無効な Mermaid ダイアグラムです", + "Double-click to edit Draw.io diagram": "ダブルクリックして Draw.io 図を編集", "Exit": "終了", "Save & Exit": "保存して終了", - "Double-click to edit Excalidraw diagram": "ダブルクリックしてExcalidraw図を編集", + "Double-click to edit Excalidraw diagram": "ダブルクリックして Excalidraw 図を編集", "Paste link": "リンクを貼り付け", "Edit link": "リンクを編集", "Remove link": "リンクを削除", @@ -315,22 +315,22 @@ "Bullet List": "箇条書きリスト", "Numbered List": "番号付きリスト", "Blockquote": "引用", - "Just start typing with plain text.": "すぐに文章を書き始められます。", - "Track tasks with a to-do list.": "Todoリストでタスクを追跡します。", - "Big section heading.": "大きいフォントのセクション見出しです。", - "Medium section heading.": "中くらいのフォントのセクション見出しです。", - "Small section heading.": "小さいフォントのセクション見出しです。", - "Create a simple bullet list.": "シンプルな箇条書きのリストを作成します。", - "Create a list with numbering.": "番号付きのリストを作成します。", - "Create block quote.": "引用文を作成します。", - "Insert code snippet.": "コードスニペットを入力します。", - "Insert horizontal rule divider": "水平線を挿入します。", - "Upload any image from your device.": "画像をアップロードします。", - "Upload any video from your device.": "動画をアップロードします。", - "Upload any file from your device.": "ファイルをアップロードします。", + "Just start typing with plain text.": "プレーンテキストを入力します", + "Track tasks with a to-do list.": "Todo リストでタスクを管理します", + "Big section heading.": "大見出し", + "Medium section heading.": "中見出し", + "Small section heading.": "小見出し", + "Create a simple bullet list.": "箇条書きリストを作成します", + "Create a list with numbering.": "番号付きリストを作成します", + "Create block quote.": "引用ブロックを作成します", + "Insert code snippet.": "コードスニペットを挿入します", + "Insert horizontal rule divider": "区切り線を挿入します", + "Upload any image from your device.": "デバイスから画像をアップロードします", + "Upload any video from your device.": "デバイスから動画をアップロードします", + "Upload any file from your device.": "デバイスからファイルをアップロードします", "Table": "テーブル", - "Insert a table.": "表を挿入します。", - "Insert collapsible block.": "折りたたみ可能なブロックを挿入します。", + "Insert a table.": "テーブルを挿入します", + "Insert collapsible block.": "折りたたみブロックを挿入します", "Video": "動画", "Divider": "区切り線", "Quote": "引用", @@ -338,16 +338,16 @@ "File attachment": "ファイル添付", "Toggle block": "ブロックを切り替える", "Callout": "コールアウト", - "Insert callout notice.": "コールアウトブロックを挿入します。", + "Insert callout notice.": "コールアウトを挿入します", "Math inline": "インライン数式", - "Insert inline math equation.": "インライン数式を挿入します。", + "Insert inline math equation.": "インライン数式を挿入します", "Math block": "数式ブロック", "Insert math equation": "数式を挿入します", - "Mermaid diagram": "Mermaidコード", - "Insert mermaid diagram": "Mermaidコードを記述して図を挿入します", - "Insert and design Drawio diagrams": "Drawioの図を挿入してデザインします", - "Insert current date": "今日の日付を挿入します", - "Draw and sketch excalidraw diagrams": "Excalidrawの図を埋め込みます", + "Mermaid diagram": "Mermaid ダイアグラム", + "Insert mermaid diagram": "Mermaid ダイアグラムを挿入します", + "Insert and design Drawio diagrams": "Draw.io 図を挿入・編集します", + "Insert current date": "現在の日付を挿入します", + "Draw and sketch excalidraw diagrams": "Excalidraw 図を挿入します", "Multiple": "複数", "Heading {{level}}": "見出し {{level}}", "Toggle title": "タイトルの表示/非表示を切り替える", @@ -357,29 +357,29 @@ "Yesterday, {{time}}": "昨日、{{time}}", "Space created successfully": "スペースを作成しました", "Space updated successfully": "スペースを更新しました", - "Space deleted successfully": "スペースが削除されました", + "Space deleted successfully": "スペースを削除しました", "Members added successfully": "メンバーを追加しました", - "Member removed successfully": "メンバーが削除されました", + "Member removed successfully": "メンバーを削除しました", "Member role updated successfully": "メンバーのロールを更新しました", "Created by: {{creatorName}}": "作成者: {{creatorName}}", - "Created at: {{time}}": "が作成しました:{{time}}", + "Created at: {{time}}": "作成日: {{time}}", "Edited by {{name}} {{time}}": "最終編集: {{name}} {{time}}", - "Word count: {{wordCount}}": "ワード数: {{wordCount}}", + "Word count: {{wordCount}}": "単語数: {{wordCount}}", "Character count: {{characterCount}}": "文字数: {{characterCount}}", "New update": "新規更新", - "{{latestVersion}} is available": "{{latestVersion}}は利用可能です", + "{{latestVersion}} is available": "{{latestVersion}} が利用可能です", "Default page edit mode": "デフォルトのページ編集モード", - "Choose your preferred page edit mode. Avoid accidental edits.": "希望のページ編集モードを選択してください。誤って編集を防ぎます。", + "Choose your preferred page edit mode. Avoid accidental edits.": "お好みのページ編集モードを選択してください(誤編集を防止します)", "Reading": "読み取り", "Delete member": "メンバーを削除する", - "Member deleted successfully": "メンバーが削除されました", - "Are you sure you want to delete this workspace member? This action is irreversible.": "ワークスペースメンバーを削除してもよろしいですか?この操作は元に戻せません。", + "Member deleted successfully": "メンバーを削除しました", + "Are you sure you want to delete this workspace member? This action is irreversible.": "このメンバーを削除してもよろしいですか?この操作は取り消せません", "Move": "移動", "Move page": "ページを移動", - "Move page to a different space.": "ページを別のスペースに移動します。", - "Real-time editor connection lost. Retrying...": "リアルタイムエディターの接続が失われました。再試行しています…", + "Move page to a different space.": "ページを別のスペースに移動します", + "Real-time editor connection lost. Retrying...": "リアルタイム編集の接続が切断されました。再接続中...", "Table of contents": "目次", - "Add headings (H1, H2, H3) to generate a table of contents.": "見出し(H1、H2、H3)を追加して目次を生成します。", + "Add headings (H1, H2, H3) to generate a table of contents.": "見出し(H1、H2、H3)を追加すると目次が生成されます", "Share": "共有", "Public sharing": "公開共有", "Shared by": "共有者", @@ -398,13 +398,13 @@ "Delete share": "共有を削除", "Are you sure you want to delete this shared link?": "この共有リンクを削除してもよろしいですか?", "Publicly shared pages from spaces you are a member of will appear here": "メンバーであるスペースからの公開ページがここに表示されます", - "Share deleted successfully": "共有が正常に削除されました", + "Share deleted successfully": "共有を削除しました", "Share not found": "共有が見つかりません", "Failed to share page": "ページの共有に失敗しました", "Copy page": "ページをコピー", - "Copy page to a different space.": "ページを別のスペースにコピーします。", - "Page copied successfully": "ページのコピーに成功しました", - "Page duplicated successfully": "ページが正常に複製されました", + "Copy page to a different space.": "ページを別のスペースにコピーします", + "Page copied successfully": "ページをコピーしました", + "Page duplicated successfully": "ページを複製しました", "Find": "検索", "Not found": "見つかりません", "Previous Match (Shift+Enter)": "前の一致 (Shift+Enter)", @@ -419,26 +419,26 @@ "Error": "エラー", "Failed to disable MFA": "MFAの無効化に失敗しました", "Disable two-factor authentication": "二要素認証を無効化", - "Disabling two-factor authentication will make your account less secure. You'll only need your password to sign in.": "二要素認証を無効化すると、アカウントのセキュリティが低下します。サインインにはパスワードのみが必要になります。", - "Please enter your password to disable two-factor authentication:": "二要素認証を無効化するにはパスワードを入力してください:", - "Two-factor authentication has been enabled": "二要素認証が有効になりました", - "Two-factor authentication has been disabled": "二要素認証が無効になりました", - "2-step verification": "2段階確認", - "Protect your account with an additional verification layer when signing in.": "サインイン時に追加の認証レイヤーでアカウントを保護します。", - "Two-factor authentication is active on your account.": "二要素認証がアカウントで有効です。", + "Disabling two-factor authentication will make your account less secure. You'll only need your password to sign in.": "二要素認証を無効にすると、アカウントのセキュリティが低下します。サインインにはパスワードのみが必要になります", + "Please enter your password to disable two-factor authentication:": "二要素認証を無効にするにはパスワードを入力してください", + "Two-factor authentication has been enabled": "二要素認証を有効にしました", + "Two-factor authentication has been disabled": "二要素認証を無効にしました", + "2-step verification": "2段階認証", + "Protect your account with an additional verification layer when signing in.": "サインイン時に追加の認証でアカウントを保護します", + "Two-factor authentication is active on your account.": "二要素認証が有効です", "Add 2FA method": "2FAメソッドを追加", "Backup codes": "バックアップコード", "Disable": "無効にする", "Invalid verification code": "無効な認証コード", - "New backup codes have been generated": "新しいバックアップコードが生成されました", + "New backup codes have been generated": "新しいバックアップコードを生成しました", "Failed to regenerate backup codes": "バックアップコードの再生成に失敗しました", "About backup codes": "バックアップコードについて", - "Backup codes can be used to access your account if you lose access to your authenticator app. Each code can only be used once.": "バックアップコードは、認証アプリへのアクセスを失った場合にアカウントにアクセスするために使用できます。各コードは一度しか使用できません。", - "You can regenerate new backup codes at any time. This will invalidate all existing codes.": "いつでも新しいバックアップコードを再生成できます。これにより、既存のすべてのコードが無効になります。", + "Backup codes can be used to access your account if you lose access to your authenticator app. Each code can only be used once.": "認証アプリにアクセスできない場合、バックアップコードでアカウントにアクセスできます。各コードは1回のみ使用可能です", + "You can regenerate new backup codes at any time. This will invalidate all existing codes.": "新しいバックアップコードはいつでも再生成できます。既存のコードはすべて無効になります", "Confirm password": "パスワードを確認", "Generate new backup codes": "新しいバックアップコードを生成", "Save your new backup codes": "新しいバックアップコードを保存", - "Make sure to save these codes in a secure place. Your old backup codes are no longer valid.": "これらのコードを安全な場所に保存してください。古いバックアップコードは無効です。", + "Make sure to save these codes in a secure place. Your old backup codes are no longer valid.": "これらのコードを安全な場所に保存してください。古いバックアップコードは無効になりました", "Your new backup codes": "新しいバックアップコード", "I've saved my backup codes": "バックアップコードを保存しました", "Failed to setup MFA": "MFAの設定に失敗しました", @@ -449,51 +449,51 @@ "Enter this code manually in your authenticator app:": "このコードを認証アプリに手動で入力してください:", "2. Enter the 6-digit code from your authenticator": "2. 認証アプリからの6桁のコードを入力してください", "Verify and enable": "確認と有効化", - "Failed to generate QR code. Please try again.": "QRコードの生成に失敗しました。再試行してください。", + "Failed to generate QR code. Please try again.": "QRコードの生成に失敗しました。もう一度お試しください", "Backup": "バックアップ", "Save codes": "コードを保存", "Save your backup codes": "バックアップコードを保存", - "These codes can be used to access your account if you lose access to your authenticator app. Each code can only be used once.": "これらのコードは、認証アプリへのアクセスを失った場合にアカウントにアクセスするために使用できます。各コードは一度しか使用できません。", + "These codes can be used to access your account if you lose access to your authenticator app. Each code can only be used once.": "認証アプリにアクセスできない場合、これらのコードでアカウントにアクセスできます。各コードは1回のみ使用可能です", "Print": "印刷", - "Two-factor authentication has been set up. Please log in again.": "二要素認証が設定されました。再度ログインしてください。", + "Two-factor authentication has been set up. Please log in again.": "二要素認証を設定しました。再度ログインしてください", "Two-Factor authentication required": "二要素認証が必要です", - "Your workspace requires two-factor authentication for all users": "ワークスペースでは、すべてのユーザーに二要素認証が必要です", - "To continue accessing your workspace, you must set up two-factor authentication. This adds an extra layer of security to your account.": "ワークスペースへのアクセスを続けるには、二要素認証を設定する必要があります。これにより、アカウントに追加のセキュリティ層が追加されます。", + "Your workspace requires two-factor authentication for all users": "このワークスペースではすべてのユーザーに二要素認証が必要です", + "To continue accessing your workspace, you must set up two-factor authentication. This adds an extra layer of security to your account.": "ワークスペースにアクセスするには二要素認証を設定してください。アカウントのセキュリティが強化されます", "Set up two-factor authentication": "二要素認証を設定", "Cancel and logout": "キャンセルしてログアウト", - "Your workspace requires two-factor authentication. Please set it up to continue.": "ワークスペースでは二要素認証が必要です。続行するには設定してください。", - "This adds an extra layer of security to your account by requiring a verification code from your authenticator app.": "これにより、認証アプリからの確認コードが必要となり、アカウントに追加のセキュリティ層が追加されます。", + "Your workspace requires two-factor authentication. Please set it up to continue.": "このワークスペースでは二要素認証が必要です。続行するには設定してください", + "This adds an extra layer of security to your account by requiring a verification code from your authenticator app.": "認証アプリからの確認コードでアカウントのセキュリティが強化されます", "Password is required": "パスワードが必要です", "Password must be at least 8 characters": "パスワードは8文字以上必要です", "Please enter a 6-digit code": "6桁のコードを入力してください", - "Code must be exactly 6 digits": "コードは正確に6桁である必要があります", + "Code must be exactly 6 digits": "コードは6桁で入力してください", "Enter the 6-digit code found in your authenticator app": "認証アプリに表示された6桁のコードを入力してください", "Need help authenticating?": "認証に関するヘルプが必要ですか?", "MFA QR Code": "MFA QRコード", - "Account created successfully. Please log in to set up two-factor authentication.": "アカウントが正常に作成されました。二要素認証を設定するためにログインしてください。", - "Password reset successful. Please log in with your new password and complete two-factor authentication.": "パスワードのリセットが成功しました。新しいパスワードでログインし、二要素認証を完了してください。", - "Password reset successful. Please log in with your new password to set up two-factor authentication.": "パスワードのリセットが成功しました。二要素認証を設定するために新しいパスワードでログインしてください。", - "Password reset was successful. Please log in with your new password.": "パスワードのリセットが成功しました。新しいパスワードでログインしてください。", + "Account created successfully. Please log in to set up two-factor authentication.": "アカウントを作成しました。二要素認証を設定するためにログインしてください", + "Password reset successful. Please log in with your new password and complete two-factor authentication.": "パスワードをリセットしました。新しいパスワードでログインして二要素認証を完了してください", + "Password reset successful. Please log in with your new password to set up two-factor authentication.": "パスワードをリセットしました。新しいパスワードでログインして二要素認証を設定してください", + "Password reset was successful. Please log in with your new password.": "パスワードをリセットしました。新しいパスワードでログインしてください", "Two-factor authentication": "二要素認証", "Use authenticator app instead": "代わりに認証アプリを使用", "Verify backup code": "バックアップコードを確認", "Use backup code": "バックアップコードを使用", "Enter one of your backup codes": "バックアップコードのいずれかを入力してください", "Backup code": "バックアップコード", - "Enter one of your backup codes. Each backup code can only be used once.": "バックアップコードのいずれかを入力してください。各バックアップコードは一度しか使用できません。", + "Enter one of your backup codes. Each backup code can only be used once.": "バックアップコードを入力してください。各コードは1回のみ使用可能です", "Verify": "確認", "Trash": "ごみ箱", - "Pages in trash will be permanently deleted after 30 days.": "ごみ箱内のページは30日後に完全に削除されます。", + "Pages in trash will be permanently deleted after 30 days.": "ごみ箱内のページは30日後に完全に削除されます", "Deleted": "削除", "No pages in trash": "ごみ箱にページがありません", "Permanently delete page?": "ページを完全に削除しますか?", - "Are you sure you want to permanently delete '{{title}}'? This action cannot be undone.": "{{title}}』を完全に削除しますか? この操作は元に戻せません。", - "Restore '{{title}}' and its sub-pages?": "{{title}}』とそのサブページを復元しますか?", + "Are you sure you want to permanently delete '{{title}}'? This action cannot be undone.": "「{{title}}」を完全に削除しますか?この操作は取り消せません", + "Restore '{{title}}' and its sub-pages?": "「{{title}}」とそのサブページを復元しますか?", "Move to trash": "ごみ箱に移動", "Move this page to trash?": "このページをごみ箱に移動しますか?", "Restore page": "ページを復元", - "Page moved to trash": "ページがごみ箱に移動されました", - "Page restored successfully": "ページが正常に復元されました", + "Page moved to trash": "ページをごみ箱に移動しました", + "Page restored successfully": "ページを復元しました", "Deleted by": "削除者", "Deleted at": "削除日時", "Preview": "プレビュー", @@ -511,10 +511,10 @@ "Enterprise": "エンタープライズ", "Download attachment": "添付ファイルをダウンロード", "Allowed email domains": "許可されたメールドメイン", - "Only users with email addresses from these domains can signup via SSO.": "これらのドメインからのメールアドレスを持つユーザーのみがSSOで登録できます。", + "Only users with email addresses from these domains can signup via SSO.": "これらのドメインのメールアドレスを持つユーザーのみSSO経由で登録できます", "Enter valid domain names separated by comma or space": "コンマまたはスペースで区切って有効なドメイン名を入力してください", "Enforce two-factor authentication": "二要素認証を強制する", - "Once enforced, all members must enable two-factor authentication to access the workspace.": "一度強制されると、すべてのメンバーはワークスペースにアクセスするために二要素認証を有効にする必要があります。", + "Once enforced, all members must enable two-factor authentication to access the workspace.": "有効にすると、すべてのメンバーが二要素認証を設定しないとワークスペースにアクセスできなくなります", "Toggle MFA enforcement": "MFAの強制を切り替える", "Display name": "表示名", "Allow signup": "登録を許可する", @@ -532,10 +532,10 @@ "Upload image": "画像をアップロード", "Remove image": "画像を削除", "Failed to remove image": "画像の削除に失敗しました", - "Image exceeds 10MB limit.": "画像が10MBの制限を超えています。", - "Image removed successfully": "画像が正常に削除されました", + "Image exceeds 10MB limit.": "画像が10MBの制限を超えています", + "Image removed successfully": "画像を削除しました", "API key": "APIキー", - "API key created successfully": "APIキーが正常に作成されました", + "API key created successfully": "APIキーを作成しました", "API keys": "APIキー", "API management": "API管理", "Are you sure you want to revoke this API key": "このAPIキーを無効にしてもよろしいですか", @@ -550,9 +550,9 @@ "No API keys found": "APIキーが見つかりません", "No expiration": "期限なし", "Revoke API key": "APIキーを無効にする", - "Revoked successfully": "正常に無効化されました", + "Revoked successfully": "無効にしました", "Select expiration date": "有効期限を選択してください", - "This action cannot be undone. Any applications using this API key will stop working.": "この操作は元に戻せません。このAPIキーを使用しているアプリケーションは動作を停止します。", + "This action cannot be undone. Any applications using this API key will stop working.": "この操作は取り消せません。このAPIキーを使用しているアプリケーションは動作しなくなります", "Update API key": "APIキーを更新", "Manage API keys for all users in the workspace": "ワークスペース内のすべてのユーザーのAPIキーを管理", "AI settings": "AI設定", @@ -562,7 +562,7 @@ "AI is thinking...": "AIが考え中...", "Ask a question...": "質問を入力...", "AI-powered search (Ask AI)": "AIによる検索(AIに質問)", - "AI search uses vector embeddings to provide semantic search capabilities across your workspace content.": "AI検索はベクター埋め込みを使用して、ワークスペースコンテンツ全体にわたって意味検索機能を提供します。", + "AI search uses vector embeddings to provide semantic search capabilities across your workspace content.": "AI検索はベクター埋め込みを使用してワークスペース全体の意味検索を実現します", "Toggle AI search": "AI検索を切り替え", "Sources": "ソース", "Ask AI not available for attachments": "添付ファイルにはAI質問は利用できません", From e98fa7f69ad7990f20bd4a9544d7a681c37997b5 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Tue, 13 Jan 2026 16:13:04 +0000 Subject: [PATCH 6/8] sync * fix form length --- apps/client/src/features/group/components/edit-group-form.tsx | 2 +- apps/client/src/features/space/components/edit-space-form.tsx | 4 ++-- apps/server/src/ee | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/client/src/features/group/components/edit-group-form.tsx b/apps/client/src/features/group/components/edit-group-form.tsx index a682e0b4..d4708ef7 100644 --- a/apps/client/src/features/group/components/edit-group-form.tsx +++ b/apps/client/src/features/group/components/edit-group-form.tsx @@ -11,7 +11,7 @@ import { useTranslation } from "react-i18next"; import { zodResolver } from "mantine-form-zod-resolver"; const formSchema = z.object({ - name: z.string().min(2).max(50), + name: z.string().min(2).max(100), description: z.string().max(500), }); diff --git a/apps/client/src/features/space/components/edit-space-form.tsx b/apps/client/src/features/space/components/edit-space-form.tsx index cedb8887..4cb6ba4e 100644 --- a/apps/client/src/features/space/components/edit-space-form.tsx +++ b/apps/client/src/features/space/components/edit-space-form.tsx @@ -7,8 +7,8 @@ import { ISpace } from "@/features/space/types/space.types.ts"; import { useTranslation } from "react-i18next"; const formSchema = z.object({ - name: z.string().min(2).max(50), - description: z.string().max(250), + name: z.string().min(2).max(100), + description: z.string().max(500), slug: z .string() .min(2) diff --git a/apps/server/src/ee b/apps/server/src/ee index b55f6f5d..ed75f507 160000 --- a/apps/server/src/ee +++ b/apps/server/src/ee @@ -1 +1 @@ -Subproject commit b55f6f5d236a40e0ebe831d4a07320137589f2f5 +Subproject commit ed75f5071b3c8d628fb4fac9300818525ca20f52 From 61e252918eac10a2195d01eff4fe4446d41fb383 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Tue, 13 Jan 2026 16:13:52 +0000 Subject: [PATCH 7/8] fix length --- apps/client/src/features/space/components/edit-space-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/features/space/components/edit-space-form.tsx b/apps/client/src/features/space/components/edit-space-form.tsx index 4cb6ba4e..d4406873 100644 --- a/apps/client/src/features/space/components/edit-space-form.tsx +++ b/apps/client/src/features/space/components/edit-space-form.tsx @@ -12,7 +12,7 @@ const formSchema = z.object({ slug: z .string() .min(2) - .max(50) + .max(100) .regex( /^[a-zA-Z0-9]+$/, "Space slug must be alphanumeric. No special characters", From 79343a5d527dc80a8eb857cbc499f7e0a2fde0f0 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Tue, 13 Jan 2026 16:25:42 +0000 Subject: [PATCH 8/8] fix: prevent text overflow in group and space list tables --- apps/client/src/features/group/components/group-list.tsx | 2 +- apps/client/src/features/space/components/space-list.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/features/group/components/group-list.tsx b/apps/client/src/features/group/components/group-list.tsx index ad07c6c9..f1f1ffe0 100644 --- a/apps/client/src/features/group/components/group-list.tsx +++ b/apps/client/src/features/group/components/group-list.tsx @@ -50,7 +50,7 @@ export default function GroupList() { > -
+
{group.name} diff --git a/apps/client/src/features/space/components/space-list.tsx b/apps/client/src/features/space/components/space-list.tsx index 065bdde7..b7fc3ec7 100644 --- a/apps/client/src/features/space/components/space-list.tsx +++ b/apps/client/src/features/space/components/space-list.tsx @@ -48,7 +48,7 @@ export default function SpaceList() { variant="filled" name={space.name} /> -
+
{space.name}