Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

✨ feat: add readable task URL slugs and workspace seat copy (#19503)

Rdmclin235098de37261
diff --git a/apps/cli/src/commands/project.ts b/apps/cli/src/commands/project.ts
index 3e99ded2aec..3cc2513a333 100644
--- a/apps/cli/src/commands/project.ts
+++ b/apps/cli/src/commands/project.ts
@@ -1,4 +1,5 @@
import { PROJECT_STATUSES, PROJECT_VISIBILITIES } from '@lobechat/types';
+import { taskTitleSlug } from '@lobechat/utils/taskSlug';
import type { Command } from 'commander';
import pc from 'picocolors';
@@ -197,7 +198,10 @@ export function registerProjectCommand(program: Command) {
parentTaskId: options.parent,
projectId,
});
- const url = buildUrl(`/task/${encodeURIComponent(result.data.identifier)}`);
+ const slug = taskTitleSlug(result.data.name);
+ const url = buildUrl(
+ `/task/${encodeURIComponent(result.data.identifier)}${slug ? `/${slug}` : ''}`,
+ );
console.log(`${pc.green('✓')} Created task ${pc.bold(result.data.identifier)}`);
console.log(`${pc.bold('task')}: ${url}`);
},
diff --git a/apps/cli/src/commands/task/index.ts b/apps/cli/src/commands/task/index.ts
index feaa3b3f365..6a630378f2c 100644
--- a/apps/cli/src/commands/task/index.ts
+++ b/apps/cli/src/commands/task/index.ts
@@ -1,3 +1,4 @@
+import { taskTitleSlug } from '@lobechat/utils/taskSlug';
import type { Command } from 'commander';
import pc from 'picocolors';
@@ -549,7 +550,10 @@ export function registerTaskCommand(program: Command) {
if (options.prefix) input.identifierPrefix = options.prefix;
const result = await client.task.create.mutate(input as any);
- const url = buildUrl(`/task/${encodeURIComponent(result.data.identifier)}`);
+ const slug = taskTitleSlug(result.data.name);
+ const url = buildUrl(
+ `/task/${encodeURIComponent(result.data.identifier)}${slug ? `/${slug}` : ''}`,
+ );
if (options.json !== undefined) {
outputJson({ ...result.data, url }, options.json);
diff --git a/apps/cli/src/commands/task/url.ts b/apps/cli/src/commands/task/url.ts
index b93cd109da3..ca8e7eace13 100644
--- a/apps/cli/src/commands/task/url.ts
+++ b/apps/cli/src/commands/task/url.ts
@@ -1,3 +1,5 @@
+import { taskTitleSlug } from '@lobechat/utils/taskSlug';
+
import type { TrpcClient } from '../../api/client';
import { resolveWorkspaceId } from '../../api/workspace';
import { resolveServerUrl } from '../../settings';
@@ -17,16 +19,24 @@ export const buildAppUrl = ({ pathname, serverUrl, workspaceSlug }: AppUrlOption
return new URL(path, `${serverUrl}/`).toString();
};
+/**
+ * `name` only adds the readable slug tail (`/task/T-501/ship-the-thing`); the
+ * identifier alone still resolves the task, so omitting it stays valid.
+ */
export const buildTaskUrl = ({
identifier,
+ name,
serverUrl,
workspaceSlug,
-}: Omit<AppUrlOptions, 'pathname'> & { identifier: string }) =>
- buildAppUrl({
- pathname: `/task/${encodeURIComponent(identifier)}`,
+}: Omit<AppUrlOptions, 'pathname'> & { identifier: string; name?: string | null }) => {
+ const slug = taskTitleSlug(name);
+
+ return buildAppUrl({
+ pathname: `/task/${encodeURIComponent(identifier)}${slug ? `/${slug}` : ''}`,
serverUrl,
workspaceSlug,
});
+};
export const resolveAppUrlBuilder = async (client: TrpcClient) => {
const workspace = resolveWorkspaceId() ? await client.workspace.getById.query() : null;
diff --git a/apps/server/src/routers/lambda/__tests__/integration/task.integration.test.ts b/apps/server/src/routers/lambda/__tests__/integration/task.integration.test.ts
index 41213c300ca..03cefca33cc 100644
--- a/apps/server/src/routers/lambda/__tests__/integration/task.integration.test.ts
+++ b/apps/server/src/routers/lambda/__tests__/integration/task.integration.test.ts
@@ -1651,6 +1651,53 @@ describe('Task Router Integration', () => {
const all = await wsCaller.list({});
expect(all.total).toBe(3);
});
+
+ it('should narrow the grouped board to the same slice as the list', async () => {
+ otherUserId = await createTestUser(serverDB);
+ const workspaceId = 'task-group-scope-workspace';
+ const { workspaces, workspaceMembers } = await import('@/database/schemas');
+ await serverDB.insert(workspaces).values({
+ id: workspaceId,
+ name: 'Task Group Scope Workspace',
+ primaryOwnerId: userId,
+ slug: workspaceId,
+ });
+ await serverDB.insert(workspaceMembers).values([
+ { role: 'owner', userId, workspaceId },
+ { role: 'member', userId: otherUserId!, workspaceId },
+ ]);
+ const wsCaller = taskRouter.createCaller({ ...createTestContext(userId), workspaceId });
+ const wsOtherCaller = taskRouter.createCaller({
+ ...createTestContext(otherUserId),
+ workspaceId,
+ });
+
+ const mineForOther = await wsCaller.create({
+ assigneeUserId: otherUserId,
+ instruction: 'Mine for other',
+ name: 'Mine for other',
+ });
+ const othersForMe = await wsOtherCaller.create({
+ assigneeUserId: userId,
+ instruction: 'Others for me',
+ name: 'Others for me',
+ });
+ await wsOtherCaller.create({ instruction: 'Others unassigned', name: 'Others unassigned' });
+
+ const groups = () => ({ groups: [{ key: 'backlog', statuses: ['backlog'] }] });
+ const idsIn = (result: { data: Array<{ tasks: Array<{ id: string }> }> }) =>
+ result.data.flatMap((group) => group.tasks.map((task) => task.id));
+
+ // The board is the same rows as the list, only grouped — a scope the
+ // board ignored would quietly widen "My tasks" on the view switch.
+ expect(idsIn(await wsCaller.groupList({ ...groups(), scope: 'assigned' }))).toEqual([
+ othersForMe.data.id,
+ ]);
+ expect(idsIn(await wsCaller.groupList({ ...groups(), scope: 'created' }))).toEqual([
+ mineForOther.data.id,
+ ]);
+ expect(idsIn(await wsCaller.groupList(groups()))).toHaveLength(3);
+ });
});
describe('human assignee (assigneeUserId)', () => {
diff --git a/apps/server/src/routers/lambda/__tests__/knowledgeBase.test.ts b/apps/server/src/routers/lambda/__tests__/knowledgeBase.test.ts
index a9175673ca6..e6bd81fe228 100644
--- a/apps/server/src/routers/lambda/__tests__/knowledgeBase.test.ts
+++ b/apps/server/src/routers/lambda/__tests__/knowledgeBase.test.ts
@@ -193,15 +193,17 @@ describe('knowledgeBaseRouter', () => {
expect(mockKnowledgeBaseModelAddFiles).toHaveBeenCalledWith('kb-1', ['file-1']);
});
- it('rejects assigning a resource to a library with different visibility', async () => {
+ it('files a private resource into a shared library', async () => {
+ // A library is a directory of references, so it does not force its rows
+ // to share its visibility: filing a draft now and sharing it when it is
+ // ready is the ordinary move. Who sees the row is still decided by the
+ // row's own `visibility`, which every listing filters on.
mockFileModelFindByIds.mockResolvedValue([{ id: 'file-1', visibility: 'private' }]);
mockDocumentModelFindByIds.mockResolvedValue([]);
- await expect(
- caller.addFilesToKnowledgeBase({ ids: ['file-1'], knowledgeBaseId: 'kb-1' }),
- ).rejects.toMatchObject({ code: 'BAD_REQUEST' });
+ await caller.addFilesToKnowledgeBase({ ids: ['file-1'], knowledgeBaseId: 'kb-1' });
- expect(mockKnowledgeBaseModelAddFiles).not.toHaveBeenCalled();
+ expect(mockKnowledgeBaseModelAddFiles).toHaveBeenCalledWith('kb-1', ['file-1']);
});
it('fails the whole batch when any resource is inaccessible', async () => {
diff --git a/apps/server/src/routers/lambda/knowledgeBase.ts b/apps/server/src/routers/lambda/knowledgeBase.ts
index eeb5b18bff9..f05ebd70327 100644
--- a/apps/server/src/routers/lambda/knowledgeBase.ts
+++ b/apps/server/src/routers/lambda/knowledgeBase.ts
@@ -56,7 +56,6 @@ const assertKnowledgeItemsAccessible = async (
workspaceId?: string | null;
},
ids: string[],
- targetVisibility?: 'private' | 'public' | null,
): Promise<void> => {
const uniqueIds = [...new Set(ids)];
const documentIds = uniqueIds.filter((id) => id.startsWith('docs_'));
@@ -73,17 +72,6 @@ const assertKnowledgeItemsAccessible = async (
});
}
- if (
- ctx.workspaceId &&
- targetVisibility &&
- [...documents, ...files].some((item) => item.visibility !== targetVisibility)
- ) {
- throw new TRPCError({
- code: 'BAD_REQUEST',
- message: 'Resource visibility must match knowledge base visibility',
- });
- }
-
await assertContentsNotInRestrictedKnowledgeBase(ctx, uniqueIds);
};
@@ -112,7 +100,14 @@ export const knowledgeBaseRouter = router({
visibility: kb.visibility ?? null,
workspaceId: kb.workspaceId ?? null,
});
- await assertKnowledgeItemsAccessible(ctx, input.ids, kb.visibility);
+ // A library is a directory of references, not a container that makes its
+ // contents uniform: who can see a row is decided by the row's own
+ // `visibility`, which is what every listing already filters on. This
+ // entry used to additionally demand `item.visibility === kb.visibility`,
+ // which blocked the ordinary "file the draft now, share it when it's
+ // ready" move while doing nothing to stop the same state being reached by
+ // adding first and flipping visibility afterwards.
+ await assertKnowledgeItemsAccessible(ctx, input.ids);
try {
return await ctx.knowledgeBaseModel.addFilesToKnowledgeBase(
diff --git a/apps/server/src/routers/lambda/recent.ts b/apps/server/src/routers/lambda/recent.ts
index 67255779cb5..deef9385659 100644
--- a/apps/server/src/routers/lambda/recent.ts
+++ b/apps/server/src/routers/lambda/recent.ts
@@ -24,6 +24,12 @@ export const recentRouter = router({
limit: z.number().optional(),
/** Restrict a workspace feed to the viewer's own items (mine/team toggle). */
mineOnly: z.boolean().optional(),
+ /**
+ * Restrict a workspace feed to conversations the whole team can see —
+ * topics owned by a private agent/group are dropped even for their
+ * own creator. Set by the home "team" tab.
+ */
+ sharedOnly: z.boolean().optional(),
types: z.array(z.enum(['topic', 'document', 'task'])).optional(),
withTopicPreview: z.boolean().optional(),
})
@@ -37,6 +43,7 @@ export const recentRouter = router({
input?.types,
input?.withTopicPreview,
input?.mineOnly,
+ input?.sharedOnly,
);
return items.map((item) => {
diff --git a/apps/server/src/routers/lambda/task.ts b/apps/server/src/routers/lambda/task.ts
index 419bc7c50a0..d505beda2d5 100644
--- a/apps/server/src/routers/lambda/task.ts
+++ b/apps/server/src/routers/lambda/task.ts
@@ -182,6 +182,9 @@ const groupListSchema = z
.optional(),
parentTaskId: z.string().nullish(),
projectId: z.string().optional(),
+ // Same "My tasks" narrowing as `listSchema.scope`, so the board renders the
+ // exact set its list view does. Always resolved against `ctx.userId`.
+ scope: z.enum(['assigned', 'created']).optional(),
visibility: z.enum(['private', 'public']).optional(),
})
.refine(({ groupBy, groups }) => Boolean(groupBy) !== Boolean(groups), {
@@ -1012,7 +1015,12 @@ export const taskRouter = router({
groupList: taskProcedure.input(groupListSchema).query(async ({ input, ctx }) => {
try {
const model = ctx.taskModel;
- const groups = await model.groupList(input);
+ const { scope, ...query } = input;
+ const groups = await model.groupList({
+ ...query,
+ ...(scope === 'assigned' ? { assigneeUserId: ctx.userId } : {}),
+ ...(scope === 'created' ? { createdByUserId: ctx.userId } : {}),
+ });
return { data: groups, success: true };
} catch (error) {
console.error('[task:groupList]', error);
diff --git a/locales/ar/common.json b/locales/ar/common.json
index 92df67b26be..8c4c5ce84bc 100644
--- a/locales/ar/common.json
+++ b/locales/ar/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "عرض تفاصيل التنفيذ",
"visibilityConfirm.irreversible": " (لا يمكن التراجع عنه)",
"visibilityConfirm.makePrivate.itemAccess": "يفقد أعضاء مساحة العمل الآخرون الوصول فورًا",
+ "visibilityConfirm.makePrivate.itemLibrary": "يبقى في المكتبة التي قمت بتقديمه فيها — فقط يتوقف الأعضاء الآخرون عن رؤيته هناك",
"visibilityConfirm.makePrivate.itemLoaded": "المحتوى الذي قام الآخرون بتحميله بالفعل لا يمكن استرجاعه",
"visibilityConfirm.makePrivate.itemReferences": "المرفقات والمرجعيات الموجودة في الرسائل ستظهر كغير متاحة",
"visibilityConfirm.publish.itemLoaded": "بعد التبديل مرة أخرى، لا يمكن استرجاع المحتوى الذي قام الآخرون بتحميله بالفعل",
diff --git a/locales/ar/setting.json b/locales/ar/setting.json
index 9b77eaca551..a78b1bdb287 100644
--- a/locales/ar/setting.json
+++ b/locales/ar/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "قم بتقليل المقاعد بشكل منفصل بعد هذا التغيير الفوري للخطة.",
"workspace.billingPage.billing.change.memberLimitReached": "تحتوي هذه المساحة على {{count}} أعضاء قابلين للفوترة حاليًا. قم بإزالة الأعضاء أو تغييرهم إلى {{viewerRole}} قبل تقليل المقاعد أكثر.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "الأعضاء الحاليون يحتاجون إلى {{count}} مقاعد إضافية على الأقل.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "لدى مساحة العمل هذه {{members}} أعضاء قابلين للفوترة و{{pending}} دعوات معلقة، باستخدام {{used}} مقاعد — مطلوب على الأقل {{count}} مقاعد إضافية. قم بإلغاء دعوة معلقة لتقليل العدد.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "القيمة المتبقية من خطتك الحالية تتجاوز سعر الخطة الجديدة، لذلك لا يمكن ترقيتها بعد.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "الترقيات لمرة واحدة تتطلب مستوى أعلى أو مدة أطول.",
"workspace.billingPage.billing.change.preview": "{{seats}} مقعد · معاينة الفوترة {{interval}}",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "تقليل المقاعد",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "زيادة المقاعد",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "تحتوي هذه المساحة على {{members}} أعضاء قابلين للفوترة. مطلوب على الأقل {{count}} مقاعد إضافية.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "لدى مساحة العمل هذه {{members}} أعضاء قابلين للفوترة و{{pending}} دعوات معلقة، باستخدام {{used}} مقاعد. مطلوب على الأقل {{count}} مقاعد إضافية.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "لا توجد رسوم اليوم",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "سيتم توجيهك إلى صفحة الدفع لدفع رسوم المقعد المخصصة للفترة المتبقية.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "طريقة الدفع الحالية",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "الدور",
"workspace.members.invite.seatInsufficient": "تبقى فقط {{remaining}} مقعد(مقاعد). اشترِ المزيد من المقاعد لدعوة {{required}} عضو(أعضاء) جديد(جدد).",
"workspace.members.invite.seatInsufficientNoBuy": "تبقى فقط {{remaining}} مقعد(مقاعد). اطلب من مالك مساحة العمل شراء المزيد من المقاعد.",
+ "workspace.members.invite.seatLimitReached": "جميع المقاعد مستخدمة. اشترِ المزيد من المقاعد للاستمرار في الدعوة، أو قم بدعوة المشاهدين بدلاً من ذلك (لا يشغلون مقعدًا).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "جميع المقاعد في مساحة العمل المجانية الخاصة بك مستخدمة. قم بالترقية إلى Pro للحصول على المزيد من المقاعد، أو قم بدعوة المشاهدين بدلاً من ذلك (لا يشغلون مقعدًا).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "جميع المقاعد مستخدمة. اطلب من مالك مساحة العمل شراء المزيد من المقاعد، أو قم بدعوة المشاهدين بدلاً من ذلك (لا يشغلون مقعدًا).",
"workspace.members.invite.submit": "دعوة",
"workspace.members.invite.success": "تمت دعوة أعضاء الفريق بنجاح.",
"workspace.members.invite.title": "دعوة الأعضاء",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "لن يكون رابط الدعوة صالحًا بعد الآن.",
"workspace.members.pending.revokeConfirm.title": "إلغاء هذه الدعوة؟",
"workspace.members.pending.revokeFailed": "فشل في إلغاء الدعوة",
+ "workspace.members.seatBreakdown": "{{members}} أعضاء قابلين للفوترة + {{pending}} دعوات معلقة = {{used}} من {{capacity}} مقاعد مستخدمة. المشاهدون لا يشغلون مقعدًا.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} أعضاء قابلين للفوترة يستخدمون {{used}} من {{capacity}} مقاعد. المشاهدون لا يشغلون مقعدًا.",
"workspace.members.seatChange.memberJoinBlocked": "وصل الأعضاء الحاليون إلى الحد المجدول للمقاعد، لذلك قد لا يتمكن الأعضاء المدفوعون الجدد من الانضمام إلى هذه المساحة",
+ "workspace.members.seatPending_one": "{{count}} دعوة معلقة",
+ "workspace.members.seatPending_other": "{{count}} دعوات معلقة",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} مقعد",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} مقاعد",
"workspace.members.subtitle": "إدارة أعضاء مساحة العمل والدعوات",
diff --git a/locales/bg-BG/common.json b/locales/bg-BG/common.json
index 78d81dcb707..713a1adcb6d 100644
--- a/locales/bg-BG/common.json
+++ b/locales/bg-BG/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Преглед на подробности за изпълнението",
"visibilityConfirm.irreversible": " (необратимо)",
"visibilityConfirm.makePrivate.itemAccess": "Другите членове на работното пространство губят достъп незабавно",
+ "visibilityConfirm.makePrivate.itemLibrary": "Остава в библиотеката, в която сте го подредили — другите членове просто спират да го виждат там",
"visibilityConfirm.makePrivate.itemLoaded": "Съдържанието, което другите вече са заредили, не може да бъде върнато",
"visibilityConfirm.makePrivate.itemReferences": "Съществуващите прикачени файлове и препратки в съобщенията ще се показват като недостъпни",
"visibilityConfirm.publish.itemLoaded": "След превключване обратно, съдържанието, което другите вече са заредили, не може да бъде върнато",
diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.json
index f342d8f1a1f..e0536194949 100644
--- a/locales/bg-BG/setting.json
+++ b/locales/bg-BG/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Намалете местата отделно след тази незабавна промяна на плана.",
"workspace.billingPage.billing.change.memberLimitReached": "Това работно пространство в момента има {{count}} платими членове. Премахнете членове или ги променете на {{viewerRole}} преди да намалите местата допълнително.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Текущите членове изискват поне {{count}} допълнителни места.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "Това работно пространство има {{members}} платени членове и {{pending}} чакащи покани, използвайки {{used}} места — необходими са поне {{count}} допълнителни места. Отменете чакаща покана, за да намалите броя.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "Оставащата стойност на текущия ви план надвишава цената на новия план, затова той не може да бъде надграден все още.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Еднократните надстройки изискват по-висок клас или по-дълга продължителност.",
"workspace.billingPage.billing.change.preview": "{{seats}} места · предварителен преглед на {{interval}} фактуриране",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Намаляване на местата",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Увеличаване на местата",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Това работно пространство има {{members}} платими членове. Необходими са поне {{count}} допълнителни места.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "Това работно пространство има {{members}} платени членове и {{pending}} чакащи покани, използвайки {{used}} места. Необходими са поне {{count}} допълнителни места.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Без такса днес",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Ще бъдете пренасочени към касата, за да платите пропорционалната такса за място за оставащия период.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Текущ метод на плащане",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Роля",
"workspace.members.invite.seatInsufficient": "Остават само {{remaining}} място(а). Купете повече места, за да поканите {{required}} нов(и) член(ове).",
"workspace.members.invite.seatInsufficientNoBuy": "Остават само {{remaining}} място(а). Помолете собственика на работното пространство да закупи повече места.",
+ "workspace.members.invite.seatLimitReached": "Всички места са заети. Купете повече места, за да продължите да каните, или поканете зрители (те не заемат място).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Всички места във вашето безплатно работно пространство са заети. Надградете до Pro за повече места, или поканете зрители (те не заемат място).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Всички места са заети. Помолете собственика на работното пространство да купи повече места, или поканете зрители (те не заемат място).",
"workspace.members.invite.submit": "Покана",
"workspace.members.invite.success": "Членовете на екипа са успешно поканени.",
"workspace.members.invite.title": "Покана за членове",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "Връзката за покана вече няма да бъде валидна.",
"workspace.members.pending.revokeConfirm.title": "Отмяна на тази покана?",
"workspace.members.pending.revokeFailed": "Неуспешно отмяна на поканата",
+ "workspace.members.seatBreakdown": "{{members}} платени членове + {{pending}} чакащи покани = {{used}} от {{capacity}} използвани места. Зрителите не заемат място.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} платени членове използват {{used}} от {{capacity}} места. Зрителите не заемат място.",
"workspace.members.seatChange.memberJoinBlocked": "Текущите членове са достигнали планирания лимит на местата, така че нови платени членове може да не могат да се присъединят към това работно пространство",
+ "workspace.members.seatPending_one": "{{count}} чакаща покана",
+ "workspace.members.seatPending_other": "{{count}} чакащи покани",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} място",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} места",
"workspace.members.subtitle": "Управление на членове и покани за работното пространство",
diff --git a/locales/de-DE/common.json b/locales/de-DE/common.json
index 02f21a7099c..828f01c2e53 100644
--- a/locales/de-DE/common.json
+++ b/locales/de-DE/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Ausführungsdetails anzeigen",
"visibilityConfirm.irreversible": " (unumkehrbar)",
"visibilityConfirm.makePrivate.itemAccess": "Andere Mitglieder des Arbeitsbereichs verlieren sofort den Zugriff",
+ "visibilityConfirm.makePrivate.itemLibrary": "Es bleibt in der Bibliothek, in der Sie es abgelegt haben – andere Mitglieder sehen es dort einfach nicht mehr.",
"visibilityConfirm.makePrivate.itemLoaded": "Inhalte, die andere bereits geladen haben, können nicht zurückgezogen werden",
"visibilityConfirm.makePrivate.itemReferences": "Vorhandene Nachrichtenanhänge und Verweise werden als nicht verfügbar angezeigt",
"visibilityConfirm.publish.itemLoaded": "Nach dem Wechsel können Inhalte, die andere bereits geladen haben, nicht zurückgezogen werden",
diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.json
index 33060595594..0ebf097c3c1 100644
--- a/locales/de-DE/setting.json
+++ b/locales/de-DE/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Reduzieren Sie die Plätze separat nach dieser sofortigen Planänderung.",
"workspace.billingPage.billing.change.memberLimitReached": "Dieser Arbeitsbereich hat derzeit {{count}} zahlungspflichtige Mitglieder. Entfernen Sie Mitglieder oder ändern Sie deren Rolle zu {{viewerRole}}, bevor Sie die Plätze weiter reduzieren.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Aktuelle Mitglieder erfordern mindestens {{count}} zusätzliche Plätze.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "Dieser Arbeitsbereich hat {{members}} abrechenbare Mitglieder und {{pending}} ausstehende Einladungen, nutzt {{used}} Plätze — mindestens {{count}} zusätzliche Plätze sind erforderlich. Widerrufen Sie eine ausstehende Einladung, um weniger zu benötigen.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "Der verbleibende Wert Ihres aktuellen Plans übersteigt den Preis des neuen Plans, daher kann er noch nicht aktualisiert werden.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Einmalige Upgrades erfordern eine höhere Stufe oder eine längere Laufzeit.",
"workspace.billingPage.billing.change.preview": "{{seats}} Plätze · Vorschau für {{interval}} Abrechnung",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Plätze reduzieren",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Plätze erhöhen",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Dieser Arbeitsbereich hat {{members}} zahlungspflichtige Mitglieder. Mindestens {{count}} zusätzliche Plätze sind erforderlich.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "Dieser Arbeitsbereich hat {{members}} abrechenbare Mitglieder und {{pending}} ausstehende Einladungen, nutzt {{used}} Plätze. Mindestens {{count}} zusätzliche Plätze sind erforderlich.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Heute keine Gebühren",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Sie werden zur Kasse weitergeleitet, um die anteilige Sitzgebühr für den verbleibenden Zeitraum zu bezahlen.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Aktuelle Zahlungsmethode",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Rolle",
"workspace.members.invite.seatInsufficient": "Nur noch {{remaining}} Platz/Plätze verfügbar. Kaufen Sie mehr Plätze, um {{required}} neues Mitglied/neue Mitglieder einzuladen.",
"workspace.members.invite.seatInsufficientNoBuy": "Nur noch {{remaining}} Platz/Plätze verfügbar. Bitten Sie den Arbeitsbereichseigentümer, weitere Plätze zu kaufen.",
+ "workspace.members.invite.seatLimitReached": "Alle Plätze sind belegt. Kaufen Sie mehr Plätze, um weiterhin einzuladen, oder laden Sie stattdessen Betrachter ein (sie belegen keinen Platz).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Alle Plätze in Ihrem kostenlosen Arbeitsbereich sind belegt. Upgraden Sie auf Pro für mehr Plätze, oder laden Sie stattdessen Betrachter ein (sie belegen keinen Platz).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Alle Plätze sind belegt. Bitten Sie den Arbeitsbereichsinhaber, mehr Plätze zu kaufen, oder laden Sie stattdessen Betrachter ein (sie belegen keinen Platz).",
"workspace.members.invite.submit": "Einladen",
"workspace.members.invite.success": "Teammitglieder erfolgreich eingeladen.",
"workspace.members.invite.title": "Mitglieder einladen",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "Der Einladungslink ist nicht mehr gültig.",
"workspace.members.pending.revokeConfirm.title": "Diese Einladung widerrufen?",
"workspace.members.pending.revokeFailed": "Einladung konnte nicht widerrufen werden",
+ "workspace.members.seatBreakdown": "{{members}} abrechenbare Mitglieder + {{pending}} ausstehende Einladungen = {{used}} von {{capacity}} Plätzen genutzt. Betrachter belegen keinen Platz.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} abrechenbare Mitglieder nutzen {{used}} von {{capacity}} Plätzen. Betrachter belegen keinen Platz.",
"workspace.members.seatChange.memberJoinBlocked": "Die aktuellen Mitglieder haben die geplante Platzgrenze erreicht, sodass neue zahlungspflichtige Mitglieder diesem Arbeitsbereich möglicherweise nicht beitreten können.",
+ "workspace.members.seatPending_one": "{{count}} Einladung ausstehend",
+ "workspace.members.seatPending_other": "{{count}} Einladungen ausstehend",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} Platz",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} Plätze",
"workspace.members.subtitle": "Verwalten Sie Mitglieder und Einladungen des Arbeitsbereichs",
diff --git a/locales/en-US/common.json b/locales/en-US/common.json
index 17b536daaa4..8fa3c0b4bd4 100644
--- a/locales/en-US/common.json
+++ b/locales/en-US/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "View execution details",
"visibilityConfirm.irreversible": " (irreversible)",
"visibilityConfirm.makePrivate.itemAccess": "Other workspace members lose access immediately",
+ "visibilityConfirm.makePrivate.itemLibrary": "It stays in the library you filed it in — other members just stop seeing it there",
"visibilityConfirm.makePrivate.itemLoaded": "Content others have already loaded can’t be pulled back",
"visibilityConfirm.makePrivate.itemReferences": "Existing message attachments and references will show as unavailable",
"visibilityConfirm.publish.itemLoaded": "After switching back, content others have already loaded can’t be pulled back",
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json
index c5370fa5919..a04634299cb 100644
--- a/locales/en-US/setting.json
+++ b/locales/en-US/setting.json
@@ -2020,6 +2020,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Reduce seats separately after this immediate plan change.",
"workspace.billingPage.billing.change.memberLimitReached": "This workspace currently has {{count}} billable members. Remove members or change them to {{viewerRole}} before reducing seats further.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "This workspace currently has {{members}} billable members and requires at least {{count}} extra seats.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "This workspace has {{members}} billable members and {{pending}} pending invites, using {{used}} seats — at least {{count}} extra seats are required. Revoke a pending invite to go lower.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "The remaining value of your current plan exceeds the new plan's price, so it cannot be upgraded yet.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "One-time upgrades require a higher tier or a longer duration.",
"workspace.billingPage.billing.change.preview": "{{seats}} seats · {{interval}} billing preview",
@@ -2122,6 +2123,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Decrease seats",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Increase seats",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "This workspace has {{members}} billable members. At least {{count}} extra seats are required.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "This workspace has {{members}} billable members and {{pending}} pending invites, using {{used}} seats. At least {{count}} extra seats are required.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "No charge today",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "You will be redirected to checkout to pay the prorated seat fee for the remaining period.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Current payment method",
@@ -2679,6 +2681,9 @@
"workspace.members.invite.roleLabel": "Role",
"workspace.members.invite.seatInsufficient": "Only {{remaining}} seat(s) remaining. Buy more seats to invite {{required}} new member(s), or invite viewers instead (they don’t take a seat).",
"workspace.members.invite.seatInsufficientNoBuy": "Only {{remaining}} seat(s) remaining. Ask the workspace owner to purchase more seats, or invite viewers instead (they don’t take a seat).",
+ "workspace.members.invite.seatLimitReached": "All seats are in use. Buy more seats to keep inviting, or invite viewers instead (they don’t take a seat).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "All seats on your Free workspace are in use. Upgrade to Pro for more seats, or invite viewers instead (they don’t take a seat).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "All seats are in use. Ask the workspace owner to buy more seats, or invite viewers instead (they don’t take a seat).",
"workspace.members.invite.submit": "Invite",
"workspace.members.invite.success": "Invitations sent. Invitation links expire after 1 week.",
"workspace.members.invite.title": "Invite Members",
@@ -2694,7 +2699,11 @@
"workspace.members.pending.revokeConfirm.content": "The invitation link will no longer be valid.",
"workspace.members.pending.revokeConfirm.title": "Revoke this invitation?",
"workspace.members.pending.revokeFailed": "Failed to revoke invitation",
+ "workspace.members.seatBreakdown": "{{members}} billable members + {{pending}} pending invites = {{used}} of {{capacity}} seats used. Viewers don’t take a seat.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} billable members use {{used}} of {{capacity}} seats. Viewers don’t take a seat.",
"workspace.members.seatChange.memberJoinBlocked": "Current members have reached the scheduled seat limit, so new paid members may not be able to join this workspace",
+ "workspace.members.seatPending_one": "{{count}} invite pending",
+ "workspace.members.seatPending_other": "{{count}} invites pending",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} seat",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} seats",
"workspace.members.subtitle": "Manage workspace members and invitations",
diff --git a/locales/es-ES/common.json b/locales/es-ES/common.json
index 98e5e33981e..6a0d19ddb32 100644
--- a/locales/es-ES/common.json
+++ b/locales/es-ES/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Ver detalles de la ejecución",
"visibilityConfirm.irreversible": " (irreversible)",
"visibilityConfirm.makePrivate.itemAccess": "Otros miembros del espacio de trabajo pierden acceso de inmediato",
+ "visibilityConfirm.makePrivate.itemLibrary": "Permanece en la biblioteca en la que lo archivaste; los demás miembros simplemente dejan de verlo allí",
"visibilityConfirm.makePrivate.itemLoaded": "El contenido que otros ya han cargado no se puede recuperar",
"visibilityConfirm.makePrivate.itemReferences": "Los archivos adjuntos y referencias existentes en los mensajes aparecerán como no disponibles",
"visibilityConfirm.publish.itemLoaded": "Después de cambiar, el contenido que otros ya han cargado no se puede recuperar",
diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.json
index 4a3b9eaa2d1..c5fee796d59 100644
--- a/locales/es-ES/setting.json
+++ b/locales/es-ES/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Reduce los asientos por separado después de este cambio inmediato de plan.",
"workspace.billingPage.billing.change.memberLimitReached": "Este espacio de trabajo actualmente tiene {{count}} miembros facturables. Elimina miembros o cámbialos a {{viewerRole}} antes de reducir más asientos.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Los miembros actuales requieren al menos {{count}} asientos adicionales.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "Este espacio de trabajo tiene {{members}} miembros facturables y {{pending}} invitaciones pendientes, utilizando {{used}} asientos — se requieren al menos {{count}} asientos adicionales. Revoque una invitación pendiente para reducir el número.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "El valor restante de tu plan actual supera el precio del nuevo plan, por lo que aún no se puede actualizar.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Las actualizaciones de pago único requieren un nivel superior o una duración más larga.",
"workspace.billingPage.billing.change.preview": "{{seats}} asientos · vista previa de facturación {{interval}}",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Disminuir asientos",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Aumentar asientos",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Este espacio de trabajo tiene {{members}} miembros facturables. Se requieren al menos {{count}} asientos adicionales.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "Este espacio de trabajo tiene {{members}} miembros facturables y {{pending}} invitaciones pendientes, utilizando {{used}} asientos. Se requieren al menos {{count}} asientos adicionales.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Sin cargo hoy",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Serás redirigido al proceso de pago para abonar la tarifa prorrateada por asiento para el período restante.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Método de pago actual",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Rol",
"workspace.members.invite.seatInsufficient": "Solo quedan {{remaining}} asiento(s). Compra más asientos para invitar a {{required}} nuevo(s) miembro(s).",
"workspace.members.invite.seatInsufficientNoBuy": "Solo quedan {{remaining}} asiento(s). Pide al propietario del espacio de trabajo que compre más asientos.",
+ "workspace.members.invite.seatLimitReached": "Todos los asientos están en uso. Compre más asientos para seguir invitando, o invite a espectadores en su lugar (no ocupan un asiento).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Todos los asientos en su espacio de trabajo gratuito están en uso. Actualice a Pro para obtener más asientos, o invite a espectadores en su lugar (no ocupan un asiento).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Todos los asientos están en uso. Pida al propietario del espacio de trabajo que compre más asientos, o invite a espectadores en su lugar (no ocupan un asiento).",
"workspace.members.invite.submit": "Invitar",
"workspace.members.invite.success": "Miembros del equipo invitados con éxito.",
"workspace.members.invite.title": "Invitar miembros",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "El enlace de invitación ya no será válido.",
"workspace.members.pending.revokeConfirm.title": "¿Revocar esta invitación?",
"workspace.members.pending.revokeFailed": "No se pudo revocar la invitación",
+ "workspace.members.seatBreakdown": "{{members}} miembros facturables + {{pending}} invitaciones pendientes = {{used}} de {{capacity}} asientos utilizados. Los espectadores no ocupan un asiento.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} miembros facturables utilizan {{used}} de {{capacity}} asientos. Los espectadores no ocupan un asiento.",
"workspace.members.seatChange.memberJoinBlocked": "Los miembros actuales han alcanzado el límite de asientos programados, por lo que nuevos miembros de pago pueden no poder unirse a este espacio de trabajo",
+ "workspace.members.seatPending_one": "{{count}} invitación pendiente",
+ "workspace.members.seatPending_other": "{{count}} invitaciones pendientes",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} asiento",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} asientos",
"workspace.members.subtitle": "Gestiona miembros e invitaciones del espacio de trabajo",
diff --git a/locales/fa-IR/common.json b/locales/fa-IR/common.json
index 0dd209d2f60..44e85e05c15 100644
--- a/locales/fa-IR/common.json
+++ b/locales/fa-IR/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "مشاهده جزئیات اجرا",
"visibilityConfirm.irreversible": " (غیرقابل بازگشت)",
"visibilityConfirm.makePrivate.itemAccess": "دیگر اعضای فضای کاری فوراً دسترسی خود را از دست می‌دهند",
+ "visibilityConfirm.makePrivate.itemLibrary": "در کتابخانه‌ای که آن را بایگانی کرده‌اید باقی می‌ماند — فقط دیگر اعضا آن را در آنجا نمی‌بینند",
"visibilityConfirm.makePrivate.itemLoaded": "محتوایی که دیگران قبلاً بارگذاری کرده‌اند، قابل بازگرداندن نیست",
"visibilityConfirm.makePrivate.itemReferences": "پیوست‌ها و ارجاعات پیام‌های موجود به‌عنوان غیرقابل دسترس نمایش داده می‌شوند",
"visibilityConfirm.publish.itemLoaded": "پس از تغییر وضعیت، محتوایی که دیگران قبلاً بارگذاری کرده‌اند، قابل بازگرداندن نیست",
diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.json
index 3fcfe579e69..8f7dce91c92 100644
--- a/locales/fa-IR/setting.json
+++ b/locales/fa-IR/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "کاهش تعداد صندلی‌ها را جداگانه پس از این تغییر فوری طرح انجام دهید.",
"workspace.billingPage.billing.change.memberLimitReached": "این فضای کاری در حال حاضر {{count}} عضو قابل پرداخت دارد. قبل از کاهش تعداد صندلی‌ها، اعضا را حذف کنید یا آنها را به {{viewerRole}} تغییر دهید.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "اعضای فعلی به حداقل {{count}} صندلی اضافی نیاز دارند.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "این فضای کاری دارای {{members}} عضو قابل پرداخت و {{pending}} دعوت‌نامه در انتظار است که از {{used}} صندلی استفاده می‌کنند — حداقل {{count}} صندلی اضافی مورد نیاز است. یک دعوت‌نامه در انتظار را لغو کنید تا تعداد کاهش یابد.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "مقدار باقی‌مانده از طرح فعلی شما بیشتر از قیمت طرح جدید است، بنابراین هنوز نمی‌توان آن را ارتقا داد.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "ارتقاهای یک‌باره نیاز به سطح بالاتر یا مدت زمان طولانی‌تر دارند.",
"workspace.billingPage.billing.change.preview": "{{seats}} نفر · پیش‌نمایش صورتحساب {{interval}}",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "کاهش صندلی‌ها",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "افزایش صندلی‌ها",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "این فضای کاری {{members}} عضو قابل پرداخت دارد. حداقل {{count}} صندلی اضافی مورد نیاز است.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "این فضای کاری دارای {{members}} عضو قابل پرداخت و {{pending}} دعوت‌نامه در انتظار است که از {{used}} صندلی استفاده می‌کنند. حداقل {{count}} صندلی اضافی مورد نیاز است.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "امروز هزینه‌ای دریافت نمی‌شود",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "شما به صفحه پرداخت هدایت خواهید شد تا هزینه صندلی‌های باقی‌مانده برای دوره فعلی را پرداخت کنید.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "روش پرداخت فعلی",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "نقش",
"workspace.members.invite.seatInsufficient": "فقط {{remaining}} صندلی باقی مانده است. برای دعوت {{required}} عضو جدید، صندلی‌های بیشتری خریداری کنید.",
"workspace.members.invite.seatInsufficientNoBuy": "فقط {{remaining}} صندلی باقی مانده است. از مالک فضای کاری بخواهید صندلی‌های بیشتری خریداری کند.",
+ "workspace.members.invite.seatLimitReached": "تمام صندلی‌ها استفاده شده‌اند. برای ادامه دعوت، صندلی‌های بیشتری بخرید یا بینندگان را دعوت کنید (آن‌ها صندلی اشغال نمی‌کنند).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "تمام صندلی‌های فضای کاری رایگان شما استفاده شده‌اند. برای صندلی‌های بیشتر به نسخه حرفه‌ای ارتقا دهید یا بینندگان را دعوت کنید (آن‌ها صندلی اشغال نمی‌کنند).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "تمام صندلی‌ها استفاده شده‌اند. از مالک فضای کاری بخواهید صندلی‌های بیشتری بخرد یا بینندگان را دعوت کنید (آن‌ها صندلی اشغال نمی‌کنند).",
"workspace.members.invite.submit": "دعوت",
"workspace.members.invite.success": "اعضای تیم با موفقیت دعوت شدند.",
"workspace.members.invite.title": "دعوت اعضا",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "لینک دعوت دیگر معتبر نخواهد بود.",
"workspace.members.pending.revokeConfirm.title": "این دعوت‌نامه لغو شود؟",
"workspace.members.pending.revokeFailed": "لغو دعوت‌نامه ناموفق بود",
+ "workspace.members.seatBreakdown": "{{members}} عضو قابل پرداخت + {{pending}} دعوت‌نامه در انتظار = {{used}} از {{capacity}} صندلی استفاده شده است. بینندگان صندلی اشغال نمی‌کنند.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} عضو قابل پرداخت از {{used}} از {{capacity}} صندلی استفاده می‌کنند. بینندگان صندلی اشغال نمی‌کنند.",
"workspace.members.seatChange.memberJoinBlocked": "اعضای فعلی به حد مجاز صندلی‌های زمان‌بندی‌شده رسیده‌اند، بنابراین ممکن است اعضای جدید پولی نتوانند به این فضای کاری بپیوندند.",
+ "workspace.members.seatPending_one": "{{count}} دعوت‌نامه در انتظار",
+ "workspace.members.seatPending_other": "{{count}} دعوت‌نامه در انتظار",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} صندلی",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} صندلی‌ها",
"workspace.members.subtitle": "مدیریت اعضای فضای کاری و دعوت‌نامه‌ها",
diff --git a/locales/fr-FR/common.json b/locales/fr-FR/common.json
index 46a4b71f09a..f211e348ef2 100644
--- a/locales/fr-FR/common.json
+++ b/locales/fr-FR/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Voir les détails de l'exécution",
"visibilityConfirm.irreversible": " (irréversible)",
"visibilityConfirm.makePrivate.itemAccess": "Les autres membres de l'espace de travail perdent immédiatement l'accès",
+ "visibilityConfirm.makePrivate.itemLibrary": "Il reste dans la bibliothèque où vous l'avez classé — les autres membres cessent simplement de le voir là-bas",
"visibilityConfirm.makePrivate.itemLoaded": "Le contenu déjà chargé par d'autres ne peut pas être récupéré",
"visibilityConfirm.makePrivate.itemReferences": "Les pièces jointes et références des messages existants apparaîtront comme indisponibles",
"visibilityConfirm.publish.itemLoaded": "Après le changement, le contenu déjà chargé par d'autres ne peut pas être récupéré",
diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.json
index 35514d8c279..dcbc85f646d 100644
--- a/locales/fr-FR/setting.json
+++ b/locales/fr-FR/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Réduisez les sièges séparément après ce changement immédiat de plan.",
"workspace.billingPage.billing.change.memberLimitReached": "Cet espace de travail compte actuellement {{count}} membres facturables. Supprimez des membres ou changez leur rôle en {{viewerRole}} avant de réduire davantage les sièges.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Les membres actuels nécessitent au moins {{count}} sièges supplémentaires.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "Cet espace de travail compte {{members}} membres facturables et {{pending}} invitations en attente, utilisant {{used}} sièges — au moins {{count}} sièges supplémentaires sont nécessaires. Révoquez une invitation en attente pour réduire ce nombre.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "La valeur restante de votre plan actuel dépasse le prix du nouveau plan, il ne peut donc pas encore être mis à niveau.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Les mises à niveau ponctuelles nécessitent un niveau supérieur ou une durée plus longue.",
"workspace.billingPage.billing.change.preview": "{{seats}} places · aperçu de la facturation {{interval}}",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Réduire les places",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Augmenter les places",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Cet espace de travail compte {{members}} membres facturables. Au moins {{count}} sièges supplémentaires sont nécessaires.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "Cet espace de travail compte {{members}} membres facturables et {{pending}} invitations en attente, utilisant {{used}} sièges. Au moins {{count}} sièges supplémentaires sont nécessaires.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Aucun frais aujourd'hui",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Vous serez redirigé vers le paiement pour régler les frais de siège au prorata pour la période restante.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Mode de paiement actuel",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Rôle",
"workspace.members.invite.seatInsufficient": "Il ne reste que {{remaining}} place(s). Achetez plus de places pour inviter {{required}} nouveau(x) membre(s).",
"workspace.members.invite.seatInsufficientNoBuy": "Il ne reste que {{remaining}} place(s). Demandez au propriétaire de l'espace de travail d'acheter plus de places.",
+ "workspace.members.invite.seatLimitReached": "Tous les sièges sont occupés. Achetez plus de sièges pour continuer à inviter, ou invitez des spectateurs à la place (ils n'occupent pas de siège).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Tous les sièges de votre espace de travail gratuit sont occupés. Passez à Pro pour obtenir plus de sièges, ou invitez des spectateurs à la place (ils n'occupent pas de siège).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Tous les sièges sont occupés. Demandez au propriétaire de l'espace de travail d'acheter plus de sièges, ou invitez des spectateurs à la place (ils n'occupent pas de siège).",
"workspace.members.invite.submit": "Inviter",
"workspace.members.invite.success": "Membres de l'équipe invités avec succès.",
"workspace.members.invite.title": "Inviter des membres",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "Le lien d'invitation ne sera plus valide.",
"workspace.members.pending.revokeConfirm.title": "Révoquer cette invitation ?",
"workspace.members.pending.revokeFailed": "Échec de la révocation de l'invitation",
+ "workspace.members.seatBreakdown": "{{members}} membres facturables + {{pending}} invitations en attente = {{used}} sur {{capacity}} sièges utilisés. Les spectateurs n'occupent pas de siège.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} membres facturables utilisent {{used}} sur {{capacity}} sièges. Les spectateurs n'occupent pas de siège.",
"workspace.members.seatChange.memberJoinBlocked": "Les membres actuels ont atteint la limite de sièges prévue, de sorte que de nouveaux membres payants pourraient ne pas pouvoir rejoindre cet espace de travail",
+ "workspace.members.seatPending_one": "{{count}} invitation en attente",
+ "workspace.members.seatPending_other": "{{count}} invitations en attente",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} place",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} places",
"workspace.members.subtitle": "Gérez les membres et les invitations de l'espace de travail",
diff --git a/locales/it-IT/common.json b/locales/it-IT/common.json
index 9a7c61b4bd7..fb3fd381507 100644
--- a/locales/it-IT/common.json
+++ b/locales/it-IT/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Visualizza i dettagli dell'esecuzione",
"visibilityConfirm.irreversible": " (irreversibile)",
"visibilityConfirm.makePrivate.itemAccess": "Gli altri membri dello spazio di lavoro perdono immediatamente l'accesso",
+ "visibilityConfirm.makePrivate.itemLibrary": "Rimane nella libreria in cui lo hai archiviato — gli altri membri semplicemente smettono di vederlo lì",
"visibilityConfirm.makePrivate.itemLoaded": "Il contenuto già caricato da altri non può essere recuperato",
"visibilityConfirm.makePrivate.itemReferences": "Gli allegati e i riferimenti ai messaggi esistenti saranno mostrati come non disponibili",
"visibilityConfirm.publish.itemLoaded": "Dopo il cambio, il contenuto già caricato da altri non può essere recuperato",
diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.json
index 597dfdfc0e7..f271642a96d 100644
--- a/locales/it-IT/setting.json
+++ b/locales/it-IT/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Riduci i posti separatamente dopo questa modifica immediata del piano.",
"workspace.billingPage.billing.change.memberLimitReached": "Questo workspace ha attualmente {{count}} membri a pagamento. Rimuovi membri o cambiali in {{viewerRole}} prima di ridurre ulteriormente i posti.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "I membri attuali richiedono almeno {{count}} posti aggiuntivi.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "Questo spazio di lavoro ha {{members}} membri fatturabili e {{pending}} inviti in sospeso, utilizzando {{used}} posti — sono necessari almeno {{count}} posti extra. Revoca un invito in sospeso per scendere.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "Il valore residuo del tuo piano attuale supera il prezzo del nuovo piano, quindi non può essere ancora aggiornato.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Gli aggiornamenti una tantum richiedono un livello superiore o una durata maggiore.",
"workspace.billingPage.billing.change.preview": "{{seats}} posti · anteprima fatturazione {{interval}}",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Riduci posti",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Aumenta posti",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Questo workspace ha {{members}} membri a pagamento. Sono necessari almeno {{count}} posti aggiuntivi.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "Questo spazio di lavoro ha {{members}} membri fatturabili e {{pending}} inviti in sospeso, utilizzando {{used}} posti. Sono necessari almeno {{count}} posti extra.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Nessun addebito oggi",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Sarai reindirizzato al checkout per pagare la tariffa proporzionale per i posti aggiuntivi per il periodo rimanente.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Metodo di pagamento attuale",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Ruolo",
"workspace.members.invite.seatInsufficient": "Solo {{remaining}} posto/i disponibile/i. Acquista più posti per invitare {{required}} nuovo/i membro/i.",
"workspace.members.invite.seatInsufficientNoBuy": "Solo {{remaining}} posto/i disponibile/i. Chiedi al proprietario del workspace di acquistare più posti.",
+ "workspace.members.invite.seatLimitReached": "Tutti i posti sono occupati. Acquista più posti per continuare a invitare, oppure invita spettatori (non occupano un posto).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Tutti i posti nel tuo spazio di lavoro gratuito sono occupati. Passa a Pro per più posti, oppure invita spettatori (non occupano un posto).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Tutti i posti sono occupati. Chiedi al proprietario dello spazio di lavoro di acquistare più posti, oppure invita spettatori (non occupano un posto).",
"workspace.members.invite.submit": "Invita",
"workspace.members.invite.success": "Membri del team invitati con successo.",
"workspace.members.invite.title": "Invita membri",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "Il link dell'invito non sarà più valido.",
"workspace.members.pending.revokeConfirm.title": "Revocare questo invito?",
"workspace.members.pending.revokeFailed": "Impossibile revocare l'invito",
+ "workspace.members.seatBreakdown": "{{members}} membri fatturabili + {{pending}} inviti in sospeso = {{used}} di {{capacity}} posti utilizzati. Gli spettatori non occupano un posto.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} membri fatturabili utilizzano {{used}} di {{capacity}} posti. Gli spettatori non occupano un posto.",
"workspace.members.seatChange.memberJoinBlocked": "I membri attuali hanno raggiunto il limite di posti programmati, quindi nuovi membri a pagamento potrebbero non essere in grado di unirsi a questo workspace",
+ "workspace.members.seatPending_one": "{{count}} invito in sospeso",
+ "workspace.members.seatPending_other": "{{count}} inviti in sospeso",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} posto",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} posti",
"workspace.members.subtitle": "Gestisci i membri e gli inviti del workspace",
diff --git a/locales/ja-JP/common.json b/locales/ja-JP/common.json
index 9a405b3298b..4335fcf3047 100644
--- a/locales/ja-JP/common.json
+++ b/locales/ja-JP/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "実行詳細を表示",
"visibilityConfirm.irreversible": "(元に戻せません)",
"visibilityConfirm.makePrivate.itemAccess": "他のワークスペースメンバーはすぐにアクセス権を失います",
+ "visibilityConfirm.makePrivate.itemLibrary": "それはあなたがそれをファイルしたライブラリに残りますが、他のメンバーはそこにそれを見ることができなくなります",
"visibilityConfirm.makePrivate.itemLoaded": "他の人がすでに読み込んだコンテンツは取り戻せません",
"visibilityConfirm.makePrivate.itemReferences": "既存のメッセージ添付ファイルや参照は利用不可として表示されます",
"visibilityConfirm.publish.itemLoaded": "切り替え後、他の人がすでに読み込んだコンテンツは取り戻せません",
diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.json
index ce2f8ccccba..6ba867d09d1 100644
--- a/locales/ja-JP/setting.json
+++ b/locales/ja-JP/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "この即時プラン変更後に座席数を個別に減らしてください。",
"workspace.billingPage.billing.change.memberLimitReached": "このワークスペースには現在{{count}}人の請求対象メンバーがいます。さらにシートを減らす前にメンバーを削除するか、{{viewerRole}}に変更してください。",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "現在のメンバーには少なくとも{{count}}席の追加が必要です。",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "このワークスペースには{{members}}人の課金対象メンバーと{{pending}}件の保留中の招待があり、{{used}}席を使用しています — 少なくとも{{count}}席の追加が必要です。保留中の招待を取り消して席数を減らしてください。",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "現在のプランの残りの価値が新しいプランの価格を超えているため、まだアップグレードできません。",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "一回限りのアップグレードには、より高い階層または長い期間が必要です。",
"workspace.billingPage.billing.change.preview": "{{seats}}席 · {{interval}}請求プレビュー",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "席数を減らす",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "席数を増やす",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "このワークスペースには{{members}}人の請求対象メンバーがいます。少なくとも{{count}}個の追加シートが必要です。",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "このワークスペースには{{members}}人の課金対象メンバーと{{pending}}件の保留中の招待があり、{{used}}席を使用しています。少なくとも{{count}}席の追加が必要です。",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "本日は請求されません",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "残り期間の座席料金を比例配分で支払うため、チェックアウトにリダイレクトされます。",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "現在の支払い方法",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "役割",
"workspace.members.invite.seatInsufficient": "残り{{remaining}}シートのみです。{{required}}人の新しいメンバーを招待するには、さらにシートを購入してください。",
"workspace.members.invite.seatInsufficientNoBuy": "残り{{remaining}}シートのみです。ワークスペースオーナーにシートの追加購入を依頼してください。",
+ "workspace.members.invite.seatLimitReached": "すべての席が使用中です。席を追加購入するか、ビューアーとして招待してください(ビューアーは席を使用しません)。",
+ "workspace.members.invite.seatLimitReachedFreePlan": "無料ワークスペースのすべての席が使用中です。席を増やすにはProにアップグレードするか、ビューアーとして招待してください(ビューアーは席を使用しません)。",
+ "workspace.members.invite.seatLimitReachedNoBuy": "すべての席が使用中です。ワークスペースの所有者に席を追加購入するよう依頼するか、ビューアーとして招待してください(ビューアーは席を使用しません)。",
"workspace.members.invite.submit": "招待",
"workspace.members.invite.success": "チームメンバーが正常に招待されました。",
"workspace.members.invite.title": "メンバーを招待",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "招待リンクはもう有効ではなくなります。",
"workspace.members.pending.revokeConfirm.title": "この招待を取り消しますか?",
"workspace.members.pending.revokeFailed": "招待の取り消しに失敗しました。",
+ "workspace.members.seatBreakdown": "{{members}}人の課金対象メンバー + {{pending}}件の保留中の招待 = {{used}} / {{capacity}}席を使用中。ビューアーは席を使用しません。",
+ "workspace.members.seatBreakdownNoPending": "{{members}}人の課金対象メンバーが{{used}} / {{capacity}}席を使用中。ビューアーは席を使用しません。",
"workspace.members.seatChange.memberJoinBlocked": "現在のメンバーが予定されたシート制限に達しているため、新しい有料メンバーはこのワークスペースに参加できない可能性があります",
+ "workspace.members.seatPending_one": "{{count}}件の招待が保留中",
+ "workspace.members.seatPending_other": "{{count}}件の招待が保留中",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} 席",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} 席",
"workspace.members.subtitle": "ワークスペースメンバーと招待を管理",
diff --git a/locales/ko-KR/common.json b/locales/ko-KR/common.json
index 10e2bd60962..f9b1ea64524 100644
--- a/locales/ko-KR/common.json
+++ b/locales/ko-KR/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "실행 세부 정보 보기",
"visibilityConfirm.irreversible": " (되돌릴 수 없음)",
"visibilityConfirm.makePrivate.itemAccess": "다른 워크스페이스 멤버는 즉시 접근 권한을 잃게 됩니다",
+ "visibilityConfirm.makePrivate.itemLibrary": "이 항목은 귀하가 저장한 라이브러리에 남아 있습니다. 단, 다른 멤버들은 더 이상 해당 라이브러리를 볼 수 없습니다.",
"visibilityConfirm.makePrivate.itemLoaded": "다른 사용자가 이미 로드한 콘텐츠는 되돌릴 수 없습니다",
"visibilityConfirm.makePrivate.itemReferences": "기존 메시지 첨부 파일과 참조는 사용할 수 없는 상태로 표시됩니다",
"visibilityConfirm.publish.itemLoaded": "다시 전환한 후에도 다른 사용자가 이미 로드한 콘텐츠는 되돌릴 수 없습니다",
diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.json
index 2c10fddeca1..66b5f735c99 100644
--- a/locales/ko-KR/setting.json
+++ b/locales/ko-KR/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "즉시 플랜 변경 후 좌석 수를 별도로 줄일 수 있습니다.",
"workspace.billingPage.billing.change.memberLimitReached": "이 워크스페이스에는 현재 {{count}}명의 청구 가능한 멤버가 있습니다. 좌석을 더 줄이기 전에 멤버를 제거하거나 {{viewerRole}}로 변경하세요.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "현재 멤버 수에 최소 {{count}}개의 추가 좌석이 필요합니다.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "이 작업 공간에는 {{members}}명의 유료 멤버와 {{pending}}개의 대기 중인 초대가 있으며, {{used}}개의 좌석을 사용 중입니다 — 최소 {{count}}개의 추가 좌석이 필요합니다. 대기 중인 초대를 취소하여 줄일 수 있습니다.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "현재 플랜의 남은 금액이 새 플랜의 가격을 초과하여 아직 업그레이드할 수 없습니다.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "일회성 업그레이드는 더 높은 등급 또는 더 긴 기간이 필요합니다.",
"workspace.billingPage.billing.change.preview": "{{seats}}석 · {{interval}} 청구 미리보기",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "좌석 줄이기",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "좌석 늘리기",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "이 워크스페이스에는 {{members}}명의 청구 가능한 멤버가 있습니다. 최소 {{count}}개의 추가 좌석이 필요합니다.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "이 작업 공간에는 {{members}}명의 유료 멤버와 {{pending}}개의 대기 중인 초대가 있으며, {{used}}개의 좌석을 사용 중입니다. 최소 {{count}}개의 추가 좌석이 필요합니다.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "오늘은 청구되지 않습니다",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "남은 기간에 대한 좌석 요금을 비례 계산하여 결제 페이지로 리디렉션됩니다.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "현재 결제 방법",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "역할",
"workspace.members.invite.seatInsufficient": "남은 좌석이 {{remaining}}개뿐입니다. {{required}}명의 새 멤버를 초대하려면 더 많은 좌석을 구매하세요.",
"workspace.members.invite.seatInsufficientNoBuy": "남은 좌석이 {{remaining}}개뿐입니다. 워크스페이스 소유자에게 더 많은 좌석을 구매하도록 요청하세요.",
+ "workspace.members.invite.seatLimitReached": "모든 좌석이 사용 중입니다. 더 많은 좌석을 구매하거나, 대신 뷰어를 초대하세요 (뷰어는 좌석을 차지하지 않습니다).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "무료 작업 공간의 모든 좌석이 사용 중입니다. 더 많은 좌석을 위해 Pro로 업그레이드하거나, 대신 뷰어를 초대하세요 (뷰어는 좌석을 차지하지 않습니다).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "모든 좌석이 사용 중입니다. 작업 공간 소유자에게 더 많은 좌석을 구매하도록 요청하거나, 대신 뷰어를 초대하세요 (뷰어는 좌석을 차지하지 않습니다).",
"workspace.members.invite.submit": "초대",
"workspace.members.invite.success": "팀 멤버가 성공적으로 초대되었습니다.",
"workspace.members.invite.title": "멤버 초대",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "초대 링크는 더 이상 유효하지 않습니다.",
"workspace.members.pending.revokeConfirm.title": "이 초대를 취소하시겠습니까?",
"workspace.members.pending.revokeFailed": "초대 취소에 실패했습니다.",
+ "workspace.members.seatBreakdown": "{{members}}명의 유료 멤버 + {{pending}}개의 대기 중인 초대 = {{used}}/{{capacity}} 좌석 사용 중. 뷰어는 좌석을 차지하지 않습니다.",
+ "workspace.members.seatBreakdownNoPending": "{{members}}명의 유료 멤버가 {{used}}/{{capacity}} 좌석을 사용 중입니다. 뷰어는 좌석을 차지하지 않습니다.",
"workspace.members.seatChange.memberJoinBlocked": "현재 멤버가 예약된 좌석 한도에 도달하여 새로운 유료 멤버가 이 워크스페이스에 참여할 수 없습니다.",
+ "workspace.members.seatPending_one": "{{count}}개의 초대 대기 중",
+ "workspace.members.seatPending_other": "{{count}}개의 초대 대기 중",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} 좌석",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} 좌석들",
"workspace.members.subtitle": "워크스페이스 멤버 및 초대 관리",
diff --git a/locales/nl-NL/common.json b/locales/nl-NL/common.json
index e7d95277f7a..bd0155404bd 100644
--- a/locales/nl-NL/common.json
+++ b/locales/nl-NL/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Bekijk uitvoeringsdetails",
"visibilityConfirm.irreversible": " (onomkeerbaar)",
"visibilityConfirm.makePrivate.itemAccess": "Andere werkruimteleden verliezen onmiddellijk toegang",
+ "visibilityConfirm.makePrivate.itemLibrary": "Het blijft in de bibliotheek waarin je het hebt opgeslagen — andere leden zien het daar gewoon niet meer",
"visibilityConfirm.makePrivate.itemLoaded": "Inhoud die anderen al hebben geladen, kan niet worden teruggehaald",
"visibilityConfirm.makePrivate.itemReferences": "Bestaande berichtbijlagen en verwijzingen worden als niet beschikbaar weergegeven",
"visibilityConfirm.publish.itemLoaded": "Na het terugschakelen kan inhoud die anderen al hebben geladen niet worden teruggehaald",
diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.json
index 5937d8bc747..5b2a7ba9959 100644
--- a/locales/nl-NL/setting.json
+++ b/locales/nl-NL/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Verminder het aantal plaatsen afzonderlijk na deze directe wijziging van het plan.",
"workspace.billingPage.billing.change.memberLimitReached": "Deze werkruimte heeft momenteel {{count}} betaalde leden. Verwijder leden of wijzig ze naar {{viewerRole}} voordat u het aantal plaatsen verder verlaagt.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Huidige leden vereisen minimaal {{count}} extra plaatsen.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "Deze werkruimte heeft {{members}} factureerbare leden en {{pending}} openstaande uitnodigingen, met {{used}} gebruikte stoelen — er zijn minstens {{count}} extra stoelen nodig. Trek een openstaande uitnodiging in om lager te gaan.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "De resterende waarde van uw huidige plan overschrijdt de prijs van het nieuwe plan, dus het kan nog niet worden geüpgraded.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Eenmalige upgrades vereisen een hoger niveau of een langere duur.",
"workspace.billingPage.billing.change.preview": "{{seats}} plaatsen · {{interval}} factureringsvoorbeeld",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Plaatsen verminderen",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Plaatsen verhogen",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Deze werkruimte heeft {{members}} betaalde leden. Minimaal {{count}} extra plaatsen zijn vereist.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "Deze werkruimte heeft {{members}} factureerbare leden en {{pending}} openstaande uitnodigingen, met {{used}} gebruikte stoelen. Er zijn minstens {{count}} extra stoelen nodig.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Vandaag geen kosten",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "U wordt doorgestuurd naar de kassa om de pro rata stoelvergoeding voor de resterende periode te betalen.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Huidige betaalmethode",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Rol",
"workspace.members.invite.seatInsufficient": "Slechts {{remaining}} zitplaats(en) over. Koop meer zitplaatsen om {{required}} nieuw(e) lid(leden) uit te nodigen.",
"workspace.members.invite.seatInsufficientNoBuy": "Slechts {{remaining}} zitplaats(en) over. Vraag de werkruimte-eigenaar om meer zitplaatsen te kopen.",
+ "workspace.members.invite.seatLimitReached": "Alle stoelen zijn in gebruik. Koop meer stoelen om te blijven uitnodigen, of nodig kijkers uit (zij nemen geen stoel in beslag).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Alle stoelen in je Gratis werkruimte zijn in gebruik. Upgrade naar Pro voor meer stoelen, of nodig kijkers uit (zij nemen geen stoel in beslag).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Alle stoelen zijn in gebruik. Vraag de eigenaar van de werkruimte om meer stoelen te kopen, of nodig kijkers uit (zij nemen geen stoel in beslag).",
"workspace.members.invite.submit": "Uitnodigen",
"workspace.members.invite.success": "Teamleden succesvol uitgenodigd.",
"workspace.members.invite.title": "Leden uitnodigen",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "De uitnodigingslink is niet langer geldig.",
"workspace.members.pending.revokeConfirm.title": "Deze uitnodiging intrekken?",
"workspace.members.pending.revokeFailed": "Uitnodiging intrekken mislukt",
+ "workspace.members.seatBreakdown": "{{members}} factureerbare leden + {{pending}} openstaande uitnodigingen = {{used}} van {{capacity}} stoelen in gebruik. Kijkers nemen geen stoel in beslag.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} factureerbare leden gebruiken {{used}} van {{capacity}} stoelen. Kijkers nemen geen stoel in beslag.",
"workspace.members.seatChange.memberJoinBlocked": "Huidige leden hebben de geplande plaatslimiet bereikt, waardoor nieuwe betaalde leden mogelijk niet kunnen deelnemen aan deze werkruimte",
+ "workspace.members.seatPending_one": "{{count}} uitnodiging in behandeling",
+ "workspace.members.seatPending_other": "{{count}} uitnodigingen in behandeling",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} plek",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} plekken",
"workspace.members.subtitle": "Beheer werkruimteleden en uitnodigingen",
diff --git a/locales/pl-PL/common.json b/locales/pl-PL/common.json
index 751bcabe5a2..618fc186aec 100644
--- a/locales/pl-PL/common.json
+++ b/locales/pl-PL/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Zobacz szczegóły wykonania",
"visibilityConfirm.irreversible": " (nieodwracalne)",
"visibilityConfirm.makePrivate.itemAccess": "Pozostali członkowie przestrzeni roboczej natychmiast tracą dostęp",
+ "visibilityConfirm.makePrivate.itemLibrary": "Pozostaje w bibliotece, w której ją umieściłeś — inni członkowie po prostu przestają ją tam widzieć",
"visibilityConfirm.makePrivate.itemLoaded": "Treści, które inni już załadowali, nie mogą zostać cofnięte",
"visibilityConfirm.makePrivate.itemReferences": "Istniejące załączniki wiadomości i odniesienia będą wyświetlane jako niedostępne",
"visibilityConfirm.publish.itemLoaded": "Po przełączeniu z powrotem treści, które inni już załadowali, nie mogą zostać cofnięte",
diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.json
index da7940b7d98..1f03cc78023 100644
--- a/locales/pl-PL/setting.json
+++ b/locales/pl-PL/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Zmniejsz liczbę miejsc osobno po tej natychmiastowej zmianie planu.",
"workspace.billingPage.billing.change.memberLimitReached": "Ten workspace ma obecnie {{count}} płatnych członków. Usuń członków lub zmień ich na {{viewerRole}} przed dalszym zmniejszeniem liczby miejsc.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Obecni członkowie wymagają co najmniej {{count}} dodatkowych miejsc.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "To miejsce pracy ma {{members}} członków płatnych i {{pending}} oczekujących zaproszeń, używając {{used}} miejsc — wymagane jest co najmniej {{count}} dodatkowych miejsc. Cofnij oczekujące zaproszenie, aby zmniejszyć liczbę.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "Pozostała wartość Twojego obecnego planu przekracza cenę nowego planu, więc nie można go jeszcze zaktualizować.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Jednorazowe aktualizacje wymagają wyższego poziomu lub dłuższego okresu.",
"workspace.billingPage.billing.change.preview": "{{seats}} miejsc · podgląd rozliczenia {{interval}}",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Zmniejsz liczbę miejsc",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Zwiększ liczbę miejsc",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Ten workspace ma {{members}} płatnych członków. Wymagane jest co najmniej {{count}} dodatkowych miejsc.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "To miejsce pracy ma {{members}} członków płatnych i {{pending}} oczekujących zaproszeń, używając {{used}} miejsc. Wymagane jest co najmniej {{count}} dodatkowych miejsc.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Brak opłat dzisiaj",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Zostaniesz przekierowany do kasy, aby zapłacić proporcjonalną opłatę za miejsce na pozostały okres.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Obecna metoda płatności",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Rola",
"workspace.members.invite.seatInsufficient": "Pozostało tylko {{remaining}} miejsce(a). Kup więcej miejsc, aby zaprosić {{required}} nowego(ych) członka(ów).",
"workspace.members.invite.seatInsufficientNoBuy": "Pozostało tylko {{remaining}} miejsce(a). Poproś właściciela przestrzeni roboczej o zakup dodatkowych miejsc.",
+ "workspace.members.invite.seatLimitReached": "Wszystkie miejsca są zajęte. Kup więcej miejsc, aby kontynuować zapraszanie, lub zaproś widzów (nie zajmują miejsca).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Wszystkie miejsca w Twoim darmowym miejscu pracy są zajęte. Przejdź na plan Pro, aby uzyskać więcej miejsc, lub zaproś widzów (nie zajmują miejsca).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Wszystkie miejsca są zajęte. Poproś właściciela miejsca pracy o zakup dodatkowych miejsc, lub zaproś widzów (nie zajmują miejsca).",
"workspace.members.invite.submit": "Zaproś",
"workspace.members.invite.success": "Członkowie zespołu zostali pomyślnie zaproszeni.",
"workspace.members.invite.title": "Zaproś członków",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "Link do zaproszenia nie będzie już ważny.",
"workspace.members.pending.revokeConfirm.title": "Cofnąć to zaproszenie?",
"workspace.members.pending.revokeFailed": "Nie udało się cofnąć zaproszenia",
+ "workspace.members.seatBreakdown": "{{members}} członków płatnych + {{pending}} oczekujących zaproszeń = {{used}} z {{capacity}} miejsc użytych. Widzowie nie zajmują miejsca.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} członków płatnych używa {{used}} z {{capacity}} miejsc. Widzowie nie zajmują miejsca.",
"workspace.members.seatChange.memberJoinBlocked": "Obecni członkowie osiągnęli zaplanowany limit miejsc, więc nowi płatni członkowie mogą nie być w stanie dołączyć do tego workspace",
+ "workspace.members.seatPending_one": "{{count}} oczekujące zaproszenie",
+ "workspace.members.seatPending_other": "{{count}} oczekujących zaproszeń",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} miejsce",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} miejsc",
"workspace.members.subtitle": "Zarządzaj członkami miejsca pracy i zaproszeniami",
diff --git a/locales/pt-BR/common.json b/locales/pt-BR/common.json
index c0064ce2c8c..497506062e6 100644
--- a/locales/pt-BR/common.json
+++ b/locales/pt-BR/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Ver detalhes da execução",
"visibilityConfirm.irreversible": " (irreversível)",
"visibilityConfirm.makePrivate.itemAccess": "Outros membros do espaço de trabalho perdem acesso imediatamente",
+ "visibilityConfirm.makePrivate.itemLibrary": "Ele permanece na biblioteca em que você o arquivou — outros membros apenas param de vê-lo lá",
"visibilityConfirm.makePrivate.itemLoaded": "O conteúdo que outros já carregaram não pode ser recuperado",
"visibilityConfirm.makePrivate.itemReferences": "Anexos de mensagens e referências existentes aparecerão como indisponíveis",
"visibilityConfirm.publish.itemLoaded": "Após mudar de volta, o conteúdo que outros já carregaram não pode ser recuperado",
diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.json
index 88e960c0a61..bff192d8b02 100644
--- a/locales/pt-BR/setting.json
+++ b/locales/pt-BR/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Reduza os assentos separadamente após esta alteração imediata do plano.",
"workspace.billingPage.billing.change.memberLimitReached": "Este espaço de trabalho atualmente possui {{count}} membros faturáveis. Remova membros ou altere-os para {{viewerRole}} antes de reduzir ainda mais os assentos.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Os membros atuais exigem pelo menos {{count}} assentos extras.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "Este espaço de trabalho tem {{members}} membros faturáveis e {{pending}} convites pendentes, usando {{used}} assentos — pelo menos {{count}} assentos extras são necessários. Revogue um convite pendente para reduzir.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "O valor restante do seu plano atual excede o preço do novo plano, portanto, ele ainda não pode ser atualizado.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Atualizações únicas exigem um nível superior ou uma duração maior.",
"workspace.billingPage.billing.change.preview": "{{seats}} assentos · prévia de cobrança {{interval}}",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Diminuir assentos",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Aumentar assentos",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Este espaço de trabalho possui {{members}} membros faturáveis. Pelo menos {{count}} assentos extras são necessários.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "Este espaço de trabalho tem {{members}} membros faturáveis e {{pending}} convites pendentes, usando {{used}} assentos. Pelo menos {{count}} assentos extras são necessários.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Sem cobrança hoje",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Você será redirecionado para o checkout para pagar a taxa proporcional do assento para o período restante.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Método de pagamento atual",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Função",
"workspace.members.invite.seatInsufficient": "Apenas {{remaining}} assento(s) restante(s). Compre mais assentos para convidar {{required}} novo(s) membro(s).",
"workspace.members.invite.seatInsufficientNoBuy": "Apenas {{remaining}} assento(s) restante(s). Peça ao proprietário do workspace para comprar mais assentos.",
+ "workspace.members.invite.seatLimitReached": "Todos os assentos estão em uso. Compre mais assentos para continuar convidando ou convide visualizadores (eles não ocupam um assento).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Todos os assentos no seu espaço de trabalho gratuito estão em uso. Faça o upgrade para o Pro para obter mais assentos ou convide visualizadores (eles não ocupam um assento).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Todos os assentos estão em uso. Peça ao proprietário do espaço de trabalho para comprar mais assentos ou convide visualizadores (eles não ocupam um assento).",
"workspace.members.invite.submit": "Convidar",
"workspace.members.invite.success": "Membros da equipe convidados com sucesso.",
"workspace.members.invite.title": "Convidar Membros",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "O link de convite não será mais válido.",
"workspace.members.pending.revokeConfirm.title": "Revogar este convite?",
"workspace.members.pending.revokeFailed": "Falha ao revogar o convite",
+ "workspace.members.seatBreakdown": "{{members}} membros faturáveis + {{pending}} convites pendentes = {{used}} de {{capacity}} assentos usados. Visualizadores não ocupam um assento.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} membros faturáveis usam {{used}} de {{capacity}} assentos. Visualizadores não ocupam um assento.",
"workspace.members.seatChange.memberJoinBlocked": "Os membros atuais atingiram o limite de assentos agendado, então novos membros pagos podem não conseguir ingressar neste espaço de trabalho",
+ "workspace.members.seatPending_one": "{{count}} convite pendente",
+ "workspace.members.seatPending_other": "{{count}} convites pendentes",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} assento",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} assentos",
"workspace.members.subtitle": "Gerencie os membros e convites do workspace",
diff --git a/locales/ru-RU/common.json b/locales/ru-RU/common.json
index 489232d40dd..0e29de93adb 100644
--- a/locales/ru-RU/common.json
+++ b/locales/ru-RU/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Просмотреть детали выполнения",
"visibilityConfirm.irreversible": " (необратимо)",
"visibilityConfirm.makePrivate.itemAccess": "Другие участники рабочей области немедленно теряют доступ",
+ "visibilityConfirm.makePrivate.itemLibrary": "Он остается в библиотеке, в которую вы его поместили — другие участники просто перестают его там видеть",
"visibilityConfirm.makePrivate.itemLoaded": "Контент, который уже был загружен другими, нельзя будет отозвать",
"visibilityConfirm.makePrivate.itemReferences": "Существующие вложения сообщений и ссылки будут отображаться как недоступные",
"visibilityConfirm.publish.itemLoaded": "После переключения обратно контент, который уже был загружен другими, нельзя будет отозвать",
diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.json
index 9da7122057c..cd78b45a5f4 100644
--- a/locales/ru-RU/setting.json
+++ b/locales/ru-RU/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Уменьшите количество мест отдельно после этого немедленного изменения плана.",
"workspace.billingPage.billing.change.memberLimitReached": "В этом рабочем пространстве сейчас {{count}} платных участников. Удалите участников или измените их роль на {{viewerRole}} перед дальнейшим уменьшением количества мест.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Текущим участникам требуется как минимум {{count}} дополнительных мест.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "В этом рабочем пространстве {{members}} оплачиваемых участников и {{pending}} ожидающих приглашений, используется {{used}} мест — требуется как минимум {{count}} дополнительных мест. Отзовите ожидающее приглашение, чтобы уменьшить количество.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "Оставшаяся стоимость вашего текущего плана превышает цену нового плана, поэтому обновление пока невозможно.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Разовые обновления требуют более высокого уровня или более длительного срока.",
"workspace.billingPage.billing.change.preview": "{{seats}} мест · предварительный расчет {{interval}}",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Уменьшить количество мест",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Увеличить количество мест",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "В этом рабочем пространстве {{members}} платных участников. Требуется как минимум {{count}} дополнительных мест.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "В этом рабочем пространстве {{members}} оплачиваемых участников и {{pending}} ожидающих приглашений, используется {{used}} мест. Требуется как минимум {{count}} дополнительных мест.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Сегодня без оплаты",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Вы будете перенаправлены на страницу оплаты, чтобы оплатить пропорциональную стоимость места за оставшийся период.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Текущий способ оплаты",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Роль",
"workspace.members.invite.seatInsufficient": "Осталось только {{remaining}} место(а). Купите больше мест, чтобы пригласить {{required}} нового(ых) участника(ов).",
"workspace.members.invite.seatInsufficientNoBuy": "Осталось только {{remaining}} место(а). Попросите владельца рабочего пространства приобрести больше мест.",
+ "workspace.members.invite.seatLimitReached": "Все места заняты. Купите больше мест, чтобы продолжить приглашать, или приглашайте зрителей (они не занимают место).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Все места в вашем бесплатном рабочем пространстве заняты. Обновитесь до Pro для получения дополнительных мест или приглашайте зрителей (они не занимают место).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Все места заняты. Попросите владельца рабочего пространства купить больше мест или приглашайте зрителей (они не занимают место).",
"workspace.members.invite.submit": "Пригласить",
"workspace.members.invite.success": "Участники команды успешно приглашены.",
"workspace.members.invite.title": "Пригласить участников",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "Ссылка на приглашение больше не будет действительна.",
"workspace.members.pending.revokeConfirm.title": "Отозвать это приглашение?",
"workspace.members.pending.revokeFailed": "Не удалось отозвать приглашение",
+ "workspace.members.seatBreakdown": "{{members}} оплачиваемых участников + {{pending}} ожидающих приглашений = {{used}} из {{capacity}} мест занято. Зрители не занимают место.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} оплачиваемых участников занимают {{used}} из {{capacity}} мест. Зрители не занимают место.",
"workspace.members.seatChange.memberJoinBlocked": "Текущие участники достигли запланированного лимита мест, поэтому новые платные участники могут не иметь возможности присоединиться к этому рабочему пространству",
+ "workspace.members.seatPending_one": "{{count}} ожидающее приглашение",
+ "workspace.members.seatPending_other": "{{count}} ожидающих приглашений",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} место",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} мест",
"workspace.members.subtitle": "Управление участниками рабочей области и приглашениями",
diff --git a/locales/tr-TR/common.json b/locales/tr-TR/common.json
index ba4add7a72c..a5c7da3b91d 100644
--- a/locales/tr-TR/common.json
+++ b/locales/tr-TR/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Yürütme ayrıntılarını görüntüle",
"visibilityConfirm.irreversible": " (geri alınamaz)",
"visibilityConfirm.makePrivate.itemAccess": "Diğer çalışma alanı üyeleri erişimi hemen kaybeder",
+ "visibilityConfirm.makePrivate.itemLibrary": "Dosyaladığınız kütüphanede kalır — diğer üyeler sadece orada görmeyi bırakır",
"visibilityConfirm.makePrivate.itemLoaded": "Diğerlerinin zaten yüklediği içerik geri alınamaz",
"visibilityConfirm.makePrivate.itemReferences": "Mevcut mesaj ekleri ve referanslar kullanılamaz olarak görünecek",
"visibilityConfirm.publish.itemLoaded": "Geri döndüğünüzde, diğerlerinin zaten yüklediği içerik geri alınamaz",
diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.json
index 6cfaa9f200d..ec6b28a87d5 100644
--- a/locales/tr-TR/setting.json
+++ b/locales/tr-TR/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Bu anlık plan değişikliğinden sonra koltukları ayrı olarak azaltın.",
"workspace.billingPage.billing.change.memberLimitReached": "Bu çalışma alanında şu anda {{count}} faturalandırılabilir üye var. Daha fazla koltuk azaltmadan önce üyeleri kaldırın veya onları {{viewerRole}} olarak değiştirin.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Mevcut üyeler için en az {{count}} ek koltuk gereklidir.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "Bu çalışma alanında {{members}} faturalandırılabilir üye ve {{pending}} bekleyen davet var, {{used}} koltuk kullanılıyor — en az {{count}} ek koltuk gerekiyor. Daha düşük bir seviyeye inmek için bekleyen bir daveti iptal edin.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "Mevcut planınızın kalan değeri yeni planın fiyatını aşıyor, bu nedenle henüz yükseltilemez.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Tek seferlik yükseltmeler daha yüksek bir seviye veya daha uzun bir süre gerektirir.",
"workspace.billingPage.billing.change.preview": "{{seats}} koltuk · {{interval}} faturalama önizlemesi",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Koltuk sayısını azalt",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Koltuk sayısını artır",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Bu çalışma alanında {{members}} faturalandırılabilir üye var. En az {{count}} ek koltuk gereklidir.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "Bu çalışma alanında {{members}} faturalandırılabilir üye ve {{pending}} bekleyen davet var, {{used}} koltuk kullanılıyor. En az {{count}} ek koltuk gerekiyor.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Bugün ücret alınmayacak",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Kalan süre için orantılı koltuk ücretini ödemek üzere ödeme sayfasına yönlendirileceksiniz.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Mevcut ödeme yöntemi",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Rol",
"workspace.members.invite.seatInsufficient": "Sadece {{remaining}} koltuk kaldı. {{required}} yeni üyeyi davet etmek için daha fazla koltuk satın alın.",
"workspace.members.invite.seatInsufficientNoBuy": "Sadece {{remaining}} koltuk kaldı. Çalışma alanı sahibinden daha fazla koltuk satın almasını isteyin.",
+ "workspace.members.invite.seatLimitReached": "Tüm koltuklar dolu. Daha fazla koltuk satın alarak davet etmeye devam edin veya bunun yerine izleyicileri davet edin (onlar koltuk kaplamaz).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Ücretsiz çalışma alanınızdaki tüm koltuklar dolu. Daha fazla koltuk için Pro'ya yükseltin veya bunun yerine izleyicileri davet edin (onlar koltuk kaplamaz).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Tüm koltuklar dolu. Çalışma alanı sahibinden daha fazla koltuk satın almasını isteyin veya bunun yerine izleyicileri davet edin (onlar koltuk kaplamaz).",
"workspace.members.invite.submit": "Davet et",
"workspace.members.invite.success": "Ekip üyeleri başarıyla davet edildi.",
"workspace.members.invite.title": "Üyeleri Davet Et",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "Davet bağlantısı artık geçerli olmayacak.",
"workspace.members.pending.revokeConfirm.title": "Bu daveti iptal etmek istiyor musunuz?",
"workspace.members.pending.revokeFailed": "Davet iptal edilemedi",
+ "workspace.members.seatBreakdown": "{{members}} faturalandırılabilir üye + {{pending}} bekleyen davet = {{capacity}} koltuktan {{used}} kullanılıyor. İzleyiciler koltuk kaplamaz.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} faturalandırılabilir üye, {{capacity}} koltuktan {{used}} kullanıyor. İzleyiciler koltuk kaplamaz.",
"workspace.members.seatChange.memberJoinBlocked": "Mevcut üyeler planlanan koltuk sınırına ulaştı, bu nedenle yeni ücretli üyeler bu çalışma alanına katılamayabilir",
+ "workspace.members.seatPending_one": "{{count}} bekleyen davet",
+ "workspace.members.seatPending_other": "{{count}} bekleyen davet",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} koltuk",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} koltuklar",
"workspace.members.subtitle": "Çalışma alanı üyelerini ve davetlerini yönetin",
diff --git a/locales/vi-VN/common.json b/locales/vi-VN/common.json
index e65c2e2065d..5dd241ad3b0 100644
--- a/locales/vi-VN/common.json
+++ b/locales/vi-VN/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "Xem chi tiết thực thi",
"visibilityConfirm.irreversible": " (không thể đảo ngược)",
"visibilityConfirm.makePrivate.itemAccess": "Các thành viên khác trong không gian làm việc sẽ mất quyền truy cập ngay lập tức",
+ "visibilityConfirm.makePrivate.itemLibrary": "Nó vẫn ở trong thư viện mà bạn đã lưu trữ — các thành viên khác chỉ không còn nhìn thấy nó ở đó",
"visibilityConfirm.makePrivate.itemLoaded": "Nội dung mà người khác đã tải xuống không thể thu hồi lại",
"visibilityConfirm.makePrivate.itemReferences": "Các tệp đính kèm và tham chiếu trong tin nhắn hiện có sẽ hiển thị là không khả dụng",
"visibilityConfirm.publish.itemLoaded": "Sau khi chuyển đổi lại, nội dung mà người khác đã tải xuống không thể thu hồi lại",
diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.json
index e74b63d57ef..dbd2ceb0772 100644
--- a/locales/vi-VN/setting.json
+++ b/locales/vi-VN/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "Giảm số lượng chỗ ngồi riêng biệt sau khi thay đổi gói ngay lập tức.",
"workspace.billingPage.billing.change.memberLimitReached": "Không gian làm việc này hiện có {{count}} thành viên tính phí. Hãy xóa thành viên hoặc chuyển họ sang {{viewerRole}} trước khi giảm số ghế.",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "Các thành viên hiện tại yêu cầu ít nhất {{count}} chỗ ngồi bổ sung.",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "Không gian làm việc này có {{members}} thành viên tính phí và {{pending}} lời mời đang chờ, sử dụng {{used}} chỗ ngồi — cần ít nhất {{count}} chỗ ngồi thêm. Thu hồi một lời mời đang chờ để giảm số lượng.",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "Giá trị còn lại của gói hiện tại của bạn vượt quá giá của gói mới, vì vậy hiện tại không thể nâng cấp.",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "Nâng cấp một lần yêu cầu cấp cao hơn hoặc thời gian dài hơn.",
"workspace.billingPage.billing.change.preview": "{{seats}} chỗ ngồi · Xem trước thanh toán {{interval}}",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "Giảm chỗ ngồi",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "Tăng chỗ ngồi",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "Không gian làm việc này có {{members}} thành viên tính phí. Cần ít nhất {{count}} ghế bổ sung.",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "Không gian làm việc này có {{members}} thành viên tính phí và {{pending}} lời mời đang chờ, sử dụng {{used}} chỗ ngồi. Cần ít nhất {{count}} chỗ ngồi thêm.",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "Không tính phí hôm nay",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "Bạn sẽ được chuyển hướng đến trang thanh toán để trả phí chỗ ngồi theo tỷ lệ cho thời gian còn lại.",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "Phương thức thanh toán hiện tại",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "Vai trò",
"workspace.members.invite.seatInsufficient": "Chỉ còn {{remaining}} ghế. Mua thêm ghế để mời {{required}} thành viên mới.",
"workspace.members.invite.seatInsufficientNoBuy": "Chỉ còn {{remaining}} ghế. Yêu cầu chủ sở hữu không gian làm việc mua thêm ghế.",
+ "workspace.members.invite.seatLimitReached": "Tất cả chỗ ngồi đã được sử dụng. Mua thêm chỗ ngồi để tiếp tục mời, hoặc mời người xem thay thế (họ không chiếm chỗ ngồi).",
+ "workspace.members.invite.seatLimitReachedFreePlan": "Tất cả chỗ ngồi trong không gian làm việc Miễn phí của bạn đã được sử dụng. Nâng cấp lên Pro để có thêm chỗ ngồi, hoặc mời người xem thay thế (họ không chiếm chỗ ngồi).",
+ "workspace.members.invite.seatLimitReachedNoBuy": "Tất cả chỗ ngồi đã được sử dụng. Yêu cầu chủ sở hữu không gian làm việc mua thêm chỗ ngồi, hoặc mời người xem thay thế (họ không chiếm chỗ ngồi).",
"workspace.members.invite.submit": "Mời",
"workspace.members.invite.success": "Đã mời thành viên đội ngũ thành công.",
"workspace.members.invite.title": "Mời thành viên",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "Liên kết lời mời sẽ không còn hiệu lực.",
"workspace.members.pending.revokeConfirm.title": "Thu hồi lời mời này?",
"workspace.members.pending.revokeFailed": "Không thể hủy lời mời",
+ "workspace.members.seatBreakdown": "{{members}} thành viên tính phí + {{pending}} lời mời đang chờ = {{used}} trong tổng số {{capacity}} chỗ ngồi đã sử dụng. Người xem không chiếm chỗ ngồi.",
+ "workspace.members.seatBreakdownNoPending": "{{members}} thành viên tính phí sử dụng {{used}} trong tổng số {{capacity}} chỗ ngồi. Người xem không chiếm chỗ ngồi.",
"workspace.members.seatChange.memberJoinBlocked": "Các thành viên hiện tại đã đạt giới hạn ghế đã lên lịch, vì vậy các thành viên trả phí mới có thể không tham gia được không gian làm việc này",
+ "workspace.members.seatPending_one": "{{count}} lời mời đang chờ",
+ "workspace.members.seatPending_other": "{{count}} lời mời đang chờ",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} chỗ ngồi",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} chỗ ngồi",
"workspace.members.subtitle": "Quản lý thành viên và lời mời trong không gian làm việc",
diff --git a/locales/zh-CN/common.json b/locales/zh-CN/common.json
index b1610cdec28..461d0726198 100644
--- a/locales/zh-CN/common.json
+++ b/locales/zh-CN/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "查看执行详情",
"visibilityConfirm.irreversible": "(不可逆)",
"visibilityConfirm.makePrivate.itemAccess": "工作区其他成员会立即失去访问权",
+ "visibilityConfirm.makePrivate.itemLibrary": "它仍会留在你放入的资料库中,只是其他成员不再看得到",
"visibilityConfirm.makePrivate.itemLoaded": "对方已加载过的内容无法收回",
"visibilityConfirm.makePrivate.itemReferences": "已存在的消息附件、引用位置会显示为「已失效」",
"visibilityConfirm.publish.itemLoaded": "改回私人后对方已加载的内容无法收回",
diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json
index cdfad8d8917..8cb5ea78cfb 100644
--- a/locales/zh-CN/setting.json
+++ b/locales/zh-CN/setting.json
@@ -2020,6 +2020,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "请在本次立即计划变更完成后,再单独减少席位。",
"workspace.billingPage.billing.change.memberLimitReached": "当前工作区有 {{count}} 名有效成员。请先移除成员,或将成员改为 {{viewerRole}},再继续减少席位。",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "当前工作区有 {{members}} 名有效成员,至少需要 {{count}} 个额外席位。",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "当前工作区有 {{members}} 名计费成员和 {{pending}} 位邀请中的成员,共占用 {{used}} 个席位,至少需要 {{count}} 个额外席位。如需继续减少,请先撤销邀请中的成员。",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "当前套餐剩余价值超过新套餐费用,暂无法升级。",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "一次性升级仅支持更高档位或更长时长的套餐。",
"workspace.billingPage.billing.change.preview": "{{seats}} 个席位 · {{interval}} 计费预览",
@@ -2122,6 +2123,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "减少席位",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "增加席位",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "当前工作区有 {{members}} 名有效成员,至少需要 {{count}} 个额外席位。",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "当前工作区有 {{members}} 名计费成员和 {{pending}} 位邀请中的成员,共占用 {{used}} 个席位,至少需要 {{count}} 个额外席位。",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "今日无需付款",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "确认后将跳转至收银台,支付剩余时长按比例计算的席位费用。",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "当前付款方式",
@@ -2679,6 +2681,9 @@
"workspace.members.invite.roleLabel": "角色",
"workspace.members.invite.seatInsufficient": "仅剩 {{remaining}} 个席位,不足以邀请 {{required}} 名新成员。请购买更多席位,或将部分角色改为查看者(不占席位)。",
"workspace.members.invite.seatInsufficientNoBuy": "仅剩 {{remaining}} 个席位,不足以邀请 {{required}} 名新成员。请联系工作区所有者购买更多席位,或将部分角色改为查看者(不占席位)。",
+ "workspace.members.invite.seatLimitReached": "当前席位已达上限,请前往增购席位。也可以改为邀请查看者(不占席位)。",
+ "workspace.members.invite.seatLimitReachedFreePlan": "当前席位已达上限,升级到 Pro 可获得更多席位。也可以改为邀请查看者(不占席位)。",
+ "workspace.members.invite.seatLimitReachedNoBuy": "当前席位已达上限,请联系工作区所有者增购席位。也可以改为邀请查看者(不占席位)。",
"workspace.members.invite.submit": "邀请",
"workspace.members.invite.success": "邀请已发送。邀请链接将在 1 周后过期。",
"workspace.members.invite.title": "邀请成员",
@@ -2694,7 +2699,11 @@
"workspace.members.pending.revokeConfirm.content": "邀请链接将不再有效。",
"workspace.members.pending.revokeConfirm.title": "撤销此邀请?",
"workspace.members.pending.revokeFailed": "撤销邀请失败",
+ "workspace.members.seatBreakdown": "{{members}} 位计费成员 + {{pending}} 位邀请中 = 已用 {{used}} / {{capacity}} 个席位。查看者不占席位。",
+ "workspace.members.seatBreakdownNoPending": "{{members}} 位计费成员占用 {{used}} / {{capacity}} 个席位。查看者不占席位。",
"workspace.members.seatChange.memberJoinBlocked": "当前成员数量已达到排期后的席位上限,新成员可能无法加入该工作区",
+ "workspace.members.seatPending_one": "{{count}} 位邀请中",
+ "workspace.members.seatPending_other": "{{count}} 位邀请中",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} 个席位",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} 个席位",
"workspace.members.subtitle": "管理工作区成员和邀请",
diff --git a/locales/zh-TW/common.json b/locales/zh-TW/common.json
index aee90f1468c..fdafe550afb 100644
--- a/locales/zh-TW/common.json
+++ b/locales/zh-TW/common.json
@@ -579,6 +579,7 @@
"viewExecutionDetails": "查看執行詳情",
"visibilityConfirm.irreversible": "(不可逆)",
"visibilityConfirm.makePrivate.itemAccess": "其他工作區成員將立即失去訪問權限",
+ "visibilityConfirm.makePrivate.itemLibrary": "它會保留在您歸檔的資料庫中——其他成員將無法再看到它",
"visibilityConfirm.makePrivate.itemLoaded": "其他人已載入的內容無法撤回",
"visibilityConfirm.makePrivate.itemReferences": "現有的訊息附件和引用將顯示為不可用",
"visibilityConfirm.publish.itemLoaded": "切換回來後,其他人已載入的內容無法撤回",
diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.json
index 99bb793cf6d..74c69676094 100644
--- a/locales/zh-TW/setting.json
+++ b/locales/zh-TW/setting.json
@@ -2018,6 +2018,7 @@
"workspace.billingPage.billing.change.immediateChangeSeatReductionHint": "在此立即方案更改後,請單獨減少座位數。",
"workspace.billingPage.billing.change.memberLimitReached": "此工作區目前有 {{count}} 位需付費的成員。在進一步減少席位前,請移除成員或將其更改為 {{viewerRole}}。",
"workspace.billingPage.billing.change.minPurchasedSeatsHint": "目前成員需要至少 {{count}} 個額外座位。",
+ "workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending": "此工作區有 {{members}} 位計費成員和 {{pending}} 個待處理邀請,使用了 {{used}} 個席位 — 至少需要額外 {{count}} 個席位。撤銷一個待處理邀請以降低需求。",
"workspace.billingPage.billing.change.payOnceRemainingExceeds": "您目前方案的剩餘價值超過新方案的價格,因此尚無法升級。",
"workspace.billingPage.billing.change.payOnceUpgradeInvalid": "一次性升級需要更高級別或更長的期限。",
"workspace.billingPage.billing.change.preview": "{{seats}} 個席位 · {{interval}} 計費預覽",
@@ -2120,6 +2121,7 @@
"workspace.billingPage.billing.upgradePlanModal.decreaseSeats": "減少席位",
"workspace.billingPage.billing.upgradePlanModal.increaseSeats": "增加席位",
"workspace.billingPage.billing.upgradePlanModal.memberSeatSummary": "此工作區有 {{members}} 位需付費的成員。至少需要額外購買 {{count}} 席位。",
+ "workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending": "此工作區有 {{members}} 位計費成員和 {{pending}} 個待處理邀請,使用了 {{used}} 個席位。至少需要額外 {{count}} 個席位。",
"workspace.billingPage.billing.upgradePlanModal.noChargeToday": "今天不收費",
"workspace.billingPage.billing.upgradePlanModal.payOnceSeatCheckout": "您將被重定向至結帳頁面,以支付剩餘期間的按比例座位費用。",
"workspace.billingPage.billing.upgradePlanModal.paymentMethodFallback": "當前付款方式",
@@ -2677,6 +2679,9 @@
"workspace.members.invite.roleLabel": "角色",
"workspace.members.invite.seatInsufficient": "僅剩 {{remaining}} 個席位。購買更多席位以邀請 {{required}} 位新成員。",
"workspace.members.invite.seatInsufficientNoBuy": "僅剩 {{remaining}} 個席位。請工作區擁有者購買更多席位。",
+ "workspace.members.invite.seatLimitReached": "所有席位已被使用。購買更多席位以繼續邀請,或者邀請觀察者(他們不佔用席位)。",
+ "workspace.members.invite.seatLimitReachedFreePlan": "您的免費工作區的所有席位已被使用。升級到專業版以獲得更多席位,或者邀請觀察者(他們不佔用席位)。",
+ "workspace.members.invite.seatLimitReachedNoBuy": "所有席位已被使用。請要求工作區擁有者購買更多席位,或者邀請觀察者(他們不佔用席位)。",
"workspace.members.invite.submit": "邀請",
"workspace.members.invite.success": "團隊成員已成功邀請。",
"workspace.members.invite.title": "邀請成員",
@@ -2692,7 +2697,11 @@
"workspace.members.pending.revokeConfirm.content": "邀請連結將不再有效。",
"workspace.members.pending.revokeConfirm.title": "撤銷此邀請?",
"workspace.members.pending.revokeFailed": "撤銷邀請失敗",
+ "workspace.members.seatBreakdown": "{{members}} 位計費成員 + {{pending}} 個待處理邀請 = 已使用 {{used}} / {{capacity}} 個席位。觀察者不佔用席位。",
+ "workspace.members.seatBreakdownNoPending": "{{members}} 位計費成員已使用 {{used}} / {{capacity}} 個席位。觀察者不佔用席位。",
"workspace.members.seatChange.memberJoinBlocked": "當前成員已達到排定的席位限制,因此新付費成員可能無法加入此工作區",
+ "workspace.members.seatPending_one": "{{count}} 個邀請待處理",
+ "workspace.members.seatPending_other": "{{count}} 個邀請待處理",
"workspace.members.seatUsage_one": "{{used}} / {{capacity}} 席位",
"workspace.members.seatUsage_other": "{{used}} / {{capacity}} 席位",
"workspace.members.subtitle": "管理工作區成員和邀請",
diff --git a/packages/database/src/models/__tests__/document.privateVisibility.workspace.test.ts b/packages/database/src/models/__tests__/document.privateVisibility.workspace.test.ts
index c5cb6794d99..5247b33f70d 100644
--- a/packages/database/src/models/__tests__/document.privateVisibility.workspace.test.ts
+++ b/packages/database/src/models/__tests__/document.privateVisibility.workspace.test.ts
@@ -1,8 +1,9 @@
// @vitest-environment node
+import { eq } from 'drizzle-orm';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { getTestDB } from '../../core/getTestDB';
-import { documents, users, workspaces } from '../../schemas';
+import { documents, files, users, workspaces } from '../../schemas';
import type { LobeChatDatabase } from '../../type';
import { DocumentModel } from '../document';
@@ -26,6 +27,7 @@ beforeEach(async () => {
afterEach(async () => {
await serverDB.delete(documents);
+ await serverDB.delete(files);
await serverDB.delete(workspaces);
await serverDB.delete(users);
});
@@ -541,3 +543,128 @@ describe('DocumentModel.update — independent parent visibility', () => {
expect(reread?.visibility).toBe('private');
});
});
+
+describe('DocumentModel.setVisibility — the library mirror file follows', () => {
+ /**
+ * A page filed into a library is two rows: the document and a paired `files`
+ * row stamped with the library's visibility at creation. The library lists
+ * through the file's column and opens through the document's, so the two
+ * have to move together.
+ */
+ const insertMirroredPage = async (visibility: 'private' | 'public') => {
+ const [file] = await serverDB
+ .insert(files)
+ .values({
+ fileType: 'text/markdown',
+ name: 'library-page.md',
+ size: 10,
+ url: 'internal://document/placeholder',
+ userId: userA,
+ visibility,
+ workspaceId,
+ })
+ .returning();
+
+ const [doc] = await serverDB
+ .insert(documents)
+ .values({
+ fileId: file.id,
+ fileType: 'text/markdown',
+ source: 'document',
+ sourceType: 'api',
+ title: 'library page',
+ totalCharCount: 0,
+ totalLineCount: 0,
+ userId: userA,
+ visibility,
+ workspaceId,
+ })
+ .returning();
+
+ return { docId: doc.id, fileId: file.id };
+ };
+
+ const readFileVisibility = async (fileId: string) =>
+ (await serverDB.query.files.findFirst({ where: eq(files.id, fileId) }))?.visibility;
+
+ it('takes the mirror file private with the page', async () => {
+ // Regression: only the document was flipped, so the library kept listing a
+ // private page's title to every member through the still-public file row.
+ const { docId, fileId } = await insertMirroredPage('public');
+ const callerA = new DocumentModel(serverDB, userA, workspaceId);
+
+ await callerA.setVisibility(docId, 'private');
+
+ expect(await readFileVisibility(fileId)).toBe('private');
+ });
+
+ it('takes the mirror file public when the page is published', async () => {
+ const { docId, fileId } = await insertMirroredPage('private');
+ const callerA = new DocumentModel(serverDB, userA, workspaceId);
+
+ await callerA.publishToWorkspace(docId);
+
+ expect(await readFileVisibility(fileId)).toBe('public');
+ });
+
+ it('leaves another user’s file alone when the write is rejected', async () => {
+ const { docId, fileId } = await insertMirroredPage('public');
+ const callerB = new DocumentModel(serverDB, userB, workspaceId);
+
+ await expect(callerB.setVisibility(docId, 'private')).rejects.toThrow(/not found/i);
+ expect(await readFileVisibility(fileId)).toBe('public');
+ });
+
+ it('leaves the uploader’s file alone when another member’s page points at it', async () => {
+ // Regression: `fileId` is a plain foreign key, so parsing another member's
+ // shared file yields a caller-owned document that keeps the original
+ // `fileId`. The workspace scope alone matched every member's file, so
+ // taking that derived page private hid the uploader's original from the
+ // whole workspace.
+ const [uploaderFile] = await serverDB
+ .insert(files)
+ .values({
+ fileType: 'text/markdown',
+ name: 'uploaded-by-a.md',
+ size: 10,
+ url: 'internal://document/placeholder',
+ userId: userA,
+ visibility: 'public',
+ workspaceId,
+ })
+ .returning();
+
+ const [derived] = await serverDB
+ .insert(documents)
+ .values({
+ fileId: uploaderFile.id,
+ fileType: 'text/markdown',
+ source: 'document',
+ sourceType: 'api',
+ title: 'parsed by b',
+ totalCharCount: 0,
+ totalLineCount: 0,
+ userId: userB,
+ visibility: 'public',
+ workspaceId,
+ })
+ .returning();
+
+ const callerB = new DocumentModel(serverDB, userB, workspaceId);
+
+ await expect(callerB.setVisibility(derived.id, 'private')).resolves.toMatchObject({
+ documentIds: [derived.id],
+ });
+
+ expect(await readFileVisibility(uploaderFile.id)).toBe('public');
+ });
+
+ it('is a no-op for a page with no mirror file', async () => {
+ await insertDocument({ id: 'no-mirror', userId: userA, visibility: 'private', workspaceId });
+ const callerA = new DocumentModel(serverDB, userA, workspaceId);
+
+ await expect(callerA.setVisibility('no-mirror', 'public')).resolves.toMatchObject({
+ documentIds: ['no-mirror'],
+ });
+ });
+});
diff --git a/packages/database/src/models/__tests__/recent.test.ts b/packages/database/src/models/__tests__/recent.test.ts
index 9b4e9171ced..50bca51a90c 100644
--- a/packages/database/src/models/__tests__/recent.test.ts
+++ b/packages/database/src/models/__tests__/recent.test.ts
@@ -723,6 +723,79 @@ describe('RecentModel', () => {
expect(result[0].userId).toBe(userId);
});
+ describe('sharedOnly (team tab)', () => {
+ // The parent lives in the SAME workspace — only its visibility marks it
+ // as a personal conversation. `buildWorkspaceWhere` keeps a member's own
+ // private rows visible, so the owner's own private agent is the one case
+ // the workspace predicate cannot catch on its own.
+ beforeEach(async () => {
+ await serverDB.insert(agents).values([
+ { id: 'agent-ws-private-mine', userId, visibility: 'private', workspaceId },
+ {
+ id: 'agent-ws-private-other',
+ userId: otherUserId,
+ visibility: 'private',
+ workspaceId,
+ },
+ ]);
+ await serverDB
+ .insert(chatGroups)
+ .values([{ id: 'group-ws-private-mine', userId, visibility: 'private', workspaceId }]);
+ await serverDB.insert(topics).values([
+ {
+ agentId: 'agent-ws-private-mine',
+ description: 'Private agent conversation summary',
+ id: 'topic-private-agent-mine',
+ title: 'Private agent conversation',
+ updatedAt: minutesAgo(3),
+ userId,
+ workspaceId,
+ },
+ {
+ agentId: 'agent-ws-private-other',
+ id: 'topic-private-agent-other',
+ title: 'Teammate private agent conversation',
+ updatedAt: minutesAgo(4),
+ userId: otherUserId,
+ workspaceId,
+ },
+ {
+ groupId: 'group-ws-private-mine',
+ id: 'topic-private-group-mine',
+ title: 'Private group conversation',
+ updatedAt: minutesAgo(5),
+ userId,
+ workspaceId,
+ },
+ ]);
+ });
+
+ it('keeps the viewer own private-agent topics without sharedOnly', async () => {
+ const result = await workspaceModel.queryRecent(10, ['topic']);
+
+ expect(result.map((r) => r.id)).toContain('topic-private-agent-mine');
+ expect(result.map((r) => r.id)).toContain('topic-private-group-mine');
+ });
+
+ it('drops topics owned by a private agent or group, including the viewer own', async () => {
+ const result = await workspaceModel.queryRecent(10, ['topic'], true, false, true);
+
+ expect(result.map((r) => r.id)).toEqual(['topic-ws-mine', 'topic-ws-other']);
+ expect(result.map((r) => r.title)).not.toContain('Private agent conversation');
+ expect(result.map((r) => r.description)).not.toContain(
+ 'Private agent conversation summary',
+ );
+ });
+
+ it('never exposes a teammate private-agent topic in either mode', async () => {
+ const teamFeed = await workspaceModel.queryRecent(10, ['topic'], false, false, true);
+ const sidebarFeed = await workspaceModel.queryRecent(10, ['topic']);
+
+ expect(teamFeed.map((r) => r.id)).not.toContain('topic-private-agent-other');
+ expect(sidebarFeed.map((r) => r.id)).not.toContain('topic-private-agent-other');
+ });
+ });
+
it.each(['agent', 'group'] as const)(
'never exposes personal or foreign-workspace %s conversations in the team feed',
async (kind) => {
diff --git a/packages/database/src/models/__tests__/topic.test.ts b/packages/database/src/models/__tests__/topic.test.ts
index 8e58adc76b0..a3e8f7ba763 100644
--- a/packages/database/src/models/__tests__/topic.test.ts
+++ b/packages/database/src/models/__tests__/topic.test.ts
@@ -687,6 +687,106 @@ describe('TopicModel', () => {
expect(topic.runStartedAt).toBeNull();
});
+
+ // This feed is not scoped by agent, so in a workspace `ownership()` matches
+ // every member's rows. Without a parent check a teammate's PRIVATE agent
+ // conversation — title and last assistant reply included — lands in the
+ // home inbox of everyone in the workspace.
+ describe('workspace parent scope', () => {
+ const workspaceId = 'topic-model-test-workspace';
+ const workspaceModel = new TopicModel(serverDB, userId, workspaceId);
+
+ beforeEach(async () => {
+ await serverDB
+ .insert(workspaces)
+ .values({ id: workspaceId, name: 'ws', primaryOwnerId: userId, slug: workspaceId });
+ await serverDB.insert(agents).values([
+ { id: 'agent-shared', userId, visibility: 'public', workspaceId },
+ { id: 'agent-private-mine', userId, visibility: 'private', workspaceId },
+ { id: 'agent-private-other', userId: otherUserId, visibility: 'private', workspaceId },
+ { id: 'agent-personal-other', userId: otherUserId, workspaceId: null },
+ ]);
+ await serverDB.insert(topics).values([
+ {
+ agentId: 'agent-shared',
+ id: 'ws-shared',
+ status: 'unread',
+ title: 'shared',
+ userId: otherUserId,
+ workspaceId,
+ },
+ {
+ agentId: 'agent-private-mine',
+ id: 'ws-private-mine',
+ status: 'unread',
+ title: 'my private',
+ userId,
+ workspaceId,
+ },
+ {
+ agentId: 'agent-private-other',
+ id: 'ws-private-other',
+ status: 'unread',
+ title: 'teammate private',
+ userId: otherUserId,
+ workspaceId,
+ },
+ {
+ agentId: 'agent-personal-other',
+ id: 'ws-personal-parent',
+ status: 'unread',
+ title: 'personal parent',
+ userId: otherUserId,
+ workspaceId,
+ },
+ // Legacy row with no resolvable parent — nothing to check.
+ {
+ id: 'ws-parentless',
+ status: 'unread',
+ title: 'parentless',
+ userId,
+ workspaceId,
+ },
+ ]);
+ });
+
+ it('excludes topics whose owning agent is a teammate private or out-of-scope agent', async () => {
+ const result = await workspaceModel.queryTopics({ statuses: ['unread'] });
+
+ expect(result.map((t) => t.id).sort()).toEqual([
+ 'ws-parentless',
+ 'ws-private-mine',
+ 'ws-shared',
+ ]);
+ });
+
+ it('reports the parent visibility so a team view can drop private conversations', async () => {
+ const result = await workspaceModel.queryTopics({ statuses: ['unread'] });
+ const byId = new Map(result.map((t) => [t.id, t.parentVisibility]));
+
+ expect(byId.get('ws-shared')).toBe('public');
+ expect(byId.get('ws-private-mine')).toBe('private');
+ expect(byId.get('ws-parentless')).toBeNull();
+ });
+
+ it('keeps the preview of a teammate private conversation out of the feed', async () => {
+ await serverDB.insert(messages).values({
+ content: 'Confidential reply',
+ id: 'ws-private-other-msg',
+ role: 'assistant',
+ topicId: 'ws-private-other',
+ userId: otherUserId,
+ workspaceId,
+ });
+
+ const result = await workspaceModel.queryTopics({
+ statuses: ['unread'],
+ withLastMessage: true,
+ });
+
+ expect(result.map((t) => t.lastAssistantMessage)).not.toContain('Confidential reply');
+ });
+ });
});
describe('count', () => {
diff --git a/packages/database/src/models/document.ts b/packages/database/src/models/document.ts
index 4b78a7f4c75..7dd4aac7788 100644
--- a/packages/database/src/models/document.ts
+++ b/packages/database/src/models/document.ts
@@ -319,10 +319,43 @@ export class DocumentModel {
.update(documents)
.set({ updatedAt: new Date(), visibility })
.where(and(eq(documents.id, rootId), this.ownership(), eq(documents.userId, this.userId)))
- .returning({ id: documents.id });
+ .returning({ fileId: documents.fileId, id: documents.id });
if (result.length === 0) throw new Error('Document not found');
+ // A page filed into a library owns a paired `files` row, stamped with the
+ // library's visibility when the page was created. The library lists rows
+ // through THAT column while the page opens through the document's, so
+ // leaving it behind splits the two: the row keeps announcing a private
+ // page's title to every member, and the page behind it refuses to open.
+ // Same transaction, and scoped without `files.visibility` for the same
+ // reason as `works` below — a promotion has to reach rows that are still
+ // private.
+ //
+ // `files.userId` is required on top of the workspace scope: `fileId` is a
+ // plain foreign key, and a document can point at a file somebody else
+ // uploaded (parsing another member's shared file yields a caller-owned
+ // document that keeps the original `fileId`). Without the owner check the
+ // workspace scope alone matches every member's file, so taking such a
+ // derived page private would hide the uploader's original from everyone.
+ // The paired row this mirrors is always the caller's own.
+ const fileId = result[0].fileId;
+ if (fileId) {
+ await (trx as LobeChatDatabase)
+ .update(files)
+ .set({ visibility })
+ .where(
+ and(
+ eq(files.id, fileId),
+ eq(files.userId, this.userId),
+ buildWorkspaceWhere(
+ { userId: this.userId, workspaceId: this.workspaceId },
+ { userId: files.userId, workspaceId: files.workspaceId },
+ ),
+ ),
+ );
+ }
+
// Mirror visibility onto existing Work projections in the same
// transaction. Scope without works.visibility so a promotion can
// update rows that are currently private.
diff --git a/packages/database/src/models/recent.ts b/packages/database/src/models/recent.ts
index c597e976018..d8745676320 100644
--- a/packages/database/src/models/recent.ts
+++ b/packages/database/src/models/recent.ts
@@ -1,6 +1,6 @@
import type { ChatTopicStatus, TaskStatus } from '@lobechat/types';
import { and, desc, eq, inArray, isNotNull, isNull, ne, not, or, sql } from 'drizzle-orm';
-import { unionAll } from 'drizzle-orm/pg-core';
+import { type AnyPgColumn, unionAll } from 'drizzle-orm/pg-core';
import removeMarkdown from 'remove-markdown';
import {
@@ -45,6 +45,15 @@ const TASK_FINAL_STATUSES = ['completed', 'canceled'];
const TOPIC_INBOX_STATUSES: ChatTopicStatus[] = ['running', 'unread'];
const LAST_MESSAGE_PREVIEW_LENGTH = 2000;
+// A shared feed answers "what is the workspace working on", so a conversation
+// owned by a PRIVATE agent/group never belongs in it — not even the viewer's
+// own. `buildWorkspaceWhere` deliberately keeps a member's own private rows
+// visible (correct for the "mine" feed), which is exactly what let a private
+// agent's topic surface under the team tab. NULL counts as shared for rows
+// that pre-date the column, matching `buildWorkspaceWhere`.
+const sharedParentWhere = (visibility: AnyPgColumn) =>
+ or(isNull(visibility), eq(visibility, 'public'));
+
// Best-effort markdown → plain text; previews render in a plain-text row, so
// syntax noise (**, #, []() …) would show up literally.
const toPlainTextPreview = (markdown: string): string => {
@@ -71,6 +80,14 @@ export class RecentModel {
types?: RecentDbItem['type'][],
withTopicPreview?: boolean,
mineOnly?: boolean,
+ /**
+ * Restrict a workspace feed to conversations the whole team can see, i.e.
+ * drop topics whose owning agent/group is `visibility: 'private'`. Set by
+ * the home "team" tab; the sidebar feed and the "mine" tab leave it off so
+ * a member keeps their own private conversations. A no-op in personal mode,
+ * where every row is the owner's already.
+ */
+ sharedOnly?: boolean,
): Promise<RecentDbItem[]> => {
const scope = { userId: this.userId, workspaceId: this.workspaceId };
const requestedTypes = types ? new Set(types) : undefined;
@@ -119,10 +136,15 @@ export class RecentModel {
// point at a personal or foreign-workspace agent/group. Check
// the parent scope before returning titles or loading previews.
or(
- and(isNotNull(topics.groupId), buildWorkspaceWhere(scope, chatGroups)),
+ and(
+ isNotNull(topics.groupId),
+ buildWorkspaceWhere(scope, chatGroups),
+ sharedOnly ? sharedParentWhere(chatGroups.visibility) : undefined,
+ ),
and(
isNull(topics.groupId),
buildWorkspaceWhere(scope, agents),
+ sharedOnly ? sharedParentWhere(agents.visibility) : undefined,
or(eq(agents.slug, 'inbox'), ne(agents.virtual, true)),
),
),
diff --git a/packages/database/src/models/topic.ts b/packages/database/src/models/topic.ts
index cf274d9a0ca..034e7c54e74 100644
--- a/packages/database/src/models/topic.ts
+++ b/packages/database/src/models/topic.ts
@@ -41,6 +41,7 @@ import type { TopicItem } from '../schemas';
import {
agentOperations,
agents,
+ chatGroups,
messagePlugins,
messages,
threads,
@@ -103,6 +104,12 @@ const UNBOUNDED_OPERATION_STATUSES = new Set(['waiting_for_human', 'waiting_for_
export interface TopicListItem extends TopicItem {
/** The topic's last non-empty assistant reply, truncated with a trailing `…`. Only set when `queryTopics` is called with `withLastMessage`. */
lastAssistantMessage?: string | null;
+ /**
+ * Visibility of the agent/group this topic belongs to — `'private'` marks a
+ * conversation that must stay out of shared/team listings even though the
+ * viewer may own it. Null for legacy rows with no resolvable parent.
+ */
+ parentVisibility?: 'private' | 'public' | null;
/**
* When the topic's current run started (`agent_operations.startedAt` of its
* latest top-level running operation). Only computed for `running` topics;
@@ -906,14 +913,38 @@ export class TopicModel {
statuses?: string[];
withLastMessage?: boolean;
} = {}): Promise<TopicListItem[]> => {
+ const scope = { userId: this.userId, workspaceId: this.workspaceId };
+
+ // Unlike the per-agent topic list, this feed is not scoped by agent at all:
+ // in a workspace `ownership()` matches every member's rows, so a topic
+ // whose owning agent/group is someone else's PRIVATE conversation would
+ // surface here — title and last assistant reply included. Gate on the
+ // parent the same way the Recent feed does. Rows with no resolvable parent
+ // (legacy session-only topics) have nothing to check and keep the previous
+ // behaviour.
+ const visibleParentWhere = or(
+ and(isNull(topics.agentId), isNull(topics.groupId)),
+ and(isNotNull(topics.groupId), buildWorkspaceWhere(scope, chatGroups)),
+ and(isNull(topics.groupId), isNotNull(topics.agentId), buildWorkspaceWhere(scope, agents)),
+ );
+
const where = and(
this.ownership(),
this.notShareVisitor(),
+ visibleParentWhere,
statuses && statuses.length > 0
? inArray(topics.status, statuses as ChatTopicStatus[])
: undefined,
);
+ // `buildWorkspaceWhere` keeps a member's OWN private rows visible, which is
+ // right for a "mine" list and wrong for a shared one. Ship the parent's
+ // visibility so the caller's team view can drop private conversations
+ // without a second round trip.
+ const parentVisibilityColumn = sql<
+ 'private' | 'public' | null
+ >`COALESCE(${chatGroups.visibility}, ${agents.visibility})`.as('parent_visibility');
+
// When the topic's current run started, so a list can show live elapsed
// time instead of `updatedAt` (which moves on every message write). The
// latest *top-level* running operation is the current run: sub-operations
@@ -946,9 +977,12 @@ export class TopicModel {
return this.db
.select({
...getTableColumns(topics),
+ parentVisibility: parentVisibilityColumn,
runStartedAt: runStartedAtColumn,
})
.from(topics)
+ .leftJoin(agents, eq(topics.agentId, agents.id))
+ .leftJoin(chatGroups, eq(topics.groupId, chatGroups.id))
.where(where)
.orderBy(desc(topics.updatedAt))
.limit(pageSize);
@@ -984,9 +1018,12 @@ export class TopicModel {
lastAssistantMessage: sql<string | null>`(${lastAssistantMessageSubquery})`.as(
'last_assistant_message',
),
+ parentVisibility: parentVisibilityColumn,
runStartedAt: runStartedAtColumn,
})
.from(topics)
+ .leftJoin(agents, eq(topics.agentId, agents.id))
+ .leftJoin(chatGroups, eq(topics.groupId, chatGroups.id))
.where(where)
.orderBy(desc(topics.updatedAt))
.limit(pageSize);
diff --git a/packages/database/src/repositories/knowledge/__tests__/index.test.ts b/packages/database/src/repositories/knowledge/__tests__/index.test.ts
index ce6fd0394fd..55536575180 100644
--- a/packages/database/src/repositories/knowledge/__tests__/index.test.ts
+++ b/packages/database/src/repositories/knowledge/__tests__/index.test.ts
@@ -1520,5 +1520,90 @@ describe('KnowledgeRepo', () => {
// an unexpected error caused by hidden clauses.
await expect(knowledgeRepo.query({ visibility: 'private' })).resolves.toBeDefined();
});
+
+ it('should not hand out a page id another member cannot open', async () => {
+ // A workspace-public file whose derived document stayed creator-private:
+ // the file legitimately lists for every member, but the page behind it is
+ // only readable by its creator. Surfacing that page id makes the library
+ // show an entry that 404s on click.
+ await serverDB.insert(knowledgeBases).values({ id: 'kb-vis', userId, name: 'Vis KB' });
+ await serverDB.insert(files).values({
+ id: 'vis-file-shared',
+ userId: otherUserId,
+ workspaceId,
+ visibility: 'public',
+ name: 'shared.md',
+ fileType: 'text/markdown',
+ size: 10,
+ url: 'https://example.com/shared.md',
+ });
+ await serverDB.insert(documents).values({
+ id: 'vis-doc-hidden',
+ userId: otherUserId,
+ workspaceId,
+ visibility: 'private',
+ fileId: 'vis-file-shared',
+ title: 'Hidden Page',
+ fileType: CUSTOM_DOCUMENT_FILE_TYPE,
+ sourceType: 'file',
+ source: 'https://example.com/shared.md',
+ totalCharCount: 5,
+ totalLineCount: 1,
+ });
+ await serverDB.insert(knowledgeBaseFiles).values({
+ knowledgeBaseId: 'kb-vis',
+ fileId: 'vis-file-shared',
+ userId: otherUserId,
+ workspaceId,
+ });
+
+ const result = await wsRepo.query({ knowledgeBaseId: 'kb-vis' });
+
+ const row = result.find((item) => item.fileId === 'vis-file-shared');
+ expect(row).toBeDefined();
+ expect(row?.documentId).toBeFalsy();
+ // The row now addresses the file it really is, so opening it lands on the
+ // file preview instead of a page the caller is not allowed to read.
+ expect(row?.id).toBe('vis-file-shared');
+ });
+
+ it('should still carry the page id when the caller can open it', async () => {
+ await serverDB.insert(knowledgeBases).values({ id: 'kb-vis-ok', userId, name: 'Vis KB OK' });
+ await serverDB.insert(files).values({
+ id: 'vis-file-open',
+ userId: otherUserId,
+ workspaceId,
+ visibility: 'public',
+ name: 'open.md',
+ fileType: 'text/markdown',
+ size: 10,
+ url: 'https://example.com/open.md',
+ });
+ await serverDB.insert(documents).values({
+ id: 'vis-doc-open',
+ userId: otherUserId,
+ workspaceId,
+ visibility: 'public',
+ fileId: 'vis-file-open',
+ title: 'Open Page',
+ fileType: CUSTOM_DOCUMENT_FILE_TYPE,
+ sourceType: 'file',
+ source: 'https://example.com/open.md',
+ totalCharCount: 5,
+ totalLineCount: 1,
+ });
+ await serverDB.insert(knowledgeBaseFiles).values({
+ knowledgeBaseId: 'kb-vis-ok',
+ fileId: 'vis-file-open',
+ userId: otherUserId,
+ workspaceId,
+ });
+
+ const result = await wsRepo.query({ knowledgeBaseId: 'kb-vis-ok' });
+
+ const row = result.find((item) => item.fileId === 'vis-file-open');
+ expect(row?.documentId).toBe('vis-doc-open');
+ expect(row?.id).toBe('vis-doc-open');
+ });
});
});
diff --git a/packages/database/src/repositories/knowledge/index.ts b/packages/database/src/repositories/knowledge/index.ts
index 6f335779ff0..57fff9340f7 100644
--- a/packages/database/src/repositories/knowledge/index.ts
+++ b/packages/database/src/repositories/knowledge/index.ts
@@ -399,10 +399,18 @@ export class KnowledgeRepo {
);
}
- return query
- .leftJoin(d, eq(d.fileId, f.id))
- .leftJoin(users, eq(users.id, f.userId))
- .where(and(this.fileScope(sourceFilter), ...where));
+ return (
+ query
+ // Scope the joined document exactly as a direct read would. The file row
+ // itself is legitimately listed under `fileScope`, but its derived page
+ // can be scoped tighter (a creator-private document behind a
+ // workspace-public file); handing out that page's id makes the library
+ // list an entry that 404s the moment a member clicks it. Left join, so
+ // the file keeps its row and simply carries no page to open.
+ .leftJoin(d, and(eq(d.fileId, f.id), this.documentScope()))
+ .leftJoin(users, eq(users.id, f.userId))
+ .where(and(this.fileScope(sourceFilter), ...where))
+ );
};
/**
diff --git a/packages/locales/src/default/common.ts b/packages/locales/src/default/common.ts
index 0ce9f8ed20c..93111bb5806 100644
--- a/packages/locales/src/default/common.ts
+++ b/packages/locales/src/default/common.ts
@@ -539,6 +539,8 @@ export default {
'visibilityConfirm.makePrivate.itemAccess': 'Other workspace members lose access immediately',
'visibilityConfirm.makePrivate.itemReferences':
'Existing message attachments and references will show as unavailable',
+ 'visibilityConfirm.makePrivate.itemLibrary':
+ 'It stays in the library you filed it in — other members just stop seeing it there',
'visibilityConfirm.makePrivate.itemLoaded':
'Content others have already loaded can’t be pulled back',
'visibilityConfirm.publish.itemVisible': 'All workspace members will see this immediately',
diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.ts
index b6dbaf88e71..73df8e3e1fb 100644
--- a/packages/locales/src/default/setting.ts
+++ b/packages/locales/src/default/setting.ts
@@ -1883,6 +1883,8 @@ When I am ___, I need ___
'workspace.billingPage.billing.change.currentPlanWithInterval': 'Current plan',
'workspace.billingPage.billing.change.immediateChangeSeatReductionHint':
'Reduce seats separately after this immediate plan change.',
+ 'workspace.billingPage.billing.change.minPurchasedSeatsHintWithPending':
+ 'This workspace has {{members}} billable members and {{pending}} pending invites, using {{used}} seats — at least {{count}} extra seats are required. Revoke a pending invite to go lower.',
'workspace.billingPage.billing.change.minPurchasedSeatsHint':
'This workspace currently has {{members}} billable members and requires at least {{count}} extra seats.',
'workspace.billingPage.billing.change.preview': '{{seats}} seats · {{interval}} billing preview',
@@ -1914,6 +1916,8 @@ When I am ___, I need ___
'workspace.billingPage.billing.upgradePlanModal.increaseSeats': 'Increase seats',
'workspace.billingPage.billing.upgradePlanModal.purchasedSeatFloorSummary':
'You already have {{count}} purchased extra seats — this change cannot go below that.',
+ 'workspace.billingPage.billing.upgradePlanModal.memberSeatSummaryWithPending':
+ 'This workspace has {{members}} billable members and {{pending}} pending invites, using {{used}} seats. At least {{count}} extra seats are required.',
'workspace.billingPage.billing.upgradePlanModal.memberSeatSummary':
'This workspace has {{members}} billable members. At least {{count}} extra seats are required.',
'workspace.billingPage.billing.upgradePlanModal.noChargeToday': 'No charge today',
@@ -2976,6 +2980,12 @@ When I am ___, I need ___
'workspace.members.invite.freePlanAskOwnerToUpgrade':
'This Free workspace can’t invite more members. Ask the workspace owner to upgrade to Pro, or invite viewers instead (they don’t take a seat).',
'workspace.members.invite.upgradePlanCta': 'Upgrade plan',
+ 'workspace.members.invite.seatLimitReached':
+ 'All seats are in use. Buy more seats to keep inviting, or invite viewers instead (they don’t take a seat).',
+ 'workspace.members.invite.seatLimitReachedFreePlan':
+ 'All seats on your Free workspace are in use. Upgrade to Pro for more seats, or invite viewers instead (they don’t take a seat).',
+ 'workspace.members.invite.seatLimitReachedNoBuy':
+ 'All seats are in use. Ask the workspace owner to buy more seats, or invite viewers instead (they don’t take a seat).',
'workspace.members.invite.roleLabel': 'Role',
'workspace.members.invite.submit': 'Invite',
'workspace.members.invite.addAnother': 'Add another',
@@ -3006,6 +3016,12 @@ When I am ___, I need ___
'workspace.members.pending.revokeFailed': 'Failed to revoke invitation',
'workspace.members.seatChange.memberJoinBlocked':
'Current members have reached the scheduled seat limit, so new paid members may not be able to join this workspace',
+ 'workspace.members.seatBreakdown':
+ '{{members}} billable members + {{pending}} pending invites = {{used}} of {{capacity}} seats used. Viewers don’t take a seat.',
+ 'workspace.members.seatBreakdownNoPending':
+ '{{members}} billable members use {{used}} of {{capacity}} seats. Viewers don’t take a seat.',
+ 'workspace.members.seatPending_one': '{{count}} invite pending',
+ 'workspace.members.seatPending_other': '{{count}} invites pending',
'workspace.members.seatUsage_one': '{{used}} / {{capacity}} seat',
'workspace.members.seatUsage_other': '{{used}} / {{capacity}} seats',
'workspace.members.subtitle': 'Manage workspace members and invitations',
diff --git a/packages/utils/src/taskSlug.test.ts b/packages/utils/src/taskSlug.test.ts
new file mode 100644
index 00000000000..5914a9dee22
--- /dev/null
+++ b/packages/utils/src/taskSlug.test.ts
@@ -0,0 +1,48 @@
+import { describe, expect, it } from 'vitest';
+
+import { TASK_SLUG_MAX_LENGTH, taskTitleSlug } from './taskSlug';
+
+describe('taskTitleSlug', () => {
+ it('lowercases and joins words with a single dash', () => {
+ expect(taskTitleSlug('Ship the Thing')).toBe('ship-the-thing');
+ });
+
+ it('keeps CJK characters instead of transliterating them', () => {
+ expect(taskTitleSlug('飞书适配器支持 POST 图文消息')).toBe('飞书适配器支持-post-图文消息');
+ });
+
+ it('collapses punctuation, symbols and repeated separators into one dash', () => {
+ expect(taskTitleSlug('fix: the bug!! (again)')).toBe('fix-the-bug-again');
+ expect(taskTitleSlug('a___b')).toBe('a-b');
+ expect(taskTitleSlug('ship 🚀 it')).toBe('ship-it');
+ });
+
+ it('trims leading and trailing separators', () => {
+ expect(taskTitleSlug(' --hello-- ')).toBe('hello');
+ });
+
+ it('returns an empty slug for absent or symbol-only titles', () => {
+ expect(taskTitleSlug()).toBe('');
+ expect(taskTitleSlug(null)).toBe('');
+ expect(taskTitleSlug(' ')).toBe('');
+ expect(taskTitleSlug('!!! ???')).toBe('');
+ });
+
+ it('truncates long titles without leaving a dangling separator', () => {
+ const slug = taskTitleSlug(`${'a'.repeat(TASK_SLUG_MAX_LENGTH)} tail`);
+
+ expect(slug).toBe('a'.repeat(TASK_SLUG_MAX_LENGTH));
+ expect(slug.endsWith('-')).toBe(false);
+ });
+
+ it('truncates by code point so an astral character is never split', () => {
+ const slug = taskTitleSlug('𝒜'.repeat(TASK_SLUG_MAX_LENGTH + 10));
+
+ expect([...slug]).toHaveLength(TASK_SLUG_MAX_LENGTH);
+ expect(slug.includes('�')).toBe(false);
+ });
+
+ it('emits only characters that are legal in a path segment', () => {
+ expect(taskTitleSlug('a/b?c#d e%f')).toBe('a-b-c-d-e-f');
+ });
+});
diff --git a/packages/utils/src/taskSlug.ts b/packages/utils/src/taskSlug.ts
new file mode 100644
index 00000000000..c4a10797b33
--- /dev/null
+++ b/packages/utils/src/taskSlug.ts
@@ -0,0 +1,42 @@
+/**
+ * Human-readable tail of a task detail URL, e.g. `/task/T-501/飞书适配器支持-post-图文消息`.
+ *
+ * The slug is cosmetic: `taskId` stays the only resolution key, so a stale or
+ * hand-edited slug never breaks a link (see `useCanonicalTaskSlug`).
+ */
+
+/** Long enough to read the task at a glance, short enough to stay pasteable. */
+export const TASK_SLUG_MAX_LENGTH = 60;
+
+const SEPARATOR_RUN = /^-+|-+$/g;
+
+/** Everything that isn't a Unicode letter or digit collapses into one `-`. */
+const NON_SLUG_RUN = /[^\p{L}\p{N}]+/gu;
+
+const trimSeparators = (value: string) => value.replaceAll(SEPARATOR_RUN, '');
+
+/**
+ * Build the slug segment for a task title.
+ *
+ * The output is restricted to Unicode letters, digits and `-`, which are all
+ * legal in a path segment — so the link needs no percent-encoding and a copied
+ * URL stays readable. CJK titles keep their own characters rather than being
+ * transliterated: losing them would defeat the point of the slug.
+ *
+ * Returns `''` for an empty or punctuation-only title, which keeps the URL at
+ * its bare `/task/:taskId` form instead of appending a dangling segment.
+ */
+export const taskTitleSlug = (title?: string | null): string => {
+ if (!title) return '';
+
+ const normalized = trimSeparators(
+ title.normalize('NFKC').toLowerCase().replaceAll(NON_SLUG_RUN, '-'),
+ );
+
+ // Slice by code point, not UTF-16 unit, so a truncation can't cut a surrogate
+ // pair in half and leave a lone half-character in the URL.
+ const codePoints = [...normalized];
+ if (codePoints.length <= TASK_SLUG_MAX_LENGTH) return normalized;
+
+ return trimSeparators(codePoints.slice(0, TASK_SLUG_MAX_LENGTH).join(''));
+};
diff --git a/src/features/AgentSidebar/Task/TaskItem.test.tsx b/src/features/AgentSidebar/Task/TaskItem.test.tsx
index a2e576888cf..e724cdcd791 100644
--- a/src/features/AgentSidebar/Task/TaskItem.test.tsx
+++ b/src/features/AgentSidebar/Task/TaskItem.test.tsx
@@ -59,7 +59,7 @@ describe('Task sidebar item', () => {
fireEvent.click(screen.getByRole('button', { name: 'T-22 Hourly trend update' }));
- expect(mocks.navigate).toHaveBeenCalledWith('/agent/agt_current/task/T-22');
+ expect(mocks.navigate).toHaveBeenCalledWith('/agent/agt_current/task/T-22/hourly-trend-update');
});
it('falls back to the global task detail route outside agent context', () => {
@@ -67,6 +67,6 @@ describe('Task sidebar item', () => {
fireEvent.click(screen.getByRole('button', { name: 'T-22 Hourly trend update' }));
- expect(mocks.navigate).toHaveBeenCalledWith('/task/T-22');
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-22/hourly-trend-update');
});
});
diff --git a/src/features/AgentSidebar/Task/TaskItem.tsx b/src/features/AgentSidebar/Task/TaskItem.tsx
index 6fa0a30b752..966ae30b49f 100644
--- a/src/features/AgentSidebar/Task/TaskItem.tsx
+++ b/src/features/AgentSidebar/Task/TaskItem.tsx
@@ -19,8 +19,8 @@ const TaskItem = memo<TaskItemProps>(({ task, active }) => {
const navigateToTaskDetail = useNavigateToTaskDetail();
const handleClick = useCallback(() => {
- navigateToTaskDetail(task.identifier);
- }, [navigateToTaskDetail, task.identifier]);
+ navigateToTaskDetail(task.identifier, undefined, task.name);
+ }, [navigateToTaskDetail, task.identifier, task.name]);
const hasName = Boolean(task.name?.trim());
const displayTitle = hasName ? task.name : task.identifier;
diff --git a/src/features/AgentTaskManager/TaskAgentProvider.tsx b/src/features/AgentTaskManager/TaskAgentProvider.tsx
index 4ac131d3b8a..a069c3036da 100644
--- a/src/features/AgentTaskManager/TaskAgentProvider.tsx
+++ b/src/features/AgentTaskManager/TaskAgentProvider.tsx
@@ -49,7 +49,9 @@ export const TaskAgentProvider = memo<TaskAgentProviderProps>((props) => {
scopeAgentId: preferredAgentId,
}));
- const detailMatch = useMatch('/task/:taskId');
+ // `:slug?` is the readable title tail the detail route appends; it never
+ // participates in resolution, so the match must tolerate it being absent.
+ const detailMatch = useMatch('/task/:taskId/:slug?');
const resolvedViewedTaskId = viewedTaskId || detailMatch?.params.taskId;
const scopedSelectedAgentId =
diff --git a/src/features/AgentTasks/AgentTaskDetail/AgentScopedTaskDetailPage.tsx b/src/features/AgentTasks/AgentTaskDetail/AgentScopedTaskDetailPage.tsx
index 49f2e8fdf9d..187818003b1 100644
--- a/src/features/AgentTasks/AgentTaskDetail/AgentScopedTaskDetailPage.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/AgentScopedTaskDetailPage.tsx
@@ -7,6 +7,7 @@ import AgentTaskManager from '@/features/AgentTaskManager';
import MobilePortal from '@/features/Portal/Mobile';
import { useIsMobile } from '@/hooks/useIsMobile';
+import { useCanonicalTaskSlug } from '../shared/useCanonicalTaskSlug';
import TaskDetailPage from './TaskDetailPage';
interface AgentScopedTaskDetailPageProps {
@@ -17,6 +18,10 @@ interface AgentScopedTaskDetailPageProps {
const AgentScopedTaskDetailPage = memo<AgentScopedTaskDetailPageProps>(({ agentId, taskId }) => {
const isMobile = useIsMobile();
+ // This component is a route entry, so it owns the address bar and keeps the
+ // readable slug tail in step with the title.
+ useCanonicalTaskSlug(taskId);
+
return (
<Flexbox horizontal flex={1} height={'100%'} style={{ minHeight: 0 }} width={'100%'}>
<Flexbox flex={1} style={{ minWidth: 0 }}>
diff --git a/src/features/AgentTasks/AgentTaskDetail/RoutedTaskDetailPage.tsx b/src/features/AgentTasks/AgentTaskDetail/RoutedTaskDetailPage.tsx
new file mode 100644
index 00000000000..cae29b7174f
--- /dev/null
+++ b/src/features/AgentTasks/AgentTaskDetail/RoutedTaskDetailPage.tsx
@@ -0,0 +1,26 @@
+'use client';
+
+import { memo } from 'react';
+
+import { useCanonicalTaskSlug } from '../shared/useCanonicalTaskSlug';
+import TaskDetailPage from './TaskDetailPage';
+
+interface RoutedTaskDetailPageProps {
+ taskId: string;
+}
+
+/**
+ * `/task/:taskId/:slug?` entry. Owns the address bar — it keeps the readable
+ * slug in step with the title — which is why it wraps `TaskDetailPage` instead
+ * of the shared body doing this itself: the chat Portal renders that same body
+ * without owning a URL.
+ */
+const RoutedTaskDetailPage = memo<RoutedTaskDetailPageProps>(({ taskId }) => {
+ useCanonicalTaskSlug(taskId);
+
+ return <TaskDetailPage taskId={taskId} />;
+});
+
+RoutedTaskDetailPage.displayName = 'RoutedTaskDetailPage';
+
+export default RoutedTaskDetailPage;
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailCopyActions.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailCopyActions.tsx
new file mode 100644
index 00000000000..6c2ab1e2117
--- /dev/null
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailCopyActions.tsx
@@ -0,0 +1,45 @@
+'use client';
+
+import { ActionIcon } from '@lobehub/ui/base-ui';
+import { CopyIcon, LinkIcon } from 'lucide-react';
+import { memo } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';
+
+import { useTaskCopyActions } from './useTaskCopyActions';
+
+/**
+ * Copy link / copy ID as one-click header buttons. These are the two clipboard
+ * actions people reach for constantly while cross-referencing a task elsewhere,
+ * so they sit in the header rather than behind the overflow menu — which still
+ * lists them, for discoverability and for parity with the list context menu.
+ */
+const TaskDetailCopyActions = memo(() => {
+ const { t } = useTranslation('chat');
+
+ const { copyId, copyLink, taskId } = useTaskCopyActions();
+
+ if (!taskId) return null;
+
+ return (
+ <>
+ <ActionIcon
+ icon={LinkIcon}
+ size={DESKTOP_HEADER_ICON_SMALL_SIZE}
+ title={t('taskList.contextMenu.copyLink')}
+ tooltipProps={{ placement: 'bottom' }}
+ onClick={copyLink}
+ />
+ <ActionIcon
+ icon={CopyIcon}
+ size={DESKTOP_HEADER_ICON_SMALL_SIZE}
+ title={t('taskList.contextMenu.copyId')}
+ tooltipProps={{ placement: 'bottom' }}
+ onClick={copyId}
+ />
+ </>
+ );
+});
+
+export default TaskDetailCopyActions;
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx
index 7e7ba4161f0..787c8c25f04 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx
@@ -1,34 +1,28 @@
-import { copyToClipboard, type DropdownItem, DropdownMenu, Icon } from '@lobehub/ui';
+import { type DropdownItem, DropdownMenu, Icon } from '@lobehub/ui';
import { ActionIcon, confirmModal, toast } from '@lobehub/ui/base-ui';
import { CopyIcon, EyeOffIcon, LinkIcon, MoreHorizontal, Trash, UsersIcon } from 'lucide-react';
import { memo, useCallback, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
-import { useActiveWorkspaceSlug } from '@/business/client/hooks/useActiveWorkspaceSlug';
import { useTaskTransferMenuItem } from '@/business/client/hooks/useTaskTransferMenuItem';
import VisibilityConfirmContent from '@/features/VisibilityConfirmContent';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
-import { buildWorkspaceAwarePath } from '@/features/Workspace/workspaceAwarePath';
-import { useAppOrigin } from '@/hooks/useAppOrigin';
import { usePermission } from '@/hooks/usePermission';
import { useTaskStore } from '@/store/task';
import { taskDetailSelectors } from '@/store/task/selectors';
import { useUserStore } from '@/store/user';
import { userProfileSelectors } from '@/store/user/selectors';
-import { taskDetailPath } from '../shared/taskDetailPath';
+import { useTaskCopyActions } from './useTaskCopyActions';
const TaskDetailHeaderActions = memo(() => {
const { t } = useTranslation(['chat', 'common']);
const navigate = useWorkspaceAwareNavigate();
- const appOrigin = useAppOrigin();
const activeWorkspaceId = useActiveWorkspaceId();
- const activeWorkspaceSlug = useActiveWorkspaceSlug();
const { allowed: canEditTask } = usePermission('create_content');
- const taskId = useTaskStore(taskDetailSelectors.activeTaskId);
- const taskAgentId = useTaskStore(taskDetailSelectors.activeTaskAgentId);
+ const { copyId, copyLink, taskId } = useTaskCopyActions();
const visibility = useTaskStore(taskDetailSelectors.activeTaskVisibility);
const createdByUserId = useTaskStore(taskDetailSelectors.activeTaskCreatedByUserId);
const currentUserId = useUserStore(userProfileSelectors.userId);
@@ -101,29 +95,18 @@ const TaskDetailHeaderActions = memo(() => {
const menuItems = useMemo<DropdownItem[]>(() => {
if (!taskId) return [];
- const taskUrl = `${appOrigin}${buildWorkspaceAwarePath(
- taskDetailPath(taskId, taskAgentId ?? undefined),
- activeWorkspaceSlug,
- )}`;
-
const baseItems: DropdownItem[] = [
{
icon: <Icon icon={CopyIcon} />,
key: 'copyId',
label: t('taskList.contextMenu.copyId'),
- onClick: async () => {
- await copyToClipboard(taskId);
- toast.success(t('taskList.contextMenu.copyIdSuccess'));
- },
+ onClick: copyId,
},
{
icon: <Icon icon={LinkIcon} />,
key: 'copyLink',
label: t('taskList.contextMenu.copyLink'),
- onClick: async () => {
- await copyToClipboard(taskUrl);
- toast.success(t('taskList.contextMenu.copyLinkSuccess'));
- },
+ onClick: copyLink,
},
{ type: 'divider' },
{
@@ -180,9 +163,8 @@ const TaskDetailHeaderActions = memo(() => {
return [...baseItems.slice(0, 3), ...transferGroup, { type: 'divider' }, ...baseItems.slice(3)];
}, [
taskId,
- taskAgentId,
- appOrigin,
- activeWorkspaceSlug,
+ copyId,
+ copyLink,
activeWorkspaceId,
visibility,
createdByUserId,
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx
index 05db526c094..717af7b1394 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx
@@ -16,6 +16,7 @@ import { useTaskStore } from '@/store/task';
import { taskDetailSelectors } from '@/store/task/selectors';
import Breadcrumb from '../shared/Breadcrumb';
+import TaskDetailCopyActions from './TaskDetailCopyActions';
import TaskDetailHeaderActions from './TaskDetailHeaderActions';
import TaskDetailSections from './TaskDetailSections';
import TaskDetailSkeleton from './TaskDetailSkeleton';
@@ -88,13 +89,16 @@ const TaskDetailPage = memo<TaskDetailPageProps>(({ taskId, showTaskAgentPanelTo
</>
}
right={
- showTaskAgentPanelToggle ? (
- <ToggleRightPanelButton
- hideWhenExpanded
- expand={showTaskAgentPanel}
- onToggle={() => toggleTaskAgentPanel()}
- />
- ) : undefined
+ <>
+ <TaskDetailCopyActions />
+ {showTaskAgentPanelToggle ? (
+ <ToggleRightPanelButton
+ hideWhenExpanded
+ expand={showTaskAgentPanel}
+ onToggle={() => toggleTaskAgentPanel()}
+ />
+ ) : undefined}
+ </>
}
styles={{
left: {
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.test.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.test.tsx
index a51d410b557..cd731fb7cc7 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.test.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.test.tsx
@@ -94,7 +94,7 @@ describe('TaskParentBar', () => {
fireEvent.click(screen.getByText('Parent task').closest('button')!);
- expect(mocks.navigate).toHaveBeenCalledWith('/agent/agt_parent/task/T-parent');
+ expect(mocks.navigate).toHaveBeenCalledWith('/agent/agt_parent/task/T-parent/parent-task');
await waitFor(() => expect(mocks.getDetail).toHaveBeenCalledWith('T-parent'));
});
@@ -118,7 +118,7 @@ describe('TaskParentBar', () => {
await waitFor(() => expect(mocks.getDetail).toHaveBeenCalledWith('T-parent'));
fireEvent.click(screen.getByText('Parent task').closest('button')!);
- expect(mocks.navigate).toHaveBeenCalledWith('/task/T-parent');
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-parent/parent-task');
});
it("opens parent subtasks inside the clicked subtask's owning agent route", async () => {
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx
index 4ed10679e40..61a354280fb 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx
@@ -84,7 +84,9 @@ const TaskParentBar = memo(() => {
size={'small'}
style={{ maxWidth: '100%', minWidth: 0 }}
type={'text'}
- onClick={() => navigate(taskDetailPath(parent.identifier, parentAgentId ?? undefined))}
+ onClick={() =>
+ navigate(taskDetailPath(parent.identifier, parentAgentId ?? undefined, parent.name))
+ }
>
<Text ellipsis style={{ minWidth: 0 }} weight={500}>
{parent.name}
@@ -95,8 +97,8 @@ const TaskParentBar = memo(() => {
<TaskSubtaskProgressTag
currentIdentifier={currentIdentifier}
subtasks={parentSubtasks}
- onSubtaskClick={(identifier, assigneeAgentId) =>
- navigate(taskDetailPath(identifier, assigneeAgentId))
+ onSubtaskClick={(identifier, assigneeAgentId, name) =>
+ navigate(taskDetailPath(identifier, assigneeAgentId, name))
}
/>
</span>
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.test.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.test.tsx
index 0746768f91d..01fa9b94d1a 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.test.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.test.tsx
@@ -193,7 +193,7 @@ describe('TaskSubtasks', () => {
fireEvent.click(screen.getByTestId('subtask-tree-node'));
- expect(mocks.navigate).toHaveBeenCalledWith('/agent/agt_child/task/T-child');
+ expect(mocks.navigate).toHaveBeenCalledWith('/agent/agt_child/task/T-child/child-task');
});
it('routes right-click on a subtask through @/libs/contextMenu', () => {
@@ -270,7 +270,7 @@ describe('TaskSubtasks', () => {
fireEvent.click(screen.getByTestId('subtask-tree-node'));
- expect(mocks.navigate).toHaveBeenCalledWith('/task/T-child');
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-child/child-task');
});
it('uses the running topic status icon when a subtask has an active topic run', () => {
diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx
index aefb3c9fd1f..9247290b5a1 100644
--- a/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx
@@ -200,7 +200,7 @@ const TaskSubtasks = memo(() => {
const handleNavigate = useCallback(
(identifier: string) => {
const subtask = subtaskMap.get(identifier);
- navigate(taskDetailPath(identifier, subtask?.assignee?.id ?? undefined));
+ navigate(taskDetailPath(identifier, subtask?.assignee?.id ?? undefined, subtask?.name));
},
[navigate, subtaskMap],
);
diff --git a/src/features/AgentTasks/AgentTaskDetail/index.tsx b/src/features/AgentTasks/AgentTaskDetail/index.tsx
index 227e7c8fba3..2fc77c5c81d 100644
--- a/src/features/AgentTasks/AgentTaskDetail/index.tsx
+++ b/src/features/AgentTasks/AgentTaskDetail/index.tsx
@@ -1,4 +1,5 @@
export { default as AgentScopedTaskDetailPage } from './AgentScopedTaskDetailPage';
+export { default as RoutedTaskDetailPage } from './RoutedTaskDetailPage';
export { default as TaskDetailPage } from './TaskDetailPage';
export { default as TaskDetailSections } from './TaskDetailSections';
export { default as TaskDetailSkeleton } from './TaskDetailSkeleton';
diff --git a/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.test.ts b/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.test.ts
new file mode 100644
index 00000000000..09907bd6bb3
--- /dev/null
+++ b/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.test.ts
@@ -0,0 +1,93 @@
+/**
+ * @vitest-environment happy-dom
+ */
+import { renderHook } from '@testing-library/react';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { useTaskCopyActions } from './useTaskCopyActions';
+
+const mocks = vi.hoisted(() => ({
+ copyToClipboard: vi.fn(),
+ taskState: {
+ activeTaskId: 'T-1' as string | undefined,
+ taskDetailMap: {
+ 'T-1': { agentId: 'agt_1', name: 'Ship the thing' },
+ } as Record<string, { agentId?: string | null; name?: string | null }>,
+ },
+ toastSuccess: vi.fn(),
+ workspaceSlug: 'ws-slug' as string | undefined,
+}));
+
+vi.mock('@lobehub/ui', async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ copyToClipboard: mocks.copyToClipboard,
+}));
+
+vi.mock('@lobehub/ui/base-ui', async (importOriginal) => ({
+ ...(await importOriginal<object>()),
+ toast: { success: mocks.toastSuccess },
+}));
+
+vi.mock('@/business/client/hooks/useActiveWorkspaceSlug', () => ({
+ useActiveWorkspaceSlug: () => mocks.workspaceSlug,
+}));
+
+vi.mock('@/hooks/useAppOrigin', () => ({
+ useAppOrigin: () => 'https://example.com',
+}));
+
+vi.mock('@/store/task', () => ({
+ useTaskStore: (selector: (state: Record<string, unknown>) => unknown) =>
+ selector(mocks.taskState),
+}));
+
+describe('useTaskCopyActions', () => {
+ beforeEach(() => {
+ vi.clearAllMocks();
+ mocks.taskState.activeTaskId = 'T-1';
+ mocks.taskState.taskDetailMap = { 'T-1': { agentId: 'agt_1', name: 'Ship the thing' } };
+ mocks.workspaceSlug = 'ws-slug';
+ });
+
+ it('copies an absolute, workspace-aware link carrying the readable slug', async () => {
+ const { result } = renderHook(() => useTaskCopyActions());
+
+ await result.current.copyLink();
+
+ expect(mocks.copyToClipboard).toHaveBeenCalledWith(
+ 'https://example.com/ws-slug/agent/agt_1/task/T-1/ship-the-thing',
+ );
+ expect(mocks.toastSuccess).toHaveBeenCalledWith('taskList.contextMenu.copyLinkSuccess');
+ });
+
+ it('drops the workspace prefix in personal mode', async () => {
+ mocks.workspaceSlug = undefined;
+ const { result } = renderHook(() => useTaskCopyActions());
+
+ await result.current.copyLink();
+
+ expect(mocks.copyToClipboard).toHaveBeenCalledWith(
+ 'https://example.com/agent/agt_1/task/T-1/ship-the-thing',
+ );
+ });
+
+ it('copies the bare task id', async () => {
+ const { result } = renderHook(() => useTaskCopyActions());
+
+ await result.current.copyId();
+
+ expect(mocks.copyToClipboard).toHaveBeenCalledWith('T-1');
+ expect(mocks.toastSuccess).toHaveBeenCalledWith('taskList.contextMenu.copyIdSuccess');
+ });
+
+ it('no-ops while no task is active, so the header buttons cannot copy a stale id', async () => {
+ mocks.taskState.activeTaskId = undefined;
+ const { result } = renderHook(() => useTaskCopyActions());
+
+ await result.current.copyId();
+ await result.current.copyLink();
+
+ expect(mocks.copyToClipboard).not.toHaveBeenCalled();
+ expect(mocks.toastSuccess).not.toHaveBeenCalled();
+ });
+});
diff --git a/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.ts b/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.ts
new file mode 100644
index 00000000000..aca17a1861c
--- /dev/null
+++ b/src/features/AgentTasks/AgentTaskDetail/useTaskCopyActions.ts
@@ -0,0 +1,48 @@
+import { copyToClipboard } from '@lobehub/ui';
+import { toast } from '@lobehub/ui/base-ui';
+import { useCallback } from 'react';
+import { useTranslation } from 'react-i18next';
+
+import { useActiveWorkspaceSlug } from '@/business/client/hooks/useActiveWorkspaceSlug';
+import { buildWorkspaceAwarePath } from '@/features/Workspace/workspaceAwarePath';
+import { useAppOrigin } from '@/hooks/useAppOrigin';
+import { useTaskStore } from '@/store/task';
+import { taskDetailSelectors } from '@/store/task/selectors';
+
+import { taskDetailPath } from '../shared/taskDetailPath';
+
+/**
+ * Clipboard actions for the active task. Shared by the header's quick buttons
+ * and its overflow menu so both copy byte-for-byte the same link.
+ */
+export const useTaskCopyActions = () => {
+ const { t } = useTranslation('chat');
+
+ const appOrigin = useAppOrigin();
+ const activeWorkspaceSlug = useActiveWorkspaceSlug();
+ const taskId = useTaskStore(taskDetailSelectors.activeTaskId);
+ const taskAgentId = useTaskStore(taskDetailSelectors.activeTaskAgentId);
+ const taskName = useTaskStore(taskDetailSelectors.activeTaskName);
+
+ const copyId = useCallback(async () => {
+ if (!taskId) return;
+
+ await copyToClipboard(taskId);
+ toast.success(t('taskList.contextMenu.copyIdSuccess'));
+ }, [taskId, t]);
+
+ const copyLink = useCallback(async () => {
+ if (!taskId) return;
+
+ // Carry the title into the copied link so a pasted URL says what the task is.
+ const taskUrl = `${appOrigin}${buildWorkspaceAwarePath(
+ taskDetailPath(taskId, taskAgentId ?? undefined, taskName),
+ activeWorkspaceSlug,
+ )}`;
+
+ await copyToClipboard(taskUrl);
+ toast.success(t('taskList.contextMenu.copyLinkSuccess'));
+ }, [taskId, taskAgentId, taskName, appOrigin, activeWorkspaceSlug, t]);
+
+ return { copyId, copyLink, taskId };
+};
diff --git a/src/features/AgentTasks/AgentTaskList/AgentTasksPage.test.ts b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.test.ts
index 1e1c71d903b..8dfec7bd9c4 100644
--- a/src/features/AgentTasks/AgentTaskList/AgentTasksPage.test.ts
+++ b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.test.ts
@@ -8,8 +8,10 @@ import {
getScheduledTaskViewOptions,
getTaskCreateActionBehavior,
getTaskPageHeaderVisibility,
+ PAGINATED_COLLECTION_PINNED_OPTIONS,
resolveMyTaskScope,
resolveTaskCollection,
+ resolveTaskCollectionView,
} from './AgentTasksPage';
import {
collapseSubTasks,
@@ -102,6 +104,46 @@ describe('AgentTasksPage', () => {
});
});
+ describe('resolveTaskCollectionView', () => {
+ it('renders the board in every collection that offers the switch', () => {
+ // The reported bug: "My tasks" showed the list/board switch but rendered
+ // its list unconditionally, so picking Board changed nothing.
+ expect(resolveTaskCollectionView('mine', 'kanban')).toBe('board');
+ expect(resolveTaskCollectionView('tasks', 'kanban')).toBe('board');
+ });
+
+ it('renders the list whenever the list mode is selected', () => {
+ expect(resolveTaskCollectionView('mine', 'list')).toBe('list');
+ expect(resolveTaskCollectionView('tasks', 'list')).toBe('list');
+ });
+
+ it('keeps the scheduled roll-up a list — it is offered no switch', () => {
+ expect(resolveTaskCollectionView('scheduled', 'kanban')).toBe('list');
+ expect(resolveTaskCollectionView('scheduled', 'list')).toBe('list');
+ });
+ });
+
+ describe('PAGINATED_COLLECTION_PINNED_OPTIONS', () => {
+ it('names exactly the controls a paginated collection overrides', () => {
+ // Each pinned name must be a control the view options actually fix, or
+ // the panel would hide a switch that still works.
+ const pinned = getMyTaskViewOptions({
+ ...DEFAULT_TASK_LIST_VIEW_OPTIONS,
+ orderBy: 'title',
+ orderDirection: 'desc',
+ showSubTasks: false,
+ });
+ expect(PAGINATED_COLLECTION_PINNED_OPTIONS).toEqual(['ordering', 'showSubTasks']);
+ expect(pinned.orderBy).toBe('updatedAt');
+ expect(pinned.orderDirection).toBe('asc');
+ expect(pinned.showSubTasks).toBe(true);
+ // Not pinned: the panel keeps offering these, and they still take effect.
+ expect(pinned.groupBy).toBe(DEFAULT_TASK_LIST_VIEW_OPTIONS.groupBy);
+ expect(pinned.hideCompleted).toBe(DEFAULT_TASK_LIST_VIEW_OPTIONS.hideCompleted);
+ expect(pinned.nestedSubTasks).toBe(DEFAULT_TASK_LIST_VIEW_OPTIONS.nestedSubTasks);
+ });
+ });
+
describe('resolveTaskCollection', () => {
it('opens the scheduled collection from its addressable URL', () => {
expect(resolveTaskCollection(new URLSearchParams('collection=scheduled'))).toBe('scheduled');
diff --git a/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx
index a111e289c3d..25648f42d32 100644
--- a/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx
+++ b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx
@@ -87,7 +87,7 @@ interface AgentTasksPageProps {
projectId?: string;
}
-type TaskCollection = 'mine' | 'scheduled' | 'tasks';
+export type TaskCollection = 'mine' | 'scheduled' | 'tasks';
/** "My tasks" sub-view: assigned to me as a member, or created by me. */
export type MyTaskScope = 'assigned' | 'created';
const COLLECTION_PAGE_SIZE = 50;
@@ -146,6 +146,25 @@ export const getMyTaskViewOptions = (viewOptions: TaskListViewOptions): TaskList
...PAGINATED_COLLECTION_VIEW,
});
+/**
+ * The display controls `PAGINATED_COLLECTION_VIEW` overrides, so the config
+ * panel can leave them out instead of offering a switch that changes nothing:
+ * ordering follows the server page, and every fetched row renders.
+ */
+export const PAGINATED_COLLECTION_PINNED_OPTIONS = ['ordering', 'showSubTasks'] as const;
+
+/**
+ * Which surface a collection renders in the active view mode. Single-sourced
+ * because every collection that is offered the list/board switch has to answer
+ * it: "My tasks" rendered its list unconditionally while still showing the
+ * switch, so picking Board did nothing at all. The scheduled tab is the one
+ * collection with no switch (its config entry is hidden), so it stays a list.
+ */
+export const resolveTaskCollectionView = (
+ collection: TaskCollection,
+ viewMode: TaskViewMode,
+): 'board' | 'list' => (collection !== 'scheduled' && viewMode === 'kanban' ? 'board' : 'list');
+
const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, projectId }) => {
const { t } = useTranslation('chat');
const navigate = useWorkspaceAwareNavigate();
@@ -165,6 +184,11 @@ const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, projectId }) => {
const isMineCollection = collection === 'mine';
const isOrdinaryCollection = collection === 'tasks';
const myTaskScope = resolveMyTaskScope(searchParams);
+ // "My tasks" honours the list/board switch like the ordinary tab does; the
+ // board fetches its own server groups, so the paginated list fetch below is
+ // gated off while it is up.
+ const isBoardView = resolveTaskCollectionView(collection, viewMode) === 'board';
+ const isMineBoard = isMineCollection && isBoardView;
const useFetchTaskList = useTaskStore((s) => s.useFetchTaskList);
// Keep the SWR handle only for `error` + `mutate` (the error/Retry state).
// Every scope splits automated work out of the ordinary tab — it is the
@@ -175,7 +199,7 @@ const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, projectId }) => {
// "My tasks" tabs render their own paginated collections, so the fetch is
// gated to the ordinary tab; and the kanban view fetches its own server
// groups, so there only the single page behind the empty-hero decision runs.
- const isListView = viewMode !== 'kanban';
+ const isListView = !isBoardView;
const { error, isLoading, mutate } = useFetchTaskList(
projectId
? {
@@ -217,7 +241,7 @@ const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, projectId }) => {
const viewOptions = useMemo(() => normalizeTaskListViewOptions(rawViewOptions), [rawViewOptions]);
const useFetchMyTaskList = useTaskStore((s) => s.useFetchMyTaskList);
const mineSWR = useFetchMyTaskList({
- enabled: isMineCollection,
+ enabled: isMineCollection && !isMineBoard,
limit: COLLECTION_PAGE_SIZE,
offset: (collectionPage - 1) * COLLECTION_PAGE_SIZE,
scope: myTaskScope,
@@ -281,7 +305,7 @@ const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, projectId }) => {
lockAssignee: !!agentId,
projectId,
onCreated: (task) => {
- navigate(taskDetailPath(task.identifier, agentId ? task.agentId : undefined));
+ navigate(taskDetailPath(task.identifier, agentId ? task.agentId : undefined, task.name));
},
});
}, [agentId, canCreateTask, createActionBehavior.mode, navigate, projectId, updateSystemStatus]);
@@ -367,7 +391,11 @@ const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, projectId }) => {
/>
)}
{!isScheduledCollection && headerVisibility.showViewOptions && (
- <TasksGroupConfig options={viewOptions} setOptions={setViewOptions} />
+ <TasksGroupConfig
+ options={viewOptions}
+ pinnedOptions={isMineCollection ? PAGINATED_COLLECTION_PINNED_OPTIONS : undefined}
+ setOptions={setViewOptions}
+ />
)}
{headerVisibility.showTaskAgentPanelToggle && (
<ToggleRightPanelButton
@@ -385,7 +413,20 @@ const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, projectId }) => {
},
}}
/>
- {!isOrdinaryCollection ? (
+ {isMineBoard ? (
+ <Flexbox flex={1} style={{ overflowX: 'auto', overflowY: 'hidden' }}>
+ <KanbanBoard
+ myTaskScope={myTaskScope}
+ options={viewOptions}
+ routeScope={routeScope}
+ emptyDescription={t(
+ myTaskScope === 'created'
+ ? 'taskList.mine.emptyCreated'
+ : 'taskList.mine.emptyAssigned',
+ )}
+ />
+ </Flexbox>
+ ) : !isOrdinaryCollection ? (
<WideScreenContainer
fullWidth
gap={16}
@@ -425,7 +466,7 @@ const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId, projectId }) => {
</WideScreenContainer>
) : isEmptyHero ? (
<EmptyState agentId={agentId} projectId={projectId} />
- ) : viewMode === 'kanban' ? (
+ ) : isBoardView ? (
<Flexbox flex={1} style={{ overflowX: 'auto', overflowY: 'hidden' }}>
<KanbanBoard
agentId={agentId}
diff --git a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx
index ded2209413c..65cdfcc5fe4 100644
--- a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx
+++ b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx
@@ -423,7 +423,13 @@ const CreateTaskInlineEntry = memo<CreateTaskInlineEntryProps>((props) => {
style={{ paddingInline: 0 }}
type={'text'}
onClick={() =>
- navigate(taskDetailPath(result.identifier, result.assigneeAgentId ?? undefined))
+ navigate(
+ taskDetailPath(
+ result.identifier,
+ result.assigneeAgentId ?? undefined,
+ result.name || draft.name,
+ ),
+ )
}
>
{t('taskIntent.openCreated')}
diff --git a/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx b/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx
index be76e398c84..bc8e4d18c3c 100644
--- a/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx
+++ b/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx
@@ -32,6 +32,7 @@ import { taskDetailPath } from '../shared/taskDetailPath';
import HiddenColumnsPanel from './HiddenColumnsPanel';
import {
buildKanbanColumns,
+ buildKanbanGroupQuery,
canDropTaskIntoKanbanColumn,
getKanbanAssigneeUpdate,
getKanbanTaskPatch,
@@ -57,12 +58,21 @@ const styles = createStaticStyles(({ css }) => ({
interface KanbanBoardProps {
/** When set, scopes the board (and task creation) to a single agent. */
agentId?: string;
+ /** Overrides the generic "no tasks" copy with the collection's own line. */
+ emptyDescription?: string;
+ /**
+ * "My tasks" board: narrows the server groups to the caller's own slice of
+ * the workspace, matching what that tab's list view fetches — including its
+ * lack of an automation filter.
+ */
+ myTaskScope?: 'assigned' | 'created';
options: TaskListViewOptions;
projectId?: string;
routeScope?: TaskItemRouteScope;
}
-const KanbanBoard = memo<KanbanBoardProps>(({ agentId, options, projectId, routeScope }) => {
+const KanbanBoard = memo<KanbanBoardProps>((props) => {
+ const { agentId, emptyDescription, myTaskScope, options, projectId, routeScope } = props;
const { t } = useTranslation('chat');
const navigate = useWorkspaceAwareNavigate();
const { allowed: canEditTask } = usePermission('create_content');
@@ -72,11 +82,7 @@ const KanbanBoard = memo<KanbanBoardProps>(({ agentId, options, projectId, route
const useFetchTaskGroupList = useTaskStore((s) => s.useFetchTaskGroupList);
// Keep the SWR handle only for `error` + `mutate` (the error/Retry state).
const { error, isLoading, isQueryScopeCurrent, mutate } = useFetchTaskGroupList(
- projectId
- ? { automated: false, excludeStatuses, groupBy, projectId }
- : agentId
- ? { agentId, automated: false, excludeStatuses, groupBy }
- : { allAgents: true, automated: false, excludeStatuses, groupBy },
+ buildKanbanGroupQuery({ agentId, excludeStatuses, groupBy, myTaskScope, projectId }),
);
// Drive the loading/empty boundary off the store's own init flag, NOT SWR's
// per-key `data`. On a scope or visibility switch the store resets
@@ -177,7 +183,7 @@ const KanbanBoard = memo<KanbanBoardProps>(({ agentId, options, projectId, route
lockAssignee: !!agentId,
projectId,
onCreated: (task) => {
- navigate(taskDetailPath(task.identifier, agentId ? task.agentId : undefined));
+ navigate(taskDetailPath(task.identifier, agentId ? task.agentId : undefined, task.name));
},
showInlineToggle: false,
});
@@ -257,7 +263,7 @@ const KanbanBoard = memo<KanbanBoardProps>(({ agentId, options, projectId, route
const emptyState = (
<Center height={'80vh'} width={'100%'}>
- <Empty description={t('taskList.empty')} icon={ClipboardCheckIcon} />
+ <Empty description={emptyDescription ?? t('taskList.empty')} icon={ClipboardCheckIcon} />
</Center>
);
@@ -288,7 +294,13 @@ const KanbanBoard = memo<KanbanBoardProps>(({ agentId, options, projectId, route
total={group?.total ?? 0}
onHide={groupBy === 'status' ? () => handleHideColumn(col.key) : undefined}
onCreate={
- groupBy === 'status' && col.key === 'backlog' ? handleCreateTask : undefined
+ // "My tasks" offers no create entry (its list view has none
+ // either): a task created here carries neither the member
+ // assignment nor — under `created` — any guarantee it lands
+ // in the column it was started from.
+ groupBy === 'status' && col.key === 'backlog' && !myTaskScope
+ ? handleCreateTask
+ : undefined
}
/>
);
diff --git a/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx b/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx
index abfaaf34695..759679debe8 100644
--- a/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx
+++ b/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx
@@ -19,8 +19,17 @@ import { systemStatusSelectors } from '@/store/global/selectors';
import type { TaskGroupBy, TaskListViewOptions, TaskOrderBy } from './listViewOptions';
+/** A display control the active collection fixes, so it has nothing to change. */
+export type TaskListPinnedOption = 'ordering' | 'showSubTasks';
+
interface TasksHeaderProps {
options: TaskListViewOptions;
+ /**
+ * Controls the active collection overrides (see
+ * `PAGINATED_COLLECTION_PINNED_OPTIONS`). They are left out of the panel
+ * rather than rendered as switches that silently do nothing.
+ */
+ pinnedOptions?: readonly TaskListPinnedOption[];
setOptions: (updater: (prev: TaskListViewOptions) => TaskListViewOptions) => void;
}
@@ -35,8 +44,9 @@ const styles = createStaticStyles(({ css, cssVar }) => {
};
});
-const TasksGroupConfig = memo<TasksHeaderProps>(({ options, setOptions }) => {
+const TasksGroupConfig = memo<TasksHeaderProps>(({ options, pinnedOptions, setOptions }) => {
const [isViewConfigOpen, setIsViewConfigOpen] = useState(false);
+ const isPinned = (option: TaskListPinnedOption) => !!pinnedOptions?.includes(option);
const { t } = useTranslation('chat');
const viewMode = useGlobalStore(systemStatusSelectors.taskListViewMode);
const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);
@@ -128,32 +138,36 @@ const TasksGroupConfig = memo<TasksHeaderProps>(({ options, setOptions }) => {
} satisfies FormItemProps,
]
: []),
- {
- children: (
- <Flexbox horizontal align={'center'} gap={8}>
- <ActionIcon
- icon={options.orderDirection === 'asc' ? ArrowDownWideNarrow : ArrowUpNarrowWide}
- size={'small'}
- onClick={() => {
- setOptions((prev) => ({
- ...prev,
- orderDirection: prev.orderDirection === 'asc' ? 'desc' : 'asc',
- }));
- }}
- />
- <Select
- options={orderOptions}
- size={'small'}
- style={{ width: 112 }}
- value={options.orderBy}
- onChange={(value: TaskOrderBy) => {
- setOptions((prev) => ({ ...prev, orderBy: value }));
- }}
- />
- </Flexbox>
- ),
- label: t('taskList.form.ordering'),
- },
+ ...(isPinned('ordering')
+ ? []
+ : [
+ {
+ children: (
+ <Flexbox horizontal align={'center'} gap={8}>
+ <ActionIcon
+ icon={options.orderDirection === 'asc' ? ArrowDownWideNarrow : ArrowUpNarrowWide}
+ size={'small'}
+ onClick={() => {
+ setOptions((prev) => ({
+ ...prev,
+ orderDirection: prev.orderDirection === 'asc' ? 'desc' : 'asc',
+ }));
+ }}
+ />
+ <Select
+ options={orderOptions}
+ size={'small'}
+ style={{ width: 112 }}
+ value={options.orderBy}
+ onChange={(value: TaskOrderBy) => {
+ setOptions((prev) => ({ ...prev, orderBy: value }));
+ }}
+ />
+ </Flexbox>
+ ),
+ label: t('taskList.form.ordering'),
+ } satisfies FormItemProps,
+ ]),
{
children: (
<Switch
@@ -168,22 +182,26 @@ const TasksGroupConfig = memo<TasksHeaderProps>(({ options, setOptions }) => {
label: t('taskList.form.orderCompletedByRecency'),
},
showCompletedFormItem,
- {
- children: (
- <Switch
- checked={options.showSubTasks}
- size={'small'}
- onChange={(checked) => {
- setOptions((prev) => ({ ...prev, showSubTasks: checked }));
- }}
- />
- ),
- minWidth: undefined,
- label: t('taskList.form.showSubTasks'),
- },
+ ...(isPinned('showSubTasks')
+ ? []
+ : [
+ {
+ children: (
+ <Switch
+ checked={options.showSubTasks}
+ size={'small'}
+ onChange={(checked) => {
+ setOptions((prev) => ({ ...prev, showSubTasks: checked }));
+ }}
+ />
+ ),
+ minWidth: undefined,
+ label: t('taskList.form.showSubTasks'),
+ } satisfies FormItemProps,
+ ]),
// Only meaningful once sub-tasks are on the list — otherwise the toggle
// would sit there controlling nothing.
- ...(options.showSubTasks
+ ...(options.showSubTasks || isPinned('showSubTasks')
? [
{
children: (
diff --git a/src/features/AgentTasks/AgentTaskList/kanbanBoardModel.test.ts b/src/features/AgentTasks/AgentTaskList/kanbanBoardModel.test.ts
index 73d36356aa9..d6b4a950bce 100644
--- a/src/features/AgentTasks/AgentTaskList/kanbanBoardModel.test.ts
+++ b/src/features/AgentTasks/AgentTaskList/kanbanBoardModel.test.ts
@@ -4,6 +4,7 @@ import type { TaskGroupItem, TaskListItem } from '@/store/task/slices/list/initi
import {
buildKanbanColumns,
+ buildKanbanGroupQuery,
canDropTaskIntoKanbanColumn,
getKanbanAssigneeUpdate,
getKanbanColumnHeaderVariant,
@@ -193,4 +194,58 @@ describe('kanbanBoardModel', () => {
expect(next.map(({ total }) => total)).toEqual([74, 64]);
});
+ describe('buildKanbanGroupQuery', () => {
+ it('sends no automation filter on the "My tasks" board', () => {
+ // Regression: the board pinned `automated: false` while the My tasks list
+ // view sends none, so a scheduled or heartbeat task assigned to the
+ // caller vanished the moment they switched that collection to board.
+ const query = buildKanbanGroupQuery({ groupBy: 'status', myTaskScope: 'assigned' });
+
+ expect(query).not.toHaveProperty('automated');
+ expect(query).toEqual({ excludeStatuses: undefined, groupBy: 'status', scope: 'assigned' });
+ });
+
+ it('keeps excluding automation on the project, agent and all-agents boards', () => {
+ // Those three do belong to the scheduled roll-up, so their columns stay
+ // free of self-firing tasks.
+ expect(buildKanbanGroupQuery({ groupBy: 'status', projectId: 'proj_1' })).toMatchObject({
+ automated: false,
+ projectId: 'proj_1',
+ });
+ expect(buildKanbanGroupQuery({ agentId: 'agt_1', groupBy: 'status' })).toMatchObject({
+ agentId: 'agt_1',
+ automated: false,
+ });
+ expect(buildKanbanGroupQuery({ groupBy: 'status' })).toMatchObject({
+ allAgents: true,
+ automated: false,
+ });
+ });
+
+ it('prefers the My tasks scope over the other scopes', () => {
+ const query = buildKanbanGroupQuery({
+ agentId: 'agt_1',
+ groupBy: 'status',
+ myTaskScope: 'created',
+ projectId: 'proj_1',
+ });
+
+ expect(query).toEqual({
+ excludeStatuses: undefined,
+ groupBy: 'status',
+ scope: 'created',
+ });
+ });
+
+ it('carries the status exclusions through every scope', () => {
+ const excludeStatuses = ['completed'] as const;
+
+ expect(
+ buildKanbanGroupQuery({ excludeStatuses, groupBy: 'status', myTaskScope: 'assigned' }),
+ ).toMatchObject({ excludeStatuses });
+ expect(buildKanbanGroupQuery({ excludeStatuses, groupBy: 'status' })).toMatchObject({
+ excludeStatuses,
+ });
+ });
+ });
});
diff --git a/src/features/AgentTasks/AgentTaskList/kanbanBoardModel.ts b/src/features/AgentTasks/AgentTaskList/kanbanBoardModel.ts
index 5513ad1be1d..dfd4c65c8ab 100644
--- a/src/features/AgentTasks/AgentTaskList/kanbanBoardModel.ts
+++ b/src/features/AgentTasks/AgentTaskList/kanbanBoardModel.ts
@@ -50,6 +50,49 @@ export const STATUS_KANBAN_COLUMNS: KanbanColumnDefinition[] = [
export const normalizeKanbanGroupBy = (groupBy: TaskGroupBy): TaskKanbanGroupBy =>
groupBy === 'assignee' || groupBy === 'member' || groupBy === 'priority' ? groupBy : 'status';
+export interface KanbanGroupQueryInput {
+ agentId?: string;
+ excludeStatuses?: readonly TaskStatus[];
+ groupBy: TaskKanbanGroupBy;
+ /** Set on the "My tasks" board; mutually exclusive with the other scopes. */
+ myTaskScope?: 'assigned' | 'created';
+ projectId?: string;
+}
+
+export interface KanbanGroupQuery {
+ agentId?: string;
+ allAgents?: boolean;
+ automated?: boolean;
+ excludeStatuses?: readonly TaskStatus[];
+ groupBy: TaskKanbanGroupBy;
+ projectId?: string;
+ scope?: 'assigned' | 'created';
+}
+
+/**
+ * The grouped query one board runs, picked from the scope it was mounted with.
+ *
+ * Every board except "My tasks" pins `automated: false`, keeping the tasks that
+ * still fire on their own out of the columns — they belong to the scheduled
+ * roll-up. "My tasks" deliberately sends no automation filter, because its list
+ * view sends none either: filtering only on the board side would make the
+ * caller's scheduled and heartbeat tasks vanish on the list -> board switch of
+ * one and the same collection.
+ */
+export const buildKanbanGroupQuery = ({
+ agentId,
+ excludeStatuses,
+ groupBy,
+ myTaskScope,
+ projectId,
+}: KanbanGroupQueryInput): KanbanGroupQuery => {
+ if (myTaskScope) return { excludeStatuses, groupBy, scope: myTaskScope };
+ if (projectId) return { automated: false, excludeStatuses, groupBy, projectId };
+ if (agentId) return { agentId, automated: false, excludeStatuses, groupBy };
+
+ return { allAgents: true, automated: false, excludeStatuses, groupBy };
+};
+
export const buildKanbanColumns = (
taskGroups: TaskGroupItem[],
groupBy: TaskKanbanGroupBy,
diff --git a/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx b/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx
index 0ead7143e74..c766e6c8c95 100644
--- a/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx
+++ b/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx
@@ -39,7 +39,7 @@ export interface CreateTaskContentProps {
* agent-scoped task list where every task belongs to that agent.
*/
lockAssignee?: boolean;
- onCreated?: (task: { agentId?: string; identifier: string }) => void;
+ onCreated?: (task: { agentId?: string; identifier: string; name?: string }) => void;
projectId?: string;
/**
* Whether to show the "minimize to inline entry" button. Only the list view has an
@@ -143,6 +143,7 @@ const CreateTaskContent = memo<CreateTaskContentProps>(
onCreated?.({
agentId: result.assigneeAgentId ?? undefined,
identifier: result.identifier,
+ name: result.name ?? undefined,
});
}
} catch {
diff --git a/src/features/AgentTasks/features/AgentTaskItem.test.tsx b/src/features/AgentTasks/features/AgentTaskItem.test.tsx
index 6318c87577a..d434487e6f9 100644
--- a/src/features/AgentTasks/features/AgentTaskItem.test.tsx
+++ b/src/features/AgentTasks/features/AgentTaskItem.test.tsx
@@ -127,7 +127,7 @@ describe('AgentTaskItem', () => {
fireEvent.click(screen.getByText('Hourly trend update'));
- expect(mocks.navigate).toHaveBeenCalledWith('/agent/agt_owner/task/T-22');
+ expect(mocks.navigate).toHaveBeenCalledWith('/agent/agt_owner/task/T-22/hourly-trend-update');
});
it('opens an assigned task on the global detail route in global scope', () => {
@@ -135,7 +135,7 @@ describe('AgentTaskItem', () => {
fireEvent.click(screen.getByText('Hourly trend update'));
- expect(mocks.navigate).toHaveBeenCalledWith('/task/T-22');
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-22/hourly-trend-update');
});
it('falls back to the global task detail route when the task has no assignee', () => {
@@ -143,7 +143,7 @@ describe('AgentTaskItem', () => {
fireEvent.click(screen.getByText('Hourly trend update'));
- expect(mocks.navigate).toHaveBeenCalledWith('/task/T-22');
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-22/hourly-trend-update');
});
it('shows the assigned agent and member names in tooltips', () => {
diff --git a/src/features/AgentTasks/features/AgentTaskItem.tsx b/src/features/AgentTasks/features/AgentTaskItem.tsx
index 154d97459fe..ecc44a8cc8f 100644
--- a/src/features/AgentTasks/features/AgentTaskItem.tsx
+++ b/src/features/AgentTasks/features/AgentTaskItem.tsx
@@ -73,9 +73,10 @@ const AgentTaskItem = memo<TaskItemProps>(({ task, routeScope = 'agent', variant
taskDetailPath(
task.identifier,
routeScope === 'agent' ? (task.assigneeAgentId ?? undefined) : undefined,
+ task.name,
),
);
- }, [navigate, routeScope, task.assigneeAgentId, task.identifier]);
+ }, [navigate, routeScope, task.assigneeAgentId, task.identifier, task.name]);
const handleRequestSubtasks = useCallback(async () => {
const detail = await fetchTaskDetail(task.identifier);
@@ -83,8 +84,10 @@ const AgentTaskItem = memo<TaskItemProps>(({ task, routeScope = 'agent', variant
}, [fetchTaskDetail, task.identifier]);
const handleSubtaskClick = useCallback(
- (identifier: string, assigneeAgentId?: string) => {
- navigate(taskDetailPath(identifier, routeScope === 'agent' ? assigneeAgentId : undefined));
+ (identifier: string, assigneeAgentId?: string, name?: string) => {
+ navigate(
+ taskDetailPath(identifier, routeScope === 'agent' ? assigneeAgentId : undefined, name),
+ );
},
[navigate, routeScope],
);
diff --git a/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx b/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx
index 1d160656a36..6247c43dfbf 100644
--- a/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx
+++ b/src/features/AgentTasks/features/TaskSubtaskProgressTag.test.tsx
@@ -55,7 +55,7 @@ describe('TaskSubtaskProgressTag', () => {
mocks.toastError.mockClear();
});
- it("passes the clicked subtask's assignee to the navigation callback", () => {
+ it("passes the clicked subtask's assignee and name to the navigation callback", () => {
const onSubtaskClick = vi.fn();
render(
@@ -74,7 +74,7 @@ describe('TaskSubtaskProgressTag', () => {
fireEvent.click(screen.getByTestId('subtask-T-2'));
- expect(onSubtaskClick).toHaveBeenCalledWith('T-2', 'agt_child');
+ expect(onSubtaskClick).toHaveBeenCalledWith('T-2', 'agt_child', 'Child task');
});
it('renders a lightweight progress summary without a subtask tree', () => {
diff --git a/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx b/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx
index ed42b25049a..caa2e5d01e5 100644
--- a/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx
+++ b/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx
@@ -79,7 +79,7 @@ const flattenSubtasks = (nodes: TaskDetailSubtask[]) => {
interface TaskSubtaskProgressTagProps {
currentIdentifier?: string;
onRequestSubtasks?: () => Promise<TaskDetailSubtask[]>;
- onSubtaskClick?: (identifier: string, assigneeAgentId?: string) => void;
+ onSubtaskClick?: (identifier: string, assigneeAgentId?: string, name?: string) => void;
progress?: TaskSubtaskProgress;
subtasks?: TaskDetailSubtask[];
}
@@ -143,7 +143,11 @@ const TaskSubtaskProgressTag = memo<TaskSubtaskProgressTagProps>(
</Flexbox>
),
onClick: () =>
- onSubtaskClick?.(subtask.task.identifier, subtask.task.assignee?.id ?? undefined),
+ onSubtaskClick?.(
+ subtask.task.identifier,
+ subtask.task.assignee?.id ?? undefined,
+ subtask.task.name ?? undefined,
+ ),
};
}) as DropdownMenuProps['items'];
diff --git a/src/features/AgentTasks/features/useTaskItemContextMenu.tsx b/src/features/AgentTasks/features/useTaskItemContextMenu.tsx
index 08630747e15..dd3c9de435d 100644
--- a/src/features/AgentTasks/features/useTaskItemContextMenu.tsx
+++ b/src/features/AgentTasks/features/useTaskItemContextMenu.tsx
@@ -44,6 +44,8 @@ export interface TaskContextMenuTarget {
assigneeAgentId?: string | null;
assigneeUserId?: string | null;
identifier: string;
+ /** Only feeds the copied link's readable slug tail. */
+ name?: string | null;
priority?: number | null;
status: string;
}
@@ -139,6 +141,7 @@ export const useTaskContextMenuActions = (
taskDetailPath(
task.identifier,
routeScope === 'agent' ? (task.assigneeAgentId ?? undefined) : undefined,
+ task.name,
),
activeWorkspaceSlug,
)}`;
diff --git a/src/features/AgentTasks/index.tsx b/src/features/AgentTasks/index.tsx
index 51e6c19660e..4f3d3e655c4 100644
--- a/src/features/AgentTasks/index.tsx
+++ b/src/features/AgentTasks/index.tsx
@@ -1,5 +1,6 @@
export {
AgentScopedTaskDetailPage,
+ RoutedTaskDetailPage,
TaskDetailPage,
TaskDetailSections,
TaskDetailSkeleton,
diff --git a/src/features/AgentTasks/shared/Breadcrumb.test.tsx b/src/features/AgentTasks/shared/Breadcrumb.test.tsx
index 2acb74d2fdc..42a2b2b359a 100644
--- a/src/features/AgentTasks/shared/Breadcrumb.test.tsx
+++ b/src/features/AgentTasks/shared/Breadcrumb.test.tsx
@@ -73,9 +73,12 @@ describe('Breadcrumb', () => {
expect(screen.getByRole('link', { name: 'T-parent' })).toHaveAttribute(
'href',
- '/agent/agt_parent/task/T-parent',
+ '/agent/agt_parent/task/T-parent/parent-task',
+ );
+ expect(screen.getByRole('link', { name: 'T-root' })).toHaveAttribute(
+ 'href',
+ '/task/T-root/root-task',
);
- expect(screen.getByRole('link', { name: 'T-root' })).toHaveAttribute('href', '/task/T-root');
});
it('falls back to the global route when an ancestor owner is unknown', () => {
@@ -93,7 +96,7 @@ describe('Breadcrumb', () => {
expect(screen.getByRole('link', { name: 'T-parent' })).toHaveAttribute(
'href',
- '/task/T-parent',
+ '/task/T-parent/parent-task',
);
});
});
diff --git a/src/features/AgentTasks/shared/Breadcrumb.tsx b/src/features/AgentTasks/shared/Breadcrumb.tsx
index 740fbd3de06..635b40c287e 100644
--- a/src/features/AgentTasks/shared/Breadcrumb.tsx
+++ b/src/features/AgentTasks/shared/Breadcrumb.tsx
@@ -30,7 +30,8 @@ const Breadcrumb = memo<BreadcrumbProps>(({ taskId }) => {
const ancestors = useTaskStore(
useShallow((s) => {
if (!taskId) return [];
- const chain: Array<{ agentId?: string | null; identifier: string }> = [];
+ const chain: Array<{ agentId?: string | null; identifier: string; name?: string | null }> =
+ [];
const visited = new Set<string>([taskId]);
let cursor = s.taskDetailMap[taskId]?.parent;
while (cursor?.identifier && !visited.has(cursor.identifier)) {
@@ -39,6 +40,7 @@ const Breadcrumb = memo<BreadcrumbProps>(({ taskId }) => {
chain.push({
agentId: cursor.agentId === undefined ? detail?.agentId : cursor.agentId,
identifier: cursor.identifier,
+ name: cursor.name ?? detail?.name,
});
cursor = detail?.parent;
}
@@ -80,10 +82,10 @@ const Breadcrumb = memo<BreadcrumbProps>(({ taskId }) => {
}
: agentCrumb;
- const ancestorCrumbs = ancestors.map(({ identifier, agentId }) => ({
+ const ancestorCrumbs = ancestors.map(({ identifier, agentId, name }) => ({
key: identifier,
title: (
- <WorkspaceLink to={taskDetailPath(identifier, agentId ?? undefined)}>
+ <WorkspaceLink to={taskDetailPath(identifier, agentId ?? undefined, name)}>
<Text color={'inherit'} weight={500}>
{identifier}
</Text>
diff --git a/src/features/AgentTasks/shared/taskDetailPath.test.ts b/src/features/AgentTasks/shared/taskDetailPath.test.ts
index 3868733114b..7b99b0885eb 100644
--- a/src/features/AgentTasks/shared/taskDetailPath.test.ts
+++ b/src/features/AgentTasks/shared/taskDetailPath.test.ts
@@ -37,6 +37,19 @@ describe('taskDetailPath', () => {
expect(taskDetailPath('T-1')).toBe('/task/T-1');
});
+ it('appends a readable title slug when the title is known', () => {
+ expect(taskDetailPath('T-1', undefined, 'Ship the Thing')).toBe('/task/T-1/ship-the-thing');
+ expect(taskDetailPath('T-1', 'agt_owner', '飞书适配器支持 POST 图文消息')).toBe(
+ '/agent/agt_owner/task/T-1/飞书适配器支持-post-图文消息',
+ );
+ });
+
+ it('stays at the bare id path when the title yields no slug', () => {
+ expect(taskDetailPath('T-1', undefined, '')).toBe('/task/T-1');
+ expect(taskDetailPath('T-1', undefined, null)).toBe('/task/T-1');
+ expect(taskDetailPath('T-1', undefined, '!!! ???')).toBe('/task/T-1');
+ });
+
it('uses the route agent by default and allows explicit assignee override', () => {
mocks.params = { aid: 'agt_current' };
@@ -55,6 +68,13 @@ describe('taskDetailPath', () => {
expect(mocks.navigate).toHaveBeenCalledWith('/agent/agt_child/task/T-2');
});
+ it('carries the title through the navigate helper', () => {
+ const { result } = renderHook(() => useNavigateToTaskDetail());
+ result.current('T-2', undefined, 'Ship the Thing');
+
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-2/ship-the-thing');
+ });
+
it('prefixes the navigation target with the active workspace slug', () => {
mocks.params = { aid: 'agt_current' };
mocks.activeWorkspaceSlug = 'lobehub';
diff --git a/src/features/AgentTasks/shared/taskDetailPath.ts b/src/features/AgentTasks/shared/taskDetailPath.ts
index 52f4f5f370b..ebf7ef855d0 100644
--- a/src/features/AgentTasks/shared/taskDetailPath.ts
+++ b/src/features/AgentTasks/shared/taskDetailPath.ts
@@ -1,16 +1,28 @@
+import { taskTitleSlug } from '@lobechat/utils/taskSlug';
import { useCallback } from 'react';
import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
import { useActiveRouteParams } from '@/hooks/useActiveRouteParams';
-export const taskDetailPath = (taskId: string, agentId?: string) =>
- agentId ? `/agent/${agentId}/task/${taskId}` : `/task/${taskId}`;
+/**
+ * Path to a task detail page. `title` is optional and purely cosmetic: it adds
+ * the readable slug segment (`/task/T-501/ship-the-thing`) that the routes
+ * accept but never resolve against, so a caller without the title in hand still
+ * produces a working link.
+ */
+export const taskDetailPath = (taskId: string, agentId?: string, title?: string | null) => {
+ const base = agentId ? `/agent/${agentId}/task/${taskId}` : `/task/${taskId}`;
+ const slug = taskTitleSlug(title);
+
+ return slug ? `${base}/${slug}` : base;
+};
export const useTaskDetailPath = () => {
const { aid } = useActiveRouteParams<{ aid?: string }>();
return useCallback(
- (taskId: string, agentId?: string) => taskDetailPath(taskId, agentId ?? aid),
+ (taskId: string, agentId?: string, title?: string | null) =>
+ taskDetailPath(taskId, agentId ?? aid, title),
[aid],
);
};
@@ -20,8 +32,8 @@ export const useNavigateToTaskDetail = () => {
const getTaskDetailPath = useTaskDetailPath();
return useCallback(
- (taskId: string, agentId?: string) => {
- navigate(getTaskDetailPath(taskId, agentId));
+ (taskId: string, agentId?: string, title?: string | null) => {
+ navigate(getTaskDetailPath(taskId, agentId, title));
},
[getTaskDetailPath, navigate],
);
diff --git a/src/features/AgentTasks/shared/useCanonicalTaskSlug.test.ts b/src/features/AgentTasks/shared/useCanonicalTaskSlug.test.ts
new file mode 100644
index 00000000000..b5091ac092a
--- /dev/null
+++ b/src/features/AgentTasks/shared/useCanonicalTaskSlug.test.ts
@@ -0,0 +1,121 @@
+/**
+ * @vitest-environment happy-dom
+ */
+import { renderHook } from '@testing-library/react';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { useTaskStore } from '@/store/task';
+
+import { useCanonicalTaskSlug } from './useCanonicalTaskSlug';
+
+const mocks = vi.hoisted(() => ({
+ location: { hash: '', search: '' } as { hash: string; search: string },
+ navigate: vi.fn(),
+ params: {} as { aid?: string; slug?: string; workspaceSlug?: string },
+}));
+
+vi.mock('react-router', () => ({
+ useLocation: () => mocks.location,
+ useNavigate: () => mocks.navigate,
+ useParams: () => mocks.params,
+}));
+
+vi.mock('@/business/client/hooks/useActiveWorkspaceSlug', () => ({
+ getActiveWorkspaceSlug: () => null,
+ useActiveWorkspaceSlug: () => null,
+}));
+
+const setTaskName = (name?: string) => {
+ useTaskStore.setState({
+ taskDetailMap: name === undefined ? {} : ({ 'T-1': { name } } as never),
+ });
+};
+
+describe('useCanonicalTaskSlug', () => {
+ beforeEach(() => {
+ mocks.navigate.mockClear();
+ mocks.params = {};
+ mocks.location = { hash: '', search: '' };
+ setTaskName(undefined);
+ });
+
+ it('upgrades a bare id link to the slugged path once the title lands', () => {
+ setTaskName('Ship the Thing');
+
+ renderHook(() => useCanonicalTaskSlug('T-1'));
+
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-1/ship-the-thing', { replace: true });
+ });
+
+ it('repairs a stale slug left by a rename or a hand-edited link', () => {
+ mocks.params = { slug: 'whatever-was-pasted' };
+ setTaskName('Ship the Thing');
+
+ renderHook(() => useCanonicalTaskSlug('T-1'));
+
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-1/ship-the-thing', { replace: true });
+ });
+
+ it('keeps the workspace prefix and agent scope of the current URL', () => {
+ mocks.params = { aid: 'agt_owner', workspaceSlug: 'lobehub' };
+ setTaskName('Ship the Thing');
+
+ renderHook(() => useCanonicalTaskSlug('T-1'));
+
+ expect(mocks.navigate).toHaveBeenCalledWith(
+ '/lobehub/agent/agt_owner/task/T-1/ship-the-thing',
+ {
+ replace: true,
+ },
+ );
+ });
+
+ it('preserves the query string and hash', () => {
+ mocks.location = { hash: '#activity', search: '?tab=runs' };
+ setTaskName('Ship the Thing');
+
+ renderHook(() => useCanonicalTaskSlug('T-1'));
+
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-1/ship-the-thing?tab=runs#activity', {
+ replace: true,
+ });
+ });
+
+ it('drops a slug the title no longer supports', () => {
+ mocks.params = { slug: 'ship-the-thing' };
+ setTaskName('!!!');
+
+ renderHook(() => useCanonicalTaskSlug('T-1'));
+
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-1', { replace: true });
+ });
+
+ it('collapses the URL once the title is cleared', () => {
+ // Regression: an empty title is a resolved state, not an unloaded one —
+ // clearing the input persists `name: ''`. Treating the two alike pinned the
+ // URL to the slug of the title that had just been deleted.
+ mocks.params = { slug: 'ship-the-thing' };
+ setTaskName('');
+
+ renderHook(() => useCanonicalTaskSlug('T-1'));
+
+ expect(mocks.navigate).toHaveBeenCalledWith('/task/T-1', { replace: true });
+ });
+
+ it('leaves the URL alone while the title is still unknown', () => {
+ mocks.params = { slug: 'an-incoming-slug' };
+
+ renderHook(() => useCanonicalTaskSlug('T-1'));
+
+ expect(mocks.navigate).not.toHaveBeenCalled();
+ });
+
+ it('does not navigate when the slug already matches', () => {
+ mocks.params = { slug: 'ship-the-thing' };
+ setTaskName('Ship the Thing');
+
+ renderHook(() => useCanonicalTaskSlug('T-1'));
+
+ expect(mocks.navigate).not.toHaveBeenCalled();
+ });
+});
diff --git a/src/features/AgentTasks/shared/useCanonicalTaskSlug.ts b/src/features/AgentTasks/shared/useCanonicalTaskSlug.ts
new file mode 100644
index 00000000000..f7db5db86bf
--- /dev/null
+++ b/src/features/AgentTasks/shared/useCanonicalTaskSlug.ts
@@ -0,0 +1,59 @@
+'use client';
+
+import { taskTitleSlug } from '@lobechat/utils/taskSlug';
+import { useEffect } from 'react';
+import { useLocation } from 'react-router';
+
+import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';
+import { useActiveRouteParams } from '@/hooks/useActiveRouteParams';
+import { useTaskStore } from '@/store/task';
+
+import { taskDetailPath } from './taskDetailPath';
+
+type CanonicalTaskSlugParams = {
+ aid?: string;
+ slug?: string;
+ workspaceSlug?: string;
+};
+
+/**
+ * Keep the readable tail of a task URL in sync with the task title.
+ *
+ * Upgrades a bare `/task/:taskId` link to `/task/:taskId/:slug` once the title
+ * lands, and repairs a slug left stale by a rename or hand-edited by whoever
+ * pasted the link. The slug is cosmetic — `taskId` remains the only resolution
+ * key — so this never gates rendering or re-fetches, and `replace` keeps the
+ * correction out of the back stack.
+ *
+ * Only route components may call this: the same detail body also renders inside
+ * the chat Portal, which must not rewrite the address bar.
+ */
+export const useCanonicalTaskSlug = (taskId?: string) => {
+ const { aid, slug, workspaceSlug } = useActiveRouteParams<CanonicalTaskSlugParams>();
+ const { hash, search } = useLocation();
+ const navigate = useWorkspaceAwareNavigate();
+ // Loaded-ness and the title are read separately: an empty title is a real,
+ // resolved state (clearing the input persists `name: ''`), and folding it in
+ // with "not loaded yet" would pin the URL to the slug of the old title.
+ const isLoaded = useTaskStore((s) => (taskId ? Boolean(s.taskDetailMap[taskId]) : false));
+ const name = useTaskStore((s) => (taskId ? s.taskDetailMap[taskId]?.name : undefined));
+
+ useEffect(() => {
+ // Before the detail resolves the title is unknown — leaving the URL alone
+ // beats stripping a slug the incoming link already carried. Once it has
+ // resolved an empty title is honoured, collapsing the URL to `/task/:id`.
+ if (!taskId || !isLoaded) return;
+
+ const expected = taskTitleSlug(name);
+ if ((slug ?? '') === expected) return;
+
+ // Rebuild from the route params rather than the raw pathname so the
+ // workspace prefix and agent scope of the current URL survive untouched;
+ // `escape` then stops the workspace-aware navigate re-prefixing them.
+ const prefix = workspaceSlug ? `/${workspaceSlug}` : '';
+ navigate(`${prefix}${taskDetailPath(taskId, aid, name)}${search}${hash}`, {
+ escape: true,
+ replace: true,
+ });
+ }, [aid, hash, isLoaded, name, navigate, search, slug, taskId, workspaceSlug]);
+};
diff --git a/src/features/Conversation/Markdown/plugins/Link/internalLink.test.ts b/src/features/Conversation/Markdown/plugins/Link/internalLink.test.ts
index 8aed56c13a4..9f31feb97e6 100644
--- a/src/features/Conversation/Markdown/plugins/Link/internalLink.test.ts
+++ b/src/features/Conversation/Markdown/plugins/Link/internalLink.test.ts
@@ -36,6 +36,22 @@ describe('parseInternalLink', () => {
});
});
+ it('ignores the readable title slug tail when resolving a task link', () => {
+ expect(parseInternalLink('https://app.lobehub.com/task/T-198/ship-the-thing')).toEqual({
+ pathname: '/task/T-198/ship-the-thing',
+ taskId: 'T-198',
+ type: 'task',
+ });
+ // A CJK slug round-trips through `new URL`, so the pathname comes back
+ // percent-encoded — still a valid link to the same task.
+ expect(parseInternalLink('/agent/agent-1/task/T-199/飞书适配器')).toEqual({
+ agentId: 'agent-1',
+ pathname: '/agent/agent-1/task/T-199/%E9%A3%9E%E4%B9%A6%E9%80%82%E9%85%8D%E5%99%A8',
+ taskId: 'T-199',
+ type: 'task',
+ });
+ });
+
it('parses verification report links', () => {
expect(parseInternalLink('https://app.lobehub.com/verify/run-1')).toEqual({
pathname: '/verify/run-1',
diff --git a/src/features/DevDock/widgets/RoutePathWidget.tsx b/src/features/DevDock/widgets/RoutePathWidget.tsx
index a7af0cc47f9..3ff796034f9 100644
--- a/src/features/DevDock/widgets/RoutePathWidget.tsx
+++ b/src/features/DevDock/widgets/RoutePathWidget.tsx
@@ -8,6 +8,8 @@ import { isDesktop } from '@/const/version';
import { selectActiveTabUrl } from '@/features/Electron/shell/activeTabUrl';
import { useElectronStore } from '@/store/electron';
+import { readableRoutePath } from './routePathDisplay';
+
const styles = createStaticStyles(({ css }) => ({
path: css`
overflow: hidden;
@@ -29,7 +31,7 @@ const RoutePathWidget = memo(() => {
// The DevDock renders inside the root router, which Electron freezes at the boot
// url; the page actually on screen belongs to the active tab's per-tab router.
- const path = (isDesktop && activeTabUrl) || pathname;
+ const path = readableRoutePath((isDesktop && activeTabUrl) || pathname);
return (
<span className={styles.path} title={path}>
diff --git a/src/features/DevDock/widgets/routePathDisplay.test.ts b/src/features/DevDock/widgets/routePathDisplay.test.ts
new file mode 100644
index 00000000000..2d05e020a17
--- /dev/null
+++ b/src/features/DevDock/widgets/routePathDisplay.test.ts
@@ -0,0 +1,27 @@
+import { describe, expect, it } from 'vitest';
+
+import { readableRoutePath } from './routePathDisplay';
+
+describe('readableRoutePath', () => {
+ it('decodes a percent-encoded task slug back to its readable title', () => {
+ // What `location.pathname` returns for `/task/T-1/飞书适配器支持-post-图文消息`.
+ const encoded =
+ '/task/T-1/%E9%A3%9E%E4%B9%A6%E9%80%82%E9%85%8D%E5%99%A8%E6%94%AF%E6%8C%81-post-%E5%9B%BE%E6%96%87%E6%B6%88%E6%81%AF';
+
+ expect(readableRoutePath(encoded)).toBe('/task/T-1/飞书适配器支持-post-图文消息');
+ });
+
+ it('leaves an already-readable path untouched', () => {
+ expect(readableRoutePath('/task/T-2/ship-the-task-link-slug')).toBe(
+ '/task/T-2/ship-the-task-link-slug',
+ );
+ });
+
+ it('keeps reserved delimiters escaped so a segment cannot fake a path separator', () => {
+ expect(readableRoutePath('/task/T-3/a%2Fb')).toBe('/task/T-3/a%2Fb');
+ });
+
+ it('falls back to the raw path on a malformed escape instead of throwing', () => {
+ expect(readableRoutePath('/task/T-4/100%-done')).toBe('/task/T-4/100%-done');
+ });
+});
diff --git a/src/features/DevDock/widgets/routePathDisplay.ts b/src/features/DevDock/widgets/routePathDisplay.ts
new file mode 100644
index 00000000000..2b84ce0ba98
--- /dev/null
+++ b/src/features/DevDock/widgets/routePathDisplay.ts
@@ -0,0 +1,17 @@
+/**
+ * `location.pathname` is percent-encoded per the URL spec, so a readable slug
+ * (`/task/T-1/飞书适配器支持-post-图文消息`) reads back as `%E9%A3%9E%E4%B9%A6…`
+ * and the dock stops telling you which route you are on.
+ *
+ * `decodeURI` (not `decodeURIComponent`) keeps reserved delimiters escaped, so
+ * an encoded `%2F` inside a segment can't silently turn into a path separator
+ * and misreport the route. A malformed sequence falls back to the raw path
+ * rather than throwing and taking the dock down with it.
+ */
+export const readableRoutePath = (path: string): string => {
+ try {
+ return decodeURI(path);
+ } catch {
+ return path;
+ }
+};
diff --git a/src/features/Home/HomeModeContent.tsx b/src/features/Home/HomeModeContent.tsx
index 0bd4fe42531..5065fc73385 100644
--- a/src/features/Home/HomeModeContent.tsx
+++ b/src/features/Home/HomeModeContent.tsx
@@ -308,7 +308,7 @@ const TaskRow = memo<{ showTrigger?: boolean; task: TaskListItem }>(
return (
<Row
description={description}
- href={taskDetailPath(task.identifier)}
+ href={taskDetailPath(task.identifier, undefined, task.name)}
title={title}
// A row that is executing right now wears the shared animated running
// mark instead of the static glyph — the same liveness signal running
@@ -486,7 +486,7 @@ const HomeModeContent = memo<HomeModeContentProps>(({ inlineRail, mode, onSugges
isLogin && !recentsHidden
? recentKeys.topicList(HOME_TOPIC_RECENT_LIMIT, cacheScope, teamView ? 'team' : 'mine')
: null,
- () => recentService.getAll(HOME_TOPIC_RECENT_LIMIT, ['topic'], true, !teamView),
+ () => recentService.getAll(HOME_TOPIC_RECENT_LIMIT, ['topic'], true, !teamView, teamView),
{ revalidateOnFocus: false },
);
diff --git a/src/features/Home/Recents/ConnectedItem.tsx b/src/features/Home/Recents/ConnectedItem.tsx
index 0ea812ea5f4..85b35d4736c 100644
--- a/src/features/Home/Recents/ConnectedItem.tsx
+++ b/src/features/Home/Recents/ConnectedItem.tsx
@@ -19,7 +19,9 @@ const ConnectedItem = memo<ConnectedItemProps>(({ itemRef, queryKey, scope }) =>
if (!item) return null;
const route =
- item.type === 'task' ? taskDetailPath(item.id, item.agentId ?? undefined) : item.routePath;
+ item.type === 'task'
+ ? taskDetailPath(item.id, item.agentId ?? undefined, item.title)
+ : item.routePath;
return (
<WorkspaceLink style={{ color: 'inherit', textDecoration: 'none' }} to={route}>
diff --git a/src/features/HomeInbox/InboxBriefCard.tsx b/src/features/HomeInbox/InboxBriefCard.tsx
index 994fd942c74..bbe1bec4af3 100644
--- a/src/features/HomeInbox/InboxBriefCard.tsx
+++ b/src/features/HomeInbox/InboxBriefCard.tsx
@@ -63,7 +63,7 @@ const InboxBriefCard = memo<InboxBriefCardProps>(({ bare, brief }) => {
const openTask = () => {
if (!brief.taskId) return;
- navigate(taskDetailPath(brief.taskId, brief.agentId ?? undefined));
+ navigate(taskDetailPath(brief.taskId, brief.agentId ?? undefined, brief.taskName));
};
const content = (
diff --git a/src/features/HomeInbox/scopeTogglePlacement.test.ts b/src/features/HomeInbox/scopeTogglePlacement.test.ts
index 12a5eef300b..012e07b150a 100644
--- a/src/features/HomeInbox/scopeTogglePlacement.test.ts
+++ b/src/features/HomeInbox/scopeTogglePlacement.test.ts
@@ -30,4 +30,24 @@ describe('resolveScopeToggleSection', () => {
expect(filterTopicsForInboxScope(topics, 'me', false)).toEqual([topics[0]]);
expect(filterTopicsForInboxScope(topics, 'me', true)).toEqual(topics);
});
+
+ it('keeps private-agent conversations out of the team scope, including the viewer own', () => {
+ const topics = [
+ { id: 'shared', parentVisibility: 'public', userId: 'teammate' },
+ { id: 'mine-private', parentVisibility: 'private', userId: 'me' },
+ { id: 'their-private', parentVisibility: 'private', userId: 'teammate' },
+ { id: 'legacy-parentless', parentVisibility: null, userId: 'me' },
+ ];
+
+ expect(filterTopicsForInboxScope(topics, 'me', true)).toEqual([topics[0], topics[3]]);
+ });
+
+ it('keeps the viewer own private conversations in the mine scope', () => {
+ const topics = [
+ { id: 'mine-private', parentVisibility: 'private', userId: 'me' },
+ { id: 'their-private', parentVisibility: 'private', userId: 'teammate' },
+ ];
+
+ expect(filterTopicsForInboxScope(topics, 'me', false)).toEqual([topics[0]]);
+ });
});
diff --git a/src/features/HomeInbox/scopeTogglePlacement.ts b/src/features/HomeInbox/scopeTogglePlacement.ts
index a490d788212..cfd4af4ab68 100644
--- a/src/features/HomeInbox/scopeTogglePlacement.ts
+++ b/src/features/HomeInbox/scopeTogglePlacement.ts
@@ -39,8 +39,22 @@ export const resolveInboxScopeToggleSection = ({
preferUnread,
});
-export const filterTopicsForInboxScope = <T extends { userId?: string }>(
+/**
+ * Narrow the workspace-wide inbox feed to one scope.
+ *
+ * - `team`: what the workspace is working on. A topic owned by a PRIVATE
+ * agent/group is a personal conversation and never belongs here — not even
+ * the viewer's own, which is how a private agent's topic used to show up
+ * under the team tab.
+ * - `mine`: the viewer's own rows, private conversations included.
+ */
+export const filterTopicsForInboxScope = <
+ T extends { parentVisibility?: string | null; userId?: string },
+>(
topics: readonly T[],
myId: string | undefined,
teamView: boolean,
-): T[] => (teamView ? [...topics] : topics.filter((topic) => topic.userId === myId));
+): T[] =>
+ teamView
+ ? topics.filter((topic) => topic.parentVisibility !== 'private')
+ : topics.filter((topic) => topic.userId === myId);
diff --git a/src/features/PageEditor/Header/useMenu.tsx b/src/features/PageEditor/Header/useMenu.tsx
index 157b114032a..4df31878890 100644
--- a/src/features/PageEditor/Header/useMenu.tsx
+++ b/src/features/PageEditor/Header/useMenu.tsx
@@ -80,6 +80,11 @@ export const useMenu = (options: UseMenuOptions = {}): { menuItems: any[] } => {
transferLabel: t('pageEditor.menu.move'),
}) as DropdownItem[] | null;
+ // Set when the page is open from the library overlay; the metadata stamp
+ // covers the same page reached from the Pages route.
+ const openedFromLibraryId = usePageEditorStore((s) => s.knowledgeBaseId);
+ const isInLibrary = Boolean(openedFromLibraryId || pageDocument?.metadata?.knowledgeBaseId);
+
const publishPageToWorkspace = usePageStore((s) => s.publishPageToWorkspace);
const setPageVisibility = usePageStore((s) => s.setPageVisibility);
const canPublish = Boolean(
@@ -155,7 +160,7 @@ export const useMenu = (options: UseMenuOptions = {}): { menuItems: any[] } => {
if (!canMakePrivate || !documentId) return;
confirmModal({
cancelText: t('cancel', { ns: 'common' }),
- content: <VisibilityConfirmContent variant="makePrivate" />,
+ content: <VisibilityConfirmContent inLibrary={isInLibrary} variant="makePrivate" />,
okButtonProps: { danger: true },
okText: t('continue', { ns: 'common' }),
onOk: async () => {
@@ -169,7 +174,7 @@ export const useMenu = (options: UseMenuOptions = {}): { menuItems: any[] } => {
},
title: t('makePrivate.confirm.title', { ns: 'common' }),
});
- }, [canMakePrivate, documentId, setPageVisibility, t]);
+ }, [canMakePrivate, documentId, isInLibrary, setPageVisibility, t]);
const handleExportMarkdown = useCallback(async () => {
const state = storeApi.getState();
diff --git a/src/features/Portal/TaskDetail/Header.tsx b/src/features/Portal/TaskDetail/Header.tsx
index 33537ce11c6..d5b85fdebdb 100644
--- a/src/features/Portal/TaskDetail/Header.tsx
+++ b/src/features/Portal/TaskDetail/Header.tsx
@@ -23,10 +23,14 @@ const TaskDetailHeader = memo(() => {
const agentId = useTaskStore((state) =>
taskId ? (state.taskDetailMap[taskId]?.agentId ?? undefined) : undefined,
);
+ const taskName = useTaskStore((state) =>
+ taskId ? (state.taskDetailMap[taskId]?.name ?? undefined) : undefined,
+ );
const pageUrl = getTaskDetailPageUrl({
agentId,
appOrigin,
taskId,
+ title: taskName,
workspaceSlug: activeWorkspaceSlug,
});
diff --git a/src/features/Portal/TaskDetail/url.test.ts b/src/features/Portal/TaskDetail/url.test.ts
index bdc06c38835..3423d431e20 100644
--- a/src/features/Portal/TaskDetail/url.test.ts
+++ b/src/features/Portal/TaskDetail/url.test.ts
@@ -20,6 +20,17 @@ describe('getTaskDetailPageUrl', () => {
);
});
+ it('appends the readable title slug when a title is known', () => {
+ expect(
+ getTaskDetailPageUrl({
+ appOrigin: 'https://app.example.com',
+ taskId: 'T-245',
+ title: '飞书适配器支持 POST 图文消息',
+ workspaceSlug: 'lobehub',
+ }),
+ ).toBe('https://app.example.com/lobehub/task/T-245/飞书适配器支持-post-图文消息');
+ });
+
it('returns undefined without a resolvable absolute URL', () => {
expect(getTaskDetailPageUrl({ appOrigin: 'https://app.example.com' })).toBeUndefined();
expect(getTaskDetailPageUrl({ taskId: 'T-245' })).toBeUndefined();
diff --git a/src/features/Portal/TaskDetail/url.ts b/src/features/Portal/TaskDetail/url.ts
index 36f79a7e16b..f3b0438f12a 100644
--- a/src/features/Portal/TaskDetail/url.ts
+++ b/src/features/Portal/TaskDetail/url.ts
@@ -5,6 +5,8 @@ interface TaskDetailPageUrlOptions {
agentId?: string;
appOrigin?: string;
taskId?: string;
+ /** Optional readable slug source; omitting it still yields a working link. */
+ title?: string | null;
workspaceSlug?: string | null;
}
@@ -12,10 +14,11 @@ export const getTaskDetailPageUrl = ({
agentId,
appOrigin,
taskId,
+ title,
workspaceSlug,
}: TaskDetailPageUrlOptions): string | undefined => {
if (!appOrigin || !taskId) return;
- const path = buildWorkspaceAwarePath(taskDetailPath(taskId, agentId), workspaceSlug);
+ const path = buildWorkspaceAwarePath(taskDetailPath(taskId, agentId, title), workspaceSlug);
return `${appOrigin}${path}`;
};
diff --git a/src/features/Projects/Workspace/ProjectDashboard.tsx b/src/features/Projects/Workspace/ProjectDashboard.tsx
index 077c1e19f64..a1f10f68e5e 100644
--- a/src/features/Projects/Workspace/ProjectDashboard.tsx
+++ b/src/features/Projects/Workspace/ProjectDashboard.tsx
@@ -20,6 +20,7 @@ import { useTranslation } from 'react-i18next';
import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
import AsyncError from '@/components/AsyncError';
import { ArticleSkeleton } from '@/components/Skeleton';
+import { taskDetailPath } from '@/features/AgentTasks/shared/taskDetailPath';
import NavItem from '@/features/NavPanel/components/NavItem';
import {
getProjectAcceptancePath,
@@ -246,7 +247,7 @@ const ProjectDashboard = memo<ProjectDashboardProps>(({ detail, projectId }) =>
{t(`goals.status.${task.status}`, { defaultValue: task.status })}
</Tag>
}
- onClick={() => navigate(`/task/${task.id}`)}
+ onClick={() => navigate(taskDetailPath(task.id, undefined, task.name))}
/>
))
)}
diff --git a/src/features/RecommendTaskTemplates/useTaskTemplateCreate.ts b/src/features/RecommendTaskTemplates/useTaskTemplateCreate.ts
index b7129d6640c..29b5d380558 100644
--- a/src/features/RecommendTaskTemplates/useTaskTemplateCreate.ts
+++ b/src/features/RecommendTaskTemplates/useTaskTemplateCreate.ts
@@ -87,7 +87,11 @@ export const useTaskTemplateCreate = ({
onCreated(template.id);
if (createdTask?.identifier) {
navigate(
- taskDetailPath(createdTask.identifier, createdTask.assigneeAgentId ?? inboxAgentId),
+ taskDetailPath(
+ createdTask.identifier,
+ createdTask.assigneeAgentId ?? inboxAgentId,
+ createdTask.name,
+ ),
);
}
} catch (error) {
diff --git a/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.tsx b/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.tsx
index e7906e6909a..e711a51132c 100644
--- a/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.tsx
+++ b/src/features/ResourceManager/components/Explorer/ItemDropdown/useFileItemDropdown.tsx
@@ -328,7 +328,7 @@ export const useFileItemDropdown = ({
domEvent.stopPropagation();
confirmModal({
cancelText: t('cancel', { ns: 'common' }),
- content: <VisibilityConfirmContent variant="makePrivate" />,
+ content: <VisibilityConfirmContent inLibrary={isInLibrary} variant="makePrivate" />,
okButtonProps: { danger: true },
okText: t('continue', { ns: 'common' }),
title: t('makePrivate.confirm.title', { ns: 'common' }),
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemName.tsx b/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemName.tsx
index fa87f2602cb..f3350c8bfbd 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemName.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListItem/FileListItemName.tsx
@@ -1,6 +1,6 @@
-import { Center, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
+import { Center, Flexbox, Icon, stopPropagation, Tooltip } from '@lobehub/ui';
import { Input } from 'antd';
-import { FileText, FolderIcon } from 'lucide-react';
+import { FileText, FolderIcon, LockIcon } from 'lucide-react';
import FileIcon from '@/components/FileIcon';
@@ -14,11 +14,18 @@ interface FileListItemNameProps {
inputRef: any;
isFolder: boolean;
isPage: boolean;
+ /**
+ * Private to its creator, so no other workspace member can open it. A library
+ * mixes both scopes (the Resources mode filter is deliberately skipped inside
+ * one), which is exactly where the distinction needs to be visible.
+ */
+ isPrivate?: boolean;
isRenaming: boolean;
name: string;
onRenameCancel: () => void;
onRenameConfirm: () => void;
onRenamingValueChange: (value: string) => void;
+ privateTooltip: string;
renamingValue: string;
}
@@ -29,11 +36,13 @@ const FileListItemName = ({
inputRef,
isFolder,
isPage,
+ isPrivate,
isRenaming,
name,
onRenameCancel,
onRenameConfirm,
onRenamingValueChange,
+ privateTooltip,
renamingValue,
}: FileListItemNameProps) => (
<Flexbox horizontal align={'center'} className={styles.nameContainer}>
@@ -42,7 +51,13 @@ const FileListItemName = ({
justify={'center'}
style={{ fontSize: 24, marginInline: 8, width: 24 }}
>
- {isFolder ? (
+ {isPrivate ? (
+ <Tooltip title={privateTooltip}>
+ <Center height={24} width={24}>
+ <Icon icon={LockIcon} size={24} />
+ </Center>
+ </Tooltip>
+ ) : isFolder ? (
<Icon icon={FolderIcon} size={24} />
) : isPage ? (
emoji ? (
diff --git a/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx b/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx
index 002ad6bb09d..bc1e8588d95 100644
--- a/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx
+++ b/src/features/ResourceManager/components/Explorer/ListView/ListItem/index.tsx
@@ -6,6 +6,7 @@ import { memo, useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { shallow } from 'zustand/shallow';
+import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
import { useResourceManagerStore } from '@/features/ResourceManager/store';
import { isExplorerItemSelected } from '@/features/ResourceManager/store/selectors';
import { fileManagerSelectors, getChunkTargetId, useFileStore } from '@/store/file';
@@ -159,7 +160,7 @@ const FileListItem = ({
userId,
visibility,
}: FileListItemProps) => {
- const { t } = useTranslation(['components', 'file']);
+ const { t } = useTranslation(['components', 'file', 'chat']);
const uploaderName =
uploader?.fullName || uploader?.username || (uploader?.id ? uploader.id.slice(0, 8) : '');
const chunkTargetId = getChunkTargetId({ fileId, id });
@@ -194,6 +195,11 @@ const FileListItem = ({
name,
sourceType,
});
+
+ // Personal mode has no second audience, so `visibility` carries no meaning
+ // there and every row would wear a lock for nothing.
+ const activeWorkspaceId = useActiveWorkspaceId();
+ const isPrivate = Boolean(activeWorkspaceId) && visibility === 'private';
const {
handleDragEnd,
handleDragLeave,
@@ -326,8 +332,10 @@ const FileListItem = ({
inputRef={inputRef}
isFolder={isFolder}
isPage={isPage}
+ isPrivate={isPrivate}
isRenaming={isRenaming}
name={name}
+ privateTooltip={t('resources.visibility.privateTooltip', { ns: 'chat' })}
renamingValue={renamingValue}
onRenameCancel={handleRenameCancel}
onRenameConfirm={handleRenameConfirm}
diff --git a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/index.tsx b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/index.tsx
index aa82dd8052b..11f000de818 100644
--- a/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/index.tsx
+++ b/src/features/ResourceManager/components/Explorer/MasonryView/MasonryItem/index.tsx
@@ -3,12 +3,14 @@ import {
CUSTOM_FOLDER_FILE_TYPE,
MARKDOWN_MIME_TYPES,
} from '@lobechat/const';
-import { stopPropagation } from '@lobehub/ui';
+import { Icon, stopPropagation, Tooltip } from '@lobehub/ui';
import { Checkbox } from '@lobehub/ui/base-ui';
import { createStaticStyles, cssVar, cx } from 'antd-style';
+import { LockIcon } from 'lucide-react';
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
+import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
import {
getTransparentDragImage,
useDragActive,
@@ -123,6 +125,28 @@ const styles = createStaticStyles(({ css }) => ({
content: css`
position: relative;
`,
+ /**
+ * Always visible, unlike the hover-only checkbox and dropdown above it: the
+ * point of the badge is that a private card is recognisable at a glance while
+ * scanning a library that mixes both scopes.
+ */
+ privateBadge: css`
+ position: absolute;
+ z-index: 2;
+ inset-block-end: 8px;
+ inset-inline-start: 8px;
+
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ padding: 4px;
+ border-radius: ${cssVar.borderRadius};
+
+ color: ${cssVar.colorTextSecondary};
+
+ background: ${cssVar.colorBgMask};
+ `,
contentWithPadding: css`
padding: 12px;
`,
@@ -194,7 +218,7 @@ const MasonryFileItem = memo<MasonryFileItemProps>(
userId,
visibility,
}) => {
- const { t } = useTranslation('components');
+ const { t } = useTranslation(['components', 'chat']);
const chunkTargetId = getChunkTargetId({ fileId, id });
const isDragActive = useDragActive();
const setCurrentDrag = useSetCurrentDrag();
@@ -326,6 +350,11 @@ const MasonryFileItem = memo<MasonryFileItemProps>(
visibility,
});
+ // Personal mode has no second audience, so `visibility` carries no meaning
+ // there and every card would wear a lock for nothing.
+ const activeWorkspaceId = useActiveWorkspaceId();
+ const isPrivate = Boolean(activeWorkspaceId) && visibility === 'private';
+
return (
<div
data-drop-target-id={id}
@@ -369,6 +398,14 @@ const MasonryFileItem = memo<MasonryFileItemProps>(
<DropdownMenu items={menuItems} />
</div>
+ {isPrivate && (
+ <Tooltip title={t('resources.visibility.privateTooltip', { ns: 'chat' })}>
+ <div className={styles.privateBadge}>
+ <Icon icon={LockIcon} size={14} />
+ </div>
+ </Tooltip>
+ )}
+
<div
className={cx(
styles.content,
diff --git a/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNode.tsx b/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNode.tsx
index ee99e2c4d0b..d6b3d877b98 100644
--- a/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNode.tsx
+++ b/src/features/ResourceManager/components/LibraryHierarchy/HierarchyNode.tsx
@@ -2,14 +2,16 @@
import { CaretDownFilled, LoadingOutlined } from '@ant-design/icons';
import { DERIVED_DOCUMENT_SOURCE_TYPE } from '@lobechat/const';
-import { Block, Flexbox, Icon, stopPropagation } from '@lobehub/ui';
+import { Block, Flexbox, Icon, stopPropagation, Tooltip } from '@lobehub/ui';
import { ActionIcon, toast } from '@lobehub/ui/base-ui';
import { Input } from 'antd';
import { cx } from 'antd-style';
-import { FileText, FolderIcon, FolderOpenIcon } from 'lucide-react';
+import { FileText, FolderIcon, FolderOpenIcon, LockIcon } from 'lucide-react';
import * as m from 'motion/react-m';
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
+import { useTranslation } from 'react-i18next';
+import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';
import FileIcon from '@/components/FileIcon';
import { PAGE_FILE_TYPE } from '@/features/ResourceManager/constants';
import {
@@ -59,6 +61,12 @@ export const HierarchyNode = memo<HierarchyNodeProps>(
const renameItem = useTreeStore((s) => s.renameItem);
+ const { t } = useTranslation('chat');
+ // Personal mode has no second audience, so `visibility` carries no meaning
+ // there and every node would wear a lock for nothing.
+ const activeWorkspaceId = useActiveWorkspaceId();
+ const isPrivate = Boolean(activeWorkspaceId) && item.visibility === 'private';
+
const [isRenaming, setIsRenaming] = useState(false);
const [renamingValue, setRenamingValue] = useState(item.name);
const inputRef = useRef<any>(null);
@@ -417,7 +425,11 @@ export const HierarchyNode = memo<HierarchyNodeProps>(
gap={8}
style={{ minHeight: 28, minWidth: 0, overflow: 'hidden' }}
>
- {isPage ? (
+ {isPrivate ? (
+ <Tooltip title={t('resources.visibility.privateTooltip', { ns: 'chat' })}>
+ <Icon icon={LockIcon} size={18} />
+ </Tooltip>
+ ) : isPage ? (
emoji ? (
<span style={{ fontSize: 18 }}>{emoji}</span>
) : (
diff --git a/src/features/VisibilityConfirmContent/index.tsx b/src/features/VisibilityConfirmContent/index.tsx
index d40b0796167..1a7fb9eadf7 100644
--- a/src/features/VisibilityConfirmContent/index.tsx
+++ b/src/features/VisibilityConfirmContent/index.tsx
@@ -6,6 +6,7 @@ import {
AlertTriangleIcon,
CheckIcon,
EyeOffIcon,
+ FolderIcon,
InfoIcon,
type LucideIcon,
UsersIcon,
@@ -16,6 +17,13 @@ import { useTranslation } from 'react-i18next';
export type VisibilityConfirmVariant = 'makePrivate' | 'publish';
export interface VisibilityConfirmContentProps {
+ /**
+ * The resource sits in a library. Going private does not pull it out of one
+ * — the row stays filed where the author put it and simply stops resolving
+ * for everyone else — so the dialog has to say that, or the author is left
+ * guessing whether their library just lost an entry.
+ */
+ inLibrary?: boolean;
variant: VisibilityConfirmVariant;
}
@@ -30,9 +38,16 @@ interface Item {
}
interface VariantConfig {
- items: readonly [Item, Item, Item];
+ items: readonly Item[];
}
+/** Appended to `makePrivate` when the caller says the resource is filed in a library. */
+const LIBRARY_ITEM: Item = {
+ icon: FolderIcon,
+ key: 'visibilityConfirm.makePrivate.itemLibrary',
+ tone: 'info',
+};
+
// 3 consequences per direction — the order matters (immediate → follow-on →
// irreversible tail), and mirrors the tone escalation across the pair. Keep
// the "loaded content can't be pulled back" bullet last in both variants so
@@ -152,14 +167,20 @@ const rowIconClass = (tone: Tone) => {
* carried by the destructive vs primary button colour, so we don't need a
* separate hero icon here.
*/
-const VisibilityConfirmContent = memo<VisibilityConfirmContentProps>(({ variant }) => {
+const VisibilityConfirmContent = memo<VisibilityConfirmContentProps>(({ inLibrary, variant }) => {
const { t } = useTranslation('common');
const config = CONFIG[variant];
const irreversibleSuffix = t('visibilityConfirm.irreversible');
+ // Second-to-last, so the irreversible tail keeps the closing position it
+ // holds in both variants.
+ const items =
+ variant === 'makePrivate' && inLibrary
+ ? [...config.items.slice(0, -1), LIBRARY_ITEM, ...config.items.slice(-1)]
+ : config.items;
return (
<ul className={styles.list}>
- {config.items.map((item) => {
+ {items.map((item) => {
const ItemIcon = item.icon;
return (
<li className={styles.row} key={item.key}>
diff --git a/src/features/Work/descriptors.tsx b/src/features/Work/descriptors.tsx
index e6b8762c235..24bcbdc53db 100644
--- a/src/features/Work/descriptors.tsx
+++ b/src/features/Work/descriptors.tsx
@@ -43,7 +43,7 @@ const PROVIDER_ICONS: Record<WorkSkillProvider, WorkIcon> = {
*/
export type WorkOpenTarget =
| { agentDocumentId?: string; documentId: string; kind: 'document' }
- | { identifier: string; kind: 'task' }
+ | { identifier: string; kind: 'task'; name?: string | null }
| { kind: 'external'; url: string }
/**
* In-app preview of a cloud-persisted file (the FilePreview chat portal).
@@ -243,7 +243,7 @@ export const WORK_TYPE_DESCRIPTORS: {
// nullable on the base type, so drop the affordance when both are missing.
getOpenTarget: (item) => {
const identifier = item.task.identifier ?? item.resourceId;
- return identifier ? { identifier, kind: 'task' } : null;
+ return identifier ? { identifier, kind: 'task', name: item.task.name } : null;
},
getTitle: (item) => item.task.name,
},
diff --git a/src/features/WorkGallery/useOpenWork.ts b/src/features/WorkGallery/useOpenWork.ts
index c0c0f60f15d..955c79b9817 100644
--- a/src/features/WorkGallery/useOpenWork.ts
+++ b/src/features/WorkGallery/useOpenWork.ts
@@ -35,7 +35,7 @@ export const useOpenWork = () => {
return;
}
case 'task': {
- navigate(taskDetailPath(openTarget.identifier));
+ navigate(taskDetailPath(openTarget.identifier, undefined, openTarget.name));
}
}
},
diff --git a/src/routes/(main)/task/[taskId]/index.tsx b/src/routes/(main)/task/[taskId]/index.tsx
index cebead966c2..08a525ed630 100644
--- a/src/routes/(main)/task/[taskId]/index.tsx
+++ b/src/routes/(main)/task/[taskId]/index.tsx
@@ -2,14 +2,14 @@
import { useParams } from 'react-router';
-import { TaskDetailPage } from '@/features/AgentTasks';
+import { RoutedTaskDetailPage } from '@/features/AgentTasks';
const TaskDetailRoute = () => {
const { taskId } = useParams<{ taskId?: string }>();
if (!taskId) return null;
- return <TaskDetailPage taskId={taskId} />;
+ return <RoutedTaskDetailPage taskId={taskId} />;
};
export default TaskDetailRoute;
diff --git a/src/services/recent/index.ts b/src/services/recent/index.ts
index f203aa70e96..5280e909e1b 100644
--- a/src/services/recent/index.ts
+++ b/src/services/recent/index.ts
@@ -13,10 +13,13 @@ class RecentService {
types?: readonly RecentItem['type'][],
withTopicPreview?: boolean,
mineOnly?: boolean,
+ /** Drop topics owned by a private agent/group — the team tab's feed. */
+ sharedOnly?: boolean,
): Promise<RecentItem[]> => {
return lambdaClient.recent.getAll.query({
limit,
mineOnly,
+ sharedOnly,
types: types ? [...types] : undefined,
withTopicPreview,
});
diff --git a/src/services/task.ts b/src/services/task.ts
index 9f3a95ea928..ec3a1149714 100644
--- a/src/services/task.ts
+++ b/src/services/task.ts
@@ -46,6 +46,8 @@ class TaskService {
}>;
parentTaskId?: string | null;
projectId?: string;
+ /** "My tasks" narrowing: assigned to the caller, or created by them. */
+ scope?: 'assigned' | 'created';
visibility?: 'private' | 'public';
}) =>
lambdaClient.task.groupList.query({
diff --git a/src/services/topic/index.ts b/src/services/topic/index.ts
index f16c6d61bba..c78f63f5c10 100644
--- a/src/services/topic/index.ts
+++ b/src/services/topic/index.ts
@@ -24,6 +24,12 @@ import {
export interface TopicListItem extends ChatTopic {
agentId?: string | null;
lastAssistantMessage?: string | null;
+ /**
+ * Visibility of the owning agent/group. `'private'` conversations stay out of
+ * team listings even when the viewer created them; null for legacy rows with
+ * no resolvable parent.
+ */
+ parentVisibility?: 'private' | 'public' | null;
/**
* Start time of the topic's current run (latest top-level running
* `agent_operations` row). Only set for `running` topics; null when the run
diff --git a/src/spa/router/desktopRouter.shared.tsx b/src/spa/router/desktopRouter.shared.tsx
index c2e2e8bfceb..4c756e3d079 100644
--- a/src/spa/router/desktopRouter.shared.tsx
+++ b/src/spa/router/desktopRouter.shared.tsx
@@ -344,7 +344,10 @@ export const sharedMainAreaChildren: RouteObject[] = [
'Desktop > Chat > Task Detail',
),
handle: { meta: taskRouteMeta },
- path: 'task/:taskId',
+ // `:slug?` is the readable title tail (Linear-style). It is never
+ // resolved against — `:taskId` alone identifies the task — so the
+ // optional segment keeps every pre-slug link working.
+ path: 'task/:taskId/:slug?',
},
],
element: dynamicLayout(
@@ -1061,7 +1064,8 @@ export const sharedMainAreaChildren: RouteObject[] = [
'Desktop > Task Detail',
),
handle: { meta: taskRouteMeta },
- path: ':taskId',
+ // Optional readable title tail — see the agent-scoped route above.
+ path: ':taskId/:slug?',
},
],
errorElement: <ErrorBoundary resetPath="../tasks" />,
diff --git a/src/spa/router/mobileRouter.config.tsx b/src/spa/router/mobileRouter.config.tsx
index 798888612b6..9298cfe544e 100644
--- a/src/spa/router/mobileRouter.config.tsx
+++ b/src/spa/router/mobileRouter.config.tsx
@@ -261,7 +261,8 @@ export const sharedMainAreaChildren: RouteObject[] = [
() => import('@/routes/(main)/task/[taskId]'),
'Mobile > Task Detail',
),
- path: ':taskId',
+ // Optional readable title tail; `:taskId` alone resolves the task.
+ path: ':taskId/:slug?',
},
],
errorElement: <ErrorBoundary resetPath="../tasks" />,
@@ -274,7 +275,7 @@ export const sharedMainAreaChildren: RouteObject[] = [
() => import('@/routes/(main)/agent/task/[taskId]'),
'Mobile > Agent Task Detail',
),
- path: ':aid/task/:taskId',
+ path: ':aid/task/:taskId/:slug?',
},
],
errorElement: <ErrorBoundary resetPath="../tasks" />,
diff --git a/src/spa/router/mobileRouter.test.tsx b/src/spa/router/mobileRouter.test.tsx
index ec34dfe26e9..c15c302704c 100644
--- a/src/spa/router/mobileRouter.test.tsx
+++ b/src/spa/router/mobileRouter.test.tsx
@@ -37,8 +37,10 @@ describe('mobileRouter task routes', () => {
expect(source).toContain("import('@/routes/(main)/agent/task/[taskId]')");
expect(source).toContain("path: 'tasks'");
expect(source).toContain("path: 'task'");
- expect(source).toContain("path: ':taskId'");
- expect(source).toContain("path: ':aid/task/:taskId'");
+ // The `:slug?` tail is the readable title segment; it never resolves the
+ // task, so pre-slug links keep matching the same route.
+ expect(source).toContain("path: ':taskId/:slug?'");
+ expect(source).toContain("path: ':aid/task/:taskId/:slug?'");
expect(source).not.toContain("import('@/routes/(main)/tasks/_layout')");
});
});
diff --git a/src/store/task/slices/list/action.test.ts b/src/store/task/slices/list/action.test.ts
index 9eced8805d6..ad616ac011c 100644
--- a/src/store/task/slices/list/action.test.ts
+++ b/src/store/task/slices/list/action.test.ts
@@ -120,6 +120,58 @@ describe('TaskListSliceAction', () => {
});
});
+ it('keys and requests the "My tasks" board apart from the all-agents board', async () => {
+ const { useClientDataSWR } = await import('@/libs/swr');
+ const { taskService } = await import('@/services/task');
+
+ renderHook(() =>
+ useTaskStore.getState().useFetchTaskGroupList({
+ automated: false,
+ groupBy: 'status',
+ scope: 'assigned',
+ }),
+ );
+
+ // Its own scope key, so the `assigned` / `created` sub-views and the
+ // all-agents board can never serve each other's groups.
+ expect(useClientDataSWR).toHaveBeenCalledWith(
+ ['task:groupList', '__mine__:assigned', 'all', { automated: false }],
+ expect.any(Function),
+ expect.any(Object),
+ );
+ expect(useTaskStore.getState().listAgentId).toBe('__mine__:assigned');
+
+ const fetcher = vi.mocked(useClientDataSWR).mock.calls[0][1] as () => unknown;
+ await fetcher();
+ expect(taskService.groupList).toHaveBeenCalledWith(
+ expect.objectContaining({ assigneeAgentId: undefined, scope: 'assigned' }),
+ );
+ });
+
+ it('ignores the visibility chip on the "My tasks" board, like its list view does', async () => {
+ const { useClientDataSWR } = await import('@/libs/swr');
+ const { taskService } = await import('@/services/task');
+ // The chip is not offered inside "My tasks"; a value left over from the
+ // ordinary tab must not narrow the board, or the list ↔ board switch
+ // would silently change the row set.
+ useTaskStore.setState({ listVisibility: 'private' });
+
+ renderHook(() =>
+ useTaskStore.getState().useFetchTaskGroupList({ groupBy: 'status', scope: 'created' }),
+ );
+
+ expect(useClientDataSWR).toHaveBeenCalledWith(
+ ['task:groupList', '__mine__:created', 'all'],
+ expect.any(Function),
+ expect.any(Object),
+ );
+ const fetcher = vi.mocked(useClientDataSWR).mock.calls[0][1] as () => unknown;
+ await fetcher();
+ expect(taskService.groupList).toHaveBeenCalledWith(
+ expect.objectContaining({ scope: 'created', visibility: undefined }),
+ );
+ });
+
it('resets a changed group query scope after render and gates stale data meanwhile', () => {
useTaskStore.setState({
isTaskGroupListInit: true,
@@ -309,6 +361,28 @@ describe('TaskListSliceAction', () => {
expect(state.isTaskListInit).toBe(false);
});
+ it('leaves the shared scope alone while the list query is disabled', () => {
+ // The "My tasks" board keeps this page's all-agents list mounted but
+ // disabled. `listAgentId` is one shared slot that the board's group
+ // query owns while it is up — a disabled list query claiming it would
+ // wipe `taskGroups` on every render.
+ useTaskStore.setState({
+ isTaskGroupListInit: true,
+ listAgentId: '__mine__:assigned',
+ taskGroups: [{ key: 'backlog', tasks: [{ identifier: 'T-1' }], total: 1 }] as any,
+ });
+
+ renderHook(() =>
+ useTaskStore.getState().useFetchTaskList({ allAgents: true, enabled: false }),
+ );
+
+ expect(useTaskStore.getState()).toMatchObject({
+ isTaskGroupListInit: true,
+ listAgentId: '__mine__:assigned',
+ });
+ expect(useTaskStore.getState().taskGroups).toHaveLength(1);
+ });
+
it('resets stale task data when an embedded visibility override changes the query scope', () => {
useTaskStore.setState({
isTaskListInit: true,
diff --git a/src/store/task/slices/list/action.ts b/src/store/task/slices/list/action.ts
index ea4ee163285..93eedc993d3 100644
--- a/src/store/task/slices/list/action.ts
+++ b/src/store/task/slices/list/action.ts
@@ -21,10 +21,32 @@ import type {
*/
export const ALL_AGENTS_LIST_KEY = '__all__';
const PROJECT_LIST_KEY_PREFIX = '__project__:';
+/**
+ * Scope key of the Tasks page's "My tasks" board. Shaped like the project
+ * prefix so one `listAgentId` slot keeps every board scope apart: the SWR key,
+ * the scope-change reset and the refresh helpers all derive from it, and the
+ * `assigned` / `created` sub-views can never serve each other's groups.
+ */
+const MINE_LIST_KEY_PREFIX = '__mine__:';
const projectIdFromListKey = (key?: string) =>
key?.startsWith(PROJECT_LIST_KEY_PREFIX) ? key.slice(PROJECT_LIST_KEY_PREFIX.length) : undefined;
+const isMineListKey = (key?: string) => !!key?.startsWith(MINE_LIST_KEY_PREFIX);
+
+/**
+ * Visibility the grouped query actually runs with. "My tasks" is not offered
+ * the visibility chip and its list view (`useFetchMyTaskList`) sends no
+ * visibility at all, so its board has to ignore the chip too — otherwise a
+ * value left over from the ordinary tab would silently change the row set on
+ * the list ↔ board switch. Shared with the refresh helpers so the key they
+ * rebuild is the key the fetch registered.
+ */
+const effectiveGroupVisibility = (
+ listKey: string | undefined,
+ visibility: TaskListVisibilityFilter,
+): TaskListVisibilityFilter => (isMineListKey(listKey) ? 'all' : visibility);
+
// Default kanban groups: 5 columns
// 'scheduled' shares the 'running' column — both represent "automation in
// progress" from the user's perspective (one is mid-tick, the other is
@@ -101,7 +123,7 @@ export class TaskListSliceActionImpl {
await mutate(
taskKeys.groupList(
listAgentId,
- listVisibility,
+ effectiveGroupVisibility(listAgentId, listVisibility),
listGroupBy,
listGroupExcludeStatuses,
projectIdFromListKey(listAgentId),
@@ -161,7 +183,7 @@ export class TaskListSliceActionImpl {
mutate(
taskKeys.groupList(
listAgentId,
- listVisibility,
+ effectiveGroupVisibility(listAgentId, listVisibility),
listGroupBy,
listGroupExcludeStatuses,
projectId,
@@ -204,6 +226,11 @@ export class TaskListSliceActionImpl {
excludeStatuses?: readonly TaskStatus[];
groupBy?: TaskKanbanGroupBy;
projectId?: string;
+ /**
+ * "My tasks" board: the caller's own slice of the workspace, narrowed
+ * server-side exactly like `useFetchMyTaskList` narrows its list.
+ */
+ scope?: 'assigned' | 'created';
} = {},
) => {
const {
@@ -214,12 +241,15 @@ export class TaskListSliceActionImpl {
excludeStatuses,
groupBy = 'status',
projectId,
+ scope,
} = options;
- const effectiveKey = projectId
- ? `${PROJECT_LIST_KEY_PREFIX}${projectId}`
- : allAgents
- ? ALL_AGENTS_LIST_KEY
- : agentId;
+ const effectiveKey = scope
+ ? `${MINE_LIST_KEY_PREFIX}${scope}`
+ : projectId
+ ? `${PROJECT_LIST_KEY_PREFIX}${projectId}`
+ : allAgents
+ ? ALL_AGENTS_LIST_KEY
+ : agentId;
const excludeStatusesSignature = excludeStatuses?.length
? [...excludeStatuses].sort().join(',')
: undefined;
@@ -268,7 +298,7 @@ export class TaskListSliceActionImpl {
'useFetchTaskGroupList/syncQueryScope',
);
}, [automated, effectiveKey, excludeStatusesSignature, groupBy]);
- const listVisibility = this.#get().listVisibility;
+ const listVisibility = effectiveGroupVisibility(effectiveKey, this.#get().listVisibility);
const swr = useClientDataSWR(
enabled && effectiveKey
@@ -283,11 +313,12 @@ export class TaskListSliceActionImpl {
: null,
async () => {
return taskService.groupList({
- assigneeAgentId: allAgents ? undefined : agentId,
+ assigneeAgentId: allAgents || scope ? undefined : agentId,
...(automated === undefined ? {} : { automated }),
excludeStatuses: excludeStatuses?.length ? [...excludeStatuses] : undefined,
...(groupBy === 'status' ? { groups: DEFAULT_KANBAN_GROUPS } : { groupBy }),
projectId,
+ scope,
visibility: filterToServerVisibility(listVisibility),
});
},
@@ -299,7 +330,7 @@ export class TaskListSliceActionImpl {
current.groupListQueryAutomated !== automated ||
current.listGroupBy !== groupBy ||
current.listGroupExcludeStatuses !== excludeStatusesSignature ||
- current.listVisibility !== listVisibility
+ effectiveGroupVisibility(effectiveKey, current.listVisibility) !== listVisibility
) {
return;
}
@@ -451,7 +482,14 @@ export class TaskListSliceActionImpl {
// not temporarily inherit a previously initialized private/workspace list,
// nor the Tasks page a list narrowed by Home's automation/status filters,
// nor the list view a single kanban page posing as the complete list.
+ //
+ // Only an ENABLED query claims the scope. `listAgentId` is one shared slot
+ // and `useFetchTaskGroupList` writes it too, so a disabled list query that
+ // still claimed it would fight the board that is actually fetching: on the
+ // "My tasks" board this page keeps its (disabled) all-agents list mounted,
+ // and the two hooks alternately reset `taskGroups` to [] every render.
if (
+ enabled &&
effectiveKey &&
(listAgentId !== effectiveKey ||
listQueryVisibility !== listVisibility ||
diff --git a/src/store/tree/actions.test.ts b/src/store/tree/actions.test.ts
index 5c1cf1fd0fa..51e863aec0c 100644
--- a/src/store/tree/actions.test.ts
+++ b/src/store/tree/actions.test.ts
@@ -1,7 +1,7 @@
import { CUSTOM_FOLDER_FILE_TYPE } from '@lobechat/const';
import { beforeEach, describe, expect, it, vi } from 'vitest';
-import { sortTreeItems, toTreeItem, TreeActionImpl } from './actions';
+import { sortTreeItems, toTreeItem, toTreeItemFromResource, TreeActionImpl } from './actions';
import type { TreeState } from './types';
const {
@@ -663,3 +663,39 @@ describe('sortTreeItems', () => {
expect(sortTreeItems(rows).map((item) => item.id)).toEqual(['a', 'b']);
});
});
+
+describe('toTreeItemFromResource', () => {
+ const row = {
+ createdAt: new Date('2026-01-01T00:00:00Z'),
+ fileId: 'file-1',
+ fileType: 'custom/document',
+ id: 'docs_1',
+ metadata: { emoji: '📄' },
+ name: 'Private note',
+ parentId: null,
+ size: 12,
+ slug: 'private-note',
+ sourceType: 'document',
+ url: '',
+ userId: 'user-1',
+ visibility: 'private' as const,
+ };
+
+ it('carries the fields the sidebar and the row menu read', () => {
+ // Regression: the explorer → tree reconcile rebuilt rows from a hand-written
+ // literal that omitted these two, so every list refresh stripped the private
+ // marker off the sidebar and mis-gated publish / make-private.
+ expect(toTreeItemFromResource(row)).toMatchObject({
+ userId: 'user-1',
+ visibility: 'private',
+ });
+ });
+
+ it('keeps a workspace-shared row shared', () => {
+ expect(toTreeItemFromResource({ ...row, visibility: 'public' }).visibility).toBe('public');
+ });
+
+ it('produces the same row as the tree fetch does for the same input', () => {
+ expect(toTreeItemFromResource(row)).toEqual(toTreeItem(row));
+ });
+});
diff --git a/src/store/tree/actions.ts b/src/store/tree/actions.ts
index 5ec65200b78..b9bb5140812 100644
--- a/src/store/tree/actions.ts
+++ b/src/store/tree/actions.ts
@@ -87,6 +87,32 @@ export const toTreeItem = (item: {
visibility: item.visibility,
});
+/**
+ * Explorer row → tree row.
+ *
+ * Kept next to {@link toTreeItem} and named, rather than inlined at the
+ * subscription that reconciles the explorer list into the sidebar, because it
+ * is the one place tree rows are rebuilt from a *different* source: anything it
+ * forgets to carry is silently dropped from every row the next time the list
+ * refreshes. `visibility` and `userId` were lost that way — the sidebar stopped
+ * marking private rows and the row menu mis-gated publish / make-private.
+ */
+export const toTreeItemFromResource = (item: {
+ createdAt?: Date | string | null;
+ fileId?: string | null;
+ fileType: string;
+ id: string;
+ metadata?: Record<string, any> | null;
+ name: string;
+ parentId?: string | null;
+ size?: number | null;
+ slug?: string | null;
+ sourceType?: string;
+ url?: string;
+ userId?: string | null;
+ visibility?: 'private' | 'public' | null;
+}): TreeItem => toTreeItem(item);
+
type Setter = StoreSetter<TreeState>;
export class TreeActionImpl {
diff --git a/src/store/tree/store.ts b/src/store/tree/store.ts
index dbe9d81965c..763db621fdb 100644
--- a/src/store/tree/store.ts
+++ b/src/store/tree/store.ts
@@ -6,7 +6,7 @@ import { useFileStore } from '@/store/file';
import { createDevtools } from '../middleware/createDevtools';
import { flattenActions } from '../utils/flattenActions';
-import { toTreeItem, TreeActionImpl } from './actions';
+import { toTreeItemFromResource, TreeActionImpl } from './actions';
import { initialTreeState } from './initialState';
import type { TreeState } from './types';
@@ -36,20 +36,6 @@ useFileStore.subscribe((state) => {
const parentKey = queryParams.parentId ?? '';
useTreeStore.getState().reconcile(
parentKey,
- resourceList.map((item) =>
- toTreeItem({
- createdAt: item.createdAt,
- fileId: item.fileId,
- fileType: item.fileType,
- id: item.id,
- metadata: item.metadata,
- name: item.name,
- parentId: item.parentId,
- size: item.size,
- slug: item.slug,
- sourceType: item.sourceType,
- url: item.url,
- }),
- ),
+ resourceList.map((item) => toTreeItemFromResource(item)),
);
});