🤯 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
💄 style(acceptance): name the author on the record and drop the shared-link banner (#19478)
Arvin Xu2141e9917b6d
diff --git a/apps/server/src/routers/lambda/acceptance.ts b/apps/server/src/routers/lambda/acceptance.tsindex 867942f0256..9fb49989cb5 100644--- a/apps/server/src/routers/lambda/acceptance.ts+++ b/apps/server/src/routers/lambda/acceptance.ts@@ -22,6 +22,7 @@ import { ProjectModel } from '@/database/models/project';import { VerifyReviewPredictionModel } from '@/database/models/verifyReviewPrediction';import { VerifyRunModel } from '@/database/models/verifyRun';import { WorkspaceMemberModel } from '@/database/models/workspaceMember';+import { users } from '@/database/schemas';import type { AcceptanceItem } from '@/database/schemas/verify';import { acceptances } from '@/database/schemas/verify';import type { LobeChatDatabase } from '@/database/type';@@ -552,10 +553,23 @@ export const acceptanceRouter = router({acceptance.workspaceId ?? undefined,);- const [subject, { evidence, reports, results, runs }] = await Promise.all([+ const [subject, { evidence, reports, results, runs }, authorRows] = await Promise.all([ownerService.resolveSubject(acceptance),ownerService.loadRounds(acceptance.id),+ // Who delivered this, the way a pull request names its author. A+ // shared link lands on someone else's record, and a record with no+ // name on it reads as nobody's.+ ctx.serverDB+ .select({+ avatar: users.avatar,+ fullName: users.fullName,+ id: users.id,+ username: users.username,+ })+ .from(users)+ .where(eq(users.id, acceptance.userId)),]);+ const author = authorRows[0] ?? null;const flowData = await new AcceptanceFlowModel(ctx.serverDB, acceptance.userId).list(acceptance.id,@@ -732,6 +746,7 @@ export const acceptanceRouter = router({}return {+ author,flows: flowData.map((flow) => ({...flow,versions: flow.versions.map((version) => ({diff --git a/locales/ar/verify.json b/locales/ar/verify.jsonindex cae249acd6f..30fb4bf2c1d 100644--- a/locales/ar/verify.json+++ b/locales/ar/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "جاري الإصلاح","acceptance.roundStatus.uncertain": "غير مؤكد","acceptance.roundStatus.verifying": "قيد التحقق",- "acceptance.sharedNotice.readOnlyDescription": "يمكنك تصفح كل الفحوصات وأدلتها، ولكن فقط المؤلف يمكنه التصرف بشأن هذا القبول.",- "acceptance.sharedNotice.reviewableDescription": "يمكنك تصفح كل الفحوصات وأدلتها، ومراجعتها نيابة عن مساحة العمل الخاصة بك.",- "acceptance.sharedNotice.title": "مشترك معك",- "acceptance.sharedNotice.titleWithName": "مشترك من قِبل {{name}}","acceptance.shell.back": "رجوع","acceptance.shell.menu": "عرض التسليمات","acceptance.stats.failed": "{{count}} فشل",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} متتبع","acceptance.tray.trackSection": "التتبع","acceptance.verdict.inProgress": "القبول قيد التقدم",- "acceptance.verdict.latestAt": "تم التحقق آخر مرة في {{time}}","acceptance.viewFullReport": "عرض التقرير الكامل","acceptance.workspace.actions.delete": "حذف","acceptance.workspace.actions.markAccepted": "وضع علامة كتم القبول",diff --git a/locales/bg-BG/verify.json b/locales/bg-BG/verify.jsonindex a34f552420c..c1c3b5d9378 100644--- a/locales/bg-BG/verify.json+++ b/locales/bg-BG/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "Поправка","acceptance.roundStatus.uncertain": "Несигурно","acceptance.roundStatus.verifying": "В процес на проверка",- "acceptance.sharedNotice.readOnlyDescription": "Можете да преглеждате всяка проверка и нейните доказателства, но само авторът може да предприема действия по това приемане.",- "acceptance.sharedNotice.reviewableDescription": "Можете да преглеждате всяка проверка и нейните доказателства и да ги преглеждате от името на вашето работно пространство.",- "acceptance.sharedNotice.title": "Споделено с вас",- "acceptance.sharedNotice.titleWithName": "Споделено от {{name}}","acceptance.shell.back": "Назад","acceptance.shell.menu": "Показване на доставки","acceptance.stats.failed": "{{count}} неуспешни",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} проследени","acceptance.tray.trackSection": "Проследяване","acceptance.verdict.inProgress": "Приемането е в процес",- "acceptance.verdict.latestAt": "последно проверено {{time}}","acceptance.viewFullReport": "Вижте пълния доклад","acceptance.workspace.actions.delete": "Изтрий","acceptance.workspace.actions.markAccepted": "Маркирай като прието",diff --git a/locales/de-DE/verify.json b/locales/de-DE/verify.jsonindex 861da5ab5a7..d51013ec15d 100644--- a/locales/de-DE/verify.json+++ b/locales/de-DE/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "Wird repariert","acceptance.roundStatus.uncertain": "Unsicher","acceptance.roundStatus.verifying": "In Bearbeitung",- "acceptance.sharedNotice.readOnlyDescription": "Sie können alle Prüfungen und deren Nachweise durchsuchen, aber nur der Autor kann diese Annahme bearbeiten.",- "acceptance.sharedNotice.reviewableDescription": "Sie können alle Prüfungen und deren Nachweise durchsuchen und sie im Namen Ihres Arbeitsbereichs überprüfen.",- "acceptance.sharedNotice.title": "Mit Ihnen geteilt",- "acceptance.sharedNotice.titleWithName": "Geteilt von {{name}}","acceptance.shell.back": "Zurück","acceptance.shell.menu": "Lieferungen anzeigen","acceptance.stats.failed": "{{count}} fehlgeschlagen",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} verfolgt","acceptance.tray.trackSection": "Verfolgung","acceptance.verdict.inProgress": "Akzeptanz läuft",- "acceptance.verdict.latestAt": "zuletzt überprüft {{time}}","acceptance.viewFullReport": "Vollständigen Bericht anzeigen","acceptance.workspace.actions.delete": "Löschen","acceptance.workspace.actions.markAccepted": "Als akzeptiert markieren",diff --git a/locales/en-US/verify.json b/locales/en-US/verify.jsonindex f6777bd42ca..b3ef86ad9d9 100644--- a/locales/en-US/verify.json+++ b/locales/en-US/verify.json@@ -283,11 +283,6 @@"acceptance.roundStatus.repairing": "Repairing","acceptance.roundStatus.uncertain": "Verify uncertain","acceptance.roundStatus.verifying": "In progress",- "acceptance.sharedNotice.commentableDescription": "You can browse every check and its evidence and join the discussion, but only the author can act on this acceptance.",- "acceptance.sharedNotice.readOnlyDescription": "You can browse every check and its evidence, but only the author can act on this acceptance.",- "acceptance.sharedNotice.reviewableDescription": "You can browse every check and its evidence, and review them on behalf of your workspace.",- "acceptance.sharedNotice.title": "Shared with you",- "acceptance.sharedNotice.titleWithName": "Shared by {{name}}","acceptance.shell.back": "Back","acceptance.shell.menu": "Show Acceptance menu","acceptance.stats.failed": "{{count}} failed",@@ -338,7 +333,6 @@"acceptance.tray.trackCount": "· {{count}} tracked","acceptance.tray.trackSection": "Tracking","acceptance.verdict.inProgress": "Acceptance in progress",- "acceptance.verdict.latestAt": "last verified {{time}}","acceptance.viewFullReport": "View full report","acceptance.workspace.actions.delete": "Delete","acceptance.workspace.actions.markAccepted": "Mark as accepted",diff --git a/locales/es-ES/verify.json b/locales/es-ES/verify.jsonindex 49c9033cb60..300562ff9fd 100644--- a/locales/es-ES/verify.json+++ b/locales/es-ES/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "Reparando","acceptance.roundStatus.uncertain": "Incierto","acceptance.roundStatus.verifying": "En progreso",- "acceptance.sharedNotice.readOnlyDescription": "Puedes explorar cada verificación y su evidencia, pero solo el autor puede actuar sobre esta aceptación.",- "acceptance.sharedNotice.reviewableDescription": "Puedes explorar cada verificación y su evidencia, y revisarlas en nombre de tu espacio de trabajo.",- "acceptance.sharedNotice.title": "Compartido contigo",- "acceptance.sharedNotice.titleWithName": "Compartido por {{name}}","acceptance.shell.back": "Atrás","acceptance.shell.menu": "Mostrar entregas","acceptance.stats.failed": "{{count}} fallaron",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} rastreados","acceptance.tray.trackSection": "Seguimiento","acceptance.verdict.inProgress": "Aceptación en progreso",- "acceptance.verdict.latestAt": "última verificación {{time}}","acceptance.viewFullReport": "Ver informe completo","acceptance.workspace.actions.delete": "Eliminar","acceptance.workspace.actions.markAccepted": "Marcar como aceptado",diff --git a/locales/fa-IR/verify.json b/locales/fa-IR/verify.jsonindex bd2748a348a..220ce5bcc5a 100644--- a/locales/fa-IR/verify.json+++ b/locales/fa-IR/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "در حال تعمیر","acceptance.roundStatus.uncertain": "نامشخص","acceptance.roundStatus.verifying": "در حال بررسی",- "acceptance.sharedNotice.readOnlyDescription": "شما میتوانید هر بررسی و شواهد آن را مرور کنید، اما فقط نویسنده میتواند در مورد این پذیرش اقدام کند.",- "acceptance.sharedNotice.reviewableDescription": "شما میتوانید هر بررسی و شواهد آن را مرور کنید و به نمایندگی از فضای کاری خود آنها را بررسی کنید.",- "acceptance.sharedNotice.title": "با شما به اشتراک گذاشته شده",- "acceptance.sharedNotice.titleWithName": "به اشتراک گذاشته شده توسط {{name}}","acceptance.shell.back": "بازگشت","acceptance.shell.menu": "نمایش تحویلها","acceptance.stats.failed": "{{count}} شکست خورده",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} پیگیری شده","acceptance.tray.trackSection": "پیگیری","acceptance.verdict.inProgress": "پذیرش در حال انجام",- "acceptance.verdict.latestAt": "آخرین تأیید شده در {{time}}","acceptance.viewFullReport": "مشاهده گزارش کامل","acceptance.workspace.actions.delete": "حذف","acceptance.workspace.actions.markAccepted": "علامتگذاری بهعنوان پذیرفتهشده",diff --git a/locales/fr-FR/verify.json b/locales/fr-FR/verify.jsonindex 03e78717a8c..08fe00a46e4 100644--- a/locales/fr-FR/verify.json+++ b/locales/fr-FR/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "En réparation","acceptance.roundStatus.uncertain": "Incertain","acceptance.roundStatus.verifying": "En cours",- "acceptance.sharedNotice.readOnlyDescription": "Vous pouvez consulter chaque vérification et ses preuves, mais seul l'auteur peut agir sur cette acceptation.",- "acceptance.sharedNotice.reviewableDescription": "Vous pouvez consulter chaque vérification et ses preuves, et les examiner au nom de votre espace de travail.",- "acceptance.sharedNotice.title": "Partagé avec vous",- "acceptance.sharedNotice.titleWithName": "Partagé par {{name}}","acceptance.shell.back": "Retour","acceptance.shell.menu": "Afficher les livraisons","acceptance.stats.failed": "{{count}} échoué(s)",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} suivi(s)","acceptance.tray.trackSection": "Suivi","acceptance.verdict.inProgress": "Acceptation en cours",- "acceptance.verdict.latestAt": "dernière vérification {{time}}","acceptance.viewFullReport": "Voir le rapport complet","acceptance.workspace.actions.delete": "Supprimer","acceptance.workspace.actions.markAccepted": "Marquer comme accepté",diff --git a/locales/it-IT/verify.json b/locales/it-IT/verify.jsonindex 1ca580bdcc4..e0c3fa79c6c 100644--- a/locales/it-IT/verify.json+++ b/locales/it-IT/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "In riparazione","acceptance.roundStatus.uncertain": "Incerto","acceptance.roundStatus.verifying": "In corso",- "acceptance.sharedNotice.readOnlyDescription": "Puoi visualizzare ogni controllo e le relative prove, ma solo l'autore può agire su questa accettazione.",- "acceptance.sharedNotice.reviewableDescription": "Puoi visualizzare ogni controllo e le relative prove, e rivederli per conto del tuo spazio di lavoro.",- "acceptance.sharedNotice.title": "Condiviso con te",- "acceptance.sharedNotice.titleWithName": "Condiviso da {{name}}","acceptance.shell.back": "Indietro","acceptance.shell.menu": "Mostra consegne","acceptance.stats.failed": "{{count}} falliti",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} monitorati","acceptance.tray.trackSection": "Monitoraggio","acceptance.verdict.inProgress": "Accettazione in corso",- "acceptance.verdict.latestAt": "ultimo verificato {{time}}","acceptance.viewFullReport": "Visualizza rapporto completo","acceptance.workspace.actions.delete": "Elimina","acceptance.workspace.actions.markAccepted": "Contrassegna come accettato",diff --git a/locales/ja-JP/verify.json b/locales/ja-JP/verify.jsonindex 73710435ebf..4f33ab5377c 100644--- a/locales/ja-JP/verify.json+++ b/locales/ja-JP/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "修復中","acceptance.roundStatus.uncertain": "不確定","acceptance.roundStatus.verifying": "進行中",- "acceptance.sharedNotice.readOnlyDescription": "すべてのチェックとその証拠を閲覧できますが、受け入れに対して行動できるのは作成者のみです。",- "acceptance.sharedNotice.reviewableDescription": "すべてのチェックとその証拠を閲覧し、ワークスペースを代表してレビューすることができます。",- "acceptance.sharedNotice.title": "共有されています",- "acceptance.sharedNotice.titleWithName": "{{name}}から共有されています","acceptance.shell.back": "戻る","acceptance.shell.menu": "配達を表示","acceptance.stats.failed": "{{count}} 件失敗",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} 件を追跡中","acceptance.tray.trackSection": "追跡","acceptance.verdict.inProgress": "承認進行中",- "acceptance.verdict.latestAt": "最終検証 {{time}}","acceptance.viewFullReport": "完全なレポートを表示","acceptance.workspace.actions.delete": "削除","acceptance.workspace.actions.markAccepted": "承認済みにマーク",diff --git a/locales/ko-KR/verify.json b/locales/ko-KR/verify.jsonindex 9e9b9dcd704..ace3813dcb6 100644--- a/locales/ko-KR/verify.json+++ b/locales/ko-KR/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "수리 중","acceptance.roundStatus.uncertain": "불확실","acceptance.roundStatus.verifying": "진행 중",- "acceptance.sharedNotice.readOnlyDescription": "모든 확인 사항과 증거를 열람할 수 있지만, 작성자만 이 승인을 조치할 수 있습니다.",- "acceptance.sharedNotice.reviewableDescription": "모든 확인 사항과 증거를 열람할 수 있으며, 워크스페이스를 대신하여 검토할 수 있습니다.",- "acceptance.sharedNotice.title": "공유됨",- "acceptance.sharedNotice.titleWithName": "{{name}}님이 공유함","acceptance.shell.back": "뒤로","acceptance.shell.menu": "배송 보기","acceptance.stats.failed": "{{count}} 실패",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}}개 추적됨","acceptance.tray.trackSection": "추적","acceptance.verdict.inProgress": "승인 진행 중",- "acceptance.verdict.latestAt": "마지막 검증 {{time}}","acceptance.viewFullReport": "전체 보고서 보기","acceptance.workspace.actions.delete": "삭제","acceptance.workspace.actions.markAccepted": "승인으로 표시",diff --git a/locales/nl-NL/verify.json b/locales/nl-NL/verify.jsonindex 2bfe344af77..dfb2a8b8a97 100644--- a/locales/nl-NL/verify.json+++ b/locales/nl-NL/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "Reparatie bezig","acceptance.roundStatus.uncertain": "Onzeker","acceptance.roundStatus.verifying": "Bezig met verificatie",- "acceptance.sharedNotice.readOnlyDescription": "Je kunt alle controles en het bewijs bekijken, maar alleen de auteur kan actie ondernemen op deze acceptatie.",- "acceptance.sharedNotice.reviewableDescription": "Je kunt alle controles en het bewijs bekijken en ze namens je werkruimte beoordelen.",- "acceptance.sharedNotice.title": "Gedeeld met jou",- "acceptance.sharedNotice.titleWithName": "Gedeeld door {{name}}","acceptance.shell.back": "Terug","acceptance.shell.menu": "Toon leveringen","acceptance.stats.failed": "{{count}} mislukt",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} gevolgd","acceptance.tray.trackSection": "Volgen","acceptance.verdict.inProgress": "Acceptatie bezig",- "acceptance.verdict.latestAt": "laatst gecontroleerd {{time}}","acceptance.viewFullReport": "Bekijk volledig rapport","acceptance.workspace.actions.delete": "Verwijderen","acceptance.workspace.actions.markAccepted": "Markeren als geaccepteerd",diff --git a/locales/pl-PL/verify.json b/locales/pl-PL/verify.jsonindex c101cc1f834..f5fa140656e 100644--- a/locales/pl-PL/verify.json+++ b/locales/pl-PL/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "Naprawa","acceptance.roundStatus.uncertain": "Niepewne","acceptance.roundStatus.verifying": "W trakcie",- "acceptance.sharedNotice.readOnlyDescription": "Możesz przeglądać wszystkie kontrole i ich dowody, ale tylko autor może podjąć działania w związku z tą akceptacją.",- "acceptance.sharedNotice.reviewableDescription": "Możesz przeglądać wszystkie kontrole i ich dowody oraz je oceniać w imieniu swojego miejsca pracy.",- "acceptance.sharedNotice.title": "Udostępnione Tobie",- "acceptance.sharedNotice.titleWithName": "Udostępnione przez {{name}}","acceptance.shell.back": "Wstecz","acceptance.shell.menu": "Pokaż dostawy","acceptance.stats.failed": "{{count}} niepowodzenie(a)",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} śledzonych","acceptance.tray.trackSection": "Śledzenie","acceptance.verdict.inProgress": "Akceptacja w toku",- "acceptance.verdict.latestAt": "ostatnia weryfikacja {{time}}","acceptance.viewFullReport": "Zobacz pełny raport","acceptance.workspace.actions.delete": "Usuń","acceptance.workspace.actions.markAccepted": "Oznacz jako zaakceptowane",diff --git a/locales/pt-BR/verify.json b/locales/pt-BR/verify.jsonindex e61f986c8c1..9ae1dcf095d 100644--- a/locales/pt-BR/verify.json+++ b/locales/pt-BR/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "Reparando","acceptance.roundStatus.uncertain": "Incerto","acceptance.roundStatus.verifying": "Em progresso",- "acceptance.sharedNotice.readOnlyDescription": "Você pode visualizar todas as verificações e suas evidências, mas somente o autor pode agir sobre esta aceitação.",- "acceptance.sharedNotice.reviewableDescription": "Você pode visualizar todas as verificações e suas evidências, e revisá-las em nome do seu workspace.",- "acceptance.sharedNotice.title": "Compartilhado com você",- "acceptance.sharedNotice.titleWithName": "Compartilhado por {{name}}","acceptance.shell.back": "Voltar","acceptance.shell.menu": "Mostrar entregas","acceptance.stats.failed": "{{count}} falhou",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} acompanhados","acceptance.tray.trackSection": "Acompanhamento","acceptance.verdict.inProgress": "Aceitação em andamento",- "acceptance.verdict.latestAt": "última verificação em {{time}}","acceptance.viewFullReport": "Ver relatório completo","acceptance.workspace.actions.delete": "Excluir","acceptance.workspace.actions.markAccepted": "Marcar como aceito",diff --git a/locales/ru-RU/verify.json b/locales/ru-RU/verify.jsonindex 042d2b1662d..1bf89efb457 100644--- a/locales/ru-RU/verify.json+++ b/locales/ru-RU/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "Исправление","acceptance.roundStatus.uncertain": "Неопределено","acceptance.roundStatus.verifying": "В процессе",- "acceptance.sharedNotice.readOnlyDescription": "Вы можете просмотреть все проверки и их доказательства, но только автор может действовать по этому принятию.",- "acceptance.sharedNotice.reviewableDescription": "Вы можете просмотреть все проверки и их доказательства, а также оценить их от имени вашего рабочего пространства.",- "acceptance.sharedNotice.title": "Поделились с вами",- "acceptance.sharedNotice.titleWithName": "Поделился {{name}}","acceptance.shell.back": "Назад","acceptance.shell.menu": "Показать доставки","acceptance.stats.failed": "{{count}} неудач",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} отслеживается","acceptance.tray.trackSection": "Отслеживание","acceptance.verdict.inProgress": "Принятие в процессе",- "acceptance.verdict.latestAt": "последняя проверка {{time}}","acceptance.viewFullReport": "Просмотреть полный отчет","acceptance.workspace.actions.delete": "Удалить","acceptance.workspace.actions.markAccepted": "Отметить как принятое",diff --git a/locales/tr-TR/verify.json b/locales/tr-TR/verify.jsonindex 9bae0c232c5..e43e521a7a2 100644--- a/locales/tr-TR/verify.json+++ b/locales/tr-TR/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "Onarılıyor","acceptance.roundStatus.uncertain": "Belirsiz","acceptance.roundStatus.verifying": "Devam ediyor",- "acceptance.sharedNotice.readOnlyDescription": "Her kontrolü ve kanıtını inceleyebilirsiniz, ancak bu kabul üzerinde yalnızca yazar işlem yapabilir.",- "acceptance.sharedNotice.reviewableDescription": "Her kontrolü ve kanıtını inceleyebilir ve çalışma alanınız adına bunları gözden geçirebilirsiniz.",- "acceptance.sharedNotice.title": "Sizinle paylaşıldı",- "acceptance.sharedNotice.titleWithName": "{{name}} tarafından paylaşıldı","acceptance.shell.back": "Geri","acceptance.shell.menu": "Teslimatları göster","acceptance.stats.failed": "{{count}} başarısız",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} takip edildi","acceptance.tray.trackSection": "Takip","acceptance.verdict.inProgress": "Kabul işlemi devam ediyor",- "acceptance.verdict.latestAt": "son doğrulama {{time}}","acceptance.viewFullReport": "Tam raporu görüntüle","acceptance.workspace.actions.delete": "Sil","acceptance.workspace.actions.markAccepted": "Kabul edildi olarak işaretle",diff --git a/locales/vi-VN/verify.json b/locales/vi-VN/verify.jsonindex 8ebdd0d65c4..093aa1fb641 100644--- a/locales/vi-VN/verify.json+++ b/locales/vi-VN/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "Đang sửa chữa","acceptance.roundStatus.uncertain": "Không chắc chắn","acceptance.roundStatus.verifying": "Đang tiến hành",- "acceptance.sharedNotice.readOnlyDescription": "Bạn có thể xem tất cả các kiểm tra và bằng chứng của chúng, nhưng chỉ tác giả mới có thể thực hiện hành động đối với việc chấp nhận này.",- "acceptance.sharedNotice.reviewableDescription": "Bạn có thể xem tất cả các kiểm tra và bằng chứng của chúng, và đánh giá chúng thay mặt cho không gian làm việc của bạn.",- "acceptance.sharedNotice.title": "Được chia sẻ với bạn",- "acceptance.sharedNotice.titleWithName": "Được chia sẻ bởi {{name}}","acceptance.shell.back": "Quay lại","acceptance.shell.menu": "Hiển thị các giao hàng","acceptance.stats.failed": "{{count}} thất bại",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} được theo dõi","acceptance.tray.trackSection": "Theo dõi","acceptance.verdict.inProgress": "Đang tiến hành chấp nhận",- "acceptance.verdict.latestAt": "xác minh lần cuối vào {{time}}","acceptance.viewFullReport": "Xem báo cáo đầy đủ","acceptance.workspace.actions.delete": "Xóa","acceptance.workspace.actions.markAccepted": "Đánh dấu là đã chấp nhận",diff --git a/locales/zh-CN/verify.json b/locales/zh-CN/verify.jsonindex e9f9b0191e5..2422da7b92a 100644--- a/locales/zh-CN/verify.json+++ b/locales/zh-CN/verify.json@@ -283,11 +283,6 @@"acceptance.roundStatus.repairing": "修复中","acceptance.roundStatus.uncertain": "验证不确定","acceptance.roundStatus.verifying": "进行中",- "acceptance.sharedNotice.commentableDescription": "你可以查看所有检查项及其证据,也可以评论和圈选,但只有作者可以进行验收操作。",- "acceptance.sharedNotice.readOnlyDescription": "你可以查看所有检查项及其证据,但只有作者可以进行验收操作。",- "acceptance.sharedNotice.reviewableDescription": "你可以查看所有检查项及其证据,并代表你的工作区参与评审。",- "acceptance.sharedNotice.title": "来自他人的分享",- "acceptance.sharedNotice.titleWithName": "来自 {{name}} 的分享","acceptance.shell.back": "返回","acceptance.shell.menu": "查看验收列表","acceptance.stats.failed": "{{count}} 失败",@@ -338,7 +333,6 @@"acceptance.tray.trackCount": "· {{count}} 项跟踪","acceptance.tray.trackSection": "目标跟踪","acceptance.verdict.inProgress": "验收进行中",- "acceptance.verdict.latestAt": "最近验证 {{time}}","acceptance.viewFullReport": "查看完整报告","acceptance.workspace.actions.delete": "删除","acceptance.workspace.actions.markAccepted": "标记为已验收",diff --git a/locales/zh-TW/verify.json b/locales/zh-TW/verify.jsonindex 649b3f1b456..e8f8f77cf37 100644--- a/locales/zh-TW/verify.json+++ b/locales/zh-TW/verify.json@@ -274,10 +274,6 @@"acceptance.roundStatus.repairing": "修復中","acceptance.roundStatus.uncertain": "不確定","acceptance.roundStatus.verifying": "進行中",- "acceptance.sharedNotice.readOnlyDescription": "您可以瀏覽每個檢查項目及其證據,但只有作者可以對此驗收進行操作。",- "acceptance.sharedNotice.reviewableDescription": "您可以瀏覽每個檢查項目及其證據,並代表您的工作區進行審核。",- "acceptance.sharedNotice.title": "與您共享",- "acceptance.sharedNotice.titleWithName": "由 {{name}} 分享","acceptance.shell.back": "返回","acceptance.shell.menu": "顯示交付","acceptance.stats.failed": "{{count}} 項失敗",@@ -328,7 +324,6 @@"acceptance.tray.trackCount": "· {{count}} 項已追蹤","acceptance.tray.trackSection": "追蹤","acceptance.verdict.inProgress": "接受進行中",- "acceptance.verdict.latestAt": "最後驗證於 {{time}}","acceptance.viewFullReport": "查看完整報告","acceptance.workspace.actions.delete": "刪除","acceptance.workspace.actions.markAccepted": "標記為已接受",diff --git a/packages/locales/src/default/verify.ts b/packages/locales/src/default/verify.tsindex 71612c639d9..0672d1748a0 100644--- a/packages/locales/src/default/verify.ts+++ b/packages/locales/src/default/verify.ts@@ -408,14 +408,6 @@ export default {'acceptance.roundStatus.repairing': 'Repairing','acceptance.roundStatus.uncertain': 'Verify uncertain','acceptance.roundStatus.verifying': 'In progress',- 'acceptance.sharedNotice.commentableDescription':- 'You can browse every check and its evidence and join the discussion, but only the author can act on this acceptance.',- 'acceptance.sharedNotice.readOnlyDescription':- 'You can browse every check and its evidence, but only the author can act on this acceptance.',- 'acceptance.sharedNotice.reviewableDescription':- 'You can browse every check and its evidence, and review them on behalf of your workspace.',- 'acceptance.sharedNotice.title': 'Shared with you',- 'acceptance.sharedNotice.titleWithName': 'Shared by {{name}}','acceptance.stats.failed': '{{count}} failed','acceptance.stats.notExecuted': '{{count}} not executed','acceptance.stats.passed': '{{count}} passed',@@ -470,7 +462,6 @@ export default {'acceptance.surface.other': 'Other','acceptance.titleFallback': 'Acceptance','acceptance.verdict.inProgress': 'Acceptance in progress',- 'acceptance.verdict.latestAt': 'last verified {{time}}','acceptance.viewFullReport': 'View full report','acceptance.workspace.actions.delete': 'Delete','acceptance.workspace.actions.markAccepted': 'Mark as accepted',diff --git a/src/features/Acceptance/Viewer/AcceptanceOverview.tsx b/src/features/Acceptance/Viewer/AcceptanceOverview.tsxindex 6eee23c7a52..e4511e2a4f0 100644--- a/src/features/Acceptance/Viewer/AcceptanceOverview.tsx+++ b/src/features/Acceptance/Viewer/AcceptanceOverview.tsx@@ -21,7 +21,6 @@ import AcceptanceEnterFocus from './Focus/AcceptanceEnterFocus';import AcceptanceGoal from './Header/AcceptanceGoal';import AcceptanceGoalEdit from './Header/AcceptanceGoalEdit';import AcceptanceIdentity from './Header/AcceptanceIdentity';-import AcceptanceSharedNotice from './Header/AcceptanceSharedNotice';import AcceptanceStatusControl from './Header/AcceptanceStatusControl';import type { AcceptanceTabKey } from './Header/AcceptanceTabs';import AcceptanceTabs from './Header/AcceptanceTabs';@@ -90,7 +89,6 @@ export const AcceptanceOverview = ({<><Flexbox className={styles.headerBand}><Flexbox className={styles.column} gap={12}>- <AcceptanceSharedNotice /><AcceptanceIdentityfocusSlot={<AcceptanceEnterFocus />}statusSlot={<AcceptanceStatusControl />}diff --git a/src/features/Acceptance/Viewer/Conversation/AcceptanceOriginTopic.tsx b/src/features/Acceptance/Viewer/Conversation/AcceptanceOriginTopic.tsxindex ac3e4224ab8..ee81ff712a4 100644--- a/src/features/Acceptance/Viewer/Conversation/AcceptanceOriginTopic.tsx+++ b/src/features/Acceptance/Viewer/Conversation/AcceptanceOriginTopic.tsx@@ -18,7 +18,6 @@ const styles = createStaticStyles(({ css }) => ({border: 0;font: inherit;- font-size: 14px;color: ${cssVar.colorTextSecondary};background: none;diff --git a/src/features/Acceptance/Viewer/Focus/AcceptanceEnterFocus.tsx b/src/features/Acceptance/Viewer/Focus/AcceptanceEnterFocus.tsxindex 6af1a2b5873..2b85469c347 100644--- a/src/features/Acceptance/Viewer/Focus/AcceptanceEnterFocus.tsx+++ b/src/features/Acceptance/Viewer/Focus/AcceptanceEnterFocus.tsx@@ -33,9 +33,9 @@ const AcceptanceEnterFocus = () => {return (<ButtonclassName={styles.button}- icon={<Icon icon={ChevronRight} />}+ icon={<Icon icon={ChevronRight} size={14} />}size={'small'}- style={{ alignSelf: 'flex-start', minHeight: 44 }}+ style={{ alignSelf: 'center' }}type={'text'}onClick={() =>navigate(diff --git a/src/features/Acceptance/Viewer/Header/AcceptanceIdentity.tsx b/src/features/Acceptance/Viewer/Header/AcceptanceIdentity.tsxindex 091e28604d5..9fe575a5527 100644--- a/src/features/Acceptance/Viewer/Header/AcceptanceIdentity.tsx+++ b/src/features/Acceptance/Viewer/Header/AcceptanceIdentity.tsx@@ -3,27 +3,44 @@import { Flexbox, Icon } from '@lobehub/ui';import { Avatar, Text } from '@lobehub/ui/base-ui';import { createStaticStyles, cssVar, cx } from 'antd-style';-import dayjs from 'dayjs';import { GitPullRequest } from 'lucide-react';import type { ReactNode } from 'react';import { useTranslation } from 'react-i18next';-import { useIsHydrated } from '@/hooks/useIsHydrated';-import { useAcceptanceScope } from '../AcceptanceScope';import { acceptanceCodingScope } from '../History/codingScope';import { useAcceptanceBundle } from '../useAcceptanceBundle';-import { formatAcceptanceCountsText } from '../verdict';import AcceptanceStatusPill from './AcceptanceStatusPill';const styles = createStaticStyles(({ css }) => ({- statusRow: css`+ titleRow: css`+ /* The per-check entry keeps its box at all times and only shows its ink on+ hover: revealing it by reflow would retitle the row under the pointer,+ and the title is what the reader is aiming at. It fades rather than+ hiding, so it stays in the tab order and in the accessibility tree —+ a hidden visibility would drop it from both, and the focus rule below+ could never fire. The pointer-events switch keeps the faded box from+ swallowing clicks meant for the title. Touch never hovers, which is why the button+ removes itself outright below this breakpoint. */+ [data-role='focus-entry'] {+ pointer-events: none;+ flex: none;+ opacity: 0;+ transition: opacity 150ms ease;+ }++ &:hover [data-role='focus-entry'],+ &:focus-within [data-role='focus-entry'] {+ pointer-events: auto;+ opacity: 1;+ }+@media (width <= 767px) {padding-inline-end: 48px;}`,- scopeChip: css`- font-size: 12px;+ metaRow: css`+ font-size: 13px;color: ${cssVar.colorTextSecondary};`,scopeLink: css`@@ -38,110 +55,103 @@ const styles = createStaticStyles(({ css }) => ({}));interface AcceptanceIdentityProps {- /** Rendered on the meta line — the per-check entry point. */+ /** Rendered after the title, revealed on hover — the per-check entry point. */focusSlot?: ReactNode;statusSlot?: ReactNode;topicSlot?: ReactNode;}/**- * Identity, state and provenance in two lines.+ * The delivery's name, then one bar of everything that qualifies it.+ *+ * The name leads, the way a pull request leads with its own: it is what a+ * reader scans for, and putting the state above it made the state the headline+ * of a record whose headline is its subject. The per-check entry trails the+ * name and stays invisible until the row is hovered — it is a way in, not a+ * fact about the delivery, and standing there permanently it competed with+ * every fact beside it. Under the name, a single bar carries state, who+ * delivered it, and where it came from — the agent, the originating+ * conversation, the pull request — because those were three separate rows+ * saying one thing: the context of this record.*- * They used to take four: the status pill led a line of its own, the title a- * second, the per-check entry a third and the provenance chips a fourth — so- * the delivery's name, the one thing you scan for, sat in the middle of a- * stack of qualifiers. Now the title anchors line one with its state beside- * it, and everything that merely QUALIFIES it (counts, when it last ran, where- * it came from, how to open it check by check) collapses onto one meta line- * underneath.+ * The pass/uncertain tally and the last-run time are gone from here. They+ * change every round and read as the delivery's verdict while sitting above+ * the checklist that actually shows them, so the header claimed an outcome the+ * reader had not reached yet.*/const AcceptanceIdentity = ({ focusSlot, statusSlot, topicSlot }: AcceptanceIdentityProps) => {const { t } = useTranslation('verify');- const hydrated = useIsHydrated();const { acceptanceId, embedded } = useAcceptanceScope();const { data } = useAcceptanceBundle(acceptanceId);if (!data) return null;- const { acceptance, checks, origin, rounds, subject } = data;- const currentRound = rounds.at(-1);+ const { acceptance, author, origin, rounds, subject } = data;+ const authorName = author?.fullName || author?.username;const scope = acceptanceCodingScope(rounds);const pullRequest = scope?.pullRequest;- const countsText = formatAcceptanceCountsText(t, {- failed: checks.filter((check) => check.state === 'failed').length,- notExecuted: checks.filter((check) => check.state === 'not_executed').length,- passed: checks.filter((check) => check.state === 'passed').length,- uncertain: checks.filter((check) => check.state === 'uncertain').length,- });- const latestAt =- hydrated && currentRound- ? t('acceptance.verdict.latestAt', {- time: dayjs(currentRound.run.createdAt).format('MM-DD HH:mm'),- })- : undefined;const originAgent = embedded ? null : origin?.agent;- const showOrigin = Boolean(originAgent || topicSlot || pullRequest?.number);+ const agentName = originAgent?.title ?? t('acceptance.origin.agentFallback');return (<Flexbox gap={10}>- <Flexbox horizontal align={'center'} className={styles.statusRow} gap={10} wrap={'wrap'}>- {statusSlot ?? <AcceptanceStatusPill status={acceptance.status} />}- <Text fontSize={12} type={'secondary'}>- {[countsText, latestAt].filter(Boolean).join(' · ')}- </Text>- {focusSlot}- </Flexbox>-{/* No subject-type tag beside the name. Which KIND of thing wasdelivered is a fact about the plumbing, not about the delivery areader came to judge — and it sat where the title's own meaningshould carry. */}- <Flexbox horizontal align={'center'} gap={10} wrap={'wrap'}>+ <Flexbox horizontal align={'center'} className={styles.titleRow} gap={10} wrap={'wrap'}><Text ellipsis as={'h1'} style={{ fontSize: 18, margin: 0, minWidth: 0 }}>{subject.title ?? subject.id}</Text>+ {focusSlot && <div data-role={'focus-entry'}>{focusSlot}</div>}</Flexbox>- {showOrigin && (- <Flexbox horizontal align={'center'} gap={16} wrap={'wrap'}>- {originAgent && (- <Flexbox- horizontal- align={'center'}- className={styles.scopeChip}- gap={6}- style={{ cursor: 'default', fontSize: 14 }}+ <Flexbox horizontal align={'center'} className={styles.metaRow} gap={12} wrap={'wrap'}>+ {statusSlot ?? <AcceptanceStatusPill status={acceptance.status} />}+ {/* Who delivered this, right after its state — the same place a pull+ request names its author. A shared record with no name on it reads+ as nobody's, and the status alone never says whose work it is. */}+ {authorName && (+ <Flexbox horizontal align={'center'} gap={6}>+ <Avatar avatar={author?.avatar || authorName.slice(0, 1)} size={18} />+ <Text style={{ color: cssVar.colorText, fontSize: 'inherit' }}>{authorName}</Text>+ </Flexbox>+ )}+ {originAgent && (+ <Flexbox horizontal align={'center'} gap={6} style={{ cursor: 'default' }}>+ {/* Beside the author's face, an agent with no picture used to draw+ the library's "UN" placeholder — two avatars in one bar, one of+ them claiming a name nobody has. Fall back to its own initial,+ the way the author's does. */}+ <Avatar+ avatar={originAgent.avatar || agentName.slice(0, 1)}+ background={originAgent.backgroundColor ?? undefined}+ size={18}+ />+ {agentName}+ </Flexbox>+ )}+ {topicSlot}+ {pullRequest?.number ? (+ pullRequest.url ? (+ <a+ className={cx(styles.scopeLink)}+ href={pullRequest.url}+ rel={'noreferrer'}+ target={'_blank'}+ title={pullRequest.title ?? pullRequest.url}>- <Avatar- avatar={originAgent.avatar ?? undefined}- background={originAgent.backgroundColor ?? undefined}- size={18}- />- {originAgent.title ?? t('acceptance.origin.agentFallback')}- </Flexbox>- )}- {topicSlot}- {pullRequest?.number ? (- pullRequest.url ? (- <a- className={cx(styles.scopeChip, styles.scopeLink)}- href={pullRequest.url}- rel={'noreferrer'}- target={'_blank'}- title={pullRequest.title ?? pullRequest.url}- >- <Flexbox horizontal align={'center'} gap={4}>- <Icon icon={GitPullRequest} size={13} /> #{pullRequest.number}- </Flexbox>- </a>- ) : (- <Flexbox horizontal align={'center'} className={styles.scopeChip} gap={4}>+ <Flexbox horizontal align={'center'} gap={4}><Icon icon={GitPullRequest} size={13} /> #{pullRequest.number}</Flexbox>- )- ) : null}- </Flexbox>- )}+ </a>+ ) : (+ <Flexbox horizontal align={'center'} gap={4}>+ <Icon icon={GitPullRequest} size={13} /> #{pullRequest.number}+ </Flexbox>+ )+ ) : null}+ </Flexbox></Flexbox>);};diff --git a/src/features/Acceptance/Viewer/Header/AcceptanceSharedNotice.tsx b/src/features/Acceptance/Viewer/Header/AcceptanceSharedNotice.tsxdeleted file mode 100644index ff42dbc957a..00000000000--- a/src/features/Acceptance/Viewer/Header/AcceptanceSharedNotice.tsx+++ /dev/null@@ -1,59 +0,0 @@-'use client';--import { Alert } from '@lobehub/ui/base-ui';-import { cssVar } from 'antd-style';-import { UsersRound } from 'lucide-react';-import type { CSSProperties } from 'react';-import { useTranslation } from 'react-i18next';--import { useAuthorInfo } from '@/business/client/hooks/useAuthorInfo';--import { useAcceptanceScope } from '../AcceptanceScope';-import { useAcceptanceComments } from '../Comments/hooks';-import { useAcceptanceBundle } from '../useAcceptanceBundle';-import { canReviewAcceptance } from '../visibility';--/**- * In-body notice for viewers who reached this acceptance through someone- * else's shared link or workspace membership: names the author when the- * business layer can resolve them, and states what this viewer may actually do- * — review, join the discussion, or only read — so a page missing its owner- * controls never looks broken, and so it never promises a reply box that a- * signed-out reader does not get.- */-const AcceptanceSharedNotice = ({ style }: { style?: CSSProperties }) => {- const { t } = useTranslation('verify');- const { acceptanceId } = useAcceptanceScope();- const { data } = useAcceptanceBundle(acceptanceId);- const author = useAuthorInfo(data?.acceptance.userId ?? undefined);- const { canComment, isLoading: permissionLoading } = useAcceptanceComments(acceptanceId);-- if (!data || data.isOwner) return null;-- return (- <Alert- showIcon- icon={UsersRound}- style={{ borderRadius: cssVar.borderRadiusLG, ...style }}- type={'secondary'}- variant={'outlined'}- description={t(- canReviewAcceptance(data)- ? 'acceptance.sharedNotice.reviewableDescription'- : // Until the discussion answers, the wider line is the safe guess:- // telling a reader they may join and then taking it away reads as a- // bug, while the reverse reads as the page changing its mind.- canComment || permissionLoading- ? 'acceptance.sharedNotice.commentableDescription'- : 'acceptance.sharedNotice.readOnlyDescription',- )}- title={- author?.fullName- ? t('acceptance.sharedNotice.titleWithName', { name: author.fullName })- : t('acceptance.sharedNotice.title')- }- />- );-};--export default AcceptanceSharedNotice;diff --git a/src/features/Acceptance/Viewer/index.tsx b/src/features/Acceptance/Viewer/index.tsxindex a33c8e1fd77..128393b6566 100644--- a/src/features/Acceptance/Viewer/index.tsx+++ b/src/features/Acceptance/Viewer/index.tsx@@ -10,7 +10,6 @@ import { AcceptanceOverview } from './AcceptanceOverview';import { AcceptanceBundleGate, AcceptanceScope } from './AcceptanceScope';import { FlowPanelHostContext } from './Flow/FlowPanelHost';import AcceptanceFocusWorkspace from './Focus/AcceptanceFocusWorkspace';-import AcceptanceSharedNotice from './Header/AcceptanceSharedNotice';import AcceptanceLedgerRail from './History/AcceptanceLedgerRail';import { acceptanceScrollLayout } from './layout';@@ -82,18 +81,7 @@ const AcceptancePage = ({gap={16}style={{ minHeight: focused ? 0 : undefined, width: '100%' }}>- {focused ? (- <>- {/* The focused branch zeroes the frame padding, so the- notice carries its own margins. A shared viewer needs- the capability explanation here MOST — this is where- the owner-only review controls are visibly absent. */}- <AcceptanceSharedNotice- style={{ marginBlockStart: 16, marginInline: 20, width: 'auto' }}- />- <AcceptanceFocusWorkspace />- </>- ) : null}+ {focused ? <AcceptanceFocusWorkspace /> : null}</Flexbox>{!focused && <AcceptanceOverview onDraftToComposer={onDraftToComposer} />}</Flexbox>