🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
✨ feat(notification): revamp inbox into notification center modal (#18432)
Rdmclin29d23d9727048
diff --git a/apps/server/src/routers/lambda/notification.ts b/apps/server/src/routers/lambda/notification.tsindex 371636077eb..6752beb3d82 100644--- a/apps/server/src/routers/lambda/notification.ts+++ b/apps/server/src/routers/lambda/notification.ts@@ -3,6 +3,7 @@ import { z } from 'zod';import { withScopedPermission } from '@/business/server/trpc-middlewares/rbacPermission';import { wsCompatProcedure } from '@/business/server/trpc-middlewares/workspaceAuth';import { NotificationModel } from '@/database/models/notification';+import { ResourceTransferRequestModel } from '@/database/models/resourceTransferRequest';import { router } from '@/libs/trpc/lambda';import { serverDatabase } from '@/libs/trpc/lambda/middleware';@@ -24,6 +25,25 @@ const notificationWriteProcedure = notificationProcedure.use(withScopedPermission('message:create'),);+/**+ * Live transfer requests rendered as inbox cards for this user — incoming+ * (recipient answers) AND outgoing (initiator may withdraw), matching what+ * `Content` renders from `listMine`. Empty in personal mode. Call this BEFORE+ * snapshotting any notification counts: `listPendingForUser` lazily expires+ * overdue transfers (settling their linked rows as read), so counting first+ * would preserve a ghost unread row for a request this very call just expired.+ */+const listLiveTransferCards = async (ctx: {+ serverDB: ConstructorParameters<typeof ResourceTransferRequestModel>[0];+ userId: string;+ workspaceId?: string | null;+}) => {+ if (!ctx.workspaceId) return [];++ const transferModel = new ResourceTransferRequestModel(ctx.serverDB, ctx.workspaceId);+ return transferModel.listPendingForUser(ctx.userId);+};+export const notificationRouter = router({archive: notificationWriteProcedure.input(z.object({ id: z.string() }))@@ -35,11 +55,51 @@ export const notificationRouter = router({return ctx.notificationModel.archiveAll();}),+ navigationCounts: notificationProcedure.query(async ({ ctx }) => {+ // The pending category is action-driven, not read-driven: while a+ // transfer request awaits the user, its count must keep prompting even+ // after the linked inbox row was read. Swap the linked rows out of the+ // row-based counts and count the live request cards themselves —+ // outgoing (withdrawable) cards render in the unread view too, so they+ // count the same as incoming ones.+ const cards = await listLiveTransferCards(ctx);+ const counts = await ctx.notificationModel.getNavigationCounts();+ if (cards.length === 0) return counts;++ const linked = await ctx.notificationModel.countLinkedToTransfers(+ cards.map((request) => request.id),+ );+ // Each live request renders exactly one UNREAD card, replacing+ // its linked row (when one exists) in every tally — a request whose+ // linked row is missing or archived still shows a card, so it must still+ // count, while a linked row that was read is suppressed by the card and+ // must leave the read tally it would otherwise inflate.+ const linkedRead = linked.total - linked.unread;+ const unreadDelta = cards.length - linked.unread;+ const totalDelta = cards.length - linked.total;+ const pending = counts.find((item) => item.category === 'pending');+ if (pending) {+ pending.unreadCount = Math.max(0, pending.unreadCount + unreadDelta);+ pending.readCount = Math.max(0, pending.readCount - linkedRead);+ pending.totalCount = Math.max(0, pending.totalCount + totalDelta);+ } else if (unreadDelta > 0 || totalDelta > 0) {+ counts.push({+ category: 'pending',+ readCount: 0,+ totalCount: Math.max(0, totalDelta),+ unreadCount: Math.max(0, unreadDelta),+ });+ }++ return counts;+ }),+list: notificationProcedure.input(z.object({category: z.string().optional(),cursor: z.string().optional(),+ isRead: z.boolean().optional(),limit: z.number().min(1).max(50).default(20),unreadOnly: z.boolean().optional(),}),@@ -59,7 +119,17 @@ export const notificationRouter = router({}),unreadCount: notificationProcedure.query(async ({ ctx }) => {- return ctx.notificationModel.getUnreadCount();+ // The header bell must keep prompting while a transfer awaits the user —+ // even if the linked row was read/archived or its delivery failed — so+ // apply the same live-transfer reconciliation as `navigationCounts`.+ const cards = await listLiveTransferCards(ctx);+ const unread = await ctx.notificationModel.getUnreadCount();+ if (cards.length === 0) return unread;++ const linked = await ctx.notificationModel.countLinkedToTransfers(+ cards.map((request) => request.id),+ );+ return Math.max(0, unread + cards.length - linked.unread);}),});diff --git a/locales/ar/electron.json b/locales/ar/electron.jsonindex 2586855feea..541dfe3bafd 100644--- a/locales/ar/electron.json+++ b/locales/ar/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "غير متصل بالبوابة","gateway.title": "بوابة الجهاز","navigation.agents": "الوكلاء",+ "navigation.apps": "التطبيقات","navigation.channels": "القنوات","navigation.chat": "محادثة","navigation.discover": "اكتشف",diff --git a/locales/ar/notification.json b/locales/ar/notification.jsonindex 90eed48a39e..a48a4902a83 100644--- a/locales/ar/notification.json+++ b/locales/ar/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "نتيجة النقل","billboard.learnMore": "معرفة المزيد","billboard.menuLabel": "الإعلانات",+ "category.agent": "وكيل","category.billing": "الفواتير","category.generation": "التوليد",+ "category.pending": "قيد الانتظار","category.schedule": "المهام المجدولة","category.system": "النظام","category.workspace": "مساحة العمل",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "تم رفض النقل","image_generation_completed": "الصورة الخاصة بك \"{{prompt}}\" جاهزة.","image_generation_completed_title": "اكتملت عملية إنشاء الصورة",+ "inbox.actionFailed": "تعذر تحديث الإشعارات. يرجى المحاولة مرة أخرى.",+ "inbox.all": "جميع الإشعارات",+ "inbox.allStatus": "الكل","inbox.archive": "أرشيف","inbox.archiveAll": "أرشفة الكل","inbox.empty": "لا توجد إشعارات بعد",+ "inbox.emptyRead": "لا توجد إشعارات مقروءة","inbox.emptyUnread": "لا توجد إشعارات غير مقروءة","inbox.filterUnread": "عرض غير المقروء فقط","inbox.markAllRead": "تحديد الكل كمقروء",+ "inbox.read": "مقروء","inbox.title": "الإشعارات",+ "inbox.unread": "غير مقروء","inbox.viewDetail": "عرض التفاصيل","promotion_gift_granted": "تمت إضافة {{credits}} أرصدة إضافية إلى حسابك.","promotion_gift_granted_card_binding": "شكرًا لإضافة طريقة دفع — تمت إضافة {{credits}} أرصدة إضافية إلى حسابك.",diff --git a/locales/ar/onboarding.json b/locales/ar/onboarding.jsonindex 91037540a05..5bc0166be45 100644--- a/locales/ar/onboarding.json+++ b/locales/ar/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "اتصل","flow.steps.connectApps.connected": "متصل","flow.steps.connectApps.description": "أضف بعض التطبيقات للمساعدة في تشكيل تجربة أكثر شخصية.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "متابعة التفويض",+ "flow.steps.connectApps.gmailPermissionModal.description": "بدون إذن قراءة Gmail، لا يمكن لمساعدك التعرف عليك من بريدك الوارد.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "هذا لا يؤثر على بقية عملية الإعداد. يمكنك التخطي الآن والمتابعة.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "تخطي والمتابعة",+ "flow.steps.connectApps.gmailPermissionModal.title": "مطلوب إذن إضافي","flow.steps.connectApps.title": "ابدأ في تشكيل نفسك","flow.steps.learnYourWorld.analysisFailed": "لم نتمكن من إكمال تحليل المصادر المتصلة.","flow.steps.learnYourWorld.description": "بناء ملف تعريف المستخدم الخاص بك",diff --git a/locales/ar/selfLearning.json b/locales/ar/selfLearning.jsonindex db5a5a2acb4..b14f3aaa857 100644--- a/locales/ar/selfLearning.json+++ b/locales/ar/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "الجولة {{n}}","charts.streak": "{{count}} تدريبات متتالية بدون أخطاء","charts.tooFew": "تظهر المنحنيات بعد التدريب الثاني.",+ "create.adjust.action": "تطبيق التعديل",+ "create.adjust.adjusting": "جارٍ التعديل…",+ "create.adjust.blockAction": "التعديل باستخدام الذكاء الاصطناعي",+ "create.adjust.failed": "تعذر تعديل النقطة المرجعية. لم يتم تغيير المسودة الحالية.",+ "create.adjust.generatingCountdown": "جارٍ تعديل النقطة المرجعية… حوالي {{time}} متبقي",+ "create.adjust.help": "وصف ما يجب تغييره. سيتم الاحتفاظ بالنقطة المرجعية الحالية وكل ما لم تذكره.",+ "create.adjust.placeholder.canonEntries": "مثال: استخدم مبادئ معترف بها من إطار عمل أكثر موثوقية…",+ "create.adjust.placeholder.domainFilter": "مثال: تضمين الجدولة المفوضة وفرز المعلومات، ولكن فقط لجهة معينة…",+ "create.adjust.placeholder.layers": "مثال: اجعل هذه تقدمًا حقيقيًا في الكفاءة، بدلاً من مراحل في سير العمل…",+ "create.adjust.placeholder.outOfScope": "مثال: استبعاد إدارة المشاريع العامة والقرارات المتخذة نيابة عن الجهة…",+ "create.adjust.title": "التعديل باستخدام الذكاء الاصطناعي","create.anchor.addCanon": "إضافة","create.anchor.addLayer": "إضافة","create.anchor.canon": "المعيار",@@ -36,17 +47,22 @@"create.cancel": "إلغاء","create.confirm": "إنشاء","create.failed": "تعذر إنشاء التخصص. حاول مرة أخرى.",+ "create.field.brief": "موجز التوجيه","create.field.domainFilter": "ما يُعتبر تدريبًا","create.field.outOfScope": "ما لا يُعتبر","create.field.outOfScopePlaceholder": "مثل مناقشات التصميم، الأسئلة العامة...","create.field.title": "الاسم","create.generate": "إنشاء","create.generating": "جاري إنشاء التخصص...",+ "create.generatingAlmostDone": "لا يزال العمل جاريًا — يجب أن يكون جاهزًا قريبًا…",+ "create.generatingCanon": "البحث عن مبادئ معترف بها…",+ "create.generatingCountdown": "حوالي {{time}} متبقي",+ "create.generatingLayers": "بناء تقدم واضح…",+ "create.generatingScope": "توضيح ما يُعتبر ممارسة…","create.modalTitle": "إنشاء تخصص","create.next": "التالي","create.regenerate": "إعادة الإنشاء","create.reviewHelp": "هذا هو المرجع الذي استخلصه من موجزك. قم بتصحيح أي شيء غير صحيح — الفلتر يحدد المحادثات التي يتعلم منها؛ الطبقات والمعيار يحددان مكان ارتباط الدروس وما تعنيه “التغطية”.",- "create.reviewStep": "مراجعة المرجع","domain.delete": "حذف","domain.deleteConfirm.content": "عادات {{habits}} وسجلات {{runs}} التدريب في هذا الاتجاه ستُحذف معه. لا يمكن التراجع عن هذا.","domain.deleteConfirm.ok": "حذف",diff --git a/locales/ar/setting.json b/locales/ar/setting.jsonindex 84689f7254a..8a91deeffea 100644--- a/locales/ar/setting.json+++ b/locales/ar/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "ساعدنا في تحسين {{appName}} من خلال بيانات استخدام مجهولة","analytics.telemetry.title": "إرسال بيانات استخدام مجهولة","analytics.title": "التحليلات",+ "apps.cli.copied": "تم النسخ",+ "apps.cli.copy": "انسخ أمر التثبيت",+ "apps.cli.desc": "البرامج النصية، الأجهزة، والعمل بدون واجهة من سطر الأوامر.",+ "apps.cli.title": "واجهة سطر الأوامر",+ "apps.desktop.cta": "احصل على تطبيق سطح المكتب",+ "apps.desktop.desc": "الملفات المحلية، أدوات النظام، والعمل المركّز على هذه الآلة.",+ "apps.desktop.inUse": "قيد الاستخدام",+ "apps.desktop.inUseDesc": "أنت بالفعل تستخدم تطبيق سطح المكتب.",+ "apps.desktop.title": "سطح المكتب",+ "apps.kicker": "طرق",+ "apps.messenger.cta": "قم بإعداد Messenger",+ "apps.messenger.desc": "تحدث مع LobeHub في Discord، Feishu، Slack، والبقية.",+ "apps.messenger.title": "الرسائل",+ "apps.mobile.cta": "احصل على تطبيق الهاتف المحمول",+ "apps.mobile.desc": "ابدأ المحادثات من هاتفك عندما تترك الكمبيوتر.",+ "apps.mobile.title": "الهاتف المحمول",+ "apps.title": "اكتشف المزيد من الطرق لاستخدام LobeHub","artworkStudio.cancel": "إلغاء التوليد","artworkStudio.diyTitle": "اصنع بنفسك","artworkStudio.enableModel": "تفعيل نموذج",diff --git a/locales/bg-BG/electron.json b/locales/bg-BG/electron.jsonindex ef2e157f15f..2fd63cec39d 100644--- a/locales/bg-BG/electron.json+++ b/locales/bg-BG/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Не е свързан с шлюза","gateway.title": "Шлюз на устройството","navigation.agents": "Агенти",+ "navigation.apps": "Приложения","navigation.channels": "Канали","navigation.chat": "Чат","navigation.discover": "Откриване",diff --git a/locales/bg-BG/notification.json b/locales/bg-BG/notification.jsonindex 9039071fa37..b20c64cfd2a 100644--- a/locales/bg-BG/notification.json+++ b/locales/bg-BG/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Резултат от прехвърлянето","billboard.learnMore": "Научете повече","billboard.menuLabel": "Съобщения",+ "category.agent": "Агент","category.billing": "Фактуриране","category.generation": "Генериране",+ "category.pending": "В очакване","category.schedule": "Планирани задачи","category.system": "Система","category.workspace": "Работно пространство",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Прехвърлянето е отказано","image_generation_completed": "Вашето изображение \"{{prompt}}\" е готово.","image_generation_completed_title": "Генерирането на изображението завърши",+ "inbox.actionFailed": "Неуспешно актуализиране на известията. Моля, опитайте отново.",+ "inbox.all": "Всички известия",+ "inbox.allStatus": "Всички","inbox.archive": "Архивиране","inbox.archiveAll": "Архивирай всички","inbox.empty": "Все още няма известия",+ "inbox.emptyRead": "Няма прочетени известия","inbox.emptyUnread": "Няма непрочетени известия","inbox.filterUnread": "Показвай само непрочетените","inbox.markAllRead": "Маркирай всички като прочетени",+ "inbox.read": "Прочетени","inbox.title": "Известия",+ "inbox.unread": "Непрочетени","inbox.viewDetail": "Преглед на детайли","promotion_gift_granted": "{{credits}} бонус кредити бяха добавени към вашия акаунт.","promotion_gift_granted_card_binding": "Благодарим ви, че добавихте метод за плащане — {{credits}} бонус кредити бяха добавени към вашия акаунт.",diff --git a/locales/bg-BG/onboarding.json b/locales/bg-BG/onboarding.jsonindex 164249ea4ca..1a4358af7f5 100644--- a/locales/bg-BG/onboarding.json+++ b/locales/bg-BG/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Свържи","flow.steps.connectApps.connected": "Свързано","flow.steps.connectApps.description": "Добавете няколко приложения, за да оформите по-лично изживяване.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Продължете с разрешението",+ "flow.steps.connectApps.gmailPermissionModal.description": "Без разрешение за четене на Gmail, вашият асистент не може да научи повече за вас от вашата пощенска кутия.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Това не засяга останалата част от процеса на настройка. Можете да пропуснете за сега и да продължите.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Пропуснете и продължете",+ "flow.steps.connectApps.gmailPermissionModal.title": "Необходимо е допълнително разрешение","flow.steps.connectApps.title": "Започнете оформянето на себе си","flow.steps.learnYourWorld.analysisFailed": "Не успяхме да завършим анализа на вашите свързани източници.","flow.steps.learnYourWorld.description": "Изграждане на вашия потребителски профил",diff --git a/locales/bg-BG/selfLearning.json b/locales/bg-BG/selfLearning.jsonindex ff0c569fca1..48b920fa998 100644--- a/locales/bg-BG/selfLearning.json+++ b/locales/bg-BG/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "практика {{n}}","charts.streak": "{{count}} практики подред без грешки","charts.tooFew": "Кривите се появяват след втората практика.",+ "create.adjust.action": "Приложи корекция",+ "create.adjust.adjusting": "Коригиране…",+ "create.adjust.blockAction": "Коригирай с AI",+ "create.adjust.failed": "Не можа да се коригира котвата. Текущият ви чернови вариант остава непроменен.",+ "create.adjust.generatingCountdown": "Коригиране на котвата… остава около {{time}}",+ "create.adjust.help": "Опишете какво трябва да се промени. Текущата котва и всичко, което не споменете, ще бъдат запазени.",+ "create.adjust.placeholder.canonEntries": "напр. Използвайте признати принципи от по-авторитетна рамка…",+ "create.adjust.placeholder.domainFilter": "напр. Включете делегирано планиране и сортиране на информация, но само за определен отговорник…",+ "create.adjust.placeholder.layers": "напр. Направете това истинска прогресия на умения, а не етапи в работния процес…",+ "create.adjust.placeholder.outOfScope": "напр. Изключете общото управление на проекти и решенията, взети от името на отговорника…",+ "create.adjust.title": "Коригирай с AI","create.anchor.addCanon": "Добави","create.anchor.addLayer": "Добави","create.anchor.canon": "Канон",@@ -36,17 +47,22 @@"create.cancel": "Отказ","create.confirm": "Създай","create.failed": "Неуспешно създаване. Опитайте отново.",+ "create.field.brief": "Кратко описание на насоките","create.field.domainFilter": "Какво се брои като практика","create.field.outOfScope": "Какво не се брои","create.field.outOfScopePlaceholder": "напр. дискусии за дизайн, общи въпроси и отговори...","create.field.title": "Име","create.generate": "Генерирай","create.generating": "Генериране на експертизата...",+ "create.generatingAlmostDone": "Все още работим — това скоро ще бъде готово…",+ "create.generatingCanon": "Намиране на признати принципи…",+ "create.generatingCountdown": "Остава около {{time}}",+ "create.generatingLayers": "Изграждане на ясна прогресия…",+ "create.generatingScope": "Изясняване на това, което се счита за практика…","create.modalTitle": "Създайте експертиза","create.next": "Напред","create.regenerate": "Прегенерирай","create.reviewHelp": "Ето котвата, която извлече от вашия бриф. Поправете всичко, което не е наред — филтърът решава от кои разговори ще се учи; слоевете и канонът решават къде се прикрепят уроците и какво означава „покритие“.",- "create.reviewStep": "Прегледайте котвата","domain.delete": "Изтрий","domain.deleteConfirm.content": "Неговите {{habits}} навици и {{runs}} записи на практики в тази посока ще бъдат изтрити. Това не може да бъде отменено.","domain.deleteConfirm.ok": "Изтрий",diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.jsonindex 4f93806d0ee..89c12cb5572 100644--- a/locales/bg-BG/setting.json+++ b/locales/bg-BG/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Помогнете ни да подобрим {{appName}} с анонимни данни за използване","analytics.telemetry.title": "Изпращане на анонимни данни за използване","analytics.title": "Анализ",+ "apps.cli.copied": "Копирано",+ "apps.cli.copy": "Копирай командата за инсталиране",+ "apps.cli.desc": "Скриптове, устройства и работа без интерфейс от командния ред.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Изтегли десктоп приложението",+ "apps.desktop.desc": "Локални файлове, системни инструменти и фокусирана работа на този компютър.",+ "apps.desktop.inUse": "В употреба",+ "apps.desktop.inUseDesc": "Вече използвате десктоп приложението.",+ "apps.desktop.title": "Десктоп",+ "apps.kicker": "Начини",+ "apps.messenger.cta": "Настрой Messenger",+ "apps.messenger.desc": "Говорете с LobeHub в Discord, Feishu, Slack и други.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Изтегли мобилното приложение",+ "apps.mobile.desc": "Започнете разговори от телефона си, когато сте далеч от компютъра.",+ "apps.mobile.title": "Мобилно",+ "apps.title": "Открийте повече начини да използвате LobeHub","artworkStudio.cancel": "Отказ от генериране","artworkStudio.diyTitle": "Създайте сами","artworkStudio.enableModel": "Активирайте модел",diff --git a/locales/de-DE/electron.json b/locales/de-DE/electron.jsonindex 0710aea7830..eaa4f592f7e 100644--- a/locales/de-DE/electron.json+++ b/locales/de-DE/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Nicht mit Gateway verbunden","gateway.title": "Geräte-Gateway","navigation.agents": "Agenten",+ "navigation.apps": "Apps","navigation.channels": "Kanäle","navigation.chat": "Chat","navigation.discover": "Entdecken",diff --git a/locales/de-DE/notification.json b/locales/de-DE/notification.jsonindex 499c5fec4d5..ad18f00934c 100644--- a/locales/de-DE/notification.json+++ b/locales/de-DE/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Übertragungsergebnis","billboard.learnMore": "Mehr erfahren","billboard.menuLabel": "Ankündigungen",+ "category.agent": "Agent","category.billing": "Abrechnung","category.generation": "Erzeugung",+ "category.pending": "Ausstehend","category.schedule": "Geplante Aufgaben","category.system": "System","category.workspace": "Arbeitsbereich",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Übertragung abgelehnt","image_generation_completed": "Ihr Bild „{{prompt}}“ ist fertig.","image_generation_completed_title": "Bilderstellung abgeschlossen",+ "inbox.actionFailed": "Benachrichtigungen konnten nicht aktualisiert werden. Bitte versuchen Sie es erneut.",+ "inbox.all": "Alle Benachrichtigungen",+ "inbox.allStatus": "Alle","inbox.archive": "Archivieren","inbox.archiveAll": "Alle archivieren","inbox.empty": "Noch keine Benachrichtigungen",+ "inbox.emptyRead": "Keine gelesenen Benachrichtigungen","inbox.emptyUnread": "Keine ungelesenen Benachrichtigungen","inbox.filterUnread": "Nur ungelesene anzeigen","inbox.markAllRead": "Alle als gelesen markieren",+ "inbox.read": "Gelesen","inbox.title": "Benachrichtigungen",+ "inbox.unread": "Ungelesen","inbox.viewDetail": "Details anzeigen","promotion_gift_granted": "{{credits}} Bonusguthaben wurden Ihrem Konto gutgeschrieben.","promotion_gift_granted_card_binding": "Vielen Dank, dass Sie eine Zahlungsmethode hinzugefügt haben — {{credits}} Bonusguthaben wurden Ihrem Konto gutgeschrieben.",diff --git a/locales/de-DE/onboarding.json b/locales/de-DE/onboarding.jsonindex 4f9600d9b1e..597e45e4ae1 100644--- a/locales/de-DE/onboarding.json+++ b/locales/de-DE/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Verbinden","flow.steps.connectApps.connected": "Verbunden","flow.steps.connectApps.description": "Fügen Sie ein paar Apps hinzu, um ein persönlicheres Erlebnis zu gestalten.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Autorisierung fortsetzen",+ "flow.steps.connectApps.gmailPermissionModal.description": "Ohne Leseberechtigung für Gmail kann Ihr Assistent nichts aus Ihrem Posteingang über Sie lernen.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Dies hat keine Auswirkungen auf den Rest der Einrichtung. Sie können dies vorerst überspringen und fortfahren.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Überspringen und fortfahren",+ "flow.steps.connectApps.gmailPermissionModal.title": "Weitere Berechtigungen erforderlich","flow.steps.connectApps.title": "Gestalten Sie Ihr Profil","flow.steps.learnYourWorld.analysisFailed": "Wir konnten Ihre verbundenen Quellen nicht analysieren.","flow.steps.learnYourWorld.description": "Ihr Benutzerprofil wird erstellt",diff --git a/locales/de-DE/selfLearning.json b/locales/de-DE/selfLearning.jsonindex 5f3d75df12d..b016da0fb0c 100644--- a/locales/de-DE/selfLearning.json+++ b/locales/de-DE/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "Durchlauf {{n}}","charts.streak": "{{count}} Übungen in Folge ohne Fehler","charts.tooFew": "Kurven erscheinen nach der zweiten Übung.",+ "create.adjust.action": "Anpassung anwenden",+ "create.adjust.adjusting": "Wird angepasst…",+ "create.adjust.blockAction": "Mit KI anpassen",+ "create.adjust.failed": "Der Anker konnte nicht angepasst werden. Ihr aktueller Entwurf bleibt unverändert.",+ "create.adjust.generatingCountdown": "Anker wird angepasst… etwa {{time}} verbleibend",+ "create.adjust.help": "Beschreiben Sie, was geändert werden soll. Der aktuelle Anker und alles, was Sie nicht erwähnen, bleibt erhalten.",+ "create.adjust.placeholder.canonEntries": "z. B. Anerkannte Prinzipien aus einem autoritativeren Rahmen verwenden…",+ "create.adjust.placeholder.domainFilter": "z. B. Delegierte Terminplanung und Informationsauswahl einbeziehen, aber nur für einen benannten Auftraggeber…",+ "create.adjust.placeholder.layers": "z. B. Machen Sie daraus eine echte Fortschrittsentwicklung der Fähigkeiten, anstatt Phasen in einem Arbeitsablauf…",+ "create.adjust.placeholder.outOfScope": "z. B. Allgemeines Projektmanagement und Entscheidungen im Namen des Auftraggebers ausschließen…",+ "create.adjust.title": "Mit KI anpassen","create.anchor.addCanon": "Hinzufügen","create.anchor.addLayer": "Hinzufügen","create.anchor.canon": "Kanon",@@ -36,17 +47,22 @@"create.cancel": "Abbrechen","create.confirm": "Erstellen","create.failed": "Konnte nicht erstellt werden. Versuchen Sie es erneut.",+ "create.field.brief": "Richtungsbrief","create.field.domainFilter": "Was als Übung zählt","create.field.outOfScope": "Was nicht zählt","create.field.outOfScopePlaceholder": "z. B. Design-Diskussionen, allgemeine Q&A…","create.field.title": "Name","create.generate": "Generieren","create.generating": "Expertise wird generiert…",+ "create.generatingAlmostDone": "Noch in Arbeit — das sollte gleich fertig sein…",+ "create.generatingCanon": "Anerkannte Prinzipien werden gesucht…",+ "create.generatingCountdown": "Etwa {{time}} verbleibend",+ "create.generatingLayers": "Eine klare Fortschrittsentwicklung wird erstellt…",+ "create.generatingScope": "Klärung, was als Übung zählt…","create.modalTitle": "Eine Expertise erstellen","create.next": "Weiter","create.regenerate": "Neu generieren","create.reviewHelp": "Hier ist der Anker, den es aus Ihrer Beschreibung gelesen hat. Korrigieren Sie alles, was nicht stimmt — der Filter entscheidet, aus welchen Gesprächen es lernt; die Ebenen und der Kanon entscheiden, wo Lektionen zugeordnet werden und was „Abdeckung“ bedeutet.",- "create.reviewStep": "Den Anker überprüfen","domain.delete": "Löschen","domain.deleteConfirm.content": "Seine {{habits}} Gewohnheiten und {{runs}} Übungsaufzeichnungen in dieser Richtung werden mit gelöscht. Dies kann nicht rückgängig gemacht werden.","domain.deleteConfirm.ok": "Löschen",diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.jsonindex 86bef7985c8..cf389d0936a 100644--- a/locales/de-DE/setting.json+++ b/locales/de-DE/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Hilf uns, {{appName}} mit anonymen Nutzungsdaten zu verbessern","analytics.telemetry.title": "Anonyme Nutzungsdaten senden","analytics.title": "Analytik",+ "apps.cli.copied": "Kopiert",+ "apps.cli.copy": "Installationsbefehl kopieren",+ "apps.cli.desc": "Skripte, Geräte und Headless-Arbeiten über die Befehlszeile.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Desktop-App herunterladen",+ "apps.desktop.desc": "Lokale Dateien, Systemtools und fokussiertes Arbeiten auf diesem Gerät.",+ "apps.desktop.inUse": "In Benutzung",+ "apps.desktop.inUseDesc": "Sie befinden sich bereits in der Desktop-App.",+ "apps.desktop.title": "Desktop",+ "apps.kicker": "Möglichkeiten",+ "apps.messenger.cta": "Messenger einrichten",+ "apps.messenger.desc": "Kommunizieren Sie mit LobeHub in Discord, Feishu, Slack und anderen Plattformen.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Mobile App herunterladen",+ "apps.mobile.desc": "Beginnen Sie Gespräche von Ihrem Telefon aus, wenn Sie den Computer verlassen.",+ "apps.mobile.title": "Mobil",+ "apps.title": "Entdecken Sie weitere Möglichkeiten, LobeHub zu nutzen","artworkStudio.cancel": "Generierung abbrechen","artworkStudio.diyTitle": "Erstellen Sie Ihr eigenes","artworkStudio.enableModel": "Ein Modell aktivieren",diff --git a/locales/en-US/agent.json b/locales/en-US/agent.jsonindex 377da53278d..07cc18f6d4c 100644--- a/locales/en-US/agent.json+++ b/locales/en-US/agent.json@@ -350,7 +350,6 @@"transferRequest.recipientPlaceholder": "Select a workspace member...","transferRequest.resourceType.agent": "Agent","transferRequest.resourceType.agentGroup": "Group",- "transferRequest.sectionTitle": "Pending transfers","transferRequest.someone": "A workspace member","transferRequest.untitledResource": "Untitled","transferRequest.withdraw": "Withdraw",diff --git a/locales/en-US/notification.json b/locales/en-US/notification.jsonindex 65bd65a0e1a..bd6f91da51e 100644--- a/locales/en-US/notification.json+++ b/locales/en-US/notification.json@@ -17,11 +17,13 @@"agent_transfer_result_title": "Transfer result","billboard.learnMore": "Learn more","billboard.menuLabel": "Announcements",+ "category.agent": "Agent","category.billing": "Billing","category.generation": "Generation",+ "category.pending": "Pending","category.schedule": "Scheduled tasks",- "category.system": "System",- "category.workspace": "Workspace",+ "category.system": "System notifications",+ "category.workspace": "Workspace updates","credit_balance_low": "Your credit balance is running low — about {{balance}} in credits remaining. Turn on auto top-up so your balance refills automatically and your work is never interrupted.","credit_balance_low_action": "Set up auto top-up","credit_balance_low_title": "Your credit balance is running low",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Transfer declined","image_generation_completed": "Your image \"{{prompt}}\" is ready.","image_generation_completed_title": "Image generation completed",+ "inbox.actionFailed": "Could not update notifications. Please try again.",+ "inbox.all": "All notifications",+ "inbox.allStatus": "All","inbox.archive": "Archive","inbox.archiveAll": "Archive all","inbox.empty": "No notifications yet",+ "inbox.emptyRead": "No read notifications","inbox.emptyUnread": "No unread notifications","inbox.filterUnread": "Show unread only","inbox.markAllRead": "Mark all as read",+ "inbox.read": "Read","inbox.title": "Notifications",+ "inbox.unread": "Unread","inbox.viewDetail": "View details","promotion_gift_granted": "{{credits}} bonus credits have been added to your account.","promotion_gift_granted_card_binding": "Thanks for adding a payment method — {{credits}} bonus credits have been added to your account.",diff --git a/locales/es-ES/electron.json b/locales/es-ES/electron.jsonindex 0316f825484..57fd2c66218 100644--- a/locales/es-ES/electron.json+++ b/locales/es-ES/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "No conectado al Gateway","gateway.title": "Gateway de Dispositivo","navigation.agents": "Agentes",+ "navigation.apps": "Aplicaciones","navigation.channels": "Canales","navigation.chat": "Chat","navigation.discover": "Descubrir",diff --git a/locales/es-ES/notification.json b/locales/es-ES/notification.jsonindex 0317906a3ee..19d7b58b347 100644--- a/locales/es-ES/notification.json+++ b/locales/es-ES/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Resultado de la transferencia","billboard.learnMore": "Más información","billboard.menuLabel": "Anuncios",+ "category.agent": "Agente","category.billing": "Facturación","category.generation": "Generación",+ "category.pending": "Pendiente","category.schedule": "Tareas programadas","category.system": "Sistema","category.workspace": "Espacio de trabajo",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Transferencia rechazada","image_generation_completed": "Tu imagen \"{{prompt}}\" está lista.","image_generation_completed_title": "Generación de imagen completada",+ "inbox.actionFailed": "No se pudieron actualizar las notificaciones. Por favor, inténtelo de nuevo.",+ "inbox.all": "Todas las notificaciones",+ "inbox.allStatus": "Todo","inbox.archive": "Archivar","inbox.archiveAll": "Archivar todo","inbox.empty": "Aún no hay notificaciones",+ "inbox.emptyRead": "No hay notificaciones leídas","inbox.emptyUnread": "No hay notificaciones sin leer","inbox.filterUnread": "Mostrar solo sin leer","inbox.markAllRead": "Marcar todo como leído",+ "inbox.read": "Leídas","inbox.title": "Notificaciones",+ "inbox.unread": "No leídas","inbox.viewDetail": "Ver detalles","promotion_gift_granted": "Se han añadido {{credits}} créditos de bonificación a tu cuenta.","promotion_gift_granted_card_binding": "Gracias por añadir un método de pago — se han añadido {{credits}} créditos de bonificación a tu cuenta.",diff --git a/locales/es-ES/onboarding.json b/locales/es-ES/onboarding.jsonindex 7bb71321d2d..7d73ededf6d 100644--- a/locales/es-ES/onboarding.json+++ b/locales/es-ES/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Conectar","flow.steps.connectApps.connected": "Conectado","flow.steps.connectApps.description": "Agrega algunas aplicaciones para ayudar a crear una experiencia más personal.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Continuar con la autorización",+ "flow.steps.connectApps.gmailPermissionModal.description": "Sin el permiso de lectura de Gmail, tu asistente no puede aprender sobre ti a partir de tu bandeja de entrada.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Esto no afecta el resto del proceso de configuración. Puedes omitirlo por ahora y continuar.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Omitir y continuar",+ "flow.steps.connectApps.gmailPermissionModal.title": "Se necesita más permiso","flow.steps.connectApps.title": "Comienza a dar forma a ti mismo","flow.steps.learnYourWorld.analysisFailed": "No pudimos terminar de analizar tus fuentes conectadas.","flow.steps.learnYourWorld.description": "Construyendo tu perfil de usuario",diff --git a/locales/es-ES/selfLearning.json b/locales/es-ES/selfLearning.jsonindex f5a031e3af2..cf12280e713 100644--- a/locales/es-ES/selfLearning.json+++ b/locales/es-ES/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "ejecución {{n}}","charts.streak": "{{count}} prácticas seguidas sin errores","charts.tooFew": "Las curvas aparecen después de la segunda práctica.",+ "create.adjust.action": "Aplicar ajuste",+ "create.adjust.adjusting": "Ajustando…",+ "create.adjust.blockAction": "Ajustar con IA",+ "create.adjust.failed": "No se pudo ajustar el ancla. Tu borrador actual no ha cambiado.",+ "create.adjust.generatingCountdown": "Ajustando el ancla… aproximadamente {{time}} restante",+ "create.adjust.help": "Describe lo que debería cambiar. El ancla actual y todo lo que no menciones se conservará.",+ "create.adjust.placeholder.canonEntries": "p. ej., Utiliza principios reconocidos de un marco más autorizado…",+ "create.adjust.placeholder.domainFilter": "p. ej., Incluye programación delegada y clasificación de información, pero solo para un principal designado…",+ "create.adjust.placeholder.layers": "p. ej., Convierte esto en una verdadera progresión de competencia, en lugar de etapas en un flujo de trabajo…",+ "create.adjust.placeholder.outOfScope": "p. ej., Excluye la gestión general de proyectos y las decisiones tomadas en nombre del principal…",+ "create.adjust.title": "Ajustar con IA","create.anchor.addCanon": "Agregar","create.anchor.addLayer": "Agregar","create.anchor.canon": "Canon",@@ -36,17 +47,22 @@"create.cancel": "Cancelar","create.confirm": "Crear","create.failed": "No se pudo crear. Inténtalo de nuevo.",+ "create.field.brief": "Resumen de dirección","create.field.domainFilter": "Qué cuenta como práctica","create.field.outOfScope": "Qué no cuenta","create.field.outOfScopePlaceholder": "por ejemplo, discusiones de diseño, preguntas generales...","create.field.title": "Nombre","create.generate": "Generar","create.generating": "Generando la experiencia…",+ "create.generatingAlmostDone": "Todavía trabajando — esto debería estar listo en breve…",+ "create.generatingCanon": "Buscando principios reconocidos…",+ "create.generatingCountdown": "Aproximadamente {{time}} restante",+ "create.generatingLayers": "Construyendo una progresión clara…",+ "create.generatingScope": "Aclarando qué cuenta como práctica…","create.modalTitle": "Crear una experiencia","create.next": "Siguiente","create.regenerate": "Regenerar","create.reviewHelp": "Aquí está el ancla que se extrajo de tu resumen. Corrige cualquier cosa que esté mal — el filtro decide de qué conversaciones aprende; las capas y el canon deciden dónde se adjuntan las lecciones y qué significa “cobertura”.",- "create.reviewStep": "Revisar el ancla","domain.delete": "Eliminar","domain.deleteConfirm.content": "Sus {{habits}} hábitos y {{runs}} registros de práctica en esta dirección se eliminarán con ella. Esto no se puede deshacer.","domain.deleteConfirm.ok": "Eliminar",diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.jsonindex 616305cb49b..2198c3f4f18 100644--- a/locales/es-ES/setting.json+++ b/locales/es-ES/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Ayúdanos a mejorar {{appName}} con datos de uso anónimos","analytics.telemetry.title": "Enviar Datos de Uso Anónimos","analytics.title": "Analítica",+ "apps.cli.copied": "Copiado",+ "apps.cli.copy": "Copiar comando de instalación",+ "apps.cli.desc": "Scripts, dispositivos y trabajo sin interfaz gráfica desde la línea de comandos.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Obtener la aplicación de escritorio",+ "apps.desktop.desc": "Archivos locales, herramientas del sistema y trabajo enfocado en esta máquina.",+ "apps.desktop.inUse": "En uso",+ "apps.desktop.inUseDesc": "Ya estás utilizando la aplicación de escritorio.",+ "apps.desktop.title": "Escritorio",+ "apps.kicker": "Formas",+ "apps.messenger.cta": "Configurar Messenger",+ "apps.messenger.desc": "Habla con LobeHub en Discord, Feishu, Slack y otros.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Obtener la aplicación móvil",+ "apps.mobile.desc": "Inicia conversaciones desde tu teléfono cuando dejes la computadora.",+ "apps.mobile.title": "Móvil",+ "apps.title": "Descubre más formas de usar LobeHub","artworkStudio.cancel": "Cancelar generación","artworkStudio.diyTitle": "Hazlo tú mismo","artworkStudio.enableModel": "Habilitar un modelo",diff --git a/locales/fa-IR/electron.json b/locales/fa-IR/electron.jsonindex 975938d3500..e4983276c21 100644--- a/locales/fa-IR/electron.json+++ b/locales/fa-IR/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "به درگاه متصل نیست","gateway.title": "درگاه دستگاه","navigation.agents": "نمایندگان",+ "navigation.apps": "برنامهها","navigation.channels": "کانالها","navigation.chat": "چت","navigation.discover": "کشف",diff --git a/locales/fa-IR/notification.json b/locales/fa-IR/notification.jsonindex e61b2e3e97f..2439dea5b98 100644--- a/locales/fa-IR/notification.json+++ b/locales/fa-IR/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "نتیجه انتقال","billboard.learnMore": "بیشتر بدانید","billboard.menuLabel": "اطلاعیهها",+ "category.agent": "نماینده","category.billing": "صورتحساب","category.generation": "تولید",+ "category.pending": "در انتظار","category.schedule": "وظایف زمانبندیشده","category.system": "سیستم","category.workspace": "فضای کاری",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "انتقال رد شد","image_generation_completed": "تصویر شما با موضوع «{{prompt}}» آماده است.","image_generation_completed_title": "تولید تصویر تکمیل شد",+ "inbox.actionFailed": "بهروزرسانی اعلانها ممکن نشد. لطفاً دوباره تلاش کنید.",+ "inbox.all": "همه اعلانها",+ "inbox.allStatus": "همه","inbox.archive": "بایگانی","inbox.archiveAll": "بایگانی همه","inbox.empty": "هنوز هیچ اعلانی وجود ندارد",+ "inbox.emptyRead": "هیچ اعلان خواندهشدهای وجود ندارد","inbox.emptyUnread": "هیچ اعلان خواندهنشدهای وجود ندارد","inbox.filterUnread": "فقط خواندهنشدهها را نشان بده","inbox.markAllRead": "همه را بهعنوان خواندهشده علامت بزن",+ "inbox.read": "خواندهشده","inbox.title": "اعلانات",+ "inbox.unread": "خواندهنشده","inbox.viewDetail": "مشاهده جزئیات","promotion_gift_granted": "{{credits}} اعتبار هدیه به حساب شما اضافه شد.","promotion_gift_granted_card_binding": "با تشکر از افزودن روش پرداخت — {{credits}} اعتبار هدیه به حساب شما اضافه شد.",diff --git a/locales/fa-IR/onboarding.json b/locales/fa-IR/onboarding.jsonindex 3ec8e3808db..a5424211e1f 100644--- a/locales/fa-IR/onboarding.json+++ b/locales/fa-IR/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "اتصال","flow.steps.connectApps.connected": "متصل شد","flow.steps.connectApps.description": "چند برنامه اضافه کنید تا تجربهای شخصیتر شکل بگیرد.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "ادامه دادن مجوز",+ "flow.steps.connectApps.gmailPermissionModal.description": "بدون اجازه خواندن Gmail، دستیار شما نمیتواند از صندوق ورودی شما درباره شما یاد بگیرد.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "این بر روند کلی راهاندازی تأثیری ندارد. میتوانید فعلاً رد کنید و ادامه دهید.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "رد کردن و ادامه دادن",+ "flow.steps.connectApps.gmailPermissionModal.title": "مجوز بیشتری مورد نیاز است","flow.steps.connectApps.title": "شکل شما را آغاز کنید","flow.steps.learnYourWorld.analysisFailed": "ما نتوانستیم تحلیل منابع متصل شما را به پایان برسانیم.","flow.steps.learnYourWorld.description": "ساخت پروفایل کاربری شما",diff --git a/locales/fa-IR/selfLearning.json b/locales/fa-IR/selfLearning.jsonindex 4d810c71d2d..054d49559f6 100644--- a/locales/fa-IR/selfLearning.json+++ b/locales/fa-IR/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "تمرین {{n}}","charts.streak": "{{count}} تمرین پشت سر هم بدون اشتباه","charts.tooFew": "منحنیها پس از تمرین دوم ظاهر میشوند.",+ "create.adjust.action": "اعمال تنظیم",+ "create.adjust.adjusting": "در حال تنظیم…",+ "create.adjust.blockAction": "تنظیم با هوش مصنوعی",+ "create.adjust.failed": "نتوانستیم لنگر را تنظیم کنیم. پیشنویس فعلی شما بدون تغییر باقی مانده است.",+ "create.adjust.generatingCountdown": "در حال تنظیم لنگر… حدود {{time}} باقی مانده",+ "create.adjust.help": "توضیح دهید چه چیزی باید تغییر کند. لنگر فعلی و هر چیزی که ذکر نکنید حفظ خواهد شد.",+ "create.adjust.placeholder.canonEntries": "مثلاً استفاده از اصول شناختهشده از یک چارچوب معتبرتر…",+ "create.adjust.placeholder.domainFilter": "مثلاً شامل زمانبندی تفویضشده و اولویتبندی اطلاعات، اما فقط برای یک مسئول مشخص…",+ "create.adjust.placeholder.layers": "مثلاً اینها را به یک پیشرفت واقعی در مهارت تبدیل کنید، نه مراحل یک جریان کاری…",+ "create.adjust.placeholder.outOfScope": "مثلاً مدیریت کلی پروژه و تصمیماتی که به نمایندگی از مسئول گرفته میشود را حذف کنید…",+ "create.adjust.title": "تنظیم با هوش مصنوعی","create.anchor.addCanon": "اضافه کردن","create.anchor.addLayer": "اضافه کردن","create.anchor.canon": "اصول",@@ -36,17 +47,22 @@"create.cancel": "لغو","create.confirm": "ایجاد","create.failed": "نتوانست ایجاد شود. دوباره تلاش کنید.",+ "create.field.brief": "خلاصه جهتگیری","create.field.domainFilter": "چه چیزی به عنوان تمرین محسوب میشود","create.field.outOfScope": "چه چیزی محسوب نمیشود","create.field.outOfScopePlaceholder": "مثلاً بحثهای طراحی، پرسش و پاسخ عمومی…","create.field.title": "نام","create.generate": "تولید","create.generating": "در حال ایجاد تخصص...",+ "create.generatingAlmostDone": "هنوز در حال کار هستیم — این باید به زودی آماده شود…",+ "create.generatingCanon": "یافتن اصول شناختهشده…",+ "create.generatingCountdown": "حدود {{time}} باقی مانده",+ "create.generatingLayers": "ایجاد یک پیشرفت واضح…",+ "create.generatingScope": "روشن کردن آنچه به عنوان تمرین محسوب میشود…","create.modalTitle": "ایجاد یک تخصص","create.next": "بعدی","create.regenerate": "بازتولید","create.reviewHelp": "این لنگری است که از خلاصه شما خوانده شده است. هر چیزی که اشتباه است را اصلاح کنید — فیلتر تصمیم میگیرد که از کدام مکالمات یاد بگیرد؛ لایهها و اصول تصمیم میگیرند که درسها کجا پیوست شوند و پوشش چه معنایی دارد.",- "create.reviewStep": "بررسی لنگر","domain.delete": "حذف","domain.deleteConfirm.content": "{{habits}} عادتها و {{runs}} رکوردهای تمرین در این جهت همراه با آن حذف میشوند. این قابل بازگشت نیست.","domain.deleteConfirm.ok": "حذف",diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.jsonindex 6fa0cc7c797..a945612b4d5 100644--- a/locales/fa-IR/setting.json+++ b/locales/fa-IR/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "با ارسال دادههای ناشناس به ما در بهبود {{appName}} کمک کنید","analytics.telemetry.title": "ارسال دادههای استفاده ناشناس","analytics.title": "تحلیلها",+ "apps.cli.copied": "کپی شد",+ "apps.cli.copy": "دستور نصب را کپی کنید",+ "apps.cli.desc": "اسکریپتها، دستگاهها و کارهای بدون رابط کاربری از طریق خط فرمان.",+ "apps.cli.title": "خط فرمان (CLI)",+ "apps.desktop.cta": "اپلیکیشن دسکتاپ را دریافت کنید",+ "apps.desktop.desc": "فایلهای محلی، ابزارهای سیستم و کار متمرکز روی این دستگاه.",+ "apps.desktop.inUse": "در حال استفاده",+ "apps.desktop.inUseDesc": "شما در حال حاضر در اپلیکیشن دسکتاپ هستید.",+ "apps.desktop.title": "دسکتاپ",+ "apps.kicker": "راهها",+ "apps.messenger.cta": "پیامرسان را تنظیم کنید",+ "apps.messenger.desc": "با LobeHub در دیسکورد، فیشو، اسلک و دیگر پیامرسانها صحبت کنید.",+ "apps.messenger.title": "پیامرسان",+ "apps.mobile.cta": "اپلیکیشن موبایل را دریافت کنید",+ "apps.mobile.desc": "وقتی از کامپیوتر دور هستید، از تلفن خود مکالمهها را شروع کنید.",+ "apps.mobile.title": "موبایل",+ "apps.title": "راههای بیشتری برای استفاده از LobeHub کشف کنید","artworkStudio.cancel": "لغو تولید","artworkStudio.diyTitle": "خودتان بسازید","artworkStudio.enableModel": "فعال کردن یک مدل",diff --git a/locales/fr-FR/electron.json b/locales/fr-FR/electron.jsonindex 36189890062..3a707203fce 100644--- a/locales/fr-FR/electron.json+++ b/locales/fr-FR/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Non connecté à la passerelle","gateway.title": "Passerelle de l'appareil","navigation.agents": "Agents",+ "navigation.apps": "Applications","navigation.channels": "Canaux","navigation.chat": "Chat","navigation.discover": "Découvrir",diff --git a/locales/fr-FR/notification.json b/locales/fr-FR/notification.jsonindex ad2199435d4..442f77783a5 100644--- a/locales/fr-FR/notification.json+++ b/locales/fr-FR/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Résultat du transfert","billboard.learnMore": "En savoir plus","billboard.menuLabel": "Annonces",+ "category.agent": "Agent","category.billing": "Facturation","category.generation": "Génération",+ "category.pending": "En attente","category.schedule": "Tâches planifiées","category.system": "Système","category.workspace": "Espace de travail",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Transfert refusé","image_generation_completed": "Votre image « {{prompt}} » est prête.","image_generation_completed_title": "Génération d’image terminée",+ "inbox.actionFailed": "Impossible de mettre à jour les notifications. Veuillez réessayer.",+ "inbox.all": "Toutes les notifications",+ "inbox.allStatus": "Tout","inbox.archive": "Archiver","inbox.archiveAll": "Archiver tout","inbox.empty": "Aucune notification pour le moment",+ "inbox.emptyRead": "Aucune notification lue","inbox.emptyUnread": "Aucune notification non lue","inbox.filterUnread": "Afficher uniquement les non lues","inbox.markAllRead": "Marquer tout comme lu",+ "inbox.read": "Lu","inbox.title": "Notifications",+ "inbox.unread": "Non lu","inbox.viewDetail": "Voir les détails","promotion_gift_granted": "{{credits}} crédits bonus ont été ajoutés à votre compte.","promotion_gift_granted_card_binding": "Merci d'avoir ajouté un moyen de paiement — {{credits}} crédits bonus ont été ajoutés à votre compte.",diff --git a/locales/fr-FR/onboarding.json b/locales/fr-FR/onboarding.jsonindex 3ce29597f8a..7b6bce23bfa 100644--- a/locales/fr-FR/onboarding.json+++ b/locales/fr-FR/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Connecter","flow.steps.connectApps.connected": "Connecté","flow.steps.connectApps.description": "Ajoutez quelques applications pour façonner une expérience plus personnelle.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Continuer l'autorisation",+ "flow.steps.connectApps.gmailPermissionModal.description": "Sans autorisation de lecture Gmail, votre assistant ne peut pas apprendre à vous connaître à partir de votre boîte de réception.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Cela n'affecte pas le reste de l'intégration. Vous pouvez passer pour l'instant et continuer.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Passer et continuer",+ "flow.steps.connectApps.gmailPermissionModal.title": "Autorisations supplémentaires requises","flow.steps.connectApps.title": "Commencez à vous façonner","flow.steps.learnYourWorld.analysisFailed": "Nous n'avons pas pu terminer l'analyse de vos sources connectées.","flow.steps.learnYourWorld.description": "Construction de votre profil utilisateur",diff --git a/locales/fr-FR/selfLearning.json b/locales/fr-FR/selfLearning.jsonindex 8bc020cf122..81c79d760f9 100644--- a/locales/fr-FR/selfLearning.json+++ b/locales/fr-FR/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "essai {{n}}","charts.streak": "{{count}} pratiques consécutives sans erreurs","charts.tooFew": "Les courbes apparaissent après la deuxième pratique.",+ "create.adjust.action": "Appliquer l'ajustement",+ "create.adjust.adjusting": "Ajustement en cours…",+ "create.adjust.blockAction": "Ajuster avec l'IA",+ "create.adjust.failed": "Impossible d'ajuster l'ancre. Votre brouillon actuel reste inchangé.",+ "create.adjust.generatingCountdown": "Ajustement de l'ancre… environ {{time}} restant",+ "create.adjust.help": "Décrivez ce qui doit changer. L'ancre actuelle et tout ce que vous ne mentionnez pas seront préservés.",+ "create.adjust.placeholder.canonEntries": "par exemple, Utiliser des principes reconnus d'un cadre plus autoritaire…",+ "create.adjust.placeholder.domainFilter": "par exemple, Inclure la planification déléguée et le tri des informations, mais uniquement pour un mandataire nommé…",+ "create.adjust.placeholder.layers": "par exemple, Transformez cela en une véritable progression de compétences, plutôt qu'en étapes d'un flux de travail…",+ "create.adjust.placeholder.outOfScope": "par exemple, Exclure la gestion de projet générale et les décisions prises au nom du mandataire…",+ "create.adjust.title": "Ajuster avec l'IA","create.anchor.addCanon": "Ajouter","create.anchor.addLayer": "Ajouter","create.anchor.canon": "Canon",@@ -36,17 +47,22 @@"create.cancel": "Annuler","create.confirm": "Créer","create.failed": "Impossible de la créer. Réessayez.",+ "create.field.brief": "Résumé des instructions","create.field.domainFilter": "Ce qui compte comme pratique","create.field.outOfScope": "Ce qui ne compte pas","create.field.outOfScopePlaceholder": "par ex. discussions de conception, questions générales…","create.field.title": "Nom","create.generate": "Générer","create.generating": "Génération de l'expertise…",+ "create.generatingAlmostDone": "Toujours en cours — cela devrait être prêt sous peu…",+ "create.generatingCanon": "Recherche de principes reconnus…",+ "create.generatingCountdown": "Environ {{time}} restant",+ "create.generatingLayers": "Construction d'une progression claire…",+ "create.generatingScope": "Clarification de ce qui est considéré comme une pratique…","create.modalTitle": "Créer une expertise","create.next": "Suivant","create.regenerate": "Régénérer","create.reviewHelp": "Voici l'ancrage qu'il a extrait de votre brief. Corrigez tout ce qui ne va pas — le filtre décide des conversations dont il apprend ; les niveaux et le canon décident où les leçons s'attachent et ce que signifie « couverture ».",- "create.reviewStep": "Revoir l'ancrage","domain.delete": "Supprimer","domain.deleteConfirm.content": "Ses {{habits}} habitudes et {{runs}} enregistrements de pratique dans cette direction seront également supprimés. Cette action est irréversible.","domain.deleteConfirm.ok": "Supprimer",diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.jsonindex 3b561ba51ae..fb05b8e465c 100644--- a/locales/fr-FR/setting.json+++ b/locales/fr-FR/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Aidez-nous à améliorer {{appName}} grâce à des données d'utilisation anonymes","analytics.telemetry.title": "Envoyer des données d'utilisation anonymes","analytics.title": "Analytique",+ "apps.cli.copied": "Copié",+ "apps.cli.copy": "Copier la commande d'installation",+ "apps.cli.desc": "Scripts, appareils et travail sans interface graphique depuis la ligne de commande.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Obtenir l'application de bureau",+ "apps.desktop.desc": "Fichiers locaux, outils système et travail concentré sur cette machine.",+ "apps.desktop.inUse": "En cours d'utilisation",+ "apps.desktop.inUseDesc": "Vous êtes déjà dans l'application de bureau.",+ "apps.desktop.title": "Bureau",+ "apps.kicker": "Moyens",+ "apps.messenger.cta": "Configurer Messenger",+ "apps.messenger.desc": "Discutez avec LobeHub sur Discord, Feishu, Slack et autres.",+ "apps.messenger.title": "Messagerie",+ "apps.mobile.cta": "Obtenir l'application mobile",+ "apps.mobile.desc": "Commencez des conversations depuis votre téléphone lorsque vous quittez l'ordinateur.",+ "apps.mobile.title": "Mobile",+ "apps.title": "Découvrez plus de façons d'utiliser LobeHub","artworkStudio.cancel": "Annuler la génération","artworkStudio.diyTitle": "Créez le vôtre","artworkStudio.enableModel": "Activer un modèle",diff --git a/locales/it-IT/electron.json b/locales/it-IT/electron.jsonindex 8ce258172a6..c8328e1978f 100644--- a/locales/it-IT/electron.json+++ b/locales/it-IT/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Non connesso al Gateway","gateway.title": "Gateway Dispositivo","navigation.agents": "Agenti",+ "navigation.apps": "Applicazioni","navigation.channels": "Canali","navigation.chat": "Chat","navigation.discover": "Scopri",diff --git a/locales/it-IT/notification.json b/locales/it-IT/notification.jsonindex e07143b8fe8..79dd729f39c 100644--- a/locales/it-IT/notification.json+++ b/locales/it-IT/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Risultato del trasferimento","billboard.learnMore": "Scopri di più","billboard.menuLabel": "Annunci",+ "category.agent": "Agente","category.billing": "Fatturazione","category.generation": "Generazione",+ "category.pending": "In sospeso","category.schedule": "Attività programmate","category.system": "Sistema","category.workspace": "Spazio di lavoro",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Trasferimento rifiutato","image_generation_completed": "La tua immagine \"{{prompt}}\" è pronta.","image_generation_completed_title": "Generazione immagine completata",+ "inbox.actionFailed": "Impossibile aggiornare le notifiche. Riprova.",+ "inbox.all": "Tutte le notifiche",+ "inbox.allStatus": "Tutti","inbox.archive": "Archivia","inbox.archiveAll": "Archivia tutto","inbox.empty": "Nessuna notifica al momento",+ "inbox.emptyRead": "Nessuna notifica letta","inbox.emptyUnread": "Nessuna notifica non letta","inbox.filterUnread": "Mostra solo non lette","inbox.markAllRead": "Segna tutto come letto",+ "inbox.read": "Letto","inbox.title": "Notifiche",+ "inbox.unread": "Non letto","inbox.viewDetail": "Visualizza dettagli","promotion_gift_granted": "{{credits}} crediti bonus sono stati aggiunti al tuo account.","promotion_gift_granted_card_binding": "Grazie per aver aggiunto un metodo di pagamento — {{credits}} crediti bonus sono stati aggiunti al tuo account.",diff --git a/locales/it-IT/onboarding.json b/locales/it-IT/onboarding.jsonindex 027332deb40..27cacc8acb5 100644--- a/locales/it-IT/onboarding.json+++ b/locales/it-IT/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Connetti","flow.steps.connectApps.connected": "Connesso","flow.steps.connectApps.description": "Aggiungi alcune app per creare un'esperienza più personale.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Continua l'autorizzazione",+ "flow.steps.connectApps.gmailPermissionModal.description": "Senza l'autorizzazione di lettura di Gmail, il tuo assistente non può apprendere informazioni su di te dalla tua casella di posta.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Questo non influisce sul resto della configurazione. Puoi saltare per ora e continuare.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Salta e continua",+ "flow.steps.connectApps.gmailPermissionModal.title": "Sono necessarie ulteriori autorizzazioni","flow.steps.connectApps.title": "Inizia a definire chi sei","flow.steps.learnYourWorld.analysisFailed": "Non siamo riusciti a completare l'analisi delle tue fonti collegate.","flow.steps.learnYourWorld.description": "Costruzione del tuo profilo utente",diff --git a/locales/it-IT/selfLearning.json b/locales/it-IT/selfLearning.jsonindex 9a187c35664..cedb71923ef 100644--- a/locales/it-IT/selfLearning.json+++ b/locales/it-IT/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "corsa {{n}}","charts.streak": "{{count}} pratiche consecutive senza errori","charts.tooFew": "Le curve appaiono dopo la seconda pratica.",+ "create.adjust.action": "Applica regolazione",+ "create.adjust.adjusting": "Regolando…",+ "create.adjust.blockAction": "Regola con AI",+ "create.adjust.failed": "Impossibile regolare l'ancora. La tua bozza attuale è invariata.",+ "create.adjust.generatingCountdown": "Regolando l'ancora… circa {{time}} rimanenti",+ "create.adjust.help": "Descrivi cosa dovrebbe cambiare. L'ancora attuale e tutto ciò che non menzioni verranno preservati.",+ "create.adjust.placeholder.canonEntries": "es. Usa principi riconosciuti da un framework più autorevole…",+ "create.adjust.placeholder.domainFilter": "es. Includi pianificazione delegata e triage delle informazioni, ma solo per un principale nominato…",+ "create.adjust.placeholder.layers": "es. Trasforma questi in una vera progressione di competenza, piuttosto che in fasi di un flusso di lavoro…",+ "create.adjust.placeholder.outOfScope": "es. Escludi la gestione generale dei progetti e le decisioni prese per conto del principale…",+ "create.adjust.title": "Regola con AI","create.anchor.addCanon": "Aggiungi","create.anchor.addLayer": "Aggiungi","create.anchor.canon": "Canone",@@ -36,17 +47,22 @@"create.cancel": "Annulla","create.confirm": "Crea","create.failed": "Impossibile creare. Riprova.",+ "create.field.brief": "Breve direzione","create.field.domainFilter": "Cosa conta come pratica","create.field.outOfScope": "Cosa non conta","create.field.outOfScopePlaceholder": "es. discussioni di design, domande generali e risposte…","create.field.title": "Nome","create.generate": "Genera","create.generating": "Generazione della competenza in corso…",+ "create.generatingAlmostDone": "Ancora al lavoro — dovrebbe essere pronto a breve…",+ "create.generatingCanon": "Ricerca di principi riconosciuti…",+ "create.generatingCountdown": "Circa {{time}} rimanenti",+ "create.generatingLayers": "Costruzione di una progressione chiara…",+ "create.generatingScope": "Chiarimento di ciò che conta come pratica…","create.modalTitle": "Crea una competenza","create.next": "Avanti","create.regenerate": "Rigenera","create.reviewHelp": "Ecco l'ancoraggio che ha letto dal tuo brief. Correggi tutto ciò che non va — il filtro decide da quali conversazioni apprende; i livelli e il canone decidono dove si attaccano le lezioni e cosa significa “copertura”.",- "create.reviewStep": "Rivedi l'ancoraggio","domain.delete": "Elimina","domain.deleteConfirm.content": "Le sue {{habits}} abitudini e {{runs}} registri di pratica in questa direzione verranno eliminati. Questo non può essere annullato.","domain.deleteConfirm.ok": "Elimina",diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.jsonindex 62147fff2c6..ade35978970 100644--- a/locales/it-IT/setting.json+++ b/locales/it-IT/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Aiutaci a migliorare {{appName}} con dati di utilizzo anonimi","analytics.telemetry.title": "Invia Dati di Utilizzo Anonimi","analytics.title": "Analisi",+ "apps.cli.copied": "Copiato",+ "apps.cli.copy": "Copia il comando di installazione",+ "apps.cli.desc": "Script, dispositivi e lavoro senza interfaccia grafica dalla riga di comando.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Scarica l'app desktop",+ "apps.desktop.desc": "File locali, strumenti di sistema e lavoro concentrato su questa macchina.",+ "apps.desktop.inUse": "In uso",+ "apps.desktop.inUseDesc": "Stai già utilizzando l'app desktop.",+ "apps.desktop.title": "Desktop",+ "apps.kicker": "Modalità",+ "apps.messenger.cta": "Configura Messenger",+ "apps.messenger.desc": "Comunica con LobeHub su Discord, Feishu, Slack e altri.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Scarica l'app mobile",+ "apps.mobile.desc": "Inizia conversazioni dal tuo telefono quando sei lontano dal computer.",+ "apps.mobile.title": "Mobile",+ "apps.title": "Scopri altri modi per utilizzare LobeHub","artworkStudio.cancel": "Annulla generazione","artworkStudio.diyTitle": "Crea il tuo","artworkStudio.enableModel": "Abilita un modello",diff --git a/locales/ja-JP/electron.json b/locales/ja-JP/electron.jsonindex 5c1a4aa103d..390879d0a67 100644--- a/locales/ja-JP/electron.json+++ b/locales/ja-JP/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "ゲートウェイに接続されていません","gateway.title": "デバイスゲートウェイ","navigation.agents": "エージェント",+ "navigation.apps": "アプリ","navigation.channels": "チャンネル","navigation.chat": "チャット","navigation.discover": "発見",diff --git a/locales/ja-JP/notification.json b/locales/ja-JP/notification.jsonindex 9a3ed3cc3c9..d45b721c8b8 100644--- a/locales/ja-JP/notification.json+++ b/locales/ja-JP/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "移管結果","billboard.learnMore": "詳細はこちら","billboard.menuLabel": "お知らせ",+ "category.agent": "エージェント","category.billing": "請求","category.generation": "生成",+ "category.pending": "保留中","category.schedule": "スケジュールされたタスク","category.system": "システム","category.workspace": "ワークスペース",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "移管が拒否されました","image_generation_completed": "画像「{{prompt}}」の生成が完了しました。","image_generation_completed_title": "画像生成が完了しました",+ "inbox.actionFailed": "通知を更新できませんでした。もう一度お試しください。",+ "inbox.all": "すべての通知",+ "inbox.allStatus": "すべて","inbox.archive": "アーカイブ","inbox.archiveAll": "すべてをアーカイブ","inbox.empty": "通知はまだありません",+ "inbox.emptyRead": "既読の通知はありません","inbox.emptyUnread": "未読の通知はありません","inbox.filterUnread": "未読のみ表示","inbox.markAllRead": "すべてを既読にする",+ "inbox.read": "既読","inbox.title": "通知",+ "inbox.unread": "未読","inbox.viewDetail": "詳細を見る","promotion_gift_granted": "{{credits}} ボーナスクレジットがアカウントに追加されました。","promotion_gift_granted_card_binding": "お支払い方法を追加していただきありがとうございます — {{credits}} ボーナスクレジットがアカウントに追加されました。",diff --git a/locales/ja-JP/onboarding.json b/locales/ja-JP/onboarding.jsonindex 356be20e468..803bdc1555a 100644--- a/locales/ja-JP/onboarding.json+++ b/locales/ja-JP/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "接続","flow.steps.connectApps.connected": "接続済み","flow.steps.connectApps.description": "より個人的な体験を形作るためにいくつかのアプリを追加してください。",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "認証を続行",+ "flow.steps.connectApps.gmailPermissionModal.description": "Gmailの読み取り権限がないと、アシスタントは受信トレイからあなたについて学ぶことができません。",+ "flow.steps.connectApps.gmailPermissionModal.hint": "これはオンボーディングの他の部分には影響しません。今はスキップして続行できます。",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "スキップして続行",+ "flow.steps.connectApps.gmailPermissionModal.title": "追加の権限が必要です","flow.steps.connectApps.title": "あなたの形を始めましょう","flow.steps.learnYourWorld.analysisFailed": "接続されたソースの分析を完了できませんでした。","flow.steps.learnYourWorld.description": "ユーザープロファイルを構築中",diff --git a/locales/ja-JP/selfLearning.json b/locales/ja-JP/selfLearning.jsonindex ea738f6318f..909c3348ae0 100644--- a/locales/ja-JP/selfLearning.json+++ b/locales/ja-JP/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "{{n}}回目","charts.streak": "連続 {{count}} 回ミスなし","charts.tooFew": "カーブは2回目の練習後に表示されます。",+ "create.adjust.action": "調整を適用",+ "create.adjust.adjusting": "調整中…",+ "create.adjust.blockAction": "AIで調整",+ "create.adjust.failed": "アンカーを調整できませんでした。現在のドラフトは変更されていません。",+ "create.adjust.generatingCountdown": "アンカーを調整中… 残り約{{time}}",+ "create.adjust.help": "変更すべき内容を記述してください。現在のアンカーと、言及されていないすべての内容は保持されます。",+ "create.adjust.placeholder.canonEntries": "例: より権威あるフレームワークの認識された原則を使用…",+ "create.adjust.placeholder.domainFilter": "例: 委任されたスケジューリングと情報トリアージを含めるが、特定の責任者に限定する…",+ "create.adjust.placeholder.layers": "例: これをワークフローの段階ではなく、熟練度の真の進行にする…",+ "create.adjust.placeholder.outOfScope": "例: 一般的なプロジェクト管理や責任者の代わりに行われる決定を除外する…",+ "create.adjust.title": "AIで調整","create.anchor.addCanon": "追加","create.anchor.addLayer": "追加","create.anchor.canon": "基準",@@ -36,17 +47,22 @@"create.cancel": "キャンセル","create.confirm": "作成","create.failed": "作成できませんでした。もう一度試してください。",+ "create.field.brief": "指示概要","create.field.domainFilter": "練習としてカウントされるもの","create.field.outOfScope": "カウントされないもの","create.field.outOfScopePlaceholder": "例: デザインの議論、一般的なQ&A…","create.field.title": "名前","create.generate": "生成","create.generating": "専門知識を生成中…",+ "create.generatingAlmostDone": "まだ作業中です — まもなく準備が整います…",+ "create.generatingCanon": "認識された原則を検索中…",+ "create.generatingCountdown": "残り約{{time}}",+ "create.generatingLayers": "明確な進行を構築中…",+ "create.generatingScope": "実践としてカウントされる内容を明確化中…","create.modalTitle": "専門知識を作成","create.next": "次へ","create.regenerate": "再生成","create.reviewHelp": "以下は、簡潔な説明から読み取ったアンカーです。修正が必要な箇所を修正してください — フィルターは学習する会話を決定し、レイヤーと基準はレッスンの関連付けと「カバレッジ」の意味を決定します。",- "create.reviewStep": "アンカーの確認","domain.delete": "削除","domain.deleteConfirm.content": "この方向性における {{habits}} 個の習慣と {{runs}} 回の練習記録が削除されます。この操作は元に戻せません。","domain.deleteConfirm.ok": "削除",diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.jsonindex 11473944165..16123067c39 100644--- a/locales/ja-JP/setting.json+++ b/locales/ja-JP/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "{{appName}} の改善のために匿名の使用データの提供にご協力ください","analytics.telemetry.title": "匿名使用データの送信","analytics.title": "データ分析",+ "apps.cli.copied": "コピーしました",+ "apps.cli.copy": "インストールコマンドをコピー",+ "apps.cli.desc": "スクリプト、デバイス、ヘッドレスはコマンドラインから動作します。",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "デスクトップアプリを入手",+ "apps.desktop.desc": "ローカルファイル、システムツール、このマシンでの集中作業。",+ "apps.desktop.inUse": "使用中",+ "apps.desktop.inUseDesc": "すでにデスクトップアプリを使用しています。",+ "apps.desktop.title": "デスクトップ",+ "apps.kicker": "方法",+ "apps.messenger.cta": "Messengerを設定",+ "apps.messenger.desc": "Discord、Feishu、SlackなどでLobeHubと会話。",+ "apps.messenger.title": "メッセンジャー",+ "apps.mobile.cta": "モバイルアプリを入手",+ "apps.mobile.desc": "コンピュータを離れたときに携帯電話から会話を開始。",+ "apps.mobile.title": "モバイル",+ "apps.title": "LobeHubを活用するさらなる方法を発見","artworkStudio.cancel": "生成をキャンセル","artworkStudio.diyTitle": "自分で作る","artworkStudio.enableModel": "モデルを有効化",diff --git a/locales/ko-KR/electron.json b/locales/ko-KR/electron.jsonindex 4952b50fd6c..44eca3b2cf8 100644--- a/locales/ko-KR/electron.json+++ b/locales/ko-KR/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "게이트웨이에 연결되지 않음","gateway.title": "장치 게이트웨이","navigation.agents": "에이전트",+ "navigation.apps": "앱","navigation.channels": "채널","navigation.chat": "채팅","navigation.discover": "발견",diff --git a/locales/ko-KR/notification.json b/locales/ko-KR/notification.jsonindex d7f192eed0e..6ba420e18b8 100644--- a/locales/ko-KR/notification.json+++ b/locales/ko-KR/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "이전 결과","billboard.learnMore": "자세히 알아보기","billboard.menuLabel": "공지 사항",+ "category.agent": "에이전트","category.billing": "청구","category.generation": "생성",+ "category.pending": "대기 중","category.schedule": "예약된 작업","category.system": "시스템","category.workspace": "작업 공간",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "이전 거절됨","image_generation_completed": "이미지 \"{{prompt}}\"이(가) 준비되었습니다.","image_generation_completed_title": "이미지 생성 완료",+ "inbox.actionFailed": "알림을 업데이트할 수 없습니다. 다시 시도해 주세요.",+ "inbox.all": "모든 알림",+ "inbox.allStatus": "전체","inbox.archive": "보관","inbox.archiveAll": "모두 보관","inbox.empty": "알림이 아직 없습니다",+ "inbox.emptyRead": "읽은 알림이 없습니다","inbox.emptyUnread": "읽지 않은 알림이 없습니다","inbox.filterUnread": "읽지 않은 항목만 보기","inbox.markAllRead": "모두 읽음으로 표시",+ "inbox.read": "읽음","inbox.title": "알림",+ "inbox.unread": "읽지 않음","inbox.viewDetail": "세부 정보 보기","promotion_gift_granted": "{{credits}} 보너스 크레딧이 계정에 추가되었습니다.","promotion_gift_granted_card_binding": "결제 수단을 추가해 주셔서 감사합니다 — {{credits}} 보너스 크레딧이 계정에 추가되었습니다.",diff --git a/locales/ko-KR/onboarding.json b/locales/ko-KR/onboarding.jsonindex 9ac89fc324e..ab51fea0ee8 100644--- a/locales/ko-KR/onboarding.json+++ b/locales/ko-KR/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "연결","flow.steps.connectApps.connected": "연결됨","flow.steps.connectApps.description": "더 개인화된 경험을 형성하기 위해 몇 가지 앱을 추가하세요.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "권한 부여 계속하기",+ "flow.steps.connectApps.gmailPermissionModal.description": "Gmail 읽기 권한이 없으면, 비서가 받은 편지함에서 정보를 학습할 수 없습니다.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "이는 나머지 온보딩 과정에 영향을 미치지 않습니다. 지금은 건너뛰고 계속 진행할 수 있습니다.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "건너뛰고 계속하기",+ "flow.steps.connectApps.gmailPermissionModal.title": "추가 권한 필요","flow.steps.connectApps.title": "당신의 모습을 시작하세요","flow.steps.learnYourWorld.analysisFailed": "연결된 소스를 분석하지 못했습니다.","flow.steps.learnYourWorld.description": "사용자 프로필을 구축 중",diff --git a/locales/ko-KR/selfLearning.json b/locales/ko-KR/selfLearning.jsonindex ba827f9ccee..99eb8e70e59 100644--- a/locales/ko-KR/selfLearning.json+++ b/locales/ko-KR/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "{{n}}회 실행","charts.streak": "연속 {{count}}번의 연습에서 실수 없음","charts.tooFew": "곡선은 두 번째 연습 후에 나타납니다.",+ "create.adjust.action": "조정을 적용",+ "create.adjust.adjusting": "조정 중…",+ "create.adjust.blockAction": "AI로 조정",+ "create.adjust.failed": "앵커를 조정할 수 없습니다. 현재 초안은 변경되지 않았습니다.",+ "create.adjust.generatingCountdown": "앵커를 조정 중… 약 {{time}} 남음",+ "create.adjust.help": "변경해야 할 내용을 설명하세요. 현재 앵커와 언급하지 않은 모든 내용은 유지됩니다.",+ "create.adjust.placeholder.canonEntries": "예: 더 권위 있는 프레임워크의 인정된 원칙을 사용하세요…",+ "create.adjust.placeholder.domainFilter": "예: 위임된 일정 관리와 정보 분류를 포함하되, 특정 주체에 한정하세요…",+ "create.adjust.placeholder.layers": "예: 워크플로우의 단계가 아니라 숙련도의 진정한 발전 단계로 만드세요…",+ "create.adjust.placeholder.outOfScope": "예: 일반적인 프로젝트 관리와 주체를 대신하여 내린 결정은 제외하세요…",+ "create.adjust.title": "AI로 조정","create.anchor.addCanon": "추가","create.anchor.addLayer": "추가","create.anchor.canon": "표준",@@ -36,17 +47,22 @@"create.cancel": "취소","create.confirm": "생성","create.failed": "생성할 수 없습니다. 다시 시도하세요.",+ "create.field.brief": "지침 요약","create.field.domainFilter": "연습으로 간주되는 것","create.field.outOfScope": "포함되지 않는 것","create.field.outOfScopePlaceholder": "예: 디자인 논의, 일반 Q&A…","create.field.title": "이름","create.generate": "생성","create.generating": "전문성을 생성 중…",+ "create.generatingAlmostDone": "작업 중 — 곧 준비될 예정입니다…",+ "create.generatingCanon": "인정된 원칙 찾는 중…",+ "create.generatingCountdown": "약 {{time}} 남음",+ "create.generatingLayers": "명확한 발전 단계 구축 중…",+ "create.generatingScope": "실제로 연습으로 간주되는 것 명확히 하는 중…","create.modalTitle": "전문성 생성","create.next": "다음","create.regenerate": "다시 생성","create.reviewHelp": "다음은 간략한 설명에서 읽어낸 기준점입니다. 잘못된 부분을 수정하세요 — 필터는 학습할 대화를 결정하며, 계층과 표준은 레슨이 연결되는 위치와 '적용 범위'의 의미를 결정합니다.",- "create.reviewStep": "기준점 검토","domain.delete": "삭제","domain.deleteConfirm.content": "이 방향에서 {{habits}}개의 습관과 {{runs}}번의 연습 기록이 함께 삭제됩니다. 이 작업은 되돌릴 수 없습니다.","domain.deleteConfirm.ok": "삭제",diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.jsonindex 1ea64fd5331..f1fbb368114 100644--- a/locales/ko-KR/setting.json+++ b/locales/ko-KR/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "{{appName}}의 개선을 위해 익명 사용 데이터를 제공해 주세요","analytics.telemetry.title": "익명 사용 데이터 전송","analytics.title": "데이터 통계",+ "apps.cli.copied": "복사됨",+ "apps.cli.copy": "설치 명령 복사",+ "apps.cli.desc": "스크립트, 장치 및 헤드리스 작업을 명령줄에서 실행합니다.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "데스크톱 앱 다운로드",+ "apps.desktop.desc": "로컬 파일, 시스템 도구 및 이 기기에서 집중 작업을 수행합니다.",+ "apps.desktop.inUse": "사용 중",+ "apps.desktop.inUseDesc": "이미 데스크톱 앱을 사용 중입니다.",+ "apps.desktop.title": "데스크톱",+ "apps.kicker": "방법",+ "apps.messenger.cta": "Messenger 설정",+ "apps.messenger.desc": "Discord, Feishu, Slack 등에서 LobeHub와 대화하세요.",+ "apps.messenger.title": "메신저",+ "apps.mobile.cta": "모바일 앱 다운로드",+ "apps.mobile.desc": "컴퓨터를 떠날 때 휴대폰에서 대화를 시작하세요.",+ "apps.mobile.title": "모바일",+ "apps.title": "LobeHub를 사용하는 더 많은 방법을 발견하세요","artworkStudio.cancel": "생성 취소","artworkStudio.diyTitle": "직접 만들기","artworkStudio.enableModel": "모델 활성화",diff --git a/locales/nl-NL/electron.json b/locales/nl-NL/electron.jsonindex 8c081a02ad9..e1cec625402 100644--- a/locales/nl-NL/electron.json+++ b/locales/nl-NL/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Niet verbonden met Gateway","gateway.title": "Apparaat Gateway","navigation.agents": "Agenten",+ "navigation.apps": "Apps","navigation.channels": "Kanalen","navigation.chat": "Chat","navigation.discover": "Ontdekken",diff --git a/locales/nl-NL/notification.json b/locales/nl-NL/notification.jsonindex e307f587754..eabdf58a785 100644--- a/locales/nl-NL/notification.json+++ b/locales/nl-NL/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Resultaat van overdracht","billboard.learnMore": "Meer informatie","billboard.menuLabel": "Aankondigingen",+ "category.agent": "Agent","category.billing": "Facturering","category.generation": "Generatie",+ "category.pending": "In behandeling","category.schedule": "Geplande taken","category.system": "Systeem","category.workspace": "Werkruimte",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Overdracht geweigerd","image_generation_completed": "Uw afbeelding \"{{prompt}}\" is klaar.","image_generation_completed_title": "Afbeeldingsgeneratie voltooid",+ "inbox.actionFailed": "Kon meldingen niet bijwerken. Probeer het opnieuw.",+ "inbox.all": "Alle meldingen",+ "inbox.allStatus": "Alles","inbox.archive": "Archiveren","inbox.archiveAll": "Alles archiveren","inbox.empty": "Nog geen meldingen",+ "inbox.emptyRead": "Geen gelezen meldingen","inbox.emptyUnread": "Geen ongelezen meldingen","inbox.filterUnread": "Alleen ongelezen tonen","inbox.markAllRead": "Alles als gelezen markeren",+ "inbox.read": "Gelezen","inbox.title": "Meldingen",+ "inbox.unread": "Ongelezen","inbox.viewDetail": "Details bekijken","promotion_gift_granted": "{{credits}} bonuscredits zijn aan je account toegevoegd.","promotion_gift_granted_card_binding": "Bedankt voor het toevoegen van een betaalmethode — {{credits}} bonuscredits zijn aan je account toegevoegd.",diff --git a/locales/nl-NL/onboarding.json b/locales/nl-NL/onboarding.jsonindex 722a6556e44..6cc85f336dd 100644--- a/locales/nl-NL/onboarding.json+++ b/locales/nl-NL/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Verbinden","flow.steps.connectApps.connected": "Verbonden","flow.steps.connectApps.description": "Voeg een paar apps toe om een meer persoonlijke ervaring te creëren.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Doorgaan met autorisatie",+ "flow.steps.connectApps.gmailPermissionModal.description": "Zonder leesrechten voor Gmail kan je assistent niets leren over jou vanuit je inbox.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Dit heeft geen invloed op de rest van de onboarding. Je kunt dit voorlopig overslaan en doorgaan.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Overslaan en doorgaan",+ "flow.steps.connectApps.gmailPermissionModal.title": "Meer toestemming nodig","flow.steps.connectApps.title": "Begin met het vormgeven van jezelf","flow.steps.learnYourWorld.analysisFailed": "We konden je verbonden bronnen niet analyseren.","flow.steps.learnYourWorld.description": "Je gebruikersprofiel opbouwen",diff --git a/locales/nl-NL/selfLearning.json b/locales/nl-NL/selfLearning.jsonindex 6b67b1f1ded..06f39520142 100644--- a/locales/nl-NL/selfLearning.json+++ b/locales/nl-NL/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "ronde {{n}}","charts.streak": "{{count}} oefeningen op rij zonder fouten","charts.tooFew": "Grafieken verschijnen na de tweede oefening.",+ "create.adjust.action": "Pas aanpassing toe",+ "create.adjust.adjusting": "Bezig met aanpassen…",+ "create.adjust.blockAction": "Aanpassen met AI",+ "create.adjust.failed": "Kon het anker niet aanpassen. Uw huidige concept is ongewijzigd.",+ "create.adjust.generatingCountdown": "Anker aanpassen… ongeveer {{time}} resterend",+ "create.adjust.help": "Beschrijf wat er moet veranderen. Het huidige anker en alles wat u niet vermeldt, blijven behouden.",+ "create.adjust.placeholder.canonEntries": "bijv. Gebruik erkende principes uit een meer gezaghebbend kader…",+ "create.adjust.placeholder.domainFilter": "bijv. Neem gedelegeerde planning en informatiebeheer op, maar alleen voor een genoemde verantwoordelijke…",+ "create.adjust.placeholder.layers": "bijv. Maak hiervan een echte progressie in bekwaamheid, in plaats van stadia in een workflow…",+ "create.adjust.placeholder.outOfScope": "bijv. Sluit algemeen projectmanagement en beslissingen namens de verantwoordelijke uit…",+ "create.adjust.title": "Aanpassen met AI","create.anchor.addCanon": "Toevoegen","create.anchor.addLayer": "Toevoegen","create.anchor.canon": "Canon",@@ -36,17 +47,22 @@"create.cancel": "Annuleren","create.confirm": "Aanmaken","create.failed": "Kon het niet aanmaken. Probeer het opnieuw.",+ "create.field.brief": "Richtingssamenvatting","create.field.domainFilter": "Wat telt als oefening","create.field.outOfScope": "Wat telt niet mee","create.field.outOfScopePlaceholder": "bijv. ontwerpbesprekingen, algemene Q&A…","create.field.title": "Naam","create.generate": "Genereren","create.generating": "De expertise wordt gegenereerd…",+ "create.generatingAlmostDone": "Nog bezig — dit zou binnenkort klaar moeten zijn…",+ "create.generatingCanon": "Erkende principes vinden…",+ "create.generatingCountdown": "Ongeveer {{time}} resterend",+ "create.generatingLayers": "Een duidelijke progressie opbouwen…",+ "create.generatingScope": "Verduidelijken wat als oefening telt…","create.modalTitle": "Maak een expertise","create.next": "Volgende","create.regenerate": "Opnieuw genereren","create.reviewHelp": "Hier is het anker dat het uit je briefing heeft gehaald. Corrigeer alles wat niet klopt — het filter bepaalt van welke gesprekken het leert; de lagen en canon bepalen waar lessen aan worden gekoppeld en wat 'dekking' betekent.",- "create.reviewStep": "Controleer het anker","domain.delete": "Verwijderen","domain.deleteConfirm.content": "Zijn {{habits}} gewoontes en {{runs}} oefenrecords in deze richting worden ook verwijderd. Dit kan niet ongedaan worden gemaakt.","domain.deleteConfirm.ok": "Verwijderen",diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.jsonindex 08b02124ace..e486e5d7993 100644--- a/locales/nl-NL/setting.json+++ b/locales/nl-NL/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Help ons {{appName}} verbeteren met anonieme gebruiksgegevens","analytics.telemetry.title": "Anonieme gebruiksgegevens verzenden","analytics.title": "Analyse",+ "apps.cli.copied": "Gekopieerd",+ "apps.cli.copy": "Kopieer installatiecommando",+ "apps.cli.desc": "Scripts, apparaten en headless werken vanaf de commandoregel.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Download desktop-app",+ "apps.desktop.desc": "Lokale bestanden, systeemtools en gefocust werken op deze machine.",+ "apps.desktop.inUse": "In gebruik",+ "apps.desktop.inUseDesc": "Je gebruikt de desktop-app al.",+ "apps.desktop.title": "Desktop",+ "apps.kicker": "Manieren",+ "apps.messenger.cta": "Messenger instellen",+ "apps.messenger.desc": "Praat met LobeHub in Discord, Feishu, Slack en de rest.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Download mobiele app",+ "apps.mobile.desc": "Begin gesprekken vanaf je telefoon wanneer je de computer verlaat.",+ "apps.mobile.title": "Mobiel",+ "apps.title": "Ontdek meer manieren om LobeHub te gebruiken","artworkStudio.cancel": "Generatie annuleren","artworkStudio.diyTitle": "Maak je eigen","artworkStudio.enableModel": "Schakel een model in",diff --git a/locales/pl-PL/electron.json b/locales/pl-PL/electron.jsonindex 91989972197..29fc364f032 100644--- a/locales/pl-PL/electron.json+++ b/locales/pl-PL/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Nie połączono z bramą","gateway.title": "Bramka urządzenia","navigation.agents": "Agenci",+ "navigation.apps": "Aplikacje","navigation.channels": "Kanały","navigation.chat": "Czat","navigation.discover": "Odkryj",diff --git a/locales/pl-PL/notification.json b/locales/pl-PL/notification.jsonindex 3e2a010866c..71dd9a7b4f7 100644--- a/locales/pl-PL/notification.json+++ b/locales/pl-PL/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Wynik przeniesienia","billboard.learnMore": "Dowiedz się więcej","billboard.menuLabel": "Ogłoszenia",+ "category.agent": "Agent","category.billing": "Rozliczenia","category.generation": "Generowanie",+ "category.pending": "Oczekujące","category.schedule": "Zadania zaplanowane","category.system": "System","category.workspace": "Przestrzeń robocza",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Przeniesienie odrzucone","image_generation_completed": "Twój obraz \"{{prompt}}\" jest gotowy.","image_generation_completed_title": "Generowanie obrazu zakończone",+ "inbox.actionFailed": "Nie udało się zaktualizować powiadomień. Spróbuj ponownie.",+ "inbox.all": "Wszystkie powiadomienia",+ "inbox.allStatus": "Wszystko","inbox.archive": "Archiwizuj","inbox.archiveAll": "Zarchiwizuj wszystko","inbox.empty": "Brak powiadomień",+ "inbox.emptyRead": "Brak przeczytanych powiadomień","inbox.emptyUnread": "Brak nieprzeczytanych powiadomień","inbox.filterUnread": "Pokaż tylko nieprzeczytane","inbox.markAllRead": "Oznacz wszystkie jako przeczytane",+ "inbox.read": "Przeczytane","inbox.title": "Powiadomienia",+ "inbox.unread": "Nieprzeczytane","inbox.viewDetail": "Zobacz szczegóły","promotion_gift_granted": "{{credits}} dodatkowych kredytów zostało dodanych do Twojego konta.","promotion_gift_granted_card_binding": "Dziękujemy za dodanie metody płatności — {{credits}} dodatkowych kredytów zostało dodanych do Twojego konta.",diff --git a/locales/pl-PL/onboarding.json b/locales/pl-PL/onboarding.jsonindex 7a279f3b618..15494bc73b5 100644--- a/locales/pl-PL/onboarding.json+++ b/locales/pl-PL/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Połącz","flow.steps.connectApps.connected": "Połączono","flow.steps.connectApps.description": "Dodaj kilka aplikacji, aby stworzyć bardziej osobiste doświadczenie.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Kontynuuj autoryzację",+ "flow.steps.connectApps.gmailPermissionModal.description": "Bez uprawnień do odczytu Gmaila Twój asystent nie może uczyć się o Tobie na podstawie Twojej skrzynki odbiorczej.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "To nie wpływa na resztę procesu wprowadzania. Możesz teraz pominąć i kontynuować.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Pomiń i kontynuuj",+ "flow.steps.connectApps.gmailPermissionModal.title": "Potrzebne dodatkowe uprawnienia","flow.steps.connectApps.title": "Zacznij kształtować siebie","flow.steps.learnYourWorld.analysisFailed": "Nie udało się zakończyć analizy Twoich połączonych źródeł.","flow.steps.learnYourWorld.description": "Tworzenie Twojego profilu użytkownika",diff --git a/locales/pl-PL/selfLearning.json b/locales/pl-PL/selfLearning.jsonindex ab2194070b6..40ae4d9c84f 100644--- a/locales/pl-PL/selfLearning.json+++ b/locales/pl-PL/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "przebieg {{n}}","charts.streak": "{{count}} ćwiczeń z rzędu bez błędów","charts.tooFew": "Krzywe pojawiają się po drugim ćwiczeniu.",+ "create.adjust.action": "Zastosuj dostosowanie",+ "create.adjust.adjusting": "Dostosowywanie…",+ "create.adjust.blockAction": "Dostosuj za pomocą AI",+ "create.adjust.failed": "Nie udało się dostosować kotwicy. Twój obecny szkic pozostaje bez zmian.",+ "create.adjust.generatingCountdown": "Dostosowywanie kotwicy… pozostało około {{time}}",+ "create.adjust.help": "Opisz, co powinno się zmienić. Obecna kotwica i wszystko, czego nie wspomnisz, zostaną zachowane.",+ "create.adjust.placeholder.canonEntries": "np. Użyj uznanych zasad z bardziej autorytatywnego frameworka…",+ "create.adjust.placeholder.domainFilter": "np. Uwzględnij delegowane planowanie i selekcję informacji, ale tylko dla określonego przełożonego…",+ "create.adjust.placeholder.layers": "np. Przekształć to w prawdziwy postęp umiejętności, zamiast etapów w przepływie pracy…",+ "create.adjust.placeholder.outOfScope": "np. Wyklucz ogólne zarządzanie projektami i decyzje podejmowane w imieniu przełożonego…",+ "create.adjust.title": "Dostosuj za pomocą AI","create.anchor.addCanon": "Dodaj","create.anchor.addLayer": "Dodaj","create.anchor.canon": "Kanon",@@ -36,17 +47,22 @@"create.cancel": "Anuluj","create.confirm": "Utwórz","create.failed": "Nie udało się utworzyć. Spróbuj ponownie.",+ "create.field.brief": "Krótki opis kierunku","create.field.domainFilter": "Co liczy się jako ćwiczenie","create.field.outOfScope": "Co się nie liczy","create.field.outOfScopePlaceholder": "np. dyskusje projektowe, ogólne pytania i odpowiedzi…","create.field.title": "Nazwa","create.generate": "Generuj","create.generating": "Generowanie ekspertyzy…",+ "create.generatingAlmostDone": "Wciąż pracujemy — to powinno być gotowe wkrótce…",+ "create.generatingCanon": "Znajdowanie uznanych zasad…",+ "create.generatingCountdown": "Pozostało około {{time}}",+ "create.generatingLayers": "Tworzenie jasnego postępu…",+ "create.generatingScope": "Doprecyzowanie, co liczy się jako praktyka…","create.modalTitle": "Utwórz ekspertyzę","create.next": "Dalej","create.regenerate": "Generuj ponownie","create.reviewHelp": "Oto kotwica, którą odczytał z twojego briefu. Popraw wszystko, co jest nieprawidłowe — filtr decyduje, z których rozmów się uczy; warstwy i kanon decydują, gdzie przypisane są lekcje i co oznacza „pokrycie”.",- "create.reviewStep": "Przejrzyj kotwicę","domain.delete": "Usuń","domain.deleteConfirm.content": "Jego {{habits}} nawyki i {{runs}} zapisy ćwiczeń w tym kierunku zostaną usunięte. Tego nie można cofnąć.","domain.deleteConfirm.ok": "Usuń",diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.jsonindex f6a3ec53009..42142dca3b7 100644--- a/locales/pl-PL/setting.json+++ b/locales/pl-PL/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Pomóż nam ulepszyć {{appName}}, udostępniając anonimowe dane o użytkowaniu","analytics.telemetry.title": "Wysyłaj anonimowe dane o użytkowaniu","analytics.title": "Analityka",+ "apps.cli.copied": "Skopiowano",+ "apps.cli.copy": "Skopiuj polecenie instalacji",+ "apps.cli.desc": "Skrypty, urządzenia i praca bez interfejsu graficznego z wiersza poleceń.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Pobierz aplikację na komputer",+ "apps.desktop.desc": "Pliki lokalne, narzędzia systemowe i skupiona praca na tym urządzeniu.",+ "apps.desktop.inUse": "W użyciu",+ "apps.desktop.inUseDesc": "Już korzystasz z aplikacji na komputerze.",+ "apps.desktop.title": "Komputer",+ "apps.kicker": "Sposoby",+ "apps.messenger.cta": "Skonfiguruj Messenger",+ "apps.messenger.desc": "Rozmawiaj z LobeHub w Discord, Feishu, Slack i innych.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Pobierz aplikację mobilną",+ "apps.mobile.desc": "Rozpoczynaj rozmowy z telefonu, gdy odchodzisz od komputera.",+ "apps.mobile.title": "Mobilna",+ "apps.title": "Odkryj więcej sposobów na korzystanie z LobeHub","artworkStudio.cancel": "Anuluj generowanie","artworkStudio.diyTitle": "Stwórz własne","artworkStudio.enableModel": "Włącz model",diff --git a/locales/pt-BR/electron.json b/locales/pt-BR/electron.jsonindex ffe17292057..3d35c283dbc 100644--- a/locales/pt-BR/electron.json+++ b/locales/pt-BR/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Não conectado ao Gateway","gateway.title": "Gateway de Dispositivo","navigation.agents": "Agentes",+ "navigation.apps": "Aplicativos","navigation.channels": "Canais","navigation.chat": "Chat","navigation.discover": "Descobrir",diff --git a/locales/pt-BR/notification.json b/locales/pt-BR/notification.jsonindex bcd5617a6e6..22fecc225ba 100644--- a/locales/pt-BR/notification.json+++ b/locales/pt-BR/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Resultado da transferência","billboard.learnMore": "Saiba mais","billboard.menuLabel": "Comunicados",+ "category.agent": "Agente","category.billing": "Faturamento","category.generation": "Geração",+ "category.pending": "Pendente","category.schedule": "Tarefas agendadas","category.system": "Sistema","category.workspace": "Espaço de trabalho",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Transferência recusada","image_generation_completed": "Sua imagem \"{{prompt}}\" está pronta.","image_generation_completed_title": "Geração de imagem concluída",+ "inbox.actionFailed": "Não foi possível atualizar as notificações. Por favor, tente novamente.",+ "inbox.all": "Todas as notificações",+ "inbox.allStatus": "Todos","inbox.archive": "Arquivar","inbox.archiveAll": "Arquivar tudo","inbox.empty": "Nenhuma notificação ainda",+ "inbox.emptyRead": "Nenhuma notificação lida","inbox.emptyUnread": "Nenhuma notificação não lida","inbox.filterUnread": "Mostrar apenas não lidas","inbox.markAllRead": "Marcar todas como lidas",+ "inbox.read": "Lidas","inbox.title": "Notificações",+ "inbox.unread": "Não lidas","inbox.viewDetail": "Ver detalhes","promotion_gift_granted": "{{credits}} créditos bônus foram adicionados à sua conta.","promotion_gift_granted_card_binding": "Obrigado por adicionar um método de pagamento — {{credits}} créditos bônus foram adicionados à sua conta.",diff --git a/locales/pt-BR/onboarding.json b/locales/pt-BR/onboarding.jsonindex 776e0d2df86..cad0ef65990 100644--- a/locales/pt-BR/onboarding.json+++ b/locales/pt-BR/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Conectar","flow.steps.connectApps.connected": "Conectado","flow.steps.connectApps.description": "Adicione alguns aplicativos para ajudar a criar uma experiência mais personalizada.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Continuar autorização",+ "flow.steps.connectApps.gmailPermissionModal.description": "Sem permissão de leitura do Gmail, seu assistente não poderá aprender sobre você a partir da sua caixa de entrada.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Isso não afeta o restante do processo de configuração. Você pode pular por enquanto e continuar.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Pular e continuar",+ "flow.steps.connectApps.gmailPermissionModal.title": "Mais permissões necessárias","flow.steps.connectApps.title": "Comece a moldar você","flow.steps.learnYourWorld.analysisFailed": "Não conseguimos concluir a análise de suas fontes conectadas.","flow.steps.learnYourWorld.description": "Construindo seu perfil de usuário",diff --git a/locales/pt-BR/selfLearning.json b/locales/pt-BR/selfLearning.jsonindex 6ee9dad2d17..4edbc3fb836 100644--- a/locales/pt-BR/selfLearning.json+++ b/locales/pt-BR/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "execução {{n}}","charts.streak": "{{count}} práticas seguidas sem erros","charts.tooFew": "Curvas aparecem após a segunda prática.",+ "create.adjust.action": "Aplicar ajuste",+ "create.adjust.adjusting": "Ajustando…",+ "create.adjust.blockAction": "Ajustar com IA",+ "create.adjust.failed": "Não foi possível ajustar o âncora. Seu rascunho atual permanece inalterado.",+ "create.adjust.generatingCountdown": "Ajustando o âncora… cerca de {{time}} restante",+ "create.adjust.help": "Descreva o que deve mudar. O âncora atual e tudo o que você não mencionar serão preservados.",+ "create.adjust.placeholder.canonEntries": "ex.: Use princípios reconhecidos de uma estrutura mais autoritativa…",+ "create.adjust.placeholder.domainFilter": "ex.: Inclua agendamento delegado e triagem de informações, mas apenas para um principal nomeado…",+ "create.adjust.placeholder.layers": "ex.: Transforme isso em uma verdadeira progressão de proficiência, em vez de etapas em um fluxo de trabalho…",+ "create.adjust.placeholder.outOfScope": "ex.: Exclua gerenciamento geral de projetos e decisões tomadas em nome do principal…",+ "create.adjust.title": "Ajustar com IA","create.anchor.addCanon": "Adicionar","create.anchor.addLayer": "Adicionar","create.anchor.canon": "Cânone",@@ -36,17 +47,22 @@"create.cancel": "Cancelar","create.confirm": "Criar","create.failed": "Não foi possível criar. Tente novamente.",+ "create.field.brief": "Resumo de direção","create.field.domainFilter": "O que conta como prática","create.field.outOfScope": "O que não conta","create.field.outOfScopePlaceholder": "ex.: discussões de design, perguntas gerais...","create.field.title": "Nome","create.generate": "Gerar","create.generating": "Gerando a especialização...",+ "create.generatingAlmostDone": "Ainda trabalhando — isso deve estar pronto em breve…",+ "create.generatingCanon": "Encontrando princípios reconhecidos…",+ "create.generatingCountdown": "Cerca de {{time}} restante",+ "create.generatingLayers": "Construindo uma progressão clara…",+ "create.generatingScope": "Esclarecendo o que conta como prática…","create.modalTitle": "Criar uma especialização","create.next": "Próximo","create.regenerate": "Regenerar","create.reviewHelp": "Aqui está o âncora que foi lido a partir do seu resumo. Corrija qualquer coisa que esteja errada — o filtro decide de quais conversas ele aprende; as camadas e o cânone decidem onde as lições se conectam e o que significa 'cobertura'.",- "create.reviewStep": "Revisar o âncora","domain.delete": "Excluir","domain.deleteConfirm.content": "Seus {{habits}} hábitos e {{runs}} registros de prática nesta direção serão excluídos. Isso não pode ser desfeito.","domain.deleteConfirm.ok": "Excluir",diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.jsonindex f03a66f5eb8..b48bab6498a 100644--- a/locales/pt-BR/setting.json+++ b/locales/pt-BR/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Ajude-nos a melhorar o {{appName}} com dados de uso anônimos","analytics.telemetry.title": "Enviar Dados de Uso Anônimos","analytics.title": "Análises",+ "apps.cli.copied": "Copiado",+ "apps.cli.copy": "Copiar comando de instalação",+ "apps.cli.desc": "Scripts, dispositivos e trabalho sem interface gráfica a partir da linha de comando.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Baixar aplicativo para desktop",+ "apps.desktop.desc": "Arquivos locais, ferramentas do sistema e trabalho focado nesta máquina.",+ "apps.desktop.inUse": "Em uso",+ "apps.desktop.inUseDesc": "Você já está usando o aplicativo para desktop.",+ "apps.desktop.title": "Desktop",+ "apps.kicker": "Maneiras",+ "apps.messenger.cta": "Configurar Messenger",+ "apps.messenger.desc": "Converse com o LobeHub no Discord, Feishu, Slack e outros.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Baixar aplicativo móvel",+ "apps.mobile.desc": "Inicie conversas do seu celular quando estiver longe do computador.",+ "apps.mobile.title": "Móvel",+ "apps.title": "Descubra mais maneiras de usar o LobeHub","artworkStudio.cancel": "Cancelar geração","artworkStudio.diyTitle": "Crie o seu próprio","artworkStudio.enableModel": "Ativar um modelo",diff --git a/locales/ru-RU/electron.json b/locales/ru-RU/electron.jsonindex cbd4f6a3c33..3bc71d77b0b 100644--- a/locales/ru-RU/electron.json+++ b/locales/ru-RU/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Не подключено к шлюзу","gateway.title": "Шлюз устройства","navigation.agents": "Агенты",+ "navigation.apps": "Приложения","navigation.channels": "Каналы","navigation.chat": "Чат","navigation.discover": "Открыть",diff --git a/locales/ru-RU/notification.json b/locales/ru-RU/notification.jsonindex 2686adaf245..40173e5d4c1 100644--- a/locales/ru-RU/notification.json+++ b/locales/ru-RU/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Результат передачи","billboard.learnMore": "Подробнее","billboard.menuLabel": "Объявления",+ "category.agent": "Агент","category.billing": "Оплата","category.generation": "Генерация",+ "category.pending": "В ожидании","category.schedule": "Запланированные задачи","category.system": "Система","category.workspace": "Рабочая область",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Передача отклонена","image_generation_completed": "Ваше изображение «{{prompt}}» готово.","image_generation_completed_title": "Создание изображения завершено",+ "inbox.actionFailed": "Не удалось обновить уведомления. Пожалуйста, попробуйте еще раз.",+ "inbox.all": "Все уведомления",+ "inbox.allStatus": "Все","inbox.archive": "Архивировать","inbox.archiveAll": "Архивировать все","inbox.empty": "Уведомлений пока нет",+ "inbox.emptyRead": "Нет прочитанных уведомлений","inbox.emptyUnread": "Нет непрочитанных уведомлений","inbox.filterUnread": "Показать только непрочитанные","inbox.markAllRead": "Отметить все как прочитанные",+ "inbox.read": "Прочитано","inbox.title": "Уведомления",+ "inbox.unread": "Непрочитано","inbox.viewDetail": "Просмотреть детали","promotion_gift_granted": "На ваш счет добавлено {{credits}} бонусных кредитов.","promotion_gift_granted_card_binding": "Спасибо за добавление способа оплаты — на ваш счет добавлено {{credits}} бонусных кредитов.",diff --git a/locales/ru-RU/onboarding.json b/locales/ru-RU/onboarding.jsonindex 7fc115e0ff8..96b6b797b67 100644--- a/locales/ru-RU/onboarding.json+++ b/locales/ru-RU/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Подключить","flow.steps.connectApps.connected": "Подключено","flow.steps.connectApps.description": "Добавьте несколько приложений, чтобы создать более персонализированный опыт.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Продолжить авторизацию",+ "flow.steps.connectApps.gmailPermissionModal.description": "Без разрешения на чтение Gmail ваш помощник не сможет узнать о вас из вашей почты.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Это не повлияет на остальную часть настройки. Вы можете пропустить это сейчас и продолжить.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Пропустить и продолжить",+ "flow.steps.connectApps.gmailPermissionModal.title": "Требуется больше разрешений","flow.steps.connectApps.title": "Начните формировать себя","flow.steps.learnYourWorld.analysisFailed": "Мы не смогли завершить анализ ваших подключенных источников.","flow.steps.learnYourWorld.description": "Создание вашего пользовательского профиля",diff --git a/locales/ru-RU/selfLearning.json b/locales/ru-RU/selfLearning.jsonindex cf81634bcdc..ee266f2d216 100644--- a/locales/ru-RU/selfLearning.json+++ b/locales/ru-RU/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "практика {{n}}","charts.streak": "{{count}} практик подряд без ошибок","charts.tooFew": "Графики появляются после второй практики.",+ "create.adjust.action": "Применить корректировку",+ "create.adjust.adjusting": "Корректировка…",+ "create.adjust.blockAction": "Корректировать с помощью ИИ",+ "create.adjust.failed": "Не удалось скорректировать якорь. Ваш текущий черновик остался без изменений.",+ "create.adjust.generatingCountdown": "Корректировка якоря… осталось примерно {{time}}",+ "create.adjust.help": "Опишите, что следует изменить. Текущий якорь и все, что вы не упомянете, будут сохранены.",+ "create.adjust.placeholder.canonEntries": "например, Используйте признанные принципы из более авторитетной структуры…",+ "create.adjust.placeholder.domainFilter": "например, Включите делегированное планирование и сортировку информации, но только для указанного лица…",+ "create.adjust.placeholder.layers": "например, Сделайте это настоящей прогрессией навыков, а не этапами рабочего процесса…",+ "create.adjust.placeholder.outOfScope": "например, Исключите общее управление проектами и решения, принимаемые от имени лица…",+ "create.adjust.title": "Корректировать с помощью ИИ","create.anchor.addCanon": "Добавить","create.anchor.addLayer": "Добавить","create.anchor.canon": "Канон",@@ -36,17 +47,22 @@"create.cancel": "Отмена","create.confirm": "Создать","create.failed": "Не удалось создать. Попробуйте снова.",+ "create.field.brief": "Краткое направление","create.field.domainFilter": "Что считается практикой","create.field.outOfScope": "Что не учитывается","create.field.outOfScopePlaceholder": "например, обсуждения дизайна, общие вопросы и ответы…","create.field.title": "Название","create.generate": "Создать","create.generating": "Создание области знаний…",+ "create.generatingAlmostDone": "Все еще работаем — скоро будет готово…",+ "create.generatingCanon": "Поиск признанных принципов…",+ "create.generatingCountdown": "Осталось примерно {{time}}",+ "create.generatingLayers": "Создание четкой прогрессии…",+ "create.generatingScope": "Уточнение, что считается практикой…","create.modalTitle": "Создать область знаний","create.next": "Далее","create.regenerate": "Пересоздать","create.reviewHelp": "Вот якорь, который он извлек из вашего задания. Исправьте все, что неверно — фильтр определяет, из каких разговоров он учится; уровни и канон определяют, где прикрепляются уроки и что означает «охват».",- "create.reviewStep": "Проверить якорь","domain.delete": "Удалить","domain.deleteConfirm.content": "Его {{habits}} привычки и {{runs}} записи практик в этом направлении будут удалены. Это действие нельзя отменить.","domain.deleteConfirm.ok": "Удалить",diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.jsonindex 6cc59a6f3aa..7378b7f9e95 100644--- a/locales/ru-RU/setting.json+++ b/locales/ru-RU/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Помогите нам улучшить {{appName}}, предоставляя анонимные данные об использовании","analytics.telemetry.title": "Отправлять анонимные данные","analytics.title": "Аналитика",+ "apps.cli.copied": "Скопировано",+ "apps.cli.copy": "Скопировать команду установки",+ "apps.cli.desc": "Скрипты, устройства и работа без интерфейса из командной строки.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Скачать приложение для компьютера",+ "apps.desktop.desc": "Локальные файлы, системные инструменты и сосредоточенная работа на этом устройстве.",+ "apps.desktop.inUse": "Используется",+ "apps.desktop.inUseDesc": "Вы уже используете приложение для компьютера.",+ "apps.desktop.title": "Компьютер",+ "apps.kicker": "Способы",+ "apps.messenger.cta": "Настроить Messenger",+ "apps.messenger.desc": "Общайтесь с LobeHub в Discord, Feishu, Slack и других.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Скачать мобильное приложение",+ "apps.mobile.desc": "Начинайте беседы с телефона, когда вы не за компьютером.",+ "apps.mobile.title": "Мобильное",+ "apps.title": "Откройте больше способов использовать LobeHub","artworkStudio.cancel": "Отменить генерацию","artworkStudio.diyTitle": "Создайте сами","artworkStudio.enableModel": "Включить модель",diff --git a/locales/tr-TR/electron.json b/locales/tr-TR/electron.jsonindex f3d13fbc89d..574f90c6ccd 100644--- a/locales/tr-TR/electron.json+++ b/locales/tr-TR/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Ağ Geçidine Bağlı Değil","gateway.title": "Cihaz Ağ Geçidi","navigation.agents": "Temsilciler",+ "navigation.apps": "Uygulamalar","navigation.channels": "Kanallar","navigation.chat": "Sohbet","navigation.discover": "Keşfet",diff --git a/locales/tr-TR/notification.json b/locales/tr-TR/notification.jsonindex da3542d1ff2..417af99b75b 100644--- a/locales/tr-TR/notification.json+++ b/locales/tr-TR/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Transfer sonucu","billboard.learnMore": "Daha fazla bilgi al","billboard.menuLabel": "Duyurular",+ "category.agent": "Temsilci","category.billing": "Faturalandırma","category.generation": "Oluşturma",+ "category.pending": "Beklemede","category.schedule": "Planlanmış görevler","category.system": "Sistem","category.workspace": "Çalışma Alanı",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Transfer reddedildi","image_generation_completed": "\"{{prompt}}\" adlı görseliniz hazır.","image_generation_completed_title": "Görsel oluşturma tamamlandı",+ "inbox.actionFailed": "Bildirimler güncellenemedi. Lütfen tekrar deneyin.",+ "inbox.all": "Tüm bildirimler",+ "inbox.allStatus": "Tümü","inbox.archive": "Arşivle","inbox.archiveAll": "Tümünü arşivle","inbox.empty": "Henüz bildirim yok",+ "inbox.emptyRead": "Okunmuş bildirim yok","inbox.emptyUnread": "Okunmamış bildirim yok","inbox.filterUnread": "Sadece okunmamışları göster","inbox.markAllRead": "Tümünü okundu olarak işaretle",+ "inbox.read": "Okundu","inbox.title": "Bildirimler",+ "inbox.unread": "Okunmamış","inbox.viewDetail": "Detayları Görüntüle","promotion_gift_granted": "{{credits}} bonus kredisi hesabınıza eklendi.","promotion_gift_granted_card_binding": "Bir ödeme yöntemi eklediğiniz için teşekkürler — {{credits}} bonus kredisi hesabınıza eklendi.",diff --git a/locales/tr-TR/onboarding.json b/locales/tr-TR/onboarding.jsonindex e3c350a968f..a30a006949b 100644--- a/locales/tr-TR/onboarding.json+++ b/locales/tr-TR/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Bağlan","flow.steps.connectApps.connected": "Bağlandı","flow.steps.connectApps.description": "Daha kişisel bir deneyim oluşturmak için birkaç uygulama ekleyin.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Yetkilendirmeye devam et",+ "flow.steps.connectApps.gmailPermissionModal.description": "Gmail okuma izni olmadan, asistanınız gelen kutunuzdan sizin hakkınızda bilgi edinemeyecektir.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Bu, geri kalan başlangıç sürecini etkilemez. Şimdilik atlayabilir ve devam edebilirsiniz.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Atla ve devam et",+ "flow.steps.connectApps.gmailPermissionModal.title": "Daha fazla izin gerekli","flow.steps.connectApps.title": "Kendinizi Şekillendirmeye Başlayın","flow.steps.learnYourWorld.analysisFailed": "Bağlı kaynaklarınızı analiz etmeyi tamamlayamadık.","flow.steps.learnYourWorld.description": "Kullanıcı profilinizi oluşturuyoruz",diff --git a/locales/tr-TR/selfLearning.json b/locales/tr-TR/selfLearning.jsonindex a5c82e9ec70..91d050c983c 100644--- a/locales/tr-TR/selfLearning.json+++ b/locales/tr-TR/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "{{n}}. uygulama","charts.streak": "Hatasız üst üste {{count}} uygulama","charts.tooFew": "Eğriler ikinci uygulamadan sonra görünür.",+ "create.adjust.action": "Ayarlamayı Uygula",+ "create.adjust.adjusting": "Ayarlanıyor…",+ "create.adjust.blockAction": "Yapay Zeka ile Ayarla",+ "create.adjust.failed": "Bağlantı noktası ayarlanamadı. Mevcut taslağınız değişmedi.",+ "create.adjust.generatingCountdown": "Bağlantı noktası ayarlanıyor… yaklaşık {{time}} kaldı",+ "create.adjust.help": "Ne değişmesi gerektiğini açıklayın. Mevcut bağlantı noktası ve bahsetmediğiniz her şey korunacaktır.",+ "create.adjust.placeholder.canonEntries": "ör. Daha yetkili bir çerçeveden tanınmış ilkeleri kullanın…",+ "create.adjust.placeholder.domainFilter": "ör. Atanmış zamanlama ve bilgi önceliklendirmeyi dahil edin, ancak yalnızca belirli bir yetkili için…",+ "create.adjust.placeholder.layers": "ör. Bunları bir iş akışındaki aşamalar yerine, gerçek bir yeterlilik ilerlemesi haline getirin…",+ "create.adjust.placeholder.outOfScope": "ör. Genel proje yönetimini ve yetkili adına alınan kararları hariç tutun…",+ "create.adjust.title": "Yapay Zeka ile Ayarla","create.anchor.addCanon": "Ekle","create.anchor.addLayer": "Ekle","create.anchor.canon": "Kanon",@@ -36,17 +47,22 @@"create.cancel": "İptal","create.confirm": "Oluştur","create.failed": "Oluşturulamadı. Tekrar deneyin.",+ "create.field.brief": "Yönlendirme özeti","create.field.domainFilter": "Uygulama olarak ne sayılır","create.field.outOfScope": "Ne sayılmaz","create.field.outOfScopePlaceholder": "ör. tasarım tartışmaları, genel Soru-Cevap…","create.field.title": "Ad","create.generate": "Oluştur","create.generating": "Uzmanlık oluşturuluyor…",+ "create.generatingAlmostDone": "Hâlâ çalışıyor — bu kısa süre içinde hazır olmalı…",+ "create.generatingCanon": "Tanınmış ilkeler bulunuyor…",+ "create.generatingCountdown": "Yaklaşık {{time}} kaldı",+ "create.generatingLayers": "Net bir ilerleme oluşturuluyor…",+ "create.generatingScope": "Uygulama olarak neyin sayıldığını netleştiriyor…","create.modalTitle": "Bir uzmanlık oluştur","create.next": "Sonraki","create.regenerate": "Yeniden oluştur","create.reviewHelp": "İşte özetinizden okuduğu bağlantı noktası. Yanlış olan bir şeyi düzeltin — filtre hangi konuşmalardan öğrenileceğini belirler; katmanlar ve kanon derslerin nereye bağlanacağını ve “kapsama”nın ne anlama geldiğini belirler.",- "create.reviewStep": "Bağlantı noktasını gözden geçirin","domain.delete": "Sil","domain.deleteConfirm.content": "Bu yönelimdeki {{habits}} alışkanlıkları ve {{runs}} uygulama kayıtları onunla birlikte gider. Bu işlem geri alınamaz.","domain.deleteConfirm.ok": "Sil",diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.jsonindex 4f5bd757591..499c24bbf43 100644--- a/locales/tr-TR/setting.json+++ b/locales/tr-TR/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "{{appName}} uygulamasını anonim kullanım verileriyle geliştirmemize yardımcı olun","analytics.telemetry.title": "Anonim Kullanım Verisi Gönder","analytics.title": "Analitik",+ "apps.cli.copied": "Kopyalandı",+ "apps.cli.copy": "Kurulum komutunu kopyala",+ "apps.cli.desc": "Komut satırından scriptler, cihazlar ve başsız çalışma.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Masaüstü uygulamasını edinin",+ "apps.desktop.desc": "Yerel dosyalar, sistem araçları ve bu makinede odaklanmış çalışma.",+ "apps.desktop.inUse": "Kullanımda",+ "apps.desktop.inUseDesc": "Zaten masaüstü uygulamasındasınız.",+ "apps.desktop.title": "Masaüstü",+ "apps.kicker": "Yollar",+ "apps.messenger.cta": "Messenger'ı ayarla",+ "apps.messenger.desc": "LobeHub ile Discord, Feishu, Slack ve diğerlerinde konuşun.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Mobil uygulamayı edinin",+ "apps.mobile.desc": "Bilgisayardan ayrıldığınızda telefonunuzdan konuşmalara başlayın.",+ "apps.mobile.title": "Mobil",+ "apps.title": "LobeHub'u kullanmanın daha fazla yolunu keşfedin","artworkStudio.cancel": "Oluşturmayı iptal et","artworkStudio.diyTitle": "Kendi tasarımını yap","artworkStudio.enableModel": "Bir modeli etkinleştir",diff --git a/locales/vi-VN/electron.json b/locales/vi-VN/electron.jsonindex 44cab003fc0..764706269b9 100644--- a/locales/vi-VN/electron.json+++ b/locales/vi-VN/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "Chưa kết nối với Gateway","gateway.title": "Cổng thiết bị","navigation.agents": "Đại lý",+ "navigation.apps": "Ứng dụng","navigation.channels": "Kênh","navigation.chat": "Trò chuyện","navigation.discover": "Khám phá",diff --git a/locales/vi-VN/notification.json b/locales/vi-VN/notification.jsonindex 645fefccdf6..36201292fc1 100644--- a/locales/vi-VN/notification.json+++ b/locales/vi-VN/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "Kết quả chuyển giao","billboard.learnMore": "Tìm hiểu thêm","billboard.menuLabel": "Thông báo",+ "category.agent": "Đại lý","category.billing": "Thanh toán","category.generation": "Tạo nội dung",+ "category.pending": "Đang chờ xử lý","category.schedule": "Công việc đã lên lịch","category.system": "Hệ thống","category.workspace": "Không gian làm việc",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "Chuyển giao bị từ chối","image_generation_completed": "Hình ảnh \"{{prompt}}\" của bạn đã sẵn sàng.","image_generation_completed_title": "Hoàn tất tạo hình ảnh",+ "inbox.actionFailed": "Không thể cập nhật thông báo. Vui lòng thử lại.",+ "inbox.all": "Tất cả thông báo",+ "inbox.allStatus": "Tất cả","inbox.archive": "Lưu trữ","inbox.archiveAll": "Lưu trữ tất cả","inbox.empty": "Chưa có thông báo nào",+ "inbox.emptyRead": "Không có thông báo đã đọc","inbox.emptyUnread": "Không có thông báo chưa đọc","inbox.filterUnread": "Chỉ hiển thị chưa đọc","inbox.markAllRead": "Đánh dấu tất cả là đã đọc",+ "inbox.read": "Đã đọc","inbox.title": "Thông báo",+ "inbox.unread": "Chưa đọc","inbox.viewDetail": "Xem chi tiết","promotion_gift_granted": "{{credits}} tín dụng thưởng đã được thêm vào tài khoản của bạn.","promotion_gift_granted_card_binding": "Cảm ơn bạn đã thêm phương thức thanh toán — {{credits}} tín dụng thưởng đã được thêm vào tài khoản của bạn.",diff --git a/locales/vi-VN/onboarding.json b/locales/vi-VN/onboarding.jsonindex f0b2db7210a..af1fb10d4af 100644--- a/locales/vi-VN/onboarding.json+++ b/locales/vi-VN/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "Kết nối","flow.steps.connectApps.connected": "Đã kết nối","flow.steps.connectApps.description": "Thêm một vài ứng dụng để tạo trải nghiệm cá nhân hóa hơn.",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "Tiếp tục cấp quyền",+ "flow.steps.connectApps.gmailPermissionModal.description": "Nếu không có quyền đọc Gmail, trợ lý của bạn không thể học hỏi về bạn từ hộp thư đến của bạn.",+ "flow.steps.connectApps.gmailPermissionModal.hint": "Điều này không ảnh hưởng đến phần còn lại của quá trình thiết lập. Bạn có thể bỏ qua và tiếp tục.",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "Bỏ qua và tiếp tục",+ "flow.steps.connectApps.gmailPermissionModal.title": "Cần thêm quyền","flow.steps.connectApps.title": "Bắt đầu hình thành con người bạn","flow.steps.learnYourWorld.analysisFailed": "Chúng tôi không thể hoàn thành việc phân tích các nguồn đã kết nối của bạn.","flow.steps.learnYourWorld.description": "Xây dựng hồ sơ người dùng của bạn",diff --git a/locales/vi-VN/selfLearning.json b/locales/vi-VN/selfLearning.jsonindex 3b2942fb3e2..ba5af40541d 100644--- a/locales/vi-VN/selfLearning.json+++ b/locales/vi-VN/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "lần {{n}}","charts.streak": "{{count}} lần thực hành liên tiếp không sai","charts.tooFew": "Đường cong xuất hiện sau lần thực hành thứ hai.",+ "create.adjust.action": "Áp dụng điều chỉnh",+ "create.adjust.adjusting": "Đang điều chỉnh…",+ "create.adjust.blockAction": "Điều chỉnh bằng AI",+ "create.adjust.failed": "Không thể điều chỉnh điểm neo. Bản nháp hiện tại của bạn không thay đổi.",+ "create.adjust.generatingCountdown": "Đang điều chỉnh điểm neo… khoảng {{time}} còn lại",+ "create.adjust.help": "Mô tả những gì cần thay đổi. Điểm neo hiện tại và mọi thứ bạn không đề cập sẽ được giữ nguyên.",+ "create.adjust.placeholder.canonEntries": "ví dụ: Sử dụng các nguyên tắc được công nhận từ một khung làm việc có thẩm quyền hơn…",+ "create.adjust.placeholder.domainFilter": "ví dụ: Bao gồm lập lịch được ủy quyền và phân loại thông tin, nhưng chỉ dành cho một người được chỉ định…",+ "create.adjust.placeholder.layers": "ví dụ: Biến những điều này thành một sự tiến triển thực sự về năng lực, thay vì các giai đoạn trong quy trình làm việc…",+ "create.adjust.placeholder.outOfScope": "ví dụ: Loại trừ quản lý dự án chung và các quyết định được thực hiện thay mặt cho người được chỉ định…",+ "create.adjust.title": "Điều chỉnh bằng AI","create.anchor.addCanon": "Thêm","create.anchor.addLayer": "Thêm","create.anchor.canon": "Tiêu chuẩn",@@ -36,17 +47,22 @@"create.cancel": "Hủy","create.confirm": "Tạo","create.failed": "Không thể tạo. Vui lòng thử lại.",+ "create.field.brief": "Tóm tắt hướng dẫn","create.field.domainFilter": "Những gì được tính là thực hành","create.field.outOfScope": "Những gì không được tính","create.field.outOfScopePlaceholder": "ví dụ: thảo luận thiết kế, hỏi đáp chung…","create.field.title": "Tên","create.generate": "Tạo","create.generating": "Đang tạo chuyên môn…",+ "create.generatingAlmostDone": "Vẫn đang xử lý — điều này sẽ sẵn sàng trong thời gian ngắn…",+ "create.generatingCanon": "Đang tìm các nguyên tắc được công nhận…",+ "create.generatingCountdown": "Khoảng {{time}} còn lại",+ "create.generatingLayers": "Đang xây dựng một sự tiến triển rõ ràng…",+ "create.generatingScope": "Đang làm rõ những gì được tính là thực hành…","create.modalTitle": "Tạo một chuyên môn","create.next": "Tiếp theo","create.regenerate": "Tạo lại","create.reviewHelp": "Đây là điểm neo mà nó đọc được từ bản tóm tắt của bạn. Sửa bất kỳ điều gì không đúng — bộ lọc quyết định các cuộc trò chuyện mà nó học từ; các lớp và tiêu chuẩn quyết định nơi bài học được gắn và ý nghĩa của “mức độ bao phủ”.",- "create.reviewStep": "Xem lại điểm neo","domain.delete": "Xóa","domain.deleteConfirm.content": "Các thói quen {{habits}} và {{runs}} bản ghi thực hành trong hướng đi này sẽ bị xóa cùng. Hành động này không thể hoàn tác.","domain.deleteConfirm.ok": "Xóa",diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.jsonindex 0715257b195..327b34284fb 100644--- a/locales/vi-VN/setting.json+++ b/locales/vi-VN/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "Giúp chúng tôi cải thiện {{appName}} bằng dữ liệu sử dụng ẩn danh","analytics.telemetry.title": "Gửi dữ liệu sử dụng ẩn danh","analytics.title": "Phân tích",+ "apps.cli.copied": "Đã sao chép",+ "apps.cli.copy": "Sao chép lệnh cài đặt",+ "apps.cli.desc": "Scripts, thiết bị và làm việc không giao diện từ dòng lệnh.",+ "apps.cli.title": "CLI",+ "apps.desktop.cta": "Tải ứng dụng máy tính",+ "apps.desktop.desc": "Tệp cục bộ, công cụ hệ thống và làm việc tập trung trên máy này.",+ "apps.desktop.inUse": "Đang sử dụng",+ "apps.desktop.inUseDesc": "Bạn đang sử dụng ứng dụng máy tính.",+ "apps.desktop.title": "Máy tính",+ "apps.kicker": "Cách thức",+ "apps.messenger.cta": "Cài đặt Messenger",+ "apps.messenger.desc": "Trò chuyện với LobeHub trên Discord, Feishu, Slack và các nền tảng khác.",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "Tải ứng dụng di động",+ "apps.mobile.desc": "Bắt đầu cuộc trò chuyện từ điện thoại khi bạn rời khỏi máy tính.",+ "apps.mobile.title": "Di động",+ "apps.title": "Khám phá thêm cách sử dụng LobeHub","artworkStudio.cancel": "Hủy tạo","artworkStudio.diyTitle": "Tự làm của bạn","artworkStudio.enableModel": "Kích hoạt một mô hình",diff --git a/locales/zh-CN/agent.json b/locales/zh-CN/agent.jsonindex e45bfced583..2228b7dfc1e 100644--- a/locales/zh-CN/agent.json+++ b/locales/zh-CN/agent.json@@ -350,7 +350,6 @@"transferRequest.recipientPlaceholder": "选择一个工作区成员...","transferRequest.resourceType.agent": "代理","transferRequest.resourceType.agentGroup": "群组",- "transferRequest.sectionTitle": "待处理的转移","transferRequest.someone": "一个工作区成员","transferRequest.untitledResource": "未命名","transferRequest.withdraw": "撤回",diff --git a/locales/zh-CN/notification.json b/locales/zh-CN/notification.jsonindex 6191e3f76f2..a613e852f1c 100644--- a/locales/zh-CN/notification.json+++ b/locales/zh-CN/notification.json@@ -17,11 +17,13 @@"agent_transfer_result_title": "转移结果","billboard.learnMore": "了解更多","billboard.menuLabel": "公告",+ "category.agent": "Agent","category.billing": "账单","category.generation": "生成",+ "category.pending": "待处理","category.schedule": "定时任务","category.system": "系统消息",- "category.workspace": "工作区",+ "category.workspace": "工作区动态","credit_balance_low": "您的积分余额即将用尽,当前约剩余 {{balance}} 的积分。建议开启自动充值,余额不足时自动续费,让你的工作不被中断。","credit_balance_low_action": "开启自动充值","credit_balance_low_title": "您的积分余额即将用尽",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "转让被拒绝","image_generation_completed": "图片「{{prompt}}」已生成。","image_generation_completed_title": "图片生成完成",+ "inbox.actionFailed": "通知更新失败,请重试。",+ "inbox.all": "全部通知",+ "inbox.allStatus": "全部","inbox.archive": "归档","inbox.archiveAll": "全部归档","inbox.empty": "暂无通知",+ "inbox.emptyRead": "暂无已读通知","inbox.emptyUnread": "没有未读通知","inbox.filterUnread": "仅显示未读","inbox.markAllRead": "全部标为已读",+ "inbox.read": "已读","inbox.title": "通知",+ "inbox.unread": "未读","inbox.viewDetail": "查看详情","promotion_gift_granted": "{{credits}} 赠送积分已到账。","promotion_gift_granted_card_binding": "感谢添加付款方式——{{credits}} 赠送积分已到账。",diff --git a/locales/zh-TW/electron.json b/locales/zh-TW/electron.jsonindex a9a6ed1fdf1..0c8a7c43b6b 100644--- a/locales/zh-TW/electron.json+++ b/locales/zh-TW/electron.json@@ -6,6 +6,7 @@"gateway.statusDisconnected": "未連接到網關","gateway.title": "設備網關","navigation.agents": "代理",+ "navigation.apps": "應用程式","navigation.channels": "頻道","navigation.chat": "對話","navigation.discover": "發現",diff --git a/locales/zh-TW/notification.json b/locales/zh-TW/notification.jsonindex 5f3f31989ed..ff4da7f3805 100644--- a/locales/zh-TW/notification.json+++ b/locales/zh-TW/notification.json@@ -17,8 +17,10 @@"agent_transfer_result_title": "轉移結果","billboard.learnMore": "了解更多","billboard.menuLabel": "公告",+ "category.agent": "代理","category.billing": "帳單","category.generation": "生成",+ "category.pending": "待處理","category.schedule": "排程任務","category.system": "系統","category.workspace": "工作區",@@ -41,13 +43,19 @@"group_transfer_result_declined_title": "轉移已拒絕","image_generation_completed": "您的圖片「{{prompt}}」已完成。","image_generation_completed_title": "圖片生成完成",+ "inbox.actionFailed": "無法更新通知。請再試一次。",+ "inbox.all": "所有通知",+ "inbox.allStatus": "全部","inbox.archive": "封存","inbox.archiveAll": "全部歸檔","inbox.empty": "尚無通知",+ "inbox.emptyRead": "沒有已讀通知","inbox.emptyUnread": "沒有未讀通知","inbox.filterUnread": "僅顯示未讀","inbox.markAllRead": "全部標記為已讀",+ "inbox.read": "已讀","inbox.title": "通知",+ "inbox.unread": "未讀","inbox.viewDetail": "查看詳細資訊","promotion_gift_granted": "已將 {{credits}} 點獎勵積分添加到您的帳戶。","promotion_gift_granted_card_binding": "感謝您新增付款方式 — 已將 {{credits}} 點獎勵積分添加到您的帳戶。",diff --git a/locales/zh-TW/onboarding.json b/locales/zh-TW/onboarding.jsonindex 689e2208117..9828fbcdca6 100644--- a/locales/zh-TW/onboarding.json+++ b/locales/zh-TW/onboarding.json@@ -44,6 +44,11 @@"flow.steps.connectApps.connect": "連接","flow.steps.connectApps.connected": "已連接","flow.steps.connectApps.description": "添加一些應用程序以幫助塑造更個性化的體驗。",+ "flow.steps.connectApps.gmailPermissionModal.continueAuthorization": "繼續授權",+ "flow.steps.connectApps.gmailPermissionModal.description": "如果沒有 Gmail 的讀取權限,您的助理將無法從您的收件箱中了解您。",+ "flow.steps.connectApps.gmailPermissionModal.hint": "這不會影響其餘的入門流程。您可以暫時跳過並繼續。",+ "flow.steps.connectApps.gmailPermissionModal.skipAndContinue": "跳過並繼續",+ "flow.steps.connectApps.gmailPermissionModal.title": "需要更多權限","flow.steps.connectApps.title": "開始塑造您的形象","flow.steps.learnYourWorld.analysisFailed": "我們無法完成分析您的連接來源。","flow.steps.learnYourWorld.description": "建立您的用戶檔案",diff --git a/locales/zh-TW/selfLearning.json b/locales/zh-TW/selfLearning.jsonindex 5b0a311fa3e..3a5cca14115 100644--- a/locales/zh-TW/selfLearning.json+++ b/locales/zh-TW/selfLearning.json@@ -16,6 +16,17 @@"charts.runN": "第 {{n}} 次練習","charts.streak": "連續 {{count}} 次練習無錯誤","charts.tooFew": "曲線在第二次練習後出現。",+ "create.adjust.action": "套用調整",+ "create.adjust.adjusting": "正在調整…",+ "create.adjust.blockAction": "使用 AI 進行調整",+ "create.adjust.failed": "無法調整錨點。您的當前草稿未被更改。",+ "create.adjust.generatingCountdown": "正在調整錨點…大約還有 {{time}}",+ "create.adjust.help": "描述需要更改的內容。當前的錨點以及您未提及的所有內容將被保留。",+ "create.adjust.placeholder.canonEntries": "例如:使用更具權威框架的公認原則…",+ "create.adjust.placeholder.domainFilter": "例如:包含委派的排程和信息篩選,但僅限於指定的負責人…",+ "create.adjust.placeholder.layers": "例如:使這些成為真正的熟練進階,而不是工作流程中的階段…",+ "create.adjust.placeholder.outOfScope": "例如:排除一般項目管理以及代表負責人做出的決策…",+ "create.adjust.title": "使用 AI 進行調整","create.anchor.addCanon": "新增","create.anchor.addLayer": "新增","create.anchor.canon": "標準",@@ -36,17 +47,22 @@"create.cancel": "取消","create.confirm": "創建","create.failed": "無法創建。請再試一次。",+ "create.field.brief": "方向簡述","create.field.domainFilter": "計入練習的範圍","create.field.outOfScope": "不計入的範圍","create.field.outOfScopePlaceholder": "例如:設計討論、一般問答…","create.field.title": "名稱","create.generate": "生成","create.generating": "正在生成專業知識…",+ "create.generatingAlmostDone": "仍在處理中 — 很快就會準備好…",+ "create.generatingCanon": "正在尋找公認原則…",+ "create.generatingCountdown": "大約還有 {{time}}",+ "create.generatingLayers": "正在建立清晰的進階…",+ "create.generatingScope": "正在明確哪些屬於練習範疇…","create.modalTitle": "創建專業知識","create.next": "下一步","create.regenerate": "重新生成","create.reviewHelp": "以下是它從您的簡述中讀取的錨點。修正任何不正確的地方 — 篩選器決定它從哪些對話中學習;層級和標準決定課程的附加位置以及“覆蓋範圍”的含義。",- "create.reviewStep": "審核錨點","domain.delete": "刪除","domain.deleteConfirm.content": "此方向的 {{habits}} 習慣和 {{runs}} 練習記錄將一併刪除。此操作無法撤銷。","domain.deleteConfirm.ok": "刪除",diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.jsonindex 6d33d7f457b..046782fd62f 100644--- a/locales/zh-TW/setting.json+++ b/locales/zh-TW/setting.json@@ -224,6 +224,23 @@"analytics.telemetry.desc": "協助我們透過匿名使用資料改進 {{appName}}","analytics.telemetry.title": "發送匿名使用數據","analytics.title": "數據統計",+ "apps.cli.copied": "已複製",+ "apps.cli.copy": "複製安裝指令",+ "apps.cli.desc": "使用命令列進行腳本、設備和無頭操作。",+ "apps.cli.title": "命令列介面 (CLI)",+ "apps.desktop.cta": "下載桌面應用程式",+ "apps.desktop.desc": "本機檔案、系統工具,以及專注於此機的工作。",+ "apps.desktop.inUse": "正在使用",+ "apps.desktop.inUseDesc": "您已在使用桌面應用程式。",+ "apps.desktop.title": "桌面應用程式",+ "apps.kicker": "方式",+ "apps.messenger.cta": "設定 Messenger",+ "apps.messenger.desc": "在 Discord、飛書、Slack 等平台與 LobeHub 交流。",+ "apps.messenger.title": "Messenger",+ "apps.mobile.cta": "下載行動應用程式",+ "apps.mobile.desc": "離開電腦時,從手機開始對話。",+ "apps.mobile.title": "行動應用程式",+ "apps.title": "探索更多使用 LobeHub 的方式","artworkStudio.cancel": "取消生成","artworkStudio.diyTitle": "自己製作","artworkStudio.enableModel": "啟用模型",diff --git a/packages/database/src/models/__tests__/notification.test.ts b/packages/database/src/models/__tests__/notification.test.tsindex 0da863d6cba..9d4ce8d85d5 100644--- a/packages/database/src/models/__tests__/notification.test.ts+++ b/packages/database/src/models/__tests__/notification.test.ts@@ -171,13 +171,26 @@ describe('NotificationModel (integration)', () => {expect(rows.map((r) => r.id)).toEqual([unread!.id]);});+ it('filters explicitly by read state', async () => {+ const model = new NotificationModel(serverDB, userId);+ const read = await model.create(baseNotification({ title: 'Read' }));+ await model.create(baseNotification({ title: 'Unread' }));++ await model.markAsRead([read!.id]);++ const rows = await model.list({ isRead: true });+ expect(rows.map((row) => row.id)).toEqual([read!.id]);+ });+it('filters by category', async () => {const model = new NotificationModel(serverDB, userId);await model.create(baseNotification({ category: 'workspace', title: 'WS' }));- const budget = await model.create(baseNotification({ category: 'budget', title: 'Budget' }));+ const pending = await model.create(+ baseNotification({ category: 'pending', title: 'Transfer request' }),+ );- const rows = await model.list({ category: 'budget' });- expect(rows.map((r) => r.id)).toEqual([budget!.id]);+ const rows = await model.list({ category: 'pending' });+ expect(rows.map((r) => r.id)).toEqual([pending!.id]);});it('respects the limit option', async () => {@@ -248,6 +261,84 @@ describe('NotificationModel (integration)', () => {});});+ describe('getNavigationCounts', () => {+ it('groups categories by read state in one query', async () => {+ const model = new NotificationModel(serverDB, userId);+ const otherModel = new NotificationModel(serverDB, otherUserId);+ const read = await model.create(+ baseNotification({ category: 'pending', title: 'Read transfer request' }),+ );+ await model.create(+ baseNotification({ category: 'pending', title: 'Unread transfer request' }),+ );+ const archived = await model.create(+ baseNotification({ category: 'system', title: 'Archived' }),+ );+ await model.create(baseNotification({ category: 'workspace', title: 'Workspace' }));+ await otherModel.create(baseNotification({ category: 'pending', title: 'Other user' }));++ await model.markAsRead([read!.id]);+ await model.archive(archived!.id);++ const counts = await model.getNavigationCounts();+ counts.sort((a, b) => a.category.localeCompare(b.category));++ expect(counts).toEqual([+ { category: 'pending', readCount: 1, totalCount: 2, unreadCount: 1 },+ { category: 'workspace', readCount: 0, totalCount: 1, unreadCount: 1 },+ ]);+ });+ });++ describe('countLinkedToTransfers', () => {+ it('counts unarchived linked rows, split into total and unread', async () => {+ const model = new NotificationModel(serverDB, userId);+ await model.create(+ baseNotification({+ category: 'pending',+ metadata: { transfer: { requestId: 'req-1' } },+ title: 'Linked unread',+ }),+ );+ const linkedRead = await model.create(+ baseNotification({+ category: 'pending',+ metadata: { transfer: { requestId: 'req-2' } },+ title: 'Linked read',+ }),+ );+ const linkedArchived = await model.create(+ baseNotification({+ category: 'pending',+ metadata: { transfer: { requestId: 'req-3' } },+ title: 'Linked archived',+ }),+ );+ await model.create(baseNotification({ category: 'pending', title: 'Unlinked unread' }));+ // A linked row outside the pending category counts toward its own+ // category's badge, so it must not be swapped against the requests.+ await model.create(+ baseNotification({+ category: 'workspace',+ metadata: { transfer: { requestId: 'req-4' } },+ title: 'Linked but miscategorized',+ }),+ );++ await model.markAsRead([linkedRead!.id]);+ await model.archive(linkedArchived!.id);++ // req-1 unread + req-2 read are unarchived pending rows; req-3 is+ // archived and req-4 sits in another category, so neither counts.+ expect(await model.countLinkedToTransfers(['req-1', 'req-2', 'req-3', 'req-4'])).toEqual({+ total: 2,+ unread: 1,+ });+ expect(await model.countLinkedToTransfers(['req-2'])).toEqual({ total: 1, unread: 0 });+ expect(await model.countLinkedToTransfers([])).toEqual({ total: 0, unread: 0 });+ });+ });+describe('markAsRead', () => {it('marks the given notifications as read', async () => {const model = new NotificationModel(serverDB, userId);@@ -380,7 +471,12 @@ describe('NotificationModel (integration)', () => {const writer = new NotificationModel(serverDB, userId);await writer.create(baseNotification({ title: 'personal' }));- await writer.create(baseNotification({ title: 'in-ws-1', workspaceId }));+ await writer.create(+ baseNotification({+ title: 'in-ws-1',+ workspaceId,+ }),+ );await writer.create(baseNotification({ title: 'in-ws-2', workspaceId: otherWorkspaceId }));};@@ -391,6 +487,9 @@ describe('NotificationModel (integration)', () => {const rows = await personal.list();expect(rows.map((row) => row.title)).toEqual(['personal']);expect(await personal.getUnreadCount()).toBe(1);+ expect(await personal.getNavigationCounts()).toEqual([+ { category: 'workspace', readCount: 0, totalCount: 1, unreadCount: 1 },+ ]);});it('workspace context sees only that workspace rows', async () => {@@ -400,6 +499,9 @@ describe('NotificationModel (integration)', () => {const rows = await scoped.list();expect(rows.map((row) => row.title)).toEqual(['in-ws-1']);expect(await scoped.getUnreadCount()).toBe(1);+ expect(await scoped.getNavigationCounts()).toEqual([+ { category: 'workspace', readCount: 0, totalCount: 1, unreadCount: 1 },+ ]);});it('context-free access spans both personal and workspace rows', async () => {diff --git a/packages/database/src/models/__tests__/resourceTransferRequest.test.ts b/packages/database/src/models/__tests__/resourceTransferRequest.test.tsindex fa603800fed..542b0909651 100644--- a/packages/database/src/models/__tests__/resourceTransferRequest.test.ts+++ b/packages/database/src/models/__tests__/resourceTransferRequest.test.ts@@ -3,7 +3,7 @@ import { eq } from 'drizzle-orm';import { afterEach, beforeEach, describe, expect, it } from 'vitest';import { getTestDB } from '../../core/getTestDB';-import { resourceTransferRequests, users, workspaces } from '../../schemas';+import { notifications, resourceTransferRequests, users, workspaces } from '../../schemas';import type { LobeChatDatabase } from '../../type';import {PENDING_TRANSFER_LIST_LIMIT,@@ -283,4 +283,65 @@ describe('ResourceTransferRequestModel', () => {await expect(model.findById(row.id)).resolves.toMatchObject({ status: 'accepted' });});});++ describe('settling linked inbox rows', () => {+ // A pending item's read state IS its handled state: the linked request+ // notice must flip to read the moment the request leaves `pending`.+ const seedLinkedRow = async (requestId: string) => {+ const [row] = await serverDB+ .insert(notifications)+ .values({+ category: 'pending',+ content: 'transfer request',+ metadata: { transfer: { requestId } },+ title: 'Transfer request',+ type: 'agent_transfer_requested',+ userId: recipientId,+ workspaceId,+ })+ .returning();+ return row;+ };++ const isRowRead = async (id: string) => {+ const [row] = await serverDB+ .select({ isRead: notifications.isRead })+ .from(notifications)+ .where(eq(notifications.id, id));+ return row.isRead;+ };++ it.each([+ ['accept', (id: string) => model.accept(id, recipientId)],+ ['decline', (id: string) => model.decline(id, recipientId)],+ ['cancel', (id: string) => model.cancel(id, initiatorId)],+ ['invalidateRequest', (id: string) => model.invalidateRequest(id)],+ ['invalidateForResources', () => model.invalidateForResources('agent', ['agent-1'])],+ ])('marks the linked notice read on %s', async (_label, act) => {+ const request = await createRequest();+ const notice = await seedLinkedRow(request.id);+ expect(await isRowRead(notice.id)).toBe(false);++ await act(request.id);++ expect(await isRowRead(notice.id)).toBe(true);+ });++ it('marks the linked notice read on lazy expiry', async () => {+ const request = await createRequest();+ const notice = await seedLinkedRow(request.id);+ await forceExpire(request.id);++ await model.listPendingForUser(recipientId);++ expect(await isRowRead(notice.id)).toBe(true);+ });++ it('leaves unrelated notices untouched', async () => {+ const request = await createRequest();+ const other = await seedLinkedRow('some-other-request');+ await model.accept(request.id, recipientId);+ expect(await isRowRead(other.id)).toBe(false);+ });+ });});diff --git a/packages/database/src/models/notification.ts b/packages/database/src/models/notification.tsindex c51d5d46d6e..ca0a817e8fa 100644--- a/packages/database/src/models/notification.ts+++ b/packages/database/src/models/notification.ts@@ -1,4 +1,4 @@-import { and, count, desc, eq, inArray, isNull, lt, or, type SQL } from 'drizzle-orm';+import { and, count, desc, eq, inArray, isNull, lt, or, type SQL, sql } from 'drizzle-orm';import type { NewNotification, NewNotificationDelivery } from '../schemas/notification';import { notificationDeliveries, notifications } from '../schemas/notification';@@ -36,13 +36,23 @@ export class NotificationModel {};async list(- opts: { category?: string; cursor?: string; limit?: number; unreadOnly?: boolean } = {},+ opts: {+ category?: string;+ cursor?: string;+ isRead?: boolean;+ limit?: number;+ unreadOnly?: boolean;+ } = {},) {- const { cursor, limit = 20, category, unreadOnly } = opts;+ const { cursor, limit = 20, category, isRead, unreadOnly } = opts;const conditions = [...this.scope(), eq(notifications.isArchived, false)];- if (unreadOnly) {+ if (typeof isRead === 'boolean') {+ conditions.push(eq(notifications.isRead, isRead));+ } else if (unreadOnly) {+ // Keep old desktop clients working while the notification center moves+ // to the explicit read / unread tabs.conditions.push(eq(notifications.isRead, false));}@@ -77,6 +87,72 @@ export class NotificationModel {.limit(limit);}+ async getNavigationCounts() {+ const rows = await this.db+ .select({+ category: notifications.category,+ count: count(),+ isRead: notifications.isRead,+ })+ .from(notifications)+ .where(and(...this.scope(), eq(notifications.isArchived, false)))+ .groupBy(notifications.category, notifications.isRead);++ const counts = new Map<+ string,+ { category: string; readCount: number; totalCount: number; unreadCount: number }+ >();+ for (const row of rows) {+ const categoryCounts = counts.get(row.category) ?? {+ category: row.category,+ readCount: 0,+ totalCount: 0,+ unreadCount: 0,+ };++ categoryCounts.totalCount += row.count;+ if (row.isRead) categoryCounts.readCount += row.count;+ else categoryCounts.unreadCount += row.count;+ counts.set(row.category, categoryCounts);+ }++ return [...counts.values()];+ }++ /**+ * Unarchived `pending`-category rows linked (via+ * `metadata.transfer.requestId`) to the given live transfer requests, split+ * into total and unread. Navigation counts use this to swap row-based+ * counting for request-based counting on the pending category: a linked+ * row's read state must not hide a still-unresolved request, and a live+ * request whose linked row is missing/archived must still count toward the+ * totals its rendered card contributes to. Scoped to the pending category+ * because only rows counted there may be swapped out — a linked row that+ * landed in another category counts toward that category, not against the+ * requests.+ */+ async countLinkedToTransfers(requestIds: string[]): Promise<{ total: number; unread: number }> {+ if (requestIds.length === 0) return { total: 0, unread: 0 };++ const [result] = await this.db+ .select({+ total: count(),+ // count() skips NULLs, so the CASE narrows the aggregate to unread rows.+ unread: count(sql`case when ${notifications.isRead} = false then 1 end`),+ })+ .from(notifications)+ .where(+ and(+ ...this.scope(),+ eq(notifications.category, 'pending'),+ eq(notifications.isArchived, false),+ inArray(sql`${notifications.metadata} -> 'transfer' ->> 'requestId'`, requestIds),+ ),+ );++ return { total: result?.total ?? 0, unread: result?.unread ?? 0 };+ }+async getUnreadCount(): Promise<number> {const [result] = await this.db.select({ count: count() })diff --git a/packages/database/src/models/resourceTransferRequest.ts b/packages/database/src/models/resourceTransferRequest.tsindex de0e11fc832..5fd3c87a5d7 100644--- a/packages/database/src/models/resourceTransferRequest.ts+++ b/packages/database/src/models/resourceTransferRequest.ts@@ -2,7 +2,7 @@ import type { TransferResourceType } from '@lobechat/types';import { and, desc, eq, gt, inArray, isNotNull, lte, or, sql } from 'drizzle-orm';import type { ResourceTransferRequestItem } from '../schemas';-import { resourceTransferRequests } from '../schemas';+import { notifications, resourceTransferRequests } from '../schemas';import type { LobeChatDatabase, Transaction } from '../type';/** Create rejected: the resource already carries a live transfer request. */@@ -171,7 +171,7 @@ export class ResourceTransferRequestModel {trx?: Executor,): Promise<void> => {if (resourceIds.length === 0) return;- await (trx ?? this.db)+ const voided = await (trx ?? this.db).update(resourceTransferRequests).set({ resolvedAt: new Date(), status: 'cancelled' }).where(@@ -181,7 +181,12 @@ export class ResourceTransferRequestModel {inArray(resourceTransferRequests.resourceId, resourceIds),eq(resourceTransferRequests.status, 'pending'),),- );+ )+ .returning({ id: resourceTransferRequests.id });+ await this.settleLinkedInboxRows(+ voided.map((row) => row.id),+ trx,+ );};/**@@ -191,7 +196,7 @@ export class ResourceTransferRequestModel {* request already resolved.*/invalidateRequest = async (id: string): Promise<void> => {- await this.db+ const voided = await this.db.update(resourceTransferRequests).set({ resolvedAt: new Date(), status: 'cancelled' }).where(@@ -200,6 +205,29 @@ export class ResourceTransferRequestModel {eq(resourceTransferRequests.workspaceId, this.workspaceId),eq(resourceTransferRequests.status, 'pending'),),+ )+ .returning({ id: resourceTransferRequests.id });+ await this.settleLinkedInboxRows(voided.map((row) => row.id));+ };++ /**+ * A pending item's read state IS its handled state: the request notice+ * (linked through `metadata.transfer.requestId`) stays unread while the+ * request is live, and reads the moment the request leaves `pending` —+ * whichever way (accept / decline / withdraw / expiry / invalidation).+ * Every state transition in this model funnels through here so the inbox+ * never shows an "unread" notice for a request nobody can act on anymore.+ */+ private settleLinkedInboxRows = async (requestIds: string[], trx?: Executor): Promise<void> => {+ if (requestIds.length === 0) return;+ await (trx ?? this.db)+ .update(notifications)+ .set({ isRead: true, updatedAt: new Date() })+ .where(+ and(+ eq(notifications.isRead, false),+ inArray(sql`${notifications.metadata} -> 'transfer' ->> 'requestId'`, requestIds),+ ),);};@@ -217,7 +245,7 @@ export class ResourceTransferRequestModel {);private expireOverdue = async (resourceType: TransferResourceType, resourceId: string) => {- await this.db+ const expired = await this.db.update(resourceTransferRequests).set({ resolvedAt: sql`now()`, status: 'expired' }).where(@@ -225,7 +253,9 @@ export class ResourceTransferRequestModel {this.pendingResourceMatch(resourceType, resourceId),lte(resourceTransferRequests.expiresAt, new Date()),),- );+ )+ .returning({ id: resourceTransferRequests.id });+ await this.settleLinkedInboxRows(expired.map((row) => row.id));};/** Stamp an overdue pending row `expired` on read, so callers never act on one. */@@ -246,6 +276,9 @@ export class ResourceTransferRequestModel {),).returning();+ // Whether this call stamped it or a racer resolved it first, the request+ // is no longer live — settle the notice either way (idempotent).+ await this.settleLinkedInboxRows([row.id]);return updated ?? (await this.reload(row.id)) ?? { ...row, resolvedAt, status: 'expired' };};@@ -284,7 +317,10 @@ export class ResourceTransferRequestModel {).returning();- if (updated) return updated;+ if (updated) {+ await this.settleLinkedInboxRows([updated.id], trx);+ return updated;+ }// Distinguish "expired" from every other dead end so the recipient gets an// actionable message rather than a generic failure.diff --git a/packages/locales/src/default/agent.ts b/packages/locales/src/default/agent.tsindex 037be6a6bae..eb797f799ec 100644--- a/packages/locales/src/default/agent.ts+++ b/packages/locales/src/default/agent.ts@@ -454,7 +454,6 @@ export default {'transferRequest.recipientPlaceholder': 'Select a workspace member...','transferRequest.resourceType.agent': 'Agent','transferRequest.resourceType.agentGroup': 'Group',- 'transferRequest.sectionTitle': 'Pending transfers','transferRequest.someone': 'A workspace member','transferRequest.untitledResource': 'Untitled','transferRequest.withdraw': 'Withdraw',diff --git a/packages/locales/src/default/notification.ts b/packages/locales/src/default/notification.tsindex 1e711a4d253..47768024707 100644--- a/packages/locales/src/default/notification.ts+++ b/packages/locales/src/default/notification.ts@@ -23,11 +23,13 @@ export default {'agent_transfer_result_title': 'Transfer result','billboard.learnMore': 'Learn more','billboard.menuLabel': 'Announcements',+ 'category.agent': 'Agent','category.billing': 'Billing','category.generation': 'Generation',+ 'category.pending': 'Pending','category.schedule': 'Scheduled tasks',- 'category.system': 'System',- 'category.workspace': 'Workspace',+ 'category.system': 'System notifications',+ 'category.workspace': 'Workspace updates','credit_balance_low':'Your credit balance is running low — about {{balance}} in credits remaining. Turn on auto top-up so your balance refills automatically and your work is never interrupted.','credit_balance_low_action': 'Set up auto top-up',@@ -53,13 +55,19 @@ export default {'group_transfer_result_declined_title': 'Transfer declined','image_generation_completed': 'Your image "{{prompt}}" is ready.','image_generation_completed_title': 'Image generation completed',+ 'inbox.actionFailed': 'Could not update notifications. Please try again.',+ 'inbox.all': 'All notifications',+ 'inbox.allStatus': 'All','inbox.archive': 'Archive','inbox.archiveAll': 'Archive all','inbox.empty': 'No notifications yet',+ 'inbox.emptyRead': 'No read notifications','inbox.emptyUnread': 'No unread notifications','inbox.filterUnread': 'Show unread only','inbox.markAllRead': 'Mark all as read',+ 'inbox.read': 'Read','inbox.title': 'Notifications',+ 'inbox.unread': 'Unread','inbox.viewDetail': 'View details','promotion_gift_granted': '{{credits}} bonus credits have been added to your account.','promotion_gift_granted_card_binding':diff --git a/packages/types/src/notification.ts b/packages/types/src/notification.tsindex 7dcb522498e..7a1f1bb8c56 100644--- a/packages/types/src/notification.ts+++ b/packages/types/src/notification.ts@@ -12,4 +12,11 @@ export interface NotificationActor {export interface NotificationMetadata {actor?: NotificationActor;+ /**+ * Link to the resource-transfer request this notification is about. Inbox+ * surfaces use it to pair the immutable row with the live request: while+ * the request is still pending the actionable live item replaces the row,+ * and once resolved the row stands alone as the historical record.+ */+ transfer?: { requestId: string };}diff --git a/src/features/HomeSidebar/Header/components/InboxButton.tsx b/src/features/HomeSidebar/Header/components/InboxButton.tsxindex 43432e4662f..55d72ef89e1 100644--- a/src/features/HomeSidebar/Header/components/InboxButton.tsx+++ b/src/features/HomeSidebar/Header/components/InboxButton.tsx@@ -3,41 +3,31 @@import { ActionIcon } from '@lobehub/ui';import { Badge } from 'antd';import { BellIcon } from 'lucide-react';-import { memo, useCallback, useState } from 'react';+import { memo, useCallback } from 'react';import { useTranslation } from 'react-i18next';import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';-import InboxDrawer from './InboxDrawer';+import { openInboxModal } from './InboxModal';import { useInboxUnreadCount } from './useInboxUnreadCount';const InboxButton = memo(() => {const { t } = useTranslation('notification');- const [open, setOpen] = useState(false);const { enabled, unreadCount } = useInboxUnreadCount();- const handleToggle = useCallback(() => {- setOpen((prev) => !prev);- }, []);-- const handleClose = useCallback(() => {- setOpen(false);- }, []);+ const handleOpen = useCallback(() => openInboxModal(), []);if (!enabled) return null;return (- <>- <Badge dot={unreadCount > 0} offset={[-6, 6]} size="small">- <ActionIcon- icon={BellIcon}- size={DESKTOP_HEADER_ICON_SMALL_SIZE}- title={t('inbox.title')}- onClick={handleToggle}- />- </Badge>- <InboxDrawer open={open} onClose={handleClose} />- </>+ <Badge dot={unreadCount > 0} offset={[-6, 6]} size="small">+ <ActionIcon+ icon={BellIcon}+ size={DESKTOP_HEADER_ICON_SMALL_SIZE}+ title={t('inbox.title')}+ onClick={handleOpen}+ />+ </Badge>);});diff --git a/src/features/HomeSidebar/Header/components/InboxDrawer/Content.tsx b/src/features/HomeSidebar/Header/components/InboxDrawer/Content.tsxdeleted file mode 100644index 9084e71fd9c..00000000000--- a/src/features/HomeSidebar/Header/components/InboxDrawer/Content.tsx+++ /dev/null@@ -1,133 +0,0 @@-'use client';--import { Flexbox, Icon, Text } from '@lobehub/ui';-import { cssVar } from 'antd-style';-import { BellOffIcon } from 'lucide-react';-import { memo, useCallback, useEffect, useRef } from 'react';-import { useTranslation } from 'react-i18next';-import useSWRInfinite from 'swr/infinite';-import { VList, type VListHandle } from 'virtua';--import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';-import SkeletonList from '@/features/NavPanel/components/SkeletonList';-import { PendingTransfersSection } from '@/features/ResourceTransferRequest';-import { inboxKeys } from '@/libs/swr/keys';-import { notificationService } from '@/services/notification';--import NotificationItem from './NotificationItem';--const PAGE_SIZE = 20;--interface ContentProps {- onArchive: (id: string) => void;- onMarkAsRead: (id: string) => void;- open: boolean;- unreadOnly?: boolean;-}--const Content = memo<ContentProps>(({ open, unreadOnly, onMarkAsRead, onArchive }) => {- const { t } = useTranslation('notification');- const virtuaRef = useRef<VListHandle>(null);- const workspaceId = useActiveWorkspaceId();-- const getKey = useCallback(- (pageIndex: number, previousPageData: any[] | null) => {- if (!open) return null;- if (previousPageData && previousPageData.length < PAGE_SIZE) return null;-- if (pageIndex === 0) return inboxKeys.notifications(workspaceId, undefined, unreadOnly);-- const lastItem = previousPageData?.at(-1);- return inboxKeys.notifications(workspaceId, lastItem?.id, unreadOnly);- },- [open, unreadOnly, workspaceId],- );-- const {- data: pages,- isLoading,- isValidating,- setSize,- } = useSWRInfinite(getKey, async ([, , cursor, filterUnread]) => {- return notificationService.list({- cursor: cursor as string | undefined,- limit: PAGE_SIZE,- unreadOnly: filterUnread as boolean | undefined,- });- });-- // Reset scroll position and pagination when filter changes- useEffect(() => {- setSize(1);- virtuaRef.current?.scrollTo(0);- }, [unreadOnly, setSize]);-- const notifications = pages?.flat() ?? [];- const hasMore = pages ? pages.at(-1)?.length === PAGE_SIZE : false;-- const handleScroll = useCallback(() => {- const ref = virtuaRef.current;- if (!ref || !hasMore || isValidating) return;-- const bottomVisibleIndex = ref.findItemIndex(ref.scrollOffset + ref.viewportSize);- if (bottomVisibleIndex + 5 > notifications.length) {- setSize((prev) => prev + 1);- }- }, [hasMore, isValidating, notifications.length, setSize]);-- if (isLoading) {- return (- <Flexbox gap={1} paddingBlock={1} paddingInline={4}>- <SkeletonList rows={5} />- </Flexbox>- );- }-- if (notifications.length === 0) {- return (- <Flexbox height="100%">- <PendingTransfersSection open={open} />- <Flexbox align="center" gap={12} justify="center" paddingBlock={48}>- <Icon color={cssVar.colorTextQuaternary} icon={BellOffIcon} size={40} />- <Text type="secondary">{t(unreadOnly ? 'inbox.emptyUnread' : 'inbox.empty')}</Text>- </Flexbox>- </Flexbox>- );- }-- return (- <Flexbox height="100%">- {/* Cross-resource transfer inbox: live pending requests, above the- immutable notification stream. */}- <PendingTransfersSection open={open} />- <VList ref={virtuaRef} style={{ flex: 1 }} onScroll={handleScroll}>- {notifications.map((item) => (- <Flexbox key={item.id} padding="4px 8px">- <NotificationItem- actionUrl={item.actionUrl}- category={item.category}- content={item.content}- context={item.context}- createdAt={item.createdAt}- id={item.id}- isRead={item.isRead}- title={item.title}- type={item.type}- onArchive={onArchive}- onMarkAsRead={onMarkAsRead}- />- </Flexbox>- ))}- {isValidating && (- <Flexbox padding="4px 8px">- <SkeletonList rows={2} />- </Flexbox>- )}- </VList>- </Flexbox>- );-});--Content.displayName = 'InboxDrawerContent';--export default Content;diff --git a/src/features/HomeSidebar/Header/components/InboxDrawer/NotificationItem.tsx b/src/features/HomeSidebar/Header/components/InboxDrawer/NotificationItem.tsxdeleted file mode 100644index f80d330f055..00000000000--- a/src/features/HomeSidebar/Header/components/InboxDrawer/NotificationItem.tsx+++ /dev/null@@ -1,159 +0,0 @@-'use client';--import { Block, Flexbox, Icon, Text } from '@lobehub/ui';-import { ContextMenuTrigger } from '@lobehub/ui/base-ui';-import { createStaticStyles, cssVar } from 'antd-style';-import { ArchiveIcon, BellIcon, ImageIcon, MegaphoneIcon, VideoIcon } from 'lucide-react';-import { memo, useCallback, useMemo } from 'react';-import { useTranslation } from 'react-i18next';--import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';-import type { NativeContextMenuItem } from '@/libs/contextMenu/types';--import { formatNotificationRelativeTime } from './formatNotificationRelativeTime';-import { createNotificationDetailModal } from './NotificationDetailModal';-import { toNotificationPreview } from './toNotificationPreview';--const styles = createStaticStyles(({ css }) => ({- container: css`- cursor: pointer;- user-select: none;- `,- unreadDot: css`- flex-shrink: 0;-- width: 8px;- height: 8px;- margin-block-start: 7px;- border-radius: 50%;-- background: ${cssVar.colorInfo};- `,-}));--const TYPE_ICON_MAP: Record<string, typeof BellIcon> = {- image_generation_completed: ImageIcon,- system_announcement: MegaphoneIcon,- video_generation_completed: VideoIcon,-};--interface NotificationItemProps {- actionUrl?: string | null;- category?: string;- content: string;- context?: string | null;- createdAt: Date | string;- id: string;- isRead: boolean;- onArchive: (id: string) => void;- onMarkAsRead: (id: string) => void;- title: string;- type: string;-}--const NotificationItem = memo<NotificationItemProps>(- ({- id,- type,- title,- content,- context,- category,- createdAt,- isRead,- actionUrl,- onMarkAsRead,- onArchive,- }) => {- const { i18n, t } = useTranslation('notification');- const navigate = useWorkspaceAwareNavigate();- const TypeIcon = TYPE_ICON_MAP[type] || BellIcon;- const dateLocale = i18n.resolvedLanguage || i18n.language;- const preview = useMemo(() => toNotificationPreview(content), [content]);-- const handleClick = useCallback(() => {- if (!isRead) onMarkAsRead(id);- const onAction = actionUrl- ? () => {- if (/^https?:\/\//i.test(actionUrl)) {- window.open(actionUrl, '_blank', 'noopener,noreferrer');- } else {- navigate(actionUrl);- }- }- : undefined;- createNotificationDetailModal({- category,- content,- context,- createdAt,- onAction,- title,- });- }, [- id,- isRead,- actionUrl,- onMarkAsRead,- navigate,- category,- content,- context,- createdAt,- title,- ]);-- const handleArchive = useCallback(() => onArchive(id), [id, onArchive]);-- const contextMenuItems: NativeContextMenuItem[] = [- {- icon: ArchiveIcon,- key: 'archive',- label: t('inbox.archive'),- onClick: handleArchive,- sfSymbol: 'archivebox',- },- ];-- return (- <ContextMenuTrigger items={contextMenuItems}>- <Block- clickable- aria-label={title}- className={styles.container}- gap={4}- paddingBlock={8}- paddingInline={12}- variant="borderless"- onClick={handleClick}- >- <Flexbox horizontal align="flex-start" gap={6}>- {!isRead && <span className={styles.unreadDot} />}- <Flexbox flex={1} gap={4} style={{ overflow: 'hidden' }}>- <Text ellipsis={{ rows: 3 }} title={preview} wordBreak="break-word">- {preview}- </Text>- <Flexbox horizontal align="center" gap={4}>- <Icon color={cssVar.colorTextDescription} icon={TypeIcon} size={12} />- {context && (- <Text ellipsis fontSize={12} title={context} type="secondary">- {context}- </Text>- )}- <Text- fontSize={12}- style={{ flexShrink: 0, marginInlineStart: 'auto' }}- type="secondary"- >- {formatNotificationRelativeTime(createdAt, dateLocale)}- </Text>- </Flexbox>- </Flexbox>- </Flexbox>- </Block>- </ContextMenuTrigger>- );- },-);--export default NotificationItem;diff --git a/src/features/HomeSidebar/Header/components/InboxDrawer/index.tsx b/src/features/HomeSidebar/Header/components/InboxDrawer/index.tsxdeleted file mode 100644index ddb938bf6e0..00000000000--- a/src/features/HomeSidebar/Header/components/InboxDrawer/index.tsx+++ /dev/null@@ -1,131 +0,0 @@-'use client';--import { ActionIcon, Flexbox, Text } from '@lobehub/ui';-import { DropdownMenu } from '@lobehub/ui/base-ui';-import { ArchiveIcon, CheckCheckIcon, ListFilterIcon, MoreHorizontalIcon } from 'lucide-react';-import { memo, useCallback, useState } from 'react';-import { useTranslation } from 'react-i18next';--import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';-import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';-import SkeletonList from '@/features/NavPanel/components/SkeletonList';-import SideBarDrawer from '@/features/NavPanel/SideBarDrawer';-import dynamic from '@/libs/next/dynamic';-import { mutate } from '@/libs/swr';-import { inboxKeys } from '@/libs/swr/keys';-import { notificationService } from '@/services/notification';--const Content = dynamic(() => import('./Content'), {- loading: () => (- <Flexbox gap={1} paddingBlock={1} paddingInline={4}>- <SkeletonList rows={3} />- </Flexbox>- ),- ssr: false,-});--interface InboxDrawerProps {- onClose: () => void;- open: boolean;-}--const InboxDrawer = memo<InboxDrawerProps>(({ open, onClose }) => {- const { t } = useTranslation('notification');- const [unreadOnly, setUnreadOnly] = useState(false);- const workspaceId = useActiveWorkspaceId();-- const refreshList = useCallback(() => {- mutate((key: unknown) => Array.isArray(key) && key[0] === inboxKeys.notifications.root);- mutate(inboxKeys.unreadCount(workspaceId));- }, [workspaceId]);-- const handleMarkAsRead = useCallback(- async (id: string) => {- await notificationService.markAsRead([id]);- refreshList();- },- [refreshList],- );-- const handleArchive = useCallback(- async (id: string) => {- await notificationService.archive(id);- refreshList();- },- [refreshList],- );-- const handleMarkAllAsRead = useCallback(async () => {- await notificationService.markAllAsRead();- refreshList();- }, [refreshList]);-- const handleArchiveAll = useCallback(async () => {- await notificationService.archiveAll();- refreshList();- }, [refreshList]);-- const handleToggleFilter = useCallback(() => {- setUnreadOnly((prev) => !prev);- }, []);-- return (- <SideBarDrawer- open={open}- // Wider than the default 280: notification rows and the pending-transfer- // items carry inline actions + a timestamp that need the extra room.- width={320}- action={- <ActionIcon- active={unreadOnly}- icon={ListFilterIcon}- size={DESKTOP_HEADER_ICON_SMALL_SIZE}- title={t('inbox.filterUnread')}- onClick={handleToggleFilter}- />- }- title={- <Flexbox horizontal align="center" gap={2} style={{ paddingInlineStart: 8 }}>- <Text ellipsis fontSize={14} style={{ fontWeight: 600 }} weight={400}>- {t('inbox.title')}- </Text>- <DropdownMenu- placement="bottomLeft"- items={[- {- icon: ArchiveIcon,- key: 'archive-all',- label: t('inbox.archiveAll'),- onClick: handleArchiveAll,- },- {- icon: CheckCheckIcon,- key: 'mark-all-read',- label: t('inbox.markAllRead'),- onClick: handleMarkAllAsRead,- },- ]}- >- <ActionIcon- icon={MoreHorizontalIcon}- size={DESKTOP_HEADER_ICON_SMALL_SIZE}- title={t('more', { ns: 'common' })}- />- </DropdownMenu>- </Flexbox>- }- onClose={onClose}- >- <Content- open={open}- unreadOnly={unreadOnly}- onArchive={handleArchive}- onMarkAsRead={handleMarkAsRead}- />- </SideBarDrawer>- );-});--InboxDrawer.displayName = 'InboxDrawer';--export default InboxDrawer;diff --git a/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx b/src/features/HomeSidebar/Header/components/InboxModal/Content.tsxnew file mode 100644index 00000000000..ec8a1671dc5--- /dev/null+++ b/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx@@ -0,0 +1,253 @@+'use client';++import type { NotificationMetadata } from '@lobechat/types';+import { Flexbox, Icon, Text } from '@lobehub/ui';+import { createStaticStyles, cssVar } from 'antd-style';+import { BellOffIcon } from 'lucide-react';+import { memo, useCallback, useEffect, useRef } from 'react';+import { useTranslation } from 'react-i18next';+import type { VListHandle } from 'virtua';+import { VList } from 'virtua';++import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';+import AsyncError from '@/components/AsyncError';+import SkeletonList from '@/features/NavPanel/components/SkeletonList';+import { PENDING_TRANSFERS_SWR_KEY, TransferRequestItem } from '@/features/ResourceTransferRequest';+import { useClientDataSWR } from '@/libs/swr';+import type { PendingTransferRequest } from '@/services/resourceTransferRequest';+import { resourceTransferRequestService } from '@/services/resourceTransferRequest';+import { useUserStore } from '@/store/user';+import { userProfileSelectors } from '@/store/user/selectors';++import NotificationItem from './NotificationItem';+import type { NotificationListHandle } from './useNotificationList';+import { PAGE_SIZE, useNotificationList } from './useNotificationList';++const styles = createStaticStyles(({ css }) => ({+ item: css`+ border-block-end: 1px solid ${cssVar.colorBorderSecondary};++ &:hover {+ background: ${cssVar.colorFillSecondary};+ }+ `,+}));++interface ContentProps {+ category?: string;+ /** Read-state filter; `undefined` renders the combined "all" view. */+ isRead?: boolean;+ onArchive: (id: string) => void;+ onMarkAsRead: (id: string) => void;+ /**+ * Refreshes the surrounding inbox chrome (navigation counts, unread badge)+ * after a transfer action that has no loaded notification row to mark read.+ */+ onRefreshInbox: () => void;+ /** See {@link useNotificationList} for why the list handle is registered. */+ registerHandle: (handle: NotificationListHandle) => void;+}++const getLinkedRequestId = (item: { metadata?: NotificationMetadata | null }) =>+ item.metadata?.transfer?.requestId;++const Content = memo<ContentProps>(+ ({ category, isRead, onMarkAsRead, onArchive, onRefreshInbox, registerHandle }) => {+ const { t } = useTranslation('notification');+ const virtuaRef = useRef<VListHandle>(null);+ const workspaceId = useActiveWorkspaceId();+ const currentUserId = useUserStore(userProfileSelectors.userId);++ const {+ data: pages,+ error,+ isLoading,+ isValidating,+ mutate,+ setSize,+ } = useNotificationList({ category, isRead, registerHandle });++ // Cross-resource transfer inbox: live pending requests rendered as+ // notification-style items pinned above the immutable stream. Driven by+ // `listMine` rather than the rows so resolved/expired/withdrawn requests+ // simply drop out — no stale action buttons to reconcile. The items render+ // only in the unread view of the "all" and "pending" filters, where+ // actionable work belongs — but the live list is fetched for EVERY filter,+ // because row suppression below must hold on all of them (a linked row+ // must never show alongside, or instead of, its live item).+ const showTransfers = isRead !== true && (!category || category === 'pending');+ const { data: transferRequests, mutate: mutateTransfers } = useClientDataSWR<+ PendingTransferRequest[]+ >(workspaceId ? [PENDING_TRANSFERS_SWR_KEY, workspaceId] : null, () =>+ resourceTransferRequestService.listMine(),+ );++ // Reset scroll position and pagination when filter changes+ useEffect(() => {+ setSize(1);+ virtuaRef.current?.scrollTo(0);+ }, [category, isRead, setSize]);++ const notifications = pages?.flat() ?? [];+ const hasMore = pages ? pages.at(-1)?.length === PAGE_SIZE : false;++ const liveRequests = (showTransfers && currentUserId && transferRequests) || [];+ // While a request is live its actionable item replaces the immutable+ // `agent_transfer_requested` row in every TAB — the suppression set+ // derives from the unfiltered live list, not the render-gated one, so a+ // read row cannot resurface in the Read tab while its request still+ // awaits action. Once resolved the row reappears as the historical+ // record. Suppression is scoped to the `pending` CATEGORY to mirror the+ // server's count reconciliation exactly: a linked row that landed in+ // another category stays counted there, so it must stay rendered there —+ // hiding it would advertise a badge over an empty list.+ const liveRequestIds = new Set((transferRequests ?? []).map((request) => request.id));+ const visibleNotifications = notifications.filter((item) => {+ const requestId = getLinkedRequestId(item);+ return !requestId || item.category !== 'pending' || !liveRequestIds.has(requestId);+ });++ const handleTransferSettled = useCallback(+ async (request: PendingTransferRequest, succeeded: boolean) => {+ // Re-read first so the resolved item leaves before the row resurfaces.+ // A failed revalidation must not skip the refresh below — treat it as+ // "request no longer live" so the conservative path (refresh) runs.+ let next: PendingTransferRequest[] | undefined;+ try {+ next = await mutateTransfers();+ } catch (error) {+ console.error('[InboxNotificationList] transfer revalidation failed', error);+ }+ // The server settles the linked row (marks it read) as part of the+ // state transition — here only the surrounding chrome refreshes so the+ // badge and the read list pick the settled state up. A terminal+ // FAILURE (expired / resolved by another client) also settles the row+ // server-side, so refresh whenever the request left the live list,+ // not only on success — otherwise the cached row resurfaces unread.+ const stillLive = !!next?.some((item) => item.id === request.id);+ if (succeeded || !stillLive) onRefreshInbox();+ },+ [mutateTransfers, onRefreshInbox],+ );++ // The VList renders the live transfer items followed by+ // `visibleNotifications`, so the bottom index must be compared against the+ // rendered count — measuring against the unfiltered page length would+ // stall pagination once suppressed rows accumulate.+ const visibleCount = visibleNotifications.length;+ const renderedCount = liveRequests.length + visibleCount;+ const handleScroll = useCallback(() => {+ const ref = virtuaRef.current;+ if (!ref || !hasMore || isValidating || error) return;++ const bottomVisibleIndex = ref.findItemIndex(ref.scrollOffset + ref.viewportSize);+ if (bottomVisibleIndex + 5 > renderedCount) {+ setSize((prev) => prev + 1);+ }+ }, [error, hasMore, isValidating, renderedCount, setSize]);++ // When every loaded row is suppressed by a live request there is no VList+ // to scroll, so pagination would never advance — fetch the next page until+ // something renders or the stream ends.+ const allLoadedSuppressed = visibleCount === 0 && notifications.length > 0;+ useEffect(() => {+ if (allLoadedSuppressed && hasMore && !isValidating && !error) {+ setSize((prev) => prev + 1);+ }+ }, [allLoadedSuppressed, error, hasMore, isValidating, setSize]);++ if (isLoading) {+ return (+ <Flexbox gap={1} paddingBlock={1} paddingInline={4}>+ <SkeletonList rows={5} />+ </Flexbox>+ );+ }++ if (error && notifications.length === 0) {+ return (+ <AsyncError+ error={error}+ retrying={isValidating}+ variant="page"+ onRetry={() => void mutate()}+ />+ );+ }++ // Rendered INSIDE the VList (not as fixed siblings): the modal caps its+ // height and hides overflow, so cards outside the scroll container would+ // clip once several transfers (with their manifest rows) stack up.+ const transferItems = currentUserId+ ? liveRequests.map((request) => (+ <Flexbox className={styles.item} key={request.id}>+ <TransferRequestItem+ currentUserId={currentUserId}+ request={request}+ onSettled={handleTransferSettled}+ />+ </Flexbox>+ ))+ : [];++ if (visibleNotifications.length === 0 && transferItems.length === 0) {+ return (+ <Flexbox height="100%">+ <Flexbox align="center" gap={12} justify="center" paddingBlock={48}>+ <Icon color={cssVar.colorTextQuaternary} icon={BellOffIcon} size={40} />+ <Text type="secondary">+ {t(+ isRead === undefined+ ? 'inbox.empty'+ : isRead+ ? 'inbox.emptyRead'+ : 'inbox.emptyUnread',+ )}+ </Text>+ </Flexbox>+ </Flexbox>+ );+ }++ return (+ <Flexbox height="100%">+ <VList ref={virtuaRef} style={{ flex: 1 }} onScroll={handleScroll}>+ {transferItems}+ {visibleNotifications.map((item) => (+ <Flexbox className={styles.item} key={item.id}>+ <NotificationItem+ actionUrl={item.actionUrl}+ content={item.content}+ context={item.context}+ createdAt={item.createdAt}+ id={item.id}+ isRead={item.isRead}+ metadata={item.metadata}+ title={item.title}+ type={item.type}+ onArchive={onArchive}+ onMarkAsRead={onMarkAsRead}+ />+ </Flexbox>+ ))}+ {error ? (+ <AsyncError+ error={error}+ retrying={isValidating}+ variant="inline"+ onRetry={() => void mutate()}+ />+ ) : isValidating ? (+ <Flexbox padding="4px 8px">+ <SkeletonList rows={2} />+ </Flexbox>+ ) : null}+ </VList>+ </Flexbox>+ );+ },+);++Content.displayName = 'InboxNotificationList';++export default Content;diff --git a/src/features/HomeSidebar/Header/components/InboxDrawer/NotificationDetailModal.tsx b/src/features/HomeSidebar/Header/components/InboxModal/NotificationDetailModal.tsxsimilarity index 89%rename from src/features/HomeSidebar/Header/components/InboxDrawer/NotificationDetailModal.tsxrename to src/features/HomeSidebar/Header/components/InboxModal/NotificationDetailModal.tsxindex 3807af8a431..625126e81f3 100644--- a/src/features/HomeSidebar/Header/components/InboxDrawer/NotificationDetailModal.tsx+++ b/src/features/HomeSidebar/Header/components/InboxModal/NotificationDetailModal.tsx@@ -7,7 +7,6 @@ import { memo } from 'react';import { useTranslation } from 'react-i18next';interface NotificationDetailParams {- category?: string;content: string;context?: string | null;createdAt: Date | string;@@ -16,14 +15,13 @@ interface NotificationDetailParams {}const NotificationDetailContent = memo<Omit<NotificationDetailParams, 'title'>>(- ({ category, content, context, createdAt, onAction }) => {+ ({ content, context, createdAt, onAction }) => {const { t } = useTranslation('notification');const { close } = useModalContext();return (<Flexbox gap={12}><Text fontSize={12} type="secondary">- {category && `${t(`category.${category}`, { defaultValue: category })} · `}{dayjs(createdAt).format('YYYY-MM-DD HH:mm')}</Text>{context && (@@ -52,9 +50,10 @@ const NotificationDetailContent = memo<Omit<NotificationDetailParams, 'title'>>(},);+NotificationDetailContent.displayName = 'NotificationDetailContent';+export const createNotificationDetailModal = ({title,- category,content,context,createdAt,@@ -63,7 +62,6 @@ export const createNotificationDetailModal = ({createModal({content: (<NotificationDetailContent- category={category}content={content}context={context}createdAt={createdAt}diff --git a/src/features/HomeSidebar/Header/components/InboxModal/NotificationItem.tsx b/src/features/HomeSidebar/Header/components/InboxModal/NotificationItem.tsxnew file mode 100644index 00000000000..23265271bc6--- /dev/null+++ b/src/features/HomeSidebar/Header/components/InboxModal/NotificationItem.tsx@@ -0,0 +1,219 @@+'use client';++import { DEFAULT_USER_AVATAR_URL } from '@lobechat/const';+import type { NotificationMetadata } from '@lobechat/types';+import { Avatar, Block, Flexbox, Icon, Text } from '@lobehub/ui';+import { Button, ContextMenuTrigger, useModalContext } from '@lobehub/ui/base-ui';+import { createStaticStyles, cssVar } from 'antd-style';+import { ArchiveIcon, BellIcon, ImageIcon, MegaphoneIcon, VideoIcon } from 'lucide-react';+import type { MouseEvent } from 'react';+import { memo, useCallback, useMemo } from 'react';+import { useTranslation } from 'react-i18next';++import { ProductLogo } from '@/components/Branding';+import { useAgentDisplayMeta } from '@/features/AgentTasks/shared/useAgentDisplayMeta';+import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';+import type { NativeContextMenuItem } from '@/libs/contextMenu/types';++import { formatNotificationRelativeTime } from './formatNotificationRelativeTime';+import { getNotificationAgentId } from './getNotificationAgentId';+import { createNotificationDetailModal } from './NotificationDetailModal';+import { toNotificationPreview } from './toNotificationPreview';++const styles = createStaticStyles(({ css }) => ({+ unreadDot: css`+ flex-shrink: 0;++ width: 8px;+ height: 8px;+ margin-block-start: 7px;+ border-radius: 50%;++ background: ${cssVar.colorInfo};+ `,+}));++const TYPE_ICON_MAP: Record<string, typeof BellIcon> = {+ image_generation_completed: ImageIcon,+ system_announcement: MegaphoneIcon,+ video_generation_completed: VideoIcon,+};++interface NotificationItemProps {+ actionUrl?: string | null;+ content: string;+ context?: string | null;+ createdAt: Date | string;+ id: string;+ isRead: boolean;+ metadata?: NotificationMetadata | null;+ onArchive: (id: string) => void;+ onMarkAsRead: (id: string) => void;+ title: string;+ type: string;+}++const NotificationItem = memo<NotificationItemProps>(+ ({+ id,+ type,+ title,+ content,+ context,+ createdAt,+ isRead,+ actionUrl,+ metadata,+ onMarkAsRead,+ onArchive,+ }) => {+ const { i18n, t } = useTranslation('notification');+ const { close } = useModalContext();+ const navigate = useWorkspaceAwareNavigate();+ const TypeIcon = TYPE_ICON_MAP[type] || BellIcon;+ const dateLocale = i18n.resolvedLanguage || i18n.language;+ const preview = useMemo(() => toNotificationPreview(content), [content]);+ const actor = metadata?.actor;+ const agentId = useMemo(() => getNotificationAgentId(actionUrl), [actionUrl]);+ const agent = useAgentDisplayMeta(agentId, { fallbackToDefault: false });++ const handleMarkAsRead = useCallback(() => {+ if (!isRead) onMarkAsRead(id);+ }, [id, isRead, onMarkAsRead]);++ const handleAction = useCallback(() => {+ handleMarkAsRead();++ if (!actionUrl) return;++ if (/^https?:\/\//i.test(actionUrl)) {+ window.open(actionUrl, '_blank', 'noopener,noreferrer');+ } else {+ navigate(actionUrl);+ close();+ }+ }, [actionUrl, close, handleMarkAsRead, navigate]);++ // The row only shows a two-line preview, so a click must always give access+ // to the full body — the detail modal is the only place a content-only+ // notification (no actionUrl) can be read in full.+ const handleOpenDetail = useCallback(() => {+ handleMarkAsRead();+ createNotificationDetailModal({+ content,+ context,+ createdAt,+ onAction: actionUrl && !metadata?.transfer ? handleAction : undefined,+ title,+ });+ }, [actionUrl, content, context, createdAt, handleAction, handleMarkAsRead, metadata, title]);++ const handleActionClick = useCallback(+ (event: MouseEvent) => {+ event.stopPropagation();+ handleAction();+ },+ [handleAction],+ );++ const handleArchive = useCallback(() => onArchive(id), [id, onArchive]);++ const contextMenuItems: NativeContextMenuItem[] = [+ {+ icon: ArchiveIcon,+ key: 'archive',+ label: t('inbox.archive'),+ onClick: handleArchive,+ sfSymbol: 'archivebox',+ },+ ];++ return (+ <ContextMenuTrigger items={contextMenuItems}>+ <Block+ aria-label={title}+ gap={4}+ paddingBlock={12}+ paddingInline={20}+ style={{ cursor: 'pointer' }}+ variant="borderless"+ onClick={handleOpenDetail}+ >+ <Flexbox horizontal align="flex-start" gap={12}>+ {!isRead && <span className={styles.unreadDot} />}+ {actor ? (+ <Avatar+ alt={actor.name}+ avatar={actor.avatar || DEFAULT_USER_AVATAR_URL}+ shape="circle"+ size={32}+ style={{ flex: 'none' }}+ />+ ) : agent ? (+ <Avatar+ emojiScaleWithBackground+ alt={agent.title}+ avatar={agent.avatar}+ background={agent.backgroundColor}+ shape="circle"+ size={32}+ style={{ flex: 'none' }}+ />+ ) : (+ <ProductLogo size={32} style={{ flex: 'none' }} />+ )}+ <Flexbox flex={1} gap={6} style={{ minWidth: 0, overflow: 'hidden' }}>+ <Text ellipsis={{ rows: 2 }} wordBreak="break-word">+ {preview}+ </Text>+ <Flexbox horizontal align="center" gap={6}>+ {/* The actor snapshot exists so the reader can tell WHO acted+ without recognizing the avatar — render the name visibly. */}+ {actor?.name && (+ <Text+ ellipsis+ fontSize={12}+ style={{ flexShrink: 0, maxWidth: 160 }}+ type="secondary"+ >+ {actor.name}+ </Text>+ )}+ <Text fontSize={12} style={{ flexShrink: 0 }} type="secondary">+ {formatNotificationRelativeTime(createdAt, dateLocale)}+ </Text>+ {context && (+ <>+ <Icon color={cssVar.colorTextDescription} icon={TypeIcon} size={12} />+ <Text ellipsis fontSize={12} type="secondary">+ {context}+ </Text>+ </>+ )}+ </Flexbox>+ </Flexbox>+ {/* Always reserve the action column so text width stays aligned across rows */}+ <Flexbox+ horizontal+ align="center"+ flex="none"+ justify="flex-end"+ style={{ alignSelf: 'stretch', width: 144 }}+ >+ {/* Transfer-linked rows keep an actionUrl purely as the email+ CTA's landing target (workspace home). In-app that target is+ where the user already is, so no dead "view detail" button. */}+ {actionUrl && !metadata?.transfer && (+ <Button onClick={handleActionClick}>{t('inbox.viewDetail')}</Button>+ )}+ </Flexbox>+ </Flexbox>+ </Block>+ </ContextMenuTrigger>+ );+ },+);++NotificationItem.displayName = 'NotificationItem';++export default NotificationItem;diff --git a/src/features/HomeSidebar/Header/components/InboxDrawer/formatNotificationRelativeTime.test.ts b/src/features/HomeSidebar/Header/components/InboxModal/formatNotificationRelativeTime.test.tssimilarity index 100%rename from src/features/HomeSidebar/Header/components/InboxDrawer/formatNotificationRelativeTime.test.tsrename to src/features/HomeSidebar/Header/components/InboxModal/formatNotificationRelativeTime.test.tsdiff --git a/src/features/HomeSidebar/Header/components/InboxDrawer/formatNotificationRelativeTime.ts b/src/features/HomeSidebar/Header/components/InboxModal/formatNotificationRelativeTime.tssimilarity index 100%rename from src/features/HomeSidebar/Header/components/InboxDrawer/formatNotificationRelativeTime.tsrename to src/features/HomeSidebar/Header/components/InboxModal/formatNotificationRelativeTime.tsdiff --git a/src/features/HomeSidebar/Header/components/InboxModal/getNotificationAgentId.test.ts b/src/features/HomeSidebar/Header/components/InboxModal/getNotificationAgentId.test.tsnew file mode 100644index 00000000000..0c7c0f2939a--- /dev/null+++ b/src/features/HomeSidebar/Header/components/InboxModal/getNotificationAgentId.test.ts@@ -0,0 +1,30 @@+import { describe, expect, it } from 'vitest';++import { getNotificationAgentId } from './getNotificationAgentId';++describe('getNotificationAgentId', () => {+ it('resolves an agent from a personal notification deep link', () => {+ expect(getNotificationAgentId('/agent/agent-1/topic-1')).toBe('agent-1');+ });++ it('resolves an agent from a workspace-prefixed deep link', () => {+ expect(getNotificationAgentId('/acme/agent/agent-2/topic-2?comment=comment-1')).toBe('agent-2');+ });++ it('supports absolute notification links', () => {+ expect(getNotificationAgentId('https://app.lobehub.com/acme/agent/agent-3/topic-3')).toBe(+ 'agent-3',+ );+ });++ it.each([undefined, null, '/image?topic=topic-1', '/agent', '/system'])(+ 'returns undefined for a non-agent action URL: %s',+ (actionUrl) => {+ expect(getNotificationAgentId(actionUrl)).toBeUndefined();+ },+ );++ it('returns undefined when the encoded agent id is malformed', () => {+ expect(getNotificationAgentId('/agent/%E0%A4%A/topic-1')).toBeUndefined();+ });+});diff --git a/src/features/HomeSidebar/Header/components/InboxModal/getNotificationAgentId.ts b/src/features/HomeSidebar/Header/components/InboxModal/getNotificationAgentId.tsnew file mode 100644index 00000000000..4f0ad45d42d--- /dev/null+++ b/src/features/HomeSidebar/Header/components/InboxModal/getNotificationAgentId.ts@@ -0,0 +1,21 @@+/**+ * Resolve an agent id from the notification's existing deep link. Supports+ * both personal `/agent/:id` paths and workspace-prefixed `/:slug/agent/:id`+ * paths without inventing an Agent association for unrelated notifications.+ */+export const getNotificationAgentId = (actionUrl?: string | null): string | undefined => {+ if (!actionUrl) return undefined;++ try {+ const { pathname } = new URL(actionUrl, 'https://notification.local');+ const segments = pathname.split('/').filter(Boolean);+ const agentSegmentIndex = segments[1] === 'agent' ? 1 : segments[0] === 'agent' ? 0 : -1;+ if (agentSegmentIndex < 0) return undefined;++ const encodedAgentId = segments[agentSegmentIndex + 1];++ return encodedAgentId ? decodeURIComponent(encodedAgentId) : undefined;+ } catch {+ return undefined;+ }+};diff --git a/src/features/HomeSidebar/Header/components/InboxModal/index.tsx b/src/features/HomeSidebar/Header/components/InboxModal/index.tsxnew file mode 100644index 00000000000..839cb5428ce--- /dev/null+++ b/src/features/HomeSidebar/Header/components/InboxModal/index.tsx@@ -0,0 +1,464 @@+'use client';++import { ActionIcon, Flexbox, Text } from '@lobehub/ui';+import {+ Button,+ createModal,+ DropdownMenu,+ ModalClose,+ ModalHeader,+ ModalTitle,+ Tabs,+ toast,+} from '@lobehub/ui/base-ui';+import { createStaticStyles, cssVar } from 'antd-style';+import type { LucideIcon } from 'lucide-react';+import {+ ArchiveIcon,+ BellIcon,+ BellRingIcon,+ BotIcon,+ Building2Icon,+ CalendarClockIcon,+ CheckCheckIcon,+ CreditCardIcon,+ ListTodoIcon,+ MoreHorizontalIcon,+ SparklesIcon,+ TagIcon,+} from 'lucide-react';+import { memo, useCallback, useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';+import AsyncError from '@/components/AsyncError';+import { DESKTOP_HEADER_ICON_SMALL_SIZE } from '@/const/layoutTokens';+import NavItem from '@/features/NavPanel/components/NavItem';+import SkeletonList from '@/features/NavPanel/components/SkeletonList';+import { PENDING_TRANSFERS_SWR_KEY } from '@/features/ResourceTransferRequest';+import dynamic from '@/libs/next/dynamic';+import { mutate, useClientDataSWR } from '@/libs/swr';+import { inboxKeys } from '@/libs/swr/keys';+import { notificationService } from '@/services/notification';+import type { PendingTransferRequest } from '@/services/resourceTransferRequest';+import { resourceTransferRequestService } from '@/services/resourceTransferRequest';++import type { NotificationListHandle } from './useNotificationList';++const Content = dynamic(() => import('./Content'), {+ loading: () => (+ <Flexbox gap={1} paddingBlock={1} paddingInline={4}>+ <SkeletonList rows={5} />+ </Flexbox>+ ),+ ssr: false,+});++const styles = createStaticStyles(({ css }) => ({+ body: css`+ overflow: hidden;+ min-height: 0;+ `,+ categoryList: css`+ overflow-y: auto;+ overscroll-behavior: contain;+ flex: 1;+ `,+ header: css`+ flex: none;+ gap: 0;+ padding: 0;+ border-block-end: 1px solid ${cssVar.colorBorderSecondary};+ `,+ headerMain: css`+ min-width: 0;+ padding-block: 12px;+ padding-inline: 16px;+ `,+ headerTitle: css`+ flex: none;++ box-sizing: border-box;+ width: clamp(160px, 22vw, 220px);+ padding-inline: 16px;++ white-space: nowrap;+ `,+ main: css`+ overflow: hidden;+ min-width: 0;+ `,+ root: css`+ overflow: hidden;+ `,+ sidebar: css`+ overflow: hidden;+ flex: none;++ box-sizing: border-box;+ width: clamp(160px, 22vw, 220px);+ padding: 8px;+ border-inline-end: 1px solid ${cssVar.colorBorderSecondary};+ `,+}));++interface CategoryCount {+ category: string;+ readCount: number;+ totalCount: number;+ unreadCount: number;+}++type ReadStatus = 'all' | 'read' | 'unread';++const ALL_FILTER = '__all__';+const PERSONAL_INBOX_CATEGORIES: readonly string[] = [+ 'pending',+ 'agent',+ 'billing',+ 'generation',+ 'schedule',+ 'system',+];+const WORKSPACE_INBOX_CATEGORIES: readonly string[] = [+ 'pending',+ 'agent',+ 'generation',+ 'schedule',+ 'system',+ 'workspace',+];+const CATEGORY_ICONS: Record<string, LucideIcon> = {+ agent: BotIcon,+ billing: CreditCardIcon,+ generation: SparklesIcon,+ pending: ListTodoIcon,+ schedule: CalendarClockIcon,+ system: BellRingIcon,+ workspace: Building2Icon,+};++const InboxModalContent = memo(() => {+ const { i18n, t } = useTranslation('notification');+ const workspaceId = useActiveWorkspaceId();+ const [navigationFilter, setNavigationFilter] = useState(ALL_FILTER);+ const [readStatus, setReadStatus] = useState<ReadStatus>('unread');+ const [bulkAction, setBulkAction] = useState<'archive' | 'read'>();+ const listHandleRef = useRef<NotificationListHandle>(null);+ const registerListHandle = useCallback((handle: NotificationListHandle) => {+ listHandleRef.current = handle;+ }, []);+ // `undefined` = the combined "all" view (no read-state filter).+ const isRead = readStatus === 'all' ? undefined : readStatus === 'read';++ const {+ data: navigationCounts,+ error: navigationCountsError,+ isLoading: isNavigationCountsLoading,+ isValidating: isNavigationCountsValidating,+ mutate: refreshNavigationCounts,+ } = useClientDataSWR<CategoryCount[]>(+ inboxKeys.navigationCounts(workspaceId),+ () => notificationService.getNavigationCounts(),+ { revalidateOnFocus: false },+ );++ // Same key Content uses, so this reads the shared cache entry. The server+ // folds one totalCount unit per live card into `pending`, and archive-all+ // cannot touch live cards — subtracting them yields the archivable rows.+ const { data: liveTransfers } = useClientDataSWR<PendingTransferRequest[]>(+ workspaceId ? [PENDING_TRANSFERS_SWR_KEY, workspaceId] : null,+ () => resourceTransferRequestService.listMine(),+ );+ const liveTransferCount = liveTransfers?.length ?? 0;++ const categoryCounts = navigationCounts ?? [];+ const categoryCountsMap = new Map(categoryCounts.map((item) => [item.category, item]));+ const configuredCategories = workspaceId ? WORKSPACE_INBOX_CATEGORIES : PERSONAL_INBOX_CATEGORIES;+ const categoryLabel = (value: string) =>+ t(`category.${value}`, { defaultValue: value, ns: 'notification' });+ const collator = new Intl.Collator(i18n.resolvedLanguage || i18n.language);+ // Filter extras against the CURRENT context's configured list, not the union+ // of both contexts: a category configured only for the other context (e.g. a+ // personal-scope `workspace` notification) must still get its own entry here.+ const extraCategoryCounts = categoryCounts+ .filter((item) => !configuredCategories.includes(item.category))+ .sort((a, b) => collator.compare(categoryLabel(a.category), categoryLabel(b.category)));+ const visibleCategoryCounts = [+ ...configuredCategories.map(+ (category) =>+ categoryCountsMap.get(category) ?? {+ category,+ readCount: 0,+ totalCount: 0,+ unreadCount: 0,+ },+ ),+ ...extraCategoryCounts,+ ];+ const visibleCategorySignature = visibleCategoryCounts.map((item) => item.category).join('\0');+ const category = navigationFilter === ALL_FILTER ? undefined : navigationFilter;++ useEffect(() => {+ if (+ category &&+ !isNavigationCountsLoading &&+ !navigationCountsError &&+ !visibleCategorySignature.split('\0').includes(category)+ ) {+ setNavigationFilter(ALL_FILTER);+ }+ }, [category, isNavigationCountsLoading, navigationCountsError, visibleCategorySignature]);++ const refreshInbox = useCallback(() => {+ // The notification list lives in a useSWRInfinite hook whose `$inf$` cache+ // key is skipped by SWR's filter-form mutate, so refresh it through the+ // bound handle Content registers instead. This is also the rollback path+ // for optimistic updates: on failure a revalidation restores server state.+ listHandleRef.current?.refresh();+ void mutate(inboxKeys.unreadCount(workspaceId));+ void mutate(inboxKeys.navigationCounts(workspaceId));+ }, [workspaceId]);++ const handleMarkAsRead = useCallback(+ async (id: string) => {+ // A row read in the unread view leaves the list; in the All view it+ // STAYS (as combined history), so removing it there would drop it from+ // the cache until a later refresh — let the revalidation flip its state.+ if (readStatus !== 'all') listHandleRef.current?.optimisticRemove(id);+ try {+ await notificationService.markAsRead([id]);+ refreshInbox();+ } catch (error) {+ console.error('Failed to mark notification as read:', error);+ toast.error(t('inbox.actionFailed'));+ refreshInbox();+ }+ },+ [readStatus, refreshInbox, t],+ );++ const handleArchive = useCallback(+ async (id: string) => {+ listHandleRef.current?.optimisticRemove(id);+ try {+ await notificationService.archive(id);+ refreshInbox();+ } catch (error) {+ console.error('Failed to archive notification:', error);+ toast.error(t('inbox.actionFailed'));+ refreshInbox();+ }+ },+ [refreshInbox, t],+ );++ const handleMarkAllAsRead = useCallback(async () => {+ setBulkAction('read');+ // Rows only leave the unread view when read; in the all view they stay+ // (as read rows), so there the post-action refresh updates them in place.+ if (readStatus === 'unread') listHandleRef.current?.optimisticClear();+ // Pending is action-driven, not read-driven: its badge counts live+ // requests that mark-all-as-read cannot (and must not) resolve. Zeroing+ // it optimistically would flash the count away only to bounce back on the+ // refresh — reading as a broken button — so it stays untouched.+ void refreshNavigationCounts(+ (counts) =>+ counts?.map((item) => (item.category === 'pending' ? item : { ...item, unreadCount: 0 })),+ { revalidate: false },+ );+ try {+ await notificationService.markAllAsRead();+ refreshInbox();+ } catch (error) {+ console.error('Failed to mark all notifications as read:', error);+ toast.error(t('inbox.actionFailed'));+ refreshInbox();+ } finally {+ setBulkAction(undefined);+ }+ }, [readStatus, refreshInbox, refreshNavigationCounts, t]);++ const handleArchiveAll = useCallback(async () => {+ setBulkAction('archive');+ listHandleRef.current?.optimisticClear();+ try {+ await notificationService.archiveAll();+ refreshInbox();+ } catch (error) {+ console.error('Failed to archive all notifications:', error);+ toast.error(t('inbox.actionFailed'));+ refreshInbox();+ } finally {+ setBulkAction(undefined);+ }+ }, [refreshInbox, t]);++ const countForStatus = (item: CategoryCount) => {+ if (readStatus === 'all') return item.totalCount;+ return isRead ? item.readCount : item.unreadCount;+ };+ const allCount = categoryCounts.reduce((total, item) => total + countForStatus(item), 0);+ // Mark-all-read cannot resolve live requests — each live card holds exactly+ // one unit of pending's unreadCount (server reconciliation), so subtracting+ // the card count leaves the rows the action would visibly flip. Ordinary+ // pending rows (personal context has no live cards) stay markable; with+ // only live cards left the button stays off — clicking would change+ // nothing visible and read as a broken button.+ const allUnreadCount = categoryCounts.reduce((total, item) => total + item.unreadCount, 0);+ const markableUnreadCount = Math.max(0, allUnreadCount - liveTransferCount);+ const allTotalCount = categoryCounts.reduce((total, item) => total + item.totalCount, 0);+ // Live cards are not archivable; with only live cards left, archive-all+ // would visibly do nothing — keep it disabled then.+ const archivableTotalCount = Math.max(0, allTotalCount - liveTransferCount);+ return (+ <Flexbox className={styles.root} height={'100%'}>+ <ModalHeader className={styles.header}>+ <Flexbox className={styles.headerTitle} justify="center">+ <ModalTitle>{t('inbox.title')}</ModalTitle>+ </Flexbox>+ <Flexbox+ horizontal+ align="center"+ className={styles.headerMain}+ flex={1}+ justify="space-between"+ >+ <Tabs+ activeKey={readStatus}+ size="small"+ variant="rounded"+ items={[+ { key: 'unread', label: t('inbox.unread') },+ { key: 'read', label: t('inbox.read') },+ { key: 'all', label: t('inbox.allStatus') },+ ]}+ onChange={(key) => setReadStatus(key as ReadStatus)}+ />+ <Flexbox horizontal align="center" gap={4}>+ {readStatus !== 'read' && (+ <Button+ icon={CheckCheckIcon}+ loading={bulkAction === 'read'}+ size="small"+ type="text"+ disabled={+ markableUnreadCount === 0 ||+ !!bulkAction ||+ isNavigationCountsLoading ||+ !!navigationCountsError+ }+ onClick={handleMarkAllAsRead}+ >+ {t('inbox.markAllRead')}+ </Button>+ )}+ <DropdownMenu+ placement="bottomRight"+ items={[+ {+ disabled:+ archivableTotalCount === 0 ||+ !!bulkAction ||+ isNavigationCountsLoading ||+ !!navigationCountsError,+ icon: ArchiveIcon,+ key: 'archive-all',+ label: t('inbox.archiveAll'),+ onClick: handleArchiveAll,+ },+ ]}+ >+ <ActionIcon+ icon={MoreHorizontalIcon}+ loading={bulkAction === 'archive'}+ size={DESKTOP_HEADER_ICON_SMALL_SIZE}+ title={t('more', { ns: 'common' })}+ />+ </DropdownMenu>+ <ModalClose style={{ position: 'static' }} />+ </Flexbox>+ </Flexbox>+ </ModalHeader>+ <Flexbox horizontal className={styles.body} flex={1}>+ <Flexbox className={styles.sidebar} gap={4}>+ <NavItem+ active={navigationFilter === ALL_FILTER}+ icon={BellIcon}+ title={t('inbox.all')}+ extra={+ allCount > 0 ? (+ <Text style={{ marginInlineEnd: 6 }} type="secondary">+ {allCount}+ </Text>+ ) : undefined+ }+ onClick={() => setNavigationFilter(ALL_FILTER)}+ />+ <Flexbox className={styles.categoryList} gap={4}>+ {isNavigationCountsLoading ? (+ <SkeletonList rows={4} />+ ) : (+ <>+ {navigationCountsError && (+ <AsyncError+ error={navigationCountsError}+ retrying={isNavigationCountsValidating}+ variant="inline"+ onRetry={() => void refreshNavigationCounts()}+ />+ )}+ {visibleCategoryCounts.map((item) => {+ const count = countForStatus(item);++ return (+ <NavItem+ active={navigationFilter === item.category}+ icon={CATEGORY_ICONS[item.category] ?? TagIcon}+ key={item.category}+ title={categoryLabel(item.category)}+ extra={+ !navigationCountsError && count > 0 ? (+ <Text style={{ marginInlineEnd: 6 }} type="secondary">+ {count}+ </Text>+ ) : undefined+ }+ onClick={() => setNavigationFilter(item.category)}+ />+ );+ })}+ </>+ )}+ </Flexbox>+ </Flexbox>+ <Flexbox className={styles.main} flex={1}>+ <Flexbox flex={1} style={{ minHeight: 0 }}>+ <Content+ category={category}+ isRead={isRead}+ registerHandle={registerListHandle}+ onArchive={handleArchive}+ onMarkAsRead={handleMarkAsRead}+ onRefreshInbox={refreshInbox}+ />+ </Flexbox>+ </Flexbox>+ </Flexbox>+ </Flexbox>+ );+});++InboxModalContent.displayName = 'InboxModalContent';++export const openInboxModal = () =>+ createModal({+ content: <InboxModalContent />,+ footer: null,+ maskClosable: true,+ styles: {+ content: { height: 'min(72dvh, 720px)', overflow: 'hidden', padding: 0 },+ },+ title: false,+ width: 'min(92vw, 920px)',+ });diff --git a/src/features/HomeSidebar/Header/components/InboxDrawer/toNotificationPreview.test.ts b/src/features/HomeSidebar/Header/components/InboxModal/toNotificationPreview.test.tssimilarity index 75%rename from src/features/HomeSidebar/Header/components/InboxDrawer/toNotificationPreview.test.tsrename to src/features/HomeSidebar/Header/components/InboxModal/toNotificationPreview.test.tsindex d0d3432fe74..ffffc0b57a3 100644--- a/src/features/HomeSidebar/Header/components/InboxDrawer/toNotificationPreview.test.ts+++ b/src/features/HomeSidebar/Header/components/InboxModal/toNotificationPreview.test.ts@@ -33,6 +33,18 @@ describe('toNotificationPreview', () => {expect(preview).not.toContain('--');});+ it('strips heading markers that were already collapsed mid-line upstream', () => {+ expect(+ toNotificationPreview(+ '好的!我来分析。 ## 一、项目整体工作量分析 ### 系统模块拆解 按照架构来看',+ ),+ ).toBe('好的!我来分析。 一、项目整体工作量分析 系统模块拆解 按照架构来看');+ });++ it('keeps hashtags intact when stripping mid-line heading markers', () => {+ expect(toNotificationPreview('deployed to #prod channel')).toBe('deployed to #prod channel');+ });+it('collapses multi-line content into a single line', () => {expect(toNotificationPreview('Line 1\n\n\nLine 2\n> quoted\n\n---\n\n- item')).toBe('Line 1 Line 2 quoted item',diff --git a/src/features/HomeSidebar/Header/components/InboxDrawer/toNotificationPreview.ts b/src/features/HomeSidebar/Header/components/InboxModal/toNotificationPreview.tssimilarity index 64%rename from src/features/HomeSidebar/Header/components/InboxDrawer/toNotificationPreview.tsrename to src/features/HomeSidebar/Header/components/InboxModal/toNotificationPreview.tsindex 6bfa0c66c18..cd829934b9a 100644--- a/src/features/HomeSidebar/Header/components/InboxDrawer/toNotificationPreview.ts+++ b/src/features/HomeSidebar/Header/components/InboxModal/toNotificationPreview.ts@@ -3,6 +3,14 @@ import { markdownToTxt } from '@/utils/markdownToTxt';/** Table divider rows such as `|------|------|` or `| :--- | ---: |` */const TABLE_DIVIDER_LINE = /^[\s:|]*-[-\s:|]*$/;+/**+ * Heading markers that survive markdown stripping because the body was already+ * collapsed to a single line upstream (e.g. `… analysis. ## Section title`) —+ * mid-line `##` is not valid heading syntax, so `markdownToTxt` keeps it.+ * Requires trailing whitespace so hashtags like `#topic` stay intact.+ */+const INLINE_HEADING_MARKER = /(^|\s)#{1,6}(?=\s)/g;+const MAX_LENGTH = 300;/**@@ -21,7 +29,13 @@ export const toNotificationPreview = (content?: string | null): string => {.split('\n').filter((line) => !TABLE_DIVIDER_LINE.test(line))// `remove-markdown` keeps table pipes — flatten cells into spaced text- .map((line) => line.replaceAll('|', ' ').replaceAll(/\s+/g, ' ').trim())+ .map((line) =>+ line+ .replaceAll('|', ' ')+ .replaceAll(INLINE_HEADING_MARKER, ' ')+ .replaceAll(/\s+/g, ' ')+ .trim(),+ ).filter(Boolean).join(' ');diff --git a/src/features/HomeSidebar/Header/components/InboxModal/useNotificationList.test.ts b/src/features/HomeSidebar/Header/components/InboxModal/useNotificationList.test.tsnew file mode 100644index 00000000000..c7da66b65ba--- /dev/null+++ b/src/features/HomeSidebar/Header/components/InboxModal/useNotificationList.test.ts@@ -0,0 +1,104 @@+import { renderHook, waitFor } from '@testing-library/react';+import { act, createElement, type ReactNode } from 'react';+import { SWRConfig } from 'swr';+import { describe, expect, it, vi } from 'vitest';++import type { NotificationListHandle } from './useNotificationList';+import { useNotificationList } from './useNotificationList';++vi.mock('@/business/client/hooks/useActiveWorkspaceId', () => ({+ useActiveWorkspaceId: () => null,+}));++const listMock = vi.fn();++vi.mock('@/services/notification', () => ({+ notificationService: {+ list: (...args: unknown[]) => listMock(...args),+ },+}));++const wrapper = ({ children }: { children: ReactNode }) =>+ createElement(SWRConfig, { value: { dedupingInterval: 0, provider: () => new Map() } }, children);++const setup = async (initialItems: { content: string; id: string }[]) => {+ let items = initialItems;+ listMock.mockImplementation(async () => items);+ let handle: NotificationListHandle | undefined;++ const { result } = renderHook(+ () =>+ useNotificationList({+ isRead: false,+ registerHandle: (h) => {+ handle = h;+ },+ }),+ { wrapper },+ );++ await waitFor(() => expect(result.current.data?.flat()).toEqual(initialItems));+ expect(handle).toBeDefined();++ return {+ handle: handle!,+ result,+ setItems: (next: typeof items) => {+ items = next;+ },+ };+};++describe('useNotificationList', () => {+ it('registers a refresh that revalidates the infinite list', async () => {+ // Regression: modal bulk actions (mark all as read) used a key-filter+ // mutate, which SWR skips for `$inf$` infinite keys — the unread list+ // never refreshed. The hook must expose its own bound revalidate instead.+ const { handle, result, setItems } = await setup([{ content: 'first', id: '1' }]);++ setItems([]);+ await act(async () => {+ handle.refresh();+ });++ await waitFor(() => expect(result.current.data?.flat()).toEqual([]));+ });++ it('optimistically removes a single item without refetching', async () => {+ const first = { content: 'first', id: '1' };+ const second = { content: 'second', id: '2' };+ const { handle, result } = await setup([first, second]);+ const callsBefore = listMock.mock.calls.length;++ await act(async () => {+ handle.optimisticRemove('1');+ });++ expect(result.current.data?.flat()).toEqual([second]);+ expect(listMock.mock.calls.length).toBe(callsBefore);+ });++ it('optimistically clears the list without refetching', async () => {+ const { handle, result } = await setup([{ content: 'first', id: '1' }]);+ const callsBefore = listMock.mock.calls.length;++ await act(async () => {+ handle.optimisticClear();+ });++ expect(result.current.data?.flat() ?? []).toEqual([]);+ expect(listMock.mock.calls.length).toBe(callsBefore);+ });++ it('omits the isRead filter for the combined "all" view', async () => {+ // Regression: the hook always forwarded a boolean isRead, so the combined+ // chronological history (no read-state filter) was impossible to request.+ listMock.mockClear();+ listMock.mockImplementation(async () => []);++ renderHook(() => useNotificationList({ registerHandle: () => {} }), { wrapper });++ await waitFor(() => expect(listMock).toHaveBeenCalled());+ expect((listMock.mock.calls[0][0] as { isRead?: boolean }).isRead).toBeUndefined();+ });+});diff --git a/src/features/HomeSidebar/Header/components/InboxModal/useNotificationList.ts b/src/features/HomeSidebar/Header/components/InboxModal/useNotificationList.tsnew file mode 100644index 00000000000..b6007b36dc9--- /dev/null+++ b/src/features/HomeSidebar/Header/components/InboxModal/useNotificationList.ts@@ -0,0 +1,73 @@+import { useCallback, useEffect } from 'react';+import useSWRInfinite from 'swr/infinite';++import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';+import { inboxKeys } from '@/libs/swr/keys';+import { notificationService } from '@/services/notification';++export const PAGE_SIZE = 20;++export interface NotificationListHandle {+ /** Optimistically empty the list (mark all read / archive all). */+ optimisticClear: () => void;+ /** Optimistically drop one item (mark as read / archive). */+ optimisticRemove: (id: string) => void;+ refresh: () => void;+}++interface UseNotificationListOptions {+ category?: string;+ /** Filter by read state; omit for the combined "all" view. */+ isRead?: boolean;+ /**+ * Registers the list's bound mutate operations with the caller. The global+ * filter-form `mutate` cannot reach this list: SWR's key-filter mutate+ * explicitly skips `$inf$` (useSWRInfinite) cache keys, so actions in the+ * modal must go through the hook's own `mutate`. The optimistic operations+ * update the cache without revalidating; callers roll back a failed action+ * by calling `refresh` (server state is the source of truth).+ */+ registerHandle: (handle: NotificationListHandle) => void;+}++export const useNotificationList = ({+ category,+ isRead,+ registerHandle,+}: UseNotificationListOptions) => {+ const workspaceId = useActiveWorkspaceId();++ const getKey = useCallback(+ (_pageIndex: number, previousPageData: any[] | null) => {+ if (previousPageData && previousPageData.length < PAGE_SIZE) return null;++ const lastItem = previousPageData?.at(-1);+ return inboxKeys.notifications(workspaceId, lastItem?.id, category, isRead);+ },+ [category, isRead, workspaceId],+ );++ const swr = useSWRInfinite(getKey, async ([, , cursor, filterCategory, filterIsRead]) => {+ return notificationService.list({+ category: filterCategory as string | undefined,+ cursor: cursor as string | undefined,+ isRead: filterIsRead as boolean | undefined,+ limit: PAGE_SIZE,+ });+ });++ const { mutate } = swr;+ useEffect(() => {+ registerHandle({+ optimisticClear: () => void mutate([], { revalidate: false }),+ optimisticRemove: (id) =>+ void mutate(+ (pages?: any[][]) => pages?.map((page) => page.filter((item) => item.id !== id)),+ { revalidate: false },+ ),+ refresh: () => void mutate(),+ });+ }, [mutate, registerHandle]);++ return swr;+};diff --git a/src/features/ResourceTransferRequest/PendingTransfersSection.tsx b/src/features/ResourceTransferRequest/PendingTransfersSection.tsxdeleted file mode 100644index 02afa15398d..00000000000--- a/src/features/ResourceTransferRequest/PendingTransfersSection.tsx+++ /dev/null@@ -1,368 +0,0 @@-'use client';--import { AGENT_CHAT_URL, GROUP_CHAT_URL } from '@lobechat/const';-import { Avatar, Flexbox, Tag, Text } from '@lobehub/ui';-import { Button, toast } from '@lobehub/ui/base-ui';-import { createStaticStyles } from 'antd-style';-import { memo, useCallback, useEffect, useState } from 'react';-import { useTranslation } from 'react-i18next';--import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';-import { formatNotificationRelativeTime } from '@/features/HomeSidebar/Header/components/InboxDrawer/formatNotificationRelativeTime';-import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';-import { useClientDataSWR } from '@/libs/swr';-import type {- PendingTransferRequest,- TransferRequestParty,- TransferRequestResourceType,-} from '@/services/resourceTransferRequest';-import { resourceTransferRequestService } from '@/services/resourceTransferRequest';-import { useUserStore } from '@/store/user';-import { userProfileSelectors } from '@/store/user/selectors';-import { TransferErrorCode } from '@/types/transferError';--import { isTransferManifestActionable } from './manifestState';-import { refreshCachesAfterOwnershipChange } from './refreshAfterOwnershipChange';-import TransferManifestList from './TransferManifestList';-import { shouldEndActingAfterRefresh, useActingRequests } from './useActingRequests';--export const PENDING_TRANSFERS_SWR_KEY = 'pending-transfer-requests';--const styles = createStaticStyles(({ css, cssVar }) => ({- item: css`- padding-block: 8px;- padding-inline: 12px;- border: 1px solid ${cssVar.colorBorderSecondary};- border-radius: ${cssVar.borderRadiusLG};- `,- section: css`- padding-block: 8px 4px;- padding-inline: 8px;- border-block-end: 1px solid ${cssVar.colorBorderSecondary};- `,-}));--const partyLabel = (party: TransferRequestParty | null, fallback: string) =>- party?.fullName?.trim() || party?.username?.trim() || fallback;--/**- * Actionable copy for the failures a still-rendered request can hit (recipient- * downgraded/removed, migration still draining, resource changed). Falls back- * to the generic toast for anything unmapped.- */-const TRANSFER_ERROR_KEY_BY_CODE: Partial<Record<TransferErrorCode, string>> = {- [TransferErrorCode.AgentOwnedByGroup]: 'error:transfer.agentOwnedByGroup',- [TransferErrorCode.CopyInProgress]: 'error:transfer.copyInProgress',- [TransferErrorCode.GroupHasInaccessibleMember]: 'error:transfer.groupHasInaccessibleMember',- [TransferErrorCode.ResourceNotFound]: 'error:transfer.resourceNotFound',- [TransferErrorCode.TargetNoWriteAccess]: 'error:transfer.targetNoWriteAccess',- [TransferErrorCode.TargetNotWorkspaceMember]: 'error:transfer.targetNotWorkspaceMember',- [TransferErrorCode.TransferInProgress]: 'error:transfer.transferInProgress',- [TransferErrorCode.TransferRequestExpired]: 'error:transfer.transferRequestExpired',- [TransferErrorCode.TransferRequestStale]: 'error:transfer.transferRequestStale',-};--/**- * The transfer's impact summary on an incoming card: what arrives disabled- * (bots, cron jobs), what resets (device binding), what detaches (others'- * task assignments). The recipient must see this BEFORE accepting — the whole- * point is that neither side commits blind.- */-const TransferManifestSummary = memo<{- /** Accept stays disabled until the manifest loads successfully without a blocker. */- onReadyChange: (requestId: string, ready: boolean) => void;- request: PendingTransferRequest;-}>(({ onReadyChange, request }) => {- const {- data: manifest,- error,- isValidating,- mutate,- } = useClientDataSWR(- `transfer-manifest-${request.id}`,- () =>- resourceTransferRequestService.getManifest({- recipientId: request.recipientId,- resourceId: request.resourceId,- resourceType: request.resourceType as TransferRequestResourceType,- }),- { revalidateOnFocus: false },- );- const ready = isTransferManifestActionable(manifest, error);- useEffect(() => {- onReadyChange(request.id, ready);- }, [onReadyChange, ready, request.id]);-- // Indented past the avatar (24 + gap 8) so the summary lines up with the text- // column, matching the timestamp row below.- return (- <TransferManifestList- error={error}- loading={!manifest && !error}- manifest={manifest}- perspective="recipient"- retrying={isValidating}- style={{ marginInlineStart: 32 }}- onRetry={() =>- void mutate().catch((error) =>- console.error('[PendingTransfersSection] manifest retry failed', error),- )- }- />- );-});--const getActionFailedMessageKey = (error: unknown): string => {- const code = (error as { data?: { errorData?: { code?: unknown } } } | null)?.data?.errorData- ?.code;- return (- (typeof code === 'string' && TRANSFER_ERROR_KEY_BY_CODE[code as TransferErrorCode]) ||- 'agent:transferRequest.actionFailed'- );-};--/**- * i18n key per transferable type — a title alone can't tell an agent from a- * group (or a future document) with the same name. Types without an entry- * simply render no tag, so new resource types degrade gracefully.- */-const RESOURCE_TYPE_LABEL_KEYS: Record<string, string> = {- agent: 'transferRequest.resourceType.agent',- agentGroup: 'transferRequest.resourceType.agentGroup',-};--/** Where "open what I just accepted" lands, per resource type. */-const RESOURCE_CHAT_URLS: Record<string, (id: string) => string> = {- agent: AGENT_CHAT_URL,- agentGroup: GROUP_CHAT_URL,-};--/**- * Cross-resource transfer inbox at the top of the notification drawer: the one- * place where a recipient answers a pending ownership handover and an- * initiator can withdraw one. Driven by the live `listMine` query rather than- * per-notification payloads, so resolved/expired/withdrawn requests simply- * drop out — no stale action buttons to reconcile. Renders nothing outside a- * workspace or when nothing is pending.- */-const PendingTransfersSection = memo<{ onResolved?: () => void; open?: boolean }>((props) => {- const { onResolved, open = true } = props;- const { i18n, t } = useTranslation(['agent', 'error']);- // Same relative-time convention as the notification items below.- const dateLocale = i18n.resolvedLanguage || i18n.language;- const { beginActing, endActing, isActing } = useActingRequests();- // Accept is gated until the card's manifest loads successfully without a- // blocker: a failed/unknown summary must never turn into permission to act.- const [manifestReadyIds, setManifestReadyIds] = useState<Record<string, boolean>>({});- const updateManifestReady = useCallback(- (requestId: string, ready: boolean) =>- setManifestReadyIds((prev) =>- prev[requestId] === ready ? prev : { ...prev, [requestId]: ready },- ),- [],- );-- const workspaceId = useActiveWorkspaceId();- const currentUserId = useUserStore(userProfileSelectors.userId);- const navigate = useWorkspaceAwareNavigate();-- const { data, mutate } = useClientDataSWR<PendingTransferRequest[]>(- // Gated on the drawer being visible (mirroring the notification query- // below it): the drawer's content stays mounted while closed, and a- // hidden inbox must not keep polling `listMine` — nor spawn one manifest- // request per pending card.- workspaceId && open ? [PENDING_TRANSFERS_SWR_KEY, workspaceId] : null,- () => resourceTransferRequestService.listMine(),- );-- if (!open || !data || data.length === 0 || !currentUserId) return null;-- const run = async (- request: PendingTransferRequest,- action: () => Promise<unknown>,- success: { description?: string; title: string },- { ownershipChanged }: { ownershipChanged?: boolean } = {},- ) => {- beginActing(request.id);- let succeeded = false;- // The item disappears from the list once resolved, so the toast is the- // only remaining handle on "the thing I just accepted" — give it a way in.- const toUrl =- ownershipChanged && RESOURCE_CHAT_URLS[request.resourceType]- ? RESOURCE_CHAT_URLS[request.resourceType](request.resourceId)- : undefined;- try {- await action();- succeeded = true;- // Headline + detail + the action in the toast's own `actions` slot, which- // gives it its own right-aligned row. Splitting the message keeps both- // lines short enough that neither wraps, without restyling the toast.- toast.success({- actions: toUrl- ? [- {- label: t('transferRequest.acceptedToastAction'),- onClick: () => navigate(toUrl),- },- ]- : undefined,- description: success.description,- placement: 'top',- title: success.title,- });- } catch (error) {- console.error('[PendingTransfersSection] action failed', error);- toast.error({ placement: 'top', title: t(getActionFailedMessageKey(error) as never) });- } finally {- // Either way re-read: a raced/expired request must leave the list. The- // re-read is best-effort — the action itself already resolved, so its- // failure must neither crash the handler nor block the ownership- // refresh below (both caches self-heal on the next revalidation).- const refreshedRequests = await mutate().catch((error) => {- console.error('[PendingTransfersSection] list refresh failed', error);- return undefined;- });- if (- shouldEndActingAfterRefresh({- actionSucceeded: succeeded,- refreshedRequests,- requestId: request.id,- })- ) {- endActing(request.id);- }- onResolved?.();- }- if (succeeded && ownershipChanged) {- await refreshCachesAfterOwnershipChange(request.resourceType, request.resourceId).catch(- (error) => console.error('[PendingTransfersSection] detail refresh failed', error),- );- }- };-- const fallback = t('transferRequest.someone');-- return (- <Flexbox className={styles.section} gap={8}>- <Text fontSize={12} style={{ paddingInline: 4 }} type="secondary" weight={500}>- {t('transferRequest.sectionTitle')}- </Text>- {data.map((request) => {- const isRecipient = request.recipientId === currentUserId;- const acting = isActing(request.id);- const counterpartLabel = partyLabel(- isRecipient ? request.initiator : request.recipient,- fallback,- );- const resourceTitle =- request.resource?.title?.trim() || t('transferRequest.untitledResource');- const typeLabelKey = RESOURCE_TYPE_LABEL_KEYS[request.resourceType];-- return (- <Flexbox className={styles.item} gap={8} key={request.id}>- <Flexbox horizontal align="flex-start" gap={8} style={{ minWidth: 0 }}>- <Avatar- avatar={request.resource?.avatar || undefined}- background={request.resource?.backgroundColor || undefined}- size={24}- style={{ flex: 'none' }}- title={resourceTitle}- />- <Flexbox flex={1} style={{ minWidth: 0 }}>- <Flexbox- horizontal- align="center"- gap={6}- justify="space-between"- style={{ minWidth: 0 }}- >- <Text ellipsis fontSize={13} style={{ minWidth: 0 }} weight={500}>- {resourceTitle}- </Text>- {typeLabelKey && (- <Tag size="small" style={{ flexShrink: 0 }}>- {t(typeLabelKey as never)}- </Tag>- )}- </Flexbox>- <Text ellipsis fontSize={12} type="secondary">- {isRecipient- ? t('transferRequest.itemIncoming', { name: counterpartLabel })- : t('transferRequest.itemOutgoing', { name: counterpartLabel })}- </Text>- </Flexbox>- </Flexbox>- {isRecipient && (- <TransferManifestSummary request={request} onReadyChange={updateManifestReady} />- )}- <Flexbox horizontal align="center" gap={8} justify="space-between">- {/* Indented past the avatar (24 + gap 8) so it lines up with the- text column, matching the notification items below. */}- <Text fontSize={12} style={{ marginInlineStart: 32 }} type="secondary">- {formatNotificationRelativeTime(request.createdAt, dateLocale)}- </Text>- <Flexbox horizontal gap={8}>- {isRecipient ? (- <>- <Button- disabled={acting}- size="small"- onClick={() =>- run(request, () => resourceTransferRequestService.decline(request.id), {- description: t('transferRequest.declinedToastDesc', {- name: resourceTitle,- }),- title: t('transferRequest.declinedToast'),- })- }- >- {t('transferRequest.decline')}- </Button>- <Button- disabled={acting || !manifestReadyIds[request.id]}- loading={acting}- size="small"- type="primary"- onClick={() =>- run(- request,- () => resourceTransferRequestService.accept(request.id),- {- description: t('transferRequest.acceptedToastDesc', {- name: resourceTitle,- }),- title: t('transferRequest.acceptedToast'),- },- { ownershipChanged: true },- )- }- >- {t('transferRequest.accept')}- </Button>- </>- ) : (- <Button- disabled={acting}- loading={acting}- size="small"- onClick={() =>- run(request, () => resourceTransferRequestService.cancel(request.id), {- title: t('transferRequest.withdrawnToast'),- })- }- >- {t('transferRequest.withdraw')}- </Button>- )}- </Flexbox>- </Flexbox>- </Flexbox>- );- })}- </Flexbox>- );-});--PendingTransfersSection.displayName = 'PendingTransfersSection';--export default PendingTransfersSection;diff --git a/src/features/ResourceTransferRequest/TransferRequestItem.tsx b/src/features/ResourceTransferRequest/TransferRequestItem.tsxnew file mode 100644index 00000000000..bfd54231032--- /dev/null+++ b/src/features/ResourceTransferRequest/TransferRequestItem.tsx@@ -0,0 +1,315 @@+'use client';++import { AGENT_CHAT_URL, GROUP_CHAT_URL } from '@lobechat/const';+import { Avatar, Block, Flexbox, Tag, Text } from '@lobehub/ui';+import { Button, toast } from '@lobehub/ui/base-ui';+import { memo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { formatNotificationRelativeTime } from '@/features/HomeSidebar/Header/components/InboxModal/formatNotificationRelativeTime';+import { useWorkspaceAwareNavigate } from '@/features/Workspace/useWorkspaceAwareNavigate';+import { useClientDataSWR } from '@/libs/swr';+import type {+ PendingTransferRequest,+ TransferRequestParty,+ TransferRequestResourceType,+} from '@/services/resourceTransferRequest';+import { resourceTransferRequestService } from '@/services/resourceTransferRequest';+import { TransferErrorCode } from '@/types/transferError';++import { isTransferManifestActionable } from './manifestState';+import { refreshCachesAfterOwnershipChange } from './refreshAfterOwnershipChange';+import TransferManifestList from './TransferManifestList';++const partyLabel = (party: TransferRequestParty | null, fallback: string) =>+ party?.fullName?.trim() || party?.username?.trim() || fallback;++/**+ * Actionable copy for the failures a still-rendered request can hit (recipient+ * downgraded/removed, migration still draining, resource changed). Falls back+ * to the generic toast for anything unmapped.+ */+const TRANSFER_ERROR_KEY_BY_CODE: Partial<Record<TransferErrorCode, string>> = {+ [TransferErrorCode.AgentOwnedByGroup]: 'error:transfer.agentOwnedByGroup',+ [TransferErrorCode.CopyInProgress]: 'error:transfer.copyInProgress',+ [TransferErrorCode.GroupHasInaccessibleMember]: 'error:transfer.groupHasInaccessibleMember',+ [TransferErrorCode.ResourceNotFound]: 'error:transfer.resourceNotFound',+ [TransferErrorCode.TargetNoWriteAccess]: 'error:transfer.targetNoWriteAccess',+ [TransferErrorCode.TargetNotWorkspaceMember]: 'error:transfer.targetNotWorkspaceMember',+ [TransferErrorCode.TransferInProgress]: 'error:transfer.transferInProgress',+ [TransferErrorCode.TransferRequestExpired]: 'error:transfer.transferRequestExpired',+ [TransferErrorCode.TransferRequestStale]: 'error:transfer.transferRequestStale',+};++const getActionFailedMessageKey = (error: unknown): string => {+ const code = (error as { data?: { errorData?: { code?: unknown } } } | null)?.data?.errorData+ ?.code;+ return (+ (typeof code === 'string' && TRANSFER_ERROR_KEY_BY_CODE[code as TransferErrorCode]) ||+ 'agent:transferRequest.actionFailed'+ );+};++/**+ * i18n key per transferable type — a title alone can't tell an agent from a+ * group (or a future document) with the same name. Types without an entry+ * simply render no tag, so new resource types degrade gracefully.+ */+const RESOURCE_TYPE_LABEL_KEYS: Record<string, string> = {+ agent: 'transferRequest.resourceType.agent',+ agentGroup: 'transferRequest.resourceType.agentGroup',+};++/** Where "open what I just accepted" lands, per resource type. */+const RESOURCE_CHAT_URLS: Record<string, (id: string) => string> = {+ agent: AGENT_CHAT_URL,+ agentGroup: GROUP_CHAT_URL,+};++/**+ * Request ids with an action currently in flight. Module-scoped (not component+ * state) so the lock survives the item unmounting — switching tabs or closing+ * the modal mid-action must not let a remounted card submit a duplicate.+ */+const actingRequestIds = new Set<string>();++export interface TransferRequestItemProps {+ currentUserId: string;+ /**+ * Called after any action settles (whichever way): the owner re-reads the+ * live request list so resolved/raced/expired requests drop out and the+ * inbox counts refresh.+ */+ onSettled: (request: PendingTransferRequest, succeeded: boolean) => Promise<void> | void;+ request: PendingTransferRequest;+}++/**+ * One live transfer request rendered in notification-item form inside the+ * inbox list. Driven by the live request rather than the immutable+ * notification row, so resolved/expired/withdrawn requests simply drop out —+ * no stale action buttons to reconcile. The recipient answers here; the+ * initiator can withdraw.+ */+const TransferRequestItem = memo<TransferRequestItemProps>(+ ({ currentUserId, onSettled, request }) => {+ const { i18n, t } = useTranslation(['agent', 'error']);+ const dateLocale = i18n.resolvedLanguage || i18n.language;+ const navigate = useWorkspaceAwareNavigate();+ // Stays true after a successful action until the refreshed list unmounts+ // this item — a failed refresh must not re-enable a duplicate submission.+ // A failed action resets it so the user can retry. Seeded from the+ // module-level set so a remounted card restores an in-flight lock.+ const [acting, setActingState] = useState(() => actingRequestIds.has(request.id));+ const setActing = (value: boolean) => {+ if (value) actingRequestIds.add(request.id);+ else actingRequestIds.delete(request.id);+ setActingState(value);+ };++ const isRecipient = request.recipientId === currentUserId;++ // Accept is gated until the manifest loads successfully without a blocker:+ // a failed/unknown impact summary must never turn into permission to act.+ const {+ data: manifest,+ error: manifestError,+ isValidating: isManifestValidating,+ mutate: mutateManifest,+ } = useClientDataSWR(+ isRecipient ? `transfer-manifest-${request.id}` : null,+ () =>+ resourceTransferRequestService.getManifest({+ recipientId: request.recipientId,+ resourceId: request.resourceId,+ resourceType: request.resourceType as TransferRequestResourceType,+ }),+ { revalidateOnFocus: false },+ );+ const manifestReady = isTransferManifestActionable(manifest, manifestError);++ const fallback = t('transferRequest.someone');+ const counterpartLabel = partyLabel(+ isRecipient ? request.initiator : request.recipient,+ fallback,+ );+ const resourceTitle = request.resource?.title?.trim() || t('transferRequest.untitledResource');+ const typeLabelKey = RESOURCE_TYPE_LABEL_KEYS[request.resourceType];++ const run = async (+ action: () => Promise<unknown>,+ success: { description?: string; title: string },+ { ownershipChanged }: { ownershipChanged?: boolean } = {},+ ) => {+ setActing(true);+ // The item disappears from the list once resolved, so the toast is the+ // only remaining handle on "the thing I just accepted" — give it a way in.+ const toUrl =+ ownershipChanged && RESOURCE_CHAT_URLS[request.resourceType]+ ? RESOURCE_CHAT_URLS[request.resourceType](request.resourceId)+ : undefined;+ let succeeded = false;+ try {+ await action();+ succeeded = true;+ toast.success({+ actions: toUrl+ ? [+ {+ label: t('transferRequest.acceptedToastAction'),+ onClick: () => navigate(toUrl),+ },+ ]+ : undefined,+ description: success.description,+ placement: 'top',+ title: success.title,+ });+ } catch (error) {+ console.error('[TransferRequestItem] action failed', error);+ toast.error({ placement: 'top', title: t(getActionFailedMessageKey(error) as never) });+ setActing(false);+ }+ // Either way the owner re-reads: a raced/expired request must leave the+ // list. Settle failures self-heal on the next revalidation.+ try {+ await onSettled(request, succeeded);+ } catch (error) {+ console.error('[TransferRequestItem] settle refresh failed', error);+ }+ if (succeeded && ownershipChanged) {+ await refreshCachesAfterOwnershipChange(request.resourceType, request.resourceId).catch(+ (error) => console.error('[TransferRequestItem] detail refresh failed', error),+ );+ }+ };++ return (+ <Block+ aria-label={resourceTitle}+ gap={4}+ paddingBlock={12}+ paddingInline={20}+ variant="borderless"+ >+ {/* No unread dot: it is not clearable by clicking (a pending item is+ "unread" until acted on), and a dot that ignores clicks reads as+ broken. The Pending badge and the action buttons carry the+ "awaiting you" signal. */}+ <Flexbox horizontal align="flex-start" gap={12}>+ <Avatar+ avatar={request.resource?.avatar || undefined}+ background={request.resource?.backgroundColor || undefined}+ shape="circle"+ size={32}+ style={{ flex: 'none' }}+ title={resourceTitle}+ />+ <Flexbox flex={1} gap={2} style={{ minWidth: 0, overflow: 'hidden' }}>+ <Flexbox+ horizontal+ align="center"+ gap={6}+ justify="space-between"+ style={{ minWidth: 0 }}+ >+ <Text ellipsis style={{ minWidth: 0 }} weight={500}>+ {resourceTitle}+ </Text>+ {typeLabelKey && (+ <Tag size="small" style={{ flexShrink: 0 }}>+ {t(typeLabelKey as never)}+ </Tag>+ )}+ </Flexbox>+ <Text ellipsis fontSize={12} type="secondary">+ {isRecipient+ ? t('transferRequest.itemIncoming', { name: counterpartLabel })+ : t('transferRequest.itemOutgoing', { name: counterpartLabel })}+ </Text>+ </Flexbox>+ </Flexbox>+ {isRecipient && (+ // The transfer's impact summary: what arrives disabled (bots, cron+ // jobs), what resets (device binding), what detaches (others' task+ // assignments). The recipient must see this BEFORE accepting.+ // Indented past the avatar (32 + gap 12) to line up with the text+ // column, matching the timestamp row below.+ <TransferManifestList+ error={manifestError}+ loading={!manifest && !manifestError}+ manifest={manifest}+ perspective="recipient"+ retrying={isManifestValidating}+ style={{ marginInlineStart: 44 }}+ onRetry={() =>+ void mutateManifest().catch((error) =>+ console.error('[TransferRequestItem] manifest retry failed', error),+ )+ }+ />+ )}+ <Flexbox horizontal align="center" gap={8} justify="space-between">+ <Text fontSize={12} style={{ marginInlineStart: 44 }} type="secondary">+ {formatNotificationRelativeTime(request.createdAt, dateLocale)}+ </Text>+ <Flexbox horizontal gap={8}>+ {isRecipient ? (+ <>+ <Button+ disabled={acting}+ size="small"+ onClick={() =>+ run(() => resourceTransferRequestService.decline(request.id), {+ description: t('transferRequest.declinedToastDesc', { name: resourceTitle }),+ title: t('transferRequest.declinedToast'),+ })+ }+ >+ {t('transferRequest.decline')}+ </Button>+ <Button+ disabled={acting || !manifestReady}+ loading={acting}+ size="small"+ type="primary"+ onClick={() =>+ run(+ () => resourceTransferRequestService.accept(request.id),+ {+ description: t('transferRequest.acceptedToastDesc', {+ name: resourceTitle,+ }),+ title: t('transferRequest.acceptedToast'),+ },+ { ownershipChanged: true },+ )+ }+ >+ {t('transferRequest.accept')}+ </Button>+ </>+ ) : (+ <Button+ disabled={acting}+ loading={acting}+ size="small"+ onClick={() =>+ run(() => resourceTransferRequestService.cancel(request.id), {+ title: t('transferRequest.withdrawnToast'),+ })+ }+ >+ {t('transferRequest.withdraw')}+ </Button>+ )}+ </Flexbox>+ </Flexbox>+ </Block>+ );+ },+);++TransferRequestItem.displayName = 'TransferRequestItem';++export default TransferRequestItem;diff --git a/src/features/ResourceTransferRequest/index.ts b/src/features/ResourceTransferRequest/index.tsindex 32d3685c93f..1514011c83e 100644--- a/src/features/ResourceTransferRequest/index.ts+++ b/src/features/ResourceTransferRequest/index.ts@@ -1,6 +1,10 @@+export { PENDING_TRANSFERS_SWR_KEY } from './keys';export { isTransferManifestActionable } from './manifestState';-export { default as PendingTransfersSection } from './PendingTransfersSection';export {default as TransferManifestList,type TransferManifestListProps,} from './TransferManifestList';+export {+ default as TransferRequestItem,+ type TransferRequestItemProps,+} from './TransferRequestItem';diff --git a/src/features/ResourceTransferRequest/keys.ts b/src/features/ResourceTransferRequest/keys.tsnew file mode 100644index 00000000000..2d9e652937c--- /dev/null+++ b/src/features/ResourceTransferRequest/keys.ts@@ -0,0 +1,2 @@+/** SWR key prefix for the caller's live transfer requests (`listMine`). */+export const PENDING_TRANSFERS_SWR_KEY = 'pending-transfer-requests';diff --git a/src/features/ResourceTransferRequest/useActingRequests.test.ts b/src/features/ResourceTransferRequest/useActingRequests.test.tsdeleted file mode 100644index 82f777b6196..00000000000--- a/src/features/ResourceTransferRequest/useActingRequests.test.ts+++ /dev/null@@ -1,71 +0,0 @@-import { act, renderHook } from '@testing-library/react';-import { describe, expect, it } from 'vitest';--import { shouldEndActingAfterRefresh, useActingRequests } from './useActingRequests';--describe('shouldEndActingAfterRefresh', () => {- it('keeps a successfully resolved request disabled while stale data still renders it', () => {- expect(- shouldEndActingAfterRefresh({- actionSucceeded: true,- refreshedRequests: [{ id: 'req-a' }],- requestId: 'req-a',- }),- ).toBe(false);- });-- it('keeps a successfully resolved request disabled when revalidation fails', () => {- expect(- shouldEndActingAfterRefresh({- actionSucceeded: true,- refreshedRequests: undefined,- requestId: 'req-a',- }),- ).toBe(false);- });-- it('ends acting after failure or once revalidation removes the request', () => {- expect(- shouldEndActingAfterRefresh({- actionSucceeded: false,- refreshedRequests: [{ id: 'req-a' }],- requestId: 'req-a',- }),- ).toBe(true);- expect(- shouldEndActingAfterRefresh({- actionSucceeded: true,- refreshedRequests: [{ id: 'req-b' }],- requestId: 'req-a',- }),- ).toBe(true);- });-});--describe('useActingRequests', () => {- it('tracks concurrent requests independently — one settling never frees the other', () => {- const { result } = renderHook(() => useActingRequests());-- act(() => result.current.beginActing('req-a'));- act(() => result.current.beginActing('req-b'));- expect(result.current.isActing('req-a')).toBe(true);- expect(result.current.isActing('req-b')).toBe(true);-- // The regression this guards: with scalar state, starting req-b's action- // re-enabled req-a mid-flight, and req-a settling cleared req-b's spinner.- act(() => result.current.endActing('req-a'));- expect(result.current.isActing('req-a')).toBe(false);- expect(result.current.isActing('req-b')).toBe(true);-- act(() => result.current.endActing('req-b'));- expect(result.current.isActing('req-b')).toBe(false);- });-- it('stays acting while begun, regardless of unrelated requests settling', () => {- const { result } = renderHook(() => useActingRequests());-- act(() => result.current.beginActing('req-a'));- act(() => result.current.endActing('req-unrelated'));- expect(result.current.isActing('req-a')).toBe(true);- });-});diff --git a/src/features/ResourceTransferRequest/useActingRequests.ts b/src/features/ResourceTransferRequest/useActingRequests.tsdeleted file mode 100644index a43258270e5..00000000000--- a/src/features/ResourceTransferRequest/useActingRequests.ts+++ /dev/null@@ -1,46 +0,0 @@-import { useCallback, useState } from 'react';--interface ShouldEndActingAfterRefreshOptions {- actionSucceeded: boolean;- refreshedRequests: { id: string }[] | undefined;- requestId: string;-}--/**- * A resolved request must stay locked until revalidation confirms that its- * stale card is gone. Failed actions can be retried; failed or stale refreshes- * after a successful action must not re-enable a duplicate submission.- */-export const shouldEndActingAfterRefresh = ({- actionSucceeded,- refreshedRequests,- requestId,-}: ShouldEndActingAfterRefreshOptions) =>- !actionSucceeded || refreshedRequests?.every((request) => request.id !== requestId) === true;--/**- * Per-request in-flight tracking for the transfer inbox. With several pending- * cards, a scalar "acting id" would be overwritten by a second card's action —- * re-enabling the first card mid-flight (duplicate submits) and letting- * whichever action finishes first clear the other card's spinner. Each card- * must stay marked acting until ITS OWN action settles.- */-export const useActingRequests = () => {- const [actingIds, setActingIds] = useState<Record<string, boolean>>({});-- const beginActing = useCallback((requestId: string) => {- setActingIds((prev) => ({ ...prev, [requestId]: true }));- }, []);-- const endActing = useCallback((requestId: string) => {- setActingIds((prev) => {- const next = { ...prev };- delete next[requestId];- return next;- });- }, []);-- const isActing = useCallback((requestId: string) => !!actingIds[requestId], [actingIds]);-- return { beginActing, endActing, isActing };-};diff --git a/src/libs/swr/keys.ts b/src/libs/swr/keys.tsindex 6a35d4ac650..6c48718faed 100644--- a/src/libs/swr/keys.ts+++ b/src/libs/swr/keys.ts@@ -988,16 +988,20 @@ export const verifyKeys = {// ---- inbox / notifications ----------------------------------------------export const inboxKeys = {+ navigationCounts: def('inbox:navigationCounts', (workspaceId: string | null) => [+ 'inbox:navigationCounts',+ workspaceId,+ ]),notifications: def('inbox:notifications',// Keyed by context: the server scopes the inbox to the active workspace// (null = personal), so cached pages must never be reused across contexts.- (workspaceId: string | null, cursor: string | undefined, unreadOnly: boolean | undefined) => [- 'inbox:notifications',- workspaceId,- cursor,- unreadOnly,- ],+ (+ workspaceId: string | null,+ cursor: string | undefined,+ category: string | undefined,+ isRead: boolean | undefined,+ ) => ['inbox:notifications', workspaceId, cursor, category, isRead],),unreadCount: def('inbox:unreadCount', (workspaceId: string | null) => ['inbox:unreadCount',diff --git a/src/services/notification.ts b/src/services/notification.tsindex 7ce37e42549..cdd3c496f8b 100644--- a/src/services/notification.ts+++ b/src/services/notification.ts@@ -5,6 +5,7 @@ class NotificationService {params: {category?: string;cursor?: string;+ isRead?: boolean;limit?: number;unreadOnly?: boolean;} = {},@@ -12,6 +13,10 @@ class NotificationService {return lambdaClient.notification.list.query(params);};+ getNavigationCounts = () => {+ return lambdaClient.notification.navigationCounts.query();+ };+getUnreadCount = (): Promise<number> => {return lambdaClient.notification.unreadCount.query();};