⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.
TypeScript agenticagileai-agentsbug-reportingbug-trackerganttissue-trackerjirajira-alternativekanbanlinearlinear-alternativeopen-sourceproduct-managementproject-managementroadmapself-hostedsprint-planningteam-collaborationtrello-alternative
feat(web): workspace settings and god mode show previews of the Cloud and Pro sections (#599)
Croff7cc941762281
diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.mdindex 103f094e..b0206a2e 100644--- a/apps/web/AGENTS.md+++ b/apps/web/AGENTS.md@@ -16,8 +16,10 @@ Next.js App Router, SSR (not SPA). Tailwind v4 + shadcn/ui. See root `AGENTS.md`- **`@/cloud` is the seam for the hosted edition.** It resolves to `src/ce/index.ts`, whichexports what a self-hosted instance runs. A cloud-only part is imported from there andnowhere else. `useWorkspaceSections(workspace, core)` returns a workspace's settings menu,- shown by `WorkspaceSectionNav`: here the core's sections as they are, while the hosted- build adds its own at any position or drops some. One it adds carries in `Component` the+ shown by `WorkspaceSectionNav`: here the core's sections, then previews of the+ dashboard, the AI budgets and the audit log, and for the owner of email domains, single+ sign-on and SCIM (`components/common/page/SectionPreview`), while the hosted build adds+ its own at any position or drops some. One it adds carries in `Component` thepage `/workspaces/:id/:sectionId` opens; that page answers 404 only once the workspace andevery query in flight have loaded, so a section that waits on a query of its own opensfrom a direct link. Every section names its group: an `overview` one sits at the top of@@ -30,10 +32,10 @@ Next.js App Router, SSR (not SPA). Tailwind v4 + shadcn/ui. See root `AGENTS.md`than one workspace per person is available. `ShellNotice` is a strip under the top bar ofthe app shell, god mode and the teams pages; here it shows nothing, while the hostedbuild shows notices about the instance there. `godSections(core)` returns the god mode- sections: here the core's as they are, while the hosted build adds, replaces or drops- some. One it adds carries in `Component` the page `/god/<slug>` opens, and may sit in a- group of its own: the sidebar lists the groups in the order their first section comes,- each named in `sections.godGroups`. The instance's+ sections: here the core's and a preview of the audit log, in a `security` group, while+ the hosted build adds, replaces or drops some. One it adds carries in `Component` the+ page `/god/<slug>` opens, and may sit in a group of its own: the sidebar lists the groups+ in the order their first section comes, each named in `sections.godGroups`. The instance'sSCIM is set up in god mode; the hosted build that also sets it up per workspace adds`WorkspaceScimSection` through `useWorkspaceSections`. `SignInExtras` sits among the sign-in methods, after theinstance's own provider; here it adds nothing, while the hosted build offers a sign-indiff --git a/apps/web/messages/ar/sections.json b/apps/web/messages/ar/sections.jsonindex 38c150eb..3b25deeb 100644--- a/apps/web/messages/ar/sections.json+++ b/apps/web/messages/ar/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "الإدارة",- "instance": "النسخة"+ "instance": "النسخة",+ "security": "الأمان"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "اسمح لمزوّد الهوية بإنشاء الحسابات وتحديثها وتعطيلها على هذا الخادم، ومنح الوصول إلى المشاريع عبر مجموعاته."+ },+ "audit-log": {+ "label": "سجل التدقيق",+ "description": "من فعل ماذا على هذه النسخة، ومتى، ومن أين."}},"settings": {@@ -109,5 +114,75 @@"label": "وكلاء الذكاء الاصطناعي","description": "وكلاء الذكاء الاصطناعي العاملون في هذا المشروع."}+ },+ "previews": {+ "available": "متاح في Cloud وفي نسخة Pro للاستضافة الذاتية.",+ "dashboard": {+ "title": "لوحة المعلومات",+ "description": "النشاط في فرق ومشاريع مساحة العمل هذه.",+ "summary": {+ "teams": "الفرق",+ "projects": "المشاريع",+ "people": "الأشخاص",+ "agents": "وكلاء الذكاء الاصطناعي",+ "openIssues": "المهام المفتوحة",+ "storage": "التخزين"+ },+ "blocks": {+ "agents": "وكلاء الذكاء الاصطناعي",+ "schedules": "التشغيلات المجدولة",+ "time": "الوقت المسجّل",+ "flow": "حركة المهام",+ "projects": "المشاريع النشطة",+ "teams": "الفرق النشطة"+ }+ },+ "agentBudgets": {+ "title": "ميزانيات الذكاء الاصطناعي",+ "description": "حدود لما ينفقه الوكلاء على النماذج.",+ "workspace": "مساحة العمل كلها",+ "figures": {+ "spent": "المنفق",+ "limit": "الحد",+ "left": "المتبقي",+ "forecast": "المتوقع حتى نهاية الفترة"+ },+ "list": "الميزانيات",+ "columns": {+ "budget": "الميزانية",+ "spent": "المنفق"+ }+ },+ "auditLog": {+ "title": "سجل التدقيق",+ "description": "من فعل ماذا في مساحة العمل هذه وفرقها ومشاريعها، ومتى سجّل أفرادها الدخول.",+ "columns": {+ "time": "الوقت",+ "actor": "مَن",+ "action": "الإجراء",+ "where": "المكان",+ "from": "المصدر"+ }+ },+ "emailDomains": {+ "title": "نطاقات البريد",+ "description": "اختر نطاقات البريد التي يمكنها الانضمام إلى مساحة العمل هذه.",+ "label": "نطاقات البريد المسموح بها",+ "hint": "لا يمكن دعوة أو إضافة عبر SCIM إلا العناوين في هذه النطاقات، ويمكن للمدعوين التسجيل بها. اتركها فارغة لاستخدام نطاقات النسخة. يحتفظ الأعضاء الحاليون بوصولهم."+ },+ "sso": {+ "title": "تسجيل الدخول الموحد",+ "description": "اسمح لأعضاء مساحة العمل هذه بتسجيل الدخول عبر مزوّد الهوية في شركتك.",+ "provider": "مزوّد الهوية",+ "providerHint": "أدخل ما يقدمه لك مزوّد الهوية، ثم أضف إليه العناوين أدناه.",+ "fields": {+ "domains": "نطاقات البريد",+ "entryPoint": "رابط تسجيل الدخول",+ "entityId": "معرّف الكيان لدى المزوّد",+ "certificate": "شهادة التوقيع",+ "acsUrl": "رابط ACS",+ "spEntityId": "معرّف الكيان والبيانات الوصفية"+ }+ }}}diff --git a/apps/web/messages/en/sections.json b/apps/web/messages/en/sections.jsonindex 8dbe9cab..4b43f348 100644--- a/apps/web/messages/en/sections.json+++ b/apps/web/messages/en/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "Management",- "instance": "Instance"+ "instance": "Instance",+ "security": "Security"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "Let an identity provider create, update and deactivate accounts on this instance, and grant project access through its groups."+ },+ "audit-log": {+ "label": "Audit log",+ "description": "Who did what on this instance, when, and where they did it from."}},"settings": {@@ -109,5 +114,75 @@"label": "AI Agents","description": "AI agents working in this project."}+ },+ "previews": {+ "available": "Available in Cloud and self-hosted Pro.",+ "dashboard": {+ "title": "Dashboard",+ "description": "Activity across the teams and projects of this workspace.",+ "summary": {+ "teams": "Teams",+ "projects": "Projects",+ "people": "People",+ "agents": "AI agents",+ "openIssues": "Open issues",+ "storage": "Storage"+ },+ "blocks": {+ "agents": "AI agents",+ "schedules": "Scheduled runs",+ "time": "Time logged",+ "flow": "Issue flow",+ "projects": "Active projects",+ "teams": "Active teams"+ }+ },+ "agentBudgets": {+ "title": "AI budgets",+ "description": "Limits on what agents spend on models.",+ "workspace": "Whole workspace",+ "figures": {+ "spent": "Spent",+ "limit": "Limit",+ "left": "Left",+ "forecast": "Forecast for the period"+ },+ "list": "Budgets",+ "columns": {+ "budget": "Budget",+ "spent": "Spent"+ }+ },+ "auditLog": {+ "title": "Audit log",+ "description": "Who did what in this workspace, its teams and projects, and when its people signed in.",+ "columns": {+ "time": "Time",+ "actor": "Who",+ "action": "Action",+ "where": "Where",+ "from": "From"+ }+ },+ "emailDomains": {+ "title": "Email domains",+ "description": "Choose which email domains can join this workspace.",+ "label": "Allowed email domains",+ "hint": "Only addresses at these domains can be invited or added through SCIM, and invited people can sign up with them. Leave empty to use the instance's domains. Current members keep their access."+ },+ "sso": {+ "title": "Single sign-on",+ "description": "Let people of this workspace sign in with your company's identity provider.",+ "provider": "Identity provider",+ "providerHint": "Enter what your identity provider gives you, then add the addresses below to it.",+ "fields": {+ "domains": "Email domains",+ "entryPoint": "Sign-in URL",+ "entityId": "Provider entity ID",+ "certificate": "Signing certificate",+ "acsUrl": "ACS URL",+ "spEntityId": "Entity ID and metadata"+ }+ }}}diff --git a/apps/web/messages/es-ES/sections.json b/apps/web/messages/es-ES/sections.jsonindex 40ad04f9..bbb84984 100644--- a/apps/web/messages/es-ES/sections.json+++ b/apps/web/messages/es-ES/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "Gestión",- "instance": "Instancia"+ "instance": "Instancia",+ "security": "Seguridad"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "Permite que un proveedor de identidades cree, actualize y desactive cuentas en esta instancia, y conceda acceso a proyectos a través de sus grupos."+ },+ "audit-log": {+ "label": "Registro de auditoría",+ "description": "Quién hizo qué en esta instancia, cuándo y desde dónde."}},"settings": {@@ -109,5 +114,75 @@"label": "Agentes de IA","description": "Agentes de IA que trabajan en este proyecto."}+ },+ "previews": {+ "available": "Disponible en Cloud y en Pro autoalojado.",+ "dashboard": {+ "title": "Panel",+ "description": "La actividad de los equipos y proyectos de este espacio de trabajo.",+ "summary": {+ "teams": "Equipos",+ "projects": "Proyectos",+ "people": "Personas",+ "agents": "Agentes de IA",+ "openIssues": "Tickets abiertos",+ "storage": "Almacenamiento"+ },+ "blocks": {+ "agents": "Agentes de IA",+ "schedules": "Ejecuciones programadas",+ "time": "Tiempo registrado",+ "flow": "Flujo de tickets",+ "projects": "Proyectos activos",+ "teams": "Equipos activos"+ }+ },+ "agentBudgets": {+ "title": "Presupuestos de IA",+ "description": "Límites a lo que gastan los agentes en modelos.",+ "workspace": "Todo el espacio",+ "figures": {+ "spent": "Gastado",+ "limit": "Límite",+ "left": "Queda",+ "forecast": "Previsión para el periodo"+ },+ "list": "Presupuestos",+ "columns": {+ "budget": "Presupuesto",+ "spent": "Gastado"+ }+ },+ "auditLog": {+ "title": "Registro de auditoría",+ "description": "Quién hizo qué en este espacio de trabajo, sus equipos y proyectos, y cuándo iniciaron sesión sus miembros.",+ "columns": {+ "time": "Fecha",+ "actor": "Quién",+ "action": "Acción",+ "where": "Dónde",+ "from": "Origen"+ }+ },+ "emailDomains": {+ "title": "Dominios de correo",+ "description": "Elige qué dominios de correo pueden unirse a este espacio de trabajo.",+ "label": "Dominios de correo permitidos",+ "hint": "Solo se pueden invitar o añadir por SCIM direcciones de estos dominios, y las personas invitadas pueden registrarse con ellas. Déjalo vacío para usar los dominios de la instancia. Los miembros actuales conservan su acceso."+ },+ "sso": {+ "title": "Inicio de sesión único",+ "description": "Permite que las personas de este espacio de trabajo inicien sesión con el proveedor de identidad de tu empresa.",+ "provider": "Proveedor de identidad",+ "providerHint": "Introduce lo que te da tu proveedor de identidad y añade en él las direcciones de abajo.",+ "fields": {+ "domains": "Dominios de correo",+ "entryPoint": "URL de inicio de sesión",+ "entityId": "Entity ID del proveedor",+ "certificate": "Certificado de firma",+ "acsUrl": "URL de ACS",+ "spEntityId": "Entity ID y metadatos"+ }+ }}}diff --git a/apps/web/messages/fa/sections.json b/apps/web/messages/fa/sections.jsonindex 11075e5f..b30787a0 100644--- a/apps/web/messages/fa/sections.json+++ b/apps/web/messages/fa/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "مدیریت",- "instance": "سامانه"+ "instance": "سامانه",+ "security": "امنیت"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "به یک ارائهدهنده هویت اجازه دهید حسابها را در این سامانه ایجاد، بهروزرسانی و غیرفعال کند و از طریق گروههایش دسترسی پروژه اعطا کند."+ },+ "audit-log": {+ "label": "گزارش ممیزی",+ "description": "چه کسی، چه زمانی و از کجا در این سامانه چه کاری کرده."}},"settings": {@@ -109,5 +114,75 @@"label": "ایجنتهای AI","description": "ایجنتهای AI که در این پروژه کار میکنند."}+ },+ "previews": {+ "available": "در Cloud و Pro خودمیزبان موجود است.",+ "dashboard": {+ "title": "داشبورد",+ "description": "فعالیت تیمها و پروژههای این فضای کار.",+ "summary": {+ "teams": "تیمها",+ "projects": "پروژهها",+ "people": "افراد",+ "agents": "ایجنتهای AI",+ "openIssues": "تسکهای باز",+ "storage": "فضای ذخیرهسازی"+ },+ "blocks": {+ "agents": "ایجنتهای AI",+ "schedules": "اجراهای زمانبندیشده",+ "time": "زمان ثبتشده",+ "flow": "جریان تسکها",+ "projects": "پروژههای فعال",+ "teams": "تیمهای فعال"+ }+ },+ "agentBudgets": {+ "title": "بودجههای AI",+ "description": "سقف هزینه ایجنتها برای مدلها.",+ "workspace": "کل فضای کار",+ "figures": {+ "spent": "هزینهشده",+ "limit": "سقف",+ "left": "باقیمانده",+ "forecast": "پیشبینی تا پایان دوره"+ },+ "list": "بودجهها",+ "columns": {+ "budget": "بودجه",+ "spent": "هزینهشده"+ }+ },+ "auditLog": {+ "title": "گزارش ممیزی",+ "description": "چه کسی در این فضای کار، تیمها و پروژههایش چه کرده و افرادش کی وارد شدهاند.",+ "columns": {+ "time": "زمان",+ "actor": "چه کسی",+ "action": "اقدام",+ "where": "کجا",+ "from": "از کجا"+ }+ },+ "emailDomains": {+ "title": "دامنههای ایمیل",+ "description": "انتخاب کنید ایمیلهای کدام دامنهها میتوانند به این فضای کار بپیوندند.",+ "label": "دامنههای ایمیل مجاز",+ "hint": "فقط نشانیهای این دامنهها را میتوان دعوت کرد یا از طریق SCIM افزود، و دعوتشدگان میتوانند با آنها ثبتنام کنند. برای استفاده از دامنههای سامانه خالی بگذارید. اعضای فعلی دسترسی خود را حفظ میکنند."+ },+ "sso": {+ "title": "ورود یکپارچه",+ "description": "اجازه دهید افراد این فضای کار با ارائهدهنده هویت شرکت شما وارد شوند.",+ "provider": "ارائهدهنده هویت",+ "providerHint": "اطلاعاتی را که ارائهدهنده هویت به شما داده وارد کنید، سپس نشانیهای زیر را به آن اضافه کنید.",+ "fields": {+ "domains": "دامنههای ایمیل",+ "entryPoint": "نشانی ورود",+ "entityId": "Entity ID ارائهدهنده",+ "certificate": "گواهی امضا",+ "acsUrl": "نشانی ACS",+ "spEntityId": "Entity ID و فراداده"+ }+ }}}diff --git a/apps/web/messages/fr/sections.json b/apps/web/messages/fr/sections.jsonindex b5e6b2c5..ac4c1347 100644--- a/apps/web/messages/fr/sections.json+++ b/apps/web/messages/fr/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "Gestion",- "instance": "Instance"+ "instance": "Instance",+ "security": "Sécurité"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "Permettez à un fournisseur d'identité de créer, mettre à jour et désactiver des comptes sur cette instance, et d'accorder l'accès aux projets via ses groupes."+ },+ "audit-log": {+ "label": "Journal d'audit",+ "description": "Qui a fait quoi sur cette instance, quand et depuis où."}},"settings": {@@ -109,5 +114,75 @@"label": "Agents","description": "Des comptes bots auxquels vous pouvez déléguer des tickets."}+ },+ "previews": {+ "available": "Disponible dans Cloud et dans Pro auto-hébergé.",+ "dashboard": {+ "title": "Tableau de bord",+ "description": "L'activité des équipes et des projets de cet espace de travail.",+ "summary": {+ "teams": "Équipes",+ "projects": "Projets",+ "people": "Personnes",+ "agents": "Agents IA",+ "openIssues": "Tickets ouverts",+ "storage": "Stockage"+ },+ "blocks": {+ "agents": "Agents IA",+ "schedules": "Exécutions planifiées",+ "time": "Temps enregistré",+ "flow": "Flux de tickets",+ "projects": "Projets actifs",+ "teams": "Équipes actives"+ }+ },+ "agentBudgets": {+ "title": "Budgets IA",+ "description": "Des limites à ce que les agents dépensent en modèles.",+ "workspace": "Tout l’espace",+ "figures": {+ "spent": "Dépensé",+ "limit": "Limite",+ "left": "Reste",+ "forecast": "Prévision pour la période"+ },+ "list": "Budgets",+ "columns": {+ "budget": "Budget",+ "spent": "Dépensé"+ }+ },+ "auditLog": {+ "title": "Journal d'audit",+ "description": "Qui a fait quoi dans cet espace de travail, ses équipes et ses projets, et quand ses membres se sont connectés.",+ "columns": {+ "time": "Date",+ "actor": "Qui",+ "action": "Action",+ "where": "Où",+ "from": "Origine"+ }+ },+ "emailDomains": {+ "title": "Domaines e-mail",+ "description": "Choisissez les domaines e-mail qui peuvent rejoindre cet espace de travail.",+ "label": "Domaines e-mail autorisés",+ "hint": "Seules les adresses de ces domaines peuvent être invitées ou ajoutées par SCIM, et les personnes invitées peuvent s'inscrire avec elles. Laissez vide pour utiliser les domaines de l'instance. Les membres actuels gardent leur accès."+ },+ "sso": {+ "title": "Authentification unique",+ "description": "Permettez aux membres de cet espace de travail de se connecter avec le fournisseur d'identité de votre entreprise.",+ "provider": "Fournisseur d'identité",+ "providerHint": "Saisissez ce que vous donne votre fournisseur d'identité, puis ajoutez-y les adresses ci-dessous.",+ "fields": {+ "domains": "Domaines e-mail",+ "entryPoint": "URL de connexion",+ "entityId": "Entity ID du fournisseur",+ "certificate": "Certificat de signature",+ "acsUrl": "URL ACS",+ "spEntityId": "Entity ID et métadonnées"+ }+ }}}diff --git a/apps/web/messages/id/sections.json b/apps/web/messages/id/sections.jsonindex 9203f7e7..b0dbfab8 100644--- a/apps/web/messages/id/sections.json+++ b/apps/web/messages/id/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "Manajemen",- "instance": "Instance"+ "instance": "Instance",+ "security": "Keamanan"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "Izinkan penyedia identitas membuat, memperbarui, dan menonaktifkan akun di instance ini, serta memberikan akses proyek melalui grupnya."+ },+ "audit-log": {+ "label": "Log audit",+ "description": "Siapa melakukan apa di instance ini, kapan, dan dari mana."}},"settings": {@@ -109,5 +114,75 @@"label": "Agen AI","description": "Agen AI yang bekerja dalam proyek ini."}+ },+ "previews": {+ "available": "Tersedia di Cloud dan Pro self-hosted.",+ "dashboard": {+ "title": "Dasbor",+ "description": "Aktivitas tim dan proyek di workspace ini.",+ "summary": {+ "teams": "Tim",+ "projects": "Proyek",+ "people": "Orang",+ "agents": "Agen AI",+ "openIssues": "Issue terbuka",+ "storage": "Penyimpanan"+ },+ "blocks": {+ "agents": "Agen AI",+ "schedules": "Eksekusi terjadwal",+ "time": "Waktu dicatat",+ "flow": "Arus issue",+ "projects": "Proyek aktif",+ "teams": "Tim aktif"+ }+ },+ "agentBudgets": {+ "title": "Anggaran AI",+ "description": "Batas pengeluaran agen untuk model.",+ "workspace": "Seluruh ruang kerja",+ "figures": {+ "spent": "Terpakai",+ "limit": "Batas",+ "left": "Sisa",+ "forecast": "Perkiraan hingga akhir periode"+ },+ "list": "Anggaran",+ "columns": {+ "budget": "Anggaran",+ "spent": "Terpakai"+ }+ },+ "auditLog": {+ "title": "Log audit",+ "description": "Siapa melakukan apa di workspace ini, tim dan proyeknya, serta kapan orang-orangnya masuk.",+ "columns": {+ "time": "Waktu",+ "actor": "Siapa",+ "action": "Tindakan",+ "where": "Di mana",+ "from": "Asal"+ }+ },+ "emailDomains": {+ "title": "Domain email",+ "description": "Pilih domain email yang bisa bergabung ke workspace ini.",+ "label": "Domain email yang diizinkan",+ "hint": "Hanya alamat di domain ini yang bisa diundang atau ditambahkan lewat SCIM, dan orang yang diundang bisa mendaftar dengannya. Kosongkan untuk memakai domain instance. Anggota saat ini tetap punya akses."+ },+ "sso": {+ "title": "Single sign-on",+ "description": "Izinkan orang di workspace ini masuk dengan penyedia identitas perusahaan Anda.",+ "provider": "Penyedia identitas",+ "providerHint": "Masukkan data dari penyedia identitas Anda, lalu tambahkan alamat di bawah ke penyedia itu.",+ "fields": {+ "domains": "Domain email",+ "entryPoint": "URL masuk",+ "entityId": "Entity ID penyedia",+ "certificate": "Sertifikat penandatanganan",+ "acsUrl": "URL ACS",+ "spEntityId": "Entity ID dan metadata"+ }+ }}}diff --git a/apps/web/messages/ko/sections.json b/apps/web/messages/ko/sections.jsonindex 93400e3d..08206c86 100644--- a/apps/web/messages/ko/sections.json+++ b/apps/web/messages/ko/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "관리",- "instance": "인스턴스"+ "instance": "인스턴스",+ "security": "보안"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "ID 공급자가 이 인스턴스의 계정을 생성, 업데이트 및 비활성화하고 그룹을 통해 프로젝트 접근 권한을 부여할 수 있도록 설정합니다."+ },+ "audit-log": {+ "label": "감사 로그",+ "description": "이 인스턴스에서 누가 언제 어디서 무엇을 했는지 보여줍니다."}},"settings": {@@ -109,5 +114,75 @@"label": "AI 에이전트","description": "이 프로젝트에서 작업하는 AI 에이전트를 관리합니다."}+ },+ "previews": {+ "available": "Cloud 및 셀프 호스팅 Pro에서 사용할 수 있습니다.",+ "dashboard": {+ "title": "대시보드",+ "description": "이 워크스페이스의 팀과 프로젝트 활동입니다.",+ "summary": {+ "teams": "팀",+ "projects": "프로젝트",+ "people": "사람",+ "agents": "AI 에이전트",+ "openIssues": "열린 이슈",+ "storage": "저장 공간"+ },+ "blocks": {+ "agents": "AI 에이전트",+ "schedules": "예약된 실행",+ "time": "기록된 시간",+ "flow": "이슈 흐름",+ "projects": "활성 프로젝트",+ "teams": "활성 팀"+ }+ },+ "agentBudgets": {+ "title": "AI 예산",+ "description": "에이전트가 모델에 쓰는 비용의 한도입니다.",+ "workspace": "워크스페이스 전체",+ "figures": {+ "spent": "사용액",+ "limit": "한도",+ "left": "남은 금액",+ "forecast": "기간 말 예상"+ },+ "list": "예산",+ "columns": {+ "budget": "예산",+ "spent": "사용액"+ }+ },+ "auditLog": {+ "title": "감사 로그",+ "description": "이 워크스페이스와 팀, 프로젝트에서 누가 무엇을 했는지, 멤버가 언제 로그인했는지 보여줍니다.",+ "columns": {+ "time": "시간",+ "actor": "사용자",+ "action": "작업",+ "where": "위치",+ "from": "출처"+ }+ },+ "emailDomains": {+ "title": "이메일 도메인",+ "description": "이 워크스페이스에 참여할 수 있는 이메일 도메인을 선택합니다.",+ "label": "허용된 이메일 도메인",+ "hint": "이 도메인의 주소만 초대하거나 SCIM으로 추가할 수 있으며, 초대받은 사람은 이 주소로 가입할 수 있습니다. 비워 두면 인스턴스의 도메인을 사용합니다. 기존 멤버는 접근 권한을 유지합니다."+ },+ "sso": {+ "title": "싱글 사인온",+ "description": "이 워크스페이스의 사람들이 회사의 ID 공급자로 로그인하게 합니다.",+ "provider": "ID 공급자",+ "providerHint": "ID 공급자가 제공한 정보를 입력한 다음 아래 주소를 공급자에 추가하세요.",+ "fields": {+ "domains": "이메일 도메인",+ "entryPoint": "로그인 URL",+ "entityId": "공급자 Entity ID",+ "certificate": "서명 인증서",+ "acsUrl": "ACS URL",+ "spEntityId": "Entity ID 및 메타데이터"+ }+ }}}diff --git a/apps/web/messages/pt-BR/sections.json b/apps/web/messages/pt-BR/sections.jsonindex b0d59ec9..4024539f 100644--- a/apps/web/messages/pt-BR/sections.json+++ b/apps/web/messages/pt-BR/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "Gerenciamento",- "instance": "Instância"+ "instance": "Instância",+ "security": "Segurança"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "Permita que um provedor de identidade crie, atualize e desative contas nesta instância e conceda acesso a projetos por seus grupos."+ },+ "audit-log": {+ "label": "Log de auditoria",+ "description": "Quem fez o quê nesta instância, quando e de onde."}},"settings": {@@ -109,5 +114,75 @@"label": "Agentes de IA","description": "Agentes de IA trabalhando neste projeto."}+ },+ "previews": {+ "available": "Disponível no Cloud e no Pro auto-hospedado.",+ "dashboard": {+ "title": "Dashboard",+ "description": "A atividade dos times e projetos deste workspace.",+ "summary": {+ "teams": "Times",+ "projects": "Projetos",+ "people": "Pessoas",+ "agents": "Agentes de IA",+ "openIssues": "Issues abertas",+ "storage": "Armazenamento"+ },+ "blocks": {+ "agents": "Agentes de IA",+ "schedules": "Execuções agendadas",+ "time": "Tempo registrado",+ "flow": "Fluxo de issues",+ "projects": "Projetos ativos",+ "teams": "Times ativos"+ }+ },+ "agentBudgets": {+ "title": "Orçamentos de IA",+ "description": "Limites para o que os agentes gastam com modelos.",+ "workspace": "Espaço inteiro",+ "figures": {+ "spent": "Gasto",+ "limit": "Limite",+ "left": "Resta",+ "forecast": "Previsão para o período"+ },+ "list": "Orçamentos",+ "columns": {+ "budget": "Orçamento",+ "spent": "Gasto"+ }+ },+ "auditLog": {+ "title": "Log de auditoria",+ "description": "Quem fez o quê neste workspace, em seus times e projetos, e quando as pessoas entraram.",+ "columns": {+ "time": "Horário",+ "actor": "Quem",+ "action": "Ação",+ "where": "Onde",+ "from": "Origem"+ }+ },+ "emailDomains": {+ "title": "Domínios de e-mail",+ "description": "Escolha quais domínios de e-mail podem entrar neste workspace.",+ "label": "Domínios de e-mail permitidos",+ "hint": "Só endereços desses domínios podem ser convidados ou adicionados por SCIM, e as pessoas convidadas podem se cadastrar com eles. Deixe vazio para usar os domínios da instância. Os membros atuais mantêm o acesso."+ },+ "sso": {+ "title": "Login único",+ "description": "Permita que as pessoas deste workspace entrem com o provedor de identidade da sua empresa.",+ "provider": "Provedor de identidade",+ "providerHint": "Informe o que seu provedor de identidade fornece e adicione nele os endereços abaixo.",+ "fields": {+ "domains": "Domínios de e-mail",+ "entryPoint": "URL de login",+ "entityId": "Entity ID do provedor",+ "certificate": "Certificado de assinatura",+ "acsUrl": "URL de ACS",+ "spEntityId": "Entity ID e metadados"+ }+ }}}diff --git a/apps/web/messages/ru/sections.json b/apps/web/messages/ru/sections.jsonindex 2a364627..68067513 100644--- a/apps/web/messages/ru/sections.json+++ b/apps/web/messages/ru/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "Управление",- "instance": "Инстанс"+ "instance": "Инстанс",+ "security": "Безопасность"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "Позвольте поставщику удостоверений создавать, обновлять и отключать учётные записи на этом сервере и давать доступ к проектам через свои группы."+ },+ "audit-log": {+ "label": "Журнал аудита",+ "description": "Кто, что и когда сделал в этом инстансе и откуда."}},"settings": {@@ -109,5 +114,75 @@"label": "ИИ-агенты","description": "ИИ-агенты, которые работают в этом проекте."}+ },+ "previews": {+ "available": "Доступно в Cloud и в Pro-версии для своего сервера.",+ "dashboard": {+ "title": "Дашборд",+ "description": "Активность в командах и проектах этого воркспейса.",+ "summary": {+ "teams": "Команды",+ "projects": "Проекты",+ "people": "Люди",+ "agents": "AI-агенты",+ "openIssues": "Открытые задачи",+ "storage": "Хранилище"+ },+ "blocks": {+ "agents": "AI-агенты",+ "schedules": "Запуски по расписанию",+ "time": "Учтённое время",+ "flow": "Поток задач",+ "projects": "Активные проекты",+ "teams": "Активные команды"+ }+ },+ "agentBudgets": {+ "title": "Бюджеты на ИИ",+ "description": "Лимиты на то, сколько агенты тратят на модели.",+ "workspace": "Всё пространство",+ "figures": {+ "spent": "Потрачено",+ "limit": "Лимит",+ "left": "Осталось",+ "forecast": "Прогноз к концу срока"+ },+ "list": "Бюджеты",+ "columns": {+ "budget": "Бюджет",+ "spent": "Потрачено"+ }+ },+ "auditLog": {+ "title": "Журнал аудита",+ "description": "Кто что делал в этом воркспейсе, его командах и проектах, и когда его участники входили.",+ "columns": {+ "time": "Время",+ "actor": "Кто",+ "action": "Действие",+ "where": "Где",+ "from": "Откуда"+ }+ },+ "emailDomains": {+ "title": "Домены почты",+ "description": "Выберите, с каких доменов почты можно вступить в этот воркспейс.",+ "label": "Разрешённые домены почты",+ "hint": "Пригласить или добавить через SCIM можно только адреса на этих доменах, и приглашённые могут зарегистрироваться с ними. Оставьте пустым, чтобы действовали домены инстанса. Текущие участники сохраняют доступ."+ },+ "sso": {+ "title": "Единый вход",+ "description": "Пусть люди этого воркспейса входят через поставщика удостоверений вашей компании.",+ "provider": "Поставщик удостоверений",+ "providerHint": "Введите данные, которые выдал ваш поставщик удостоверений, и добавьте у него адреса ниже.",+ "fields": {+ "domains": "Домены почты",+ "entryPoint": "URL входа",+ "entityId": "Entity ID поставщика",+ "certificate": "Сертификат подписи",+ "acsUrl": "ACS URL",+ "spEntityId": "Entity ID и метаданные"+ }+ }}}diff --git a/apps/web/messages/uk/sections.json b/apps/web/messages/uk/sections.jsonindex b33a8768..4b6476c5 100644--- a/apps/web/messages/uk/sections.json+++ b/apps/web/messages/uk/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "Керування",- "instance": "Інстанс"+ "instance": "Інстанс",+ "security": "Безпека"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "Дозвольте постачальнику ідентифікації створювати, оновлювати та вимикати облікові записи на цьому сервері й надавати доступ до проєктів через свої групи."+ },+ "audit-log": {+ "label": "Журнал аудиту",+ "description": "Хто, що і коли зробив у цьому інстансі та звідки."}},"settings": {@@ -109,5 +114,75 @@"label": "ШІ-агенти","description": "ШІ-агенти, які працюють у цьому проєкті."}+ },+ "previews": {+ "available": "Доступно в Cloud і в Pro-версії для власного сервера.",+ "dashboard": {+ "title": "Дашборд",+ "description": "Активність у командах і проєктах цього воркспейсу.",+ "summary": {+ "teams": "Команди",+ "projects": "Проєкти",+ "people": "Люди",+ "agents": "AI-агенти",+ "openIssues": "Відкриті задачі",+ "storage": "Сховище"+ },+ "blocks": {+ "agents": "AI-агенти",+ "schedules": "Запуски за розкладом",+ "time": "Облікований час",+ "flow": "Потік задач",+ "projects": "Активні проєкти",+ "teams": "Активні команди"+ }+ },+ "agentBudgets": {+ "title": "Бюджети на ШІ",+ "description": "Ліміти на те, скільки агенти витрачають на моделі.",+ "workspace": "Увесь простір",+ "figures": {+ "spent": "Витрачено",+ "limit": "Ліміт",+ "left": "Залишилося",+ "forecast": "Прогноз до кінця строку"+ },+ "list": "Бюджети",+ "columns": {+ "budget": "Бюджет",+ "spent": "Витрачено"+ }+ },+ "auditLog": {+ "title": "Журнал аудиту",+ "description": "Хто що робив у цьому воркспейсі, його командах і проєктах, і коли його учасники входили.",+ "columns": {+ "time": "Час",+ "actor": "Хто",+ "action": "Дія",+ "where": "Де",+ "from": "Звідки"+ }+ },+ "emailDomains": {+ "title": "Домени пошти",+ "description": "Виберіть, з яких доменів пошти можна приєднатися до цього воркспейсу.",+ "label": "Дозволені домени пошти",+ "hint": "Запросити або додати через SCIM можна лише адреси на цих доменах, і запрошені можуть зареєструватися з ними. Залиште порожнім, щоб діяли домени інстансу. Поточні учасники зберігають доступ."+ },+ "sso": {+ "title": "Єдиний вхід",+ "description": "Нехай люди цього воркспейсу входять через постачальника ідентифікації вашої компанії.",+ "provider": "Постачальник ідентифікації",+ "providerHint": "Введіть дані, які видав ваш постачальник ідентифікації, і додайте в нього адреси нижче.",+ "fields": {+ "domains": "Домени пошти",+ "entryPoint": "URL входу",+ "entityId": "Entity ID постачальника",+ "certificate": "Сертифікат підпису",+ "acsUrl": "ACS URL",+ "spEntityId": "Entity ID і метадані"+ }+ }}}diff --git a/apps/web/messages/zh-CN/sections.json b/apps/web/messages/zh-CN/sections.jsonindex acd89423..5459449d 100644--- a/apps/web/messages/zh-CN/sections.json+++ b/apps/web/messages/zh-CN/sections.json@@ -8,7 +8,8 @@},"godGroups": {"management": "管理",- "instance": "实例"+ "instance": "实例",+ "security": "安全"},"god": {"users": {@@ -54,6 +55,10 @@"scim": {"label": "SCIM","description": "让身份提供方在此实例上创建、更新和停用账号,并通过其群组授予项目访问权限。"+ },+ "audit-log": {+ "label": "审计日志",+ "description": "谁在此实例上做了什么、何时以及从何处操作。"}},"settings": {@@ -109,5 +114,75 @@"label": "AI 代理","description": "在该项目中工作的 AI 代理。"}+ },+ "previews": {+ "available": "可在 Cloud 和自托管 Pro 版中使用。",+ "dashboard": {+ "title": "仪表盘",+ "description": "此工作区中各团队和项目的动态。",+ "summary": {+ "teams": "团队",+ "projects": "项目",+ "people": "人员",+ "agents": "AI 代理",+ "openIssues": "未完成工作项",+ "storage": "存储"+ },+ "blocks": {+ "agents": "AI 代理",+ "schedules": "计划运行",+ "time": "已记录工时",+ "flow": "工作项流转",+ "projects": "活跃项目",+ "teams": "活跃团队"+ }+ },+ "agentBudgets": {+ "title": "AI 预算",+ "description": "限制代理在模型上的花费。",+ "workspace": "整个工作区",+ "figures": {+ "spent": "已用",+ "limit": "限额",+ "left": "剩余",+ "forecast": "本周期预计花费"+ },+ "list": "预算",+ "columns": {+ "budget": "预算",+ "spent": "已用"+ }+ },+ "auditLog": {+ "title": "审计日志",+ "description": "此工作区及其团队和项目中谁做了什么,以及成员何时登录。",+ "columns": {+ "time": "时间",+ "actor": "操作人",+ "action": "操作",+ "where": "位置",+ "from": "来源"+ }+ },+ "emailDomains": {+ "title": "邮箱域名",+ "description": "选择哪些邮箱域名可以加入此工作区。",+ "label": "允许的邮箱域名",+ "hint": "只有这些域名的地址才能被邀请或通过 SCIM 添加,被邀请的人也可以用它们注册。留空则使用实例的域名。现有成员保留访问权限。"+ },+ "sso": {+ "title": "单点登录",+ "description": "让此工作区的成员使用你公司的身份提供方登录。",+ "provider": "身份提供方",+ "providerHint": "填写身份提供方给你的信息,然后把下面的地址添加到身份提供方。",+ "fields": {+ "domains": "邮箱域名",+ "entryPoint": "登录 URL",+ "entityId": "身份提供方 Entity ID",+ "certificate": "签名证书",+ "acsUrl": "ACS URL",+ "spEntityId": "Entity ID 和元数据"+ }+ }}}diff --git a/apps/web/src/ce/godSections.ts b/apps/web/src/ce/godSections.tsindex 65acd565..d091a27b 100644--- a/apps/web/src/ce/godSections.ts+++ b/apps/web/src/ce/godSections.ts@@ -1,8 +1,13 @@+import { ScrollText } from 'lucide-react';import type { GodSection } from '@/utils/godSections';+import GodAuditLogPage from '@/features/god/GodAuditLogPage';-// A self-hosted instance lists the core's god mode sections as they are. The hosted-// build returns them with its own added, such as billing, or with one replaced or left-// out.+// A self-hosted instance lists the core's god mode sections and a preview of the audit+// log the hosted build and Pro add. The hosted build returns the core's with its own+// added, such as billing, or with one replaced or left out.export default function godSections(core: GodSection[]): GodSection[] {- return core;+ return [+ ...core,+ { slug: 'audit-log', group: 'security', icon: ScrollText, Component: GodAuditLogPage },+ ];}diff --git a/apps/web/src/ce/useWorkspaceSections.ts b/apps/web/src/ce/useWorkspaceSections.tsindex 1c4fb847..03c413cc 100644--- a/apps/web/src/ce/useWorkspaceSections.ts+++ b/apps/web/src/ce/useWorkspaceSections.ts@@ -1,12 +1,81 @@+'use client';++import {+ AtSign,+ KeyRound,+ LayoutDashboard,+ ScrollText,+ UsersRound,+ WalletCards,+} from 'lucide-react';+import { useTranslations } from 'next-intl';import type { WorkspaceSummary } from '@/lib/api/endpoints/workspaces';import type { WorkspaceSection } from '@/features/teams/types/workspaceSection';+import WorkspaceAgentBudgetsPreview from '@/features/teams/components/workspace/preview/WorkspaceAgentBudgetsPreview';+import WorkspaceAuditLogPreview from '@/features/teams/components/workspace/preview/WorkspaceAuditLogPreview';+import WorkspaceDashboardPreview from '@/features/teams/components/workspace/preview/WorkspaceDashboardPreview';+import WorkspaceEmailDomainsPreview from '@/features/teams/components/workspace/preview/WorkspaceEmailDomainsPreview';+import WorkspaceScimPreview from '@/features/teams/components/workspace/preview/WorkspaceScimPreview';+import WorkspaceSsoPreview from '@/features/teams/components/workspace/preview/WorkspaceSsoPreview';-// A self-hosted instance lists the core's workspace settings sections as they are. The-// hosted build returns them with its own added at any position, such as single sign-on-// and billing, or with one left out.+// A self-hosted instance lists the core's workspace settings sections, then previews of+// the sections the hosted build and Pro add; they come after the core's, so a workspace+// opens on a section it has. Those of the settings are the owner's, as they are there.+// The hosted build returns the core's with its own added at any position, such as+// single sign-on and billing, or with one left out.export default function useWorkspaceSections(- _workspace: WorkspaceSummary,+ workspace: WorkspaceSummary,core: WorkspaceSection[],): WorkspaceSection[] {- return core;+ const t = useTranslations('sections.previews');+ const tTeams = useTranslations('teams.workspace');+ const sections: WorkspaceSection[] = [+ ...core,+ {+ id: 'dashboard',+ label: t('dashboard.title'),+ icon: LayoutDashboard,+ group: 'overview',+ Component: WorkspaceDashboardPreview,+ },+ {+ id: 'agent-budgets',+ label: t('agentBudgets.title'),+ icon: WalletCards,+ group: 'overview',+ Component: WorkspaceAgentBudgetsPreview,+ },+ {+ id: 'audit-log',+ label: t('auditLog.title'),+ icon: ScrollText,+ group: 'overview',+ Component: WorkspaceAuditLogPreview,+ },+ ];+ if (workspace.role !== 'owner') return sections;+ return [+ ...sections,+ {+ id: 'email-domains',+ label: t('emailDomains.title'),+ icon: AtSign,+ group: 'settings',+ Component: WorkspaceEmailDomainsPreview,+ },+ {+ id: 'sso',+ label: t('sso.title'),+ icon: KeyRound,+ group: 'settings',+ Component: WorkspaceSsoPreview,+ },+ {+ id: 'scim',+ label: tTeams('scim.title'),+ icon: UsersRound,+ group: 'settings',+ Component: WorkspaceScimPreview,+ },+ ];}diff --git a/apps/web/src/components/common/page/AuditLogPreview.tsx b/apps/web/src/components/common/page/AuditLogPreview.tsxnew file mode 100644index 00000000..c56debc6--- /dev/null+++ b/apps/web/src/components/common/page/AuditLogPreview.tsx@@ -0,0 +1,55 @@+'use client';++import { useTranslations } from 'next-intl';+import { Skeleton } from '@/components/ui/skeleton';+import { cn } from '@/lib/utils';++const ROW_GRID = 'grid min-w-[900px] grid-cols-[16%_20%_28%_18%_18%] border-b';++const COLUMNS = ['time', 'actor', 'action', 'where', 'from'] as const;++const ROWS = [+ ['70%', '55%', '80%', '60%', '50%'],+ ['65%', '70%', '60%', '45%', '55%'],+ ['70%', '50%', '90%', '70%', '45%'],+ ['60%', '65%', '55%', '50%', '60%'],+ ['70%', '45%', '75%', '65%', '50%'],+ ['65%', '60%', '65%', '40%', '55%'],+ ['70%', '55%', '85%', '55%', '45%'],+ ['60%', '70%', '50%', '60%', '60%'],+];++// The audit log of a workspace and of the instance: the search, the period, the export+// and the table of events.+export default function AuditLogPreview() {+ const t = useTranslations('sections.previews.auditLog');++ return (+ <div className="space-y-4">+ <div className="flex flex-wrap items-center gap-2">+ <Skeleton className="h-9 min-w-64 flex-1" />+ <Skeleton className="h-9 w-52" />+ <Skeleton className="h-9 w-28" />+ </div>+ <div className="overflow-hidden">+ <div className={cn(ROW_GRID, 'py-2 text-xs font-medium text-muted-foreground')}>+ {COLUMNS.map((column) => (+ <span key={column} className="px-3">+ {t(`columns.${column}`)}+ </span>+ ))}+ </div>+ {ROWS.map((widths, row) => (+ <div key={row} className={cn(ROW_GRID, 'py-3')}>+ {widths.map((width, cell) => (+ <div key={cell} className="space-y-1.5 px-3">+ <Skeleton className="h-3.5" style={{ width }} />+ {cell === 1 && <Skeleton className="h-2.5 w-2/5" />}+ </div>+ ))}+ </div>+ ))}+ </div>+ </div>+ );+}diff --git a/apps/web/src/components/common/page/SectionPreview.tsx b/apps/web/src/components/common/page/SectionPreview.tsxnew file mode 100644index 00000000..741ded47--- /dev/null+++ b/apps/web/src/components/common/page/SectionPreview.tsx@@ -0,0 +1,37 @@+'use client';++import type { ReactNode } from 'react';+import { ExternalLink, Lock } from 'lucide-react';+import { useTranslations } from 'next-intl';+import { Button } from '@/components/ui/button';+import { PRO_URL } from '@/utils/app';++// A section the hosted build and Pro add: where it is available, over the page laid out+// as it is there, with skeletons in place of the figures.+export default function SectionPreview({ children }: { children: ReactNode }) {+ const t = useTranslations('sections.previews');+ const tCommon = useTranslations('common');++ return (+ <div className="flex flex-col gap-8 pb-10">+ <div className="flex flex-wrap items-center justify-between gap-2 rounded-xl border border-dashed px-4 py-2">+ <p className="flex items-center gap-2 text-sm text-muted-foreground">+ <Lock className="size-4 shrink-0" />+ {t('available')}+ </p>+ <Button variant="ghost" size="sm" asChild>+ <a href={PRO_URL} target="_blank" rel="noreferrer">+ {tCommon('aboutCloudAndPro')}+ <ExternalLink />+ </a>+ </Button>+ </div>+ <div+ className="pointer-events-none select-none [&_[data-slot=skeleton]]:animate-none"+ aria-hidden+ >+ {children}+ </div>+ </div>+ );+}diff --git a/apps/web/src/features/god/GodAuditLogPage.tsx b/apps/web/src/features/god/GodAuditLogPage.tsxnew file mode 100644index 00000000..3ec860be--- /dev/null+++ b/apps/web/src/features/god/GodAuditLogPage.tsx@@ -0,0 +1,15 @@+'use client';++import AuditLogPreview from '@/components/common/page/AuditLogPreview';+import SectionPreview from '@/components/common/page/SectionPreview';+import GodSectionPage from './components/GodSectionPage';++export default function GodAuditLogPage() {+ return (+ <GodSectionPage slug="audit-log" widthClassName="max-w-none">+ <SectionPreview>+ <AuditLogPreview />+ </SectionPreview>+ </GodSectionPage>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspaceAgentBudgetsPreview.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspaceAgentBudgetsPreview.tsxnew file mode 100644index 00000000..8be1f464--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspaceAgentBudgetsPreview.tsx@@ -0,0 +1,40 @@+'use client';++import { useTranslations } from 'next-intl';+import SectionPageView from '@/components/common/page/SectionPageView';+import SectionPreview from '@/components/common/page/SectionPreview';+import { Skeleton } from '@/components/ui/skeleton';+import WorkspacePreviewBudgetList from './WorkspacePreviewBudgetList';+import WorkspacePreviewSpendChart from './WorkspacePreviewSpendChart';++const FIGURES = ['spent', 'limit', 'left', 'forecast'] as const;++export default function WorkspaceAgentBudgetsPreview() {+ const t = useTranslations('sections.previews.agentBudgets');++ return (+ <SectionPageView title={t('title')} description={t('description')} wide>+ <SectionPreview>+ <div className="flex flex-col gap-10">+ <section className="flex flex-col gap-5">+ <header className="flex flex-wrap items-baseline gap-x-3 border-b border-border pb-3">+ <h2 className="text-base font-semibold">{t('workspace')}</h2>+ <Skeleton className="h-3 w-40" />+ </header>+ <div className="grid grid-cols-[repeat(auto-fit,minmax(12rem,1fr))] gap-6">+ {FIGURES.map((figure) => (+ <div key={figure} className="flex flex-col gap-2">+ <span className="text-xs text-muted-foreground">{t(`figures.${figure}`)}</span>+ <Skeleton className="h-9 w-28" />+ <Skeleton className="h-3 w-36" />+ </div>+ ))}+ </div>+ <WorkspacePreviewSpendChart />+ </section>+ <WorkspacePreviewBudgetList />+ </div>+ </SectionPreview>+ </SectionPageView>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspaceAuditLogPreview.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspaceAuditLogPreview.tsxnew file mode 100644index 00000000..14a0a062--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspaceAuditLogPreview.tsx@@ -0,0 +1,18 @@+'use client';++import { useTranslations } from 'next-intl';+import AuditLogPreview from '@/components/common/page/AuditLogPreview';+import SectionPageView from '@/components/common/page/SectionPageView';+import SectionPreview from '@/components/common/page/SectionPreview';++export default function WorkspaceAuditLogPreview() {+ const t = useTranslations('sections.previews.auditLog');++ return (+ <SectionPageView title={t('title')} description={t('description')} wide>+ <SectionPreview>+ <AuditLogPreview />+ </SectionPreview>+ </SectionPageView>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspaceDashboardPreview.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspaceDashboardPreview.tsxnew file mode 100644index 00000000..0e40e82e--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspaceDashboardPreview.tsx@@ -0,0 +1,82 @@+'use client';++import { useTranslations } from 'next-intl';+import SectionPageView from '@/components/common/page/SectionPageView';+import SectionPreview from '@/components/common/page/SectionPreview';+import { Skeleton } from '@/components/ui/skeleton';+import WorkspacePreviewBlock from './WorkspacePreviewBlock';++const DAYS = [+ 20, 35, 15, 40, 55, 30, 10, 45, 60, 35, 25, 50, 70, 40, 20, 55, 65, 30, 45, 80, 50, 35, 60, 75,+ 40, 25, 55, 70, 45, 60,+];++const SUMMARY = ['teams', 'projects', 'people', 'agents'] as const;+const TOTALS = ['openIssues', 'storage'] as const;++export default function WorkspaceDashboardPreview() {+ const t = useTranslations('sections.previews.dashboard');++ return (+ <SectionPageView title={t('title')} description={t('description')} wide>+ <SectionPreview>+ <div className="flex flex-col gap-10">+ <div className="flex flex-wrap gap-y-4 rounded-xl bg-muted/50 py-4">+ <div className="grid min-w-0 flex-[4_1_440px] grid-cols-4 gap-4 px-6">+ {SUMMARY.map((key) => (+ <div key={key} className="min-w-0 space-y-1.5">+ <Skeleton className="h-8 w-12" />+ <p className="truncate text-sm text-muted-foreground">{t(`summary.${key}`)}</p>+ </div>+ ))}+ </div>+ <div className="grid min-w-0 flex-[2_1_240px] grid-cols-2 gap-4 border-s border-border/60 px-6">+ {TOTALS.map((key) => (+ <div key={key} className="min-w-0 space-y-1.5">+ <Skeleton className="h-8 w-16" />+ <p className="truncate text-sm text-muted-foreground">{t(`summary.${key}`)}</p>+ </div>+ ))}+ </div>+ </div>+ <div className="grid gap-x-12 gap-y-10 lg:grid-cols-12">+ <WorkspacePreviewBlock+ title={t('blocks.agents')}+ className="lg:col-span-7"+ bars={DAYS}+ rows={3}+ />+ <WorkspacePreviewBlock+ title={t('blocks.schedules')}+ className="lg:col-span-5"+ rows={5}+ />+ <WorkspacePreviewBlock+ title={t('blocks.time')}+ className="lg:col-span-7"+ bars={[...DAYS].reverse()}+ rows={3}+ />+ <WorkspacePreviewBlock+ title={t('blocks.flow')}+ className="lg:col-span-5"+ bars={[60, 85, 45, 70, 55]}+ />+ <WorkspacePreviewBlock+ title={t('blocks.projects')}+ className="lg:col-span-7"+ figures={false}+ rows={5}+ />+ <WorkspacePreviewBlock+ title={t('blocks.teams')}+ className="lg:col-span-5"+ figures={false}+ rows={5}+ />+ </div>+ </div>+ </SectionPreview>+ </SectionPageView>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspaceEmailDomainsPreview.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspaceEmailDomainsPreview.tsxnew file mode 100644index 00000000..36a80307--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspaceEmailDomainsPreview.tsx@@ -0,0 +1,26 @@+'use client';++import { useTranslations } from 'next-intl';+import SectionPageView from '@/components/common/page/SectionPageView';+import SectionPreview from '@/components/common/page/SectionPreview';+import SettingsCard from '@/components/common/page/SettingsCard';+import SettingsRow from '@/components/common/page/SettingsRow';+import { Skeleton } from '@/components/ui/skeleton';++export default function WorkspaceEmailDomainsPreview() {+ const t = useTranslations('sections.previews.emailDomains');++ return (+ <SectionPageView title={t('title')} description={t('description')}>+ <SectionPreview>+ <SettingsCard>+ <SettingsRow+ title={t('label')}+ description={t('hint')}+ control={<Skeleton className="h-9 w-40 shrink-0 sm:w-72" />}+ />+ </SettingsCard>+ </SectionPreview>+ </SectionPageView>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewBlock.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewBlock.tsxnew file mode 100644index 00000000..4f755fb5--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewBlock.tsx@@ -0,0 +1,66 @@+'use client';++import { Skeleton } from '@/components/ui/skeleton';+import { cn } from '@/lib/utils';++// `bars` are the heights of the bars, in percent.+export default function WorkspacePreviewBlock({+ title,+ className,+ figures = true,+ bars,+ rows = 0,+}: {+ title: string;+ className?: string;+ figures?: boolean;+ bars?: number[];+ rows?: number;+}) {+ return (+ <section className={cn('flex min-w-0 flex-col', className)}>+ <h3 className="mb-4 truncate border-b border-border/60 pb-2 text-sm font-semibold tracking-tight">+ {title}+ </h3>+ <div className="flex flex-col gap-6">+ {figures && (+ <div className="flex flex-wrap gap-x-10 gap-y-4">+ {['w-24', 'w-16'].map((width) => (+ <div key={width} className="space-y-2">+ <Skeleton className={cn('h-9', width)} />+ <Skeleton className="h-3 w-28" />+ </div>+ ))}+ </div>+ )}+ {bars && (+ <div dir="ltr" className="flex h-22 items-end gap-[3px] border-b border-border/60">+ {bars.map((height, index) => (+ <Skeleton+ key={index}+ className="flex-1 rounded-sm"+ style={{ height: `${height}%` }}+ />+ ))}+ </div>+ )}+ {rows > 0 && (+ <ul>+ {Array.from({ length: rows }, (_, index) => (+ <li+ key={index}+ className="flex items-center justify-between gap-4 border-b border-border/60 py-2.5"+ >+ <div className="min-w-0 flex-1 space-y-1.5">+ <Skeleton className="h-3.5" style={{ width: `${55 - index * 6}%` }} />+ <Skeleton className="h-2.5 w-1/4" />+ </div>+ <Skeleton className="h-3.5 w-12" />+ </li>+ ))}+ </ul>+ )}+ </div>+ </section>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewBudgetList.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewBudgetList.tsxnew file mode 100644index 00000000..997a96dd--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewBudgetList.tsx@@ -0,0 +1,65 @@+'use client';++import { ChevronRight } from 'lucide-react';+import { useTranslations } from 'next-intl';+import { Skeleton } from '@/components/ui/skeleton';+import { cn } from '@/lib/utils';++const ROW_GRID =+ 'grid grid-cols-[minmax(15rem,20rem)_minmax(15rem,1fr)_14rem] items-center gap-4 px-2';++// Where the limit sits on the track, which runs on to 160% of it.+const LIMIT_AT = '62.5%';++const SPENT = ['45%', '58%', '30%', '66%', '20%'];++// The budgets of the people, the teams and the projects, each with how much of it is spent.+export default function WorkspacePreviewBudgetList() {+ const t = useTranslations('sections.previews.agentBudgets');++ return (+ <section className="flex flex-col gap-4">+ <h2 className="text-base font-semibold">{t('list')}</h2>+ <div className="overflow-hidden">+ <div className="min-w-[50rem]">+ <div className={cn(ROW_GRID, 'border-b pb-2 text-xs text-muted-foreground')}>+ <span>{t('columns.budget')}</span>+ <span dir="ltr" className="relative h-4">+ <span className="absolute left-0">0%</span>+ <span+ className="absolute -translate-x-1/2 font-medium text-destructive"+ style={{ left: LIMIT_AT }}+ >+ 100%+ </span>+ </span>+ <span className="text-end">{t('columns.spent')}</span>+ </div>+ {SPENT.map((spent, index) => (+ <div key={spent} className={cn(ROW_GRID, 'border-b py-2.5')}>+ <div className="flex min-w-0 items-center gap-2">+ <ChevronRight className="size-3.5 shrink-0 text-muted-foreground rtl:rotate-180" />+ <div className="min-w-0 flex-1 space-y-1.5">+ <Skeleton className="h-3.5" style={{ width: `${70 - index * 8}%` }} />+ <Skeleton className="h-2.5 w-2/5" />+ </div>+ </div>+ <div dir="ltr" className="relative h-[22px]">+ <div className="absolute inset-x-0 inset-y-[7px] rounded-full bg-muted" />+ <Skeleton+ className="absolute inset-y-[7px] left-0 rounded-full bg-muted-foreground/25"+ style={{ width: spent }}+ />+ <div+ className="absolute inset-y-0.5 -ml-px w-0.5 rounded-full bg-destructive/50"+ style={{ left: LIMIT_AT }}+ />+ </div>+ <Skeleton className="ms-auto h-3.5 w-28" />+ </div>+ ))}+ </div>+ </div>+ </section>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewField.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewField.tsxnew file mode 100644index 00000000..302262dc--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewField.tsx@@ -0,0 +1,21 @@+'use client';++import { Skeleton } from '@/components/ui/skeleton';++export default function WorkspacePreviewField({+ label,+ hint,+ tall = false,+}: {+ label: string;+ hint?: string;+ tall?: boolean;+}) {+ return (+ <div className="space-y-1.5">+ <div className="text-sm font-medium">{label}</div>+ <Skeleton className={tall ? 'h-24' : 'h-9'} />+ {hint && <p className="text-xs text-muted-foreground">{hint}</p>}+ </div>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewSpendChart.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewSpendChart.tsxnew file mode 100644index 00000000..8f5fc14e--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspacePreviewSpendChart.tsx@@ -0,0 +1,59 @@+'use client';++import { Skeleton } from '@/components/ui/skeleton';++// The spend over the period so far, rising towards the limit drawn across the chart.+const SPENT = '0,98 20,94 40,90 60,83 80,79 100,71 120,66 140,58 160,55 180,47';+const FORECAST = '180,47 220,34 260,22 300,10';++export default function WorkspacePreviewSpendChart() {+ return (+ <div className="space-y-2">+ <div className="flex gap-4">+ <Skeleton className="h-3 w-16" />+ <Skeleton className="h-3 w-20" />+ <Skeleton className="h-3 w-24" />+ </div>+ <svg+ viewBox="0 0 300 100"+ preserveAspectRatio="none"+ className="h-[240px] w-full overflow-visible"+ >+ {[25, 50, 75, 100].map((y) => (+ <line+ key={y}+ x1={0}+ x2={300}+ y1={y}+ y2={y}+ className="stroke-border"+ vectorEffect="non-scaling-stroke"+ />+ ))}+ <line+ x1={0}+ x2={300}+ y1={18}+ y2={18}+ className="stroke-destructive/40"+ vectorEffect="non-scaling-stroke"+ />+ <polyline+ points={SPENT}+ fill="none"+ strokeWidth={2}+ className="stroke-muted-foreground/40"+ vectorEffect="non-scaling-stroke"+ />+ <polyline+ points={FORECAST}+ fill="none"+ strokeWidth={2}+ strokeDasharray="4 4"+ className="stroke-muted-foreground/30"+ vectorEffect="non-scaling-stroke"+ />+ </svg>+ </div>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspaceScimPreview.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspaceScimPreview.tsxnew file mode 100644index 00000000..0693f78d--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspaceScimPreview.tsx@@ -0,0 +1,55 @@+'use client';++import { useTranslations } from 'next-intl';+import SectionPageView from '@/components/common/page/SectionPageView';+import SectionPreview from '@/components/common/page/SectionPreview';+import SettingsCard from '@/components/common/page/SettingsCard';+import SettingsSection from '@/components/common/page/SettingsSection';+import { Skeleton } from '@/components/ui/skeleton';+import WorkspacePreviewField from './WorkspacePreviewField';++const GROUPS = ['40%', '55%', '30%'];++// The workspace's own SCIM, laid out as WorkspaceScimSettings lays it out.+export default function WorkspaceScimPreview() {+ const t = useTranslations('teams.workspace.scim');++ return (+ <SectionPageView title={t('title')} description={t('description')}>+ <SectionPreview>+ <div className="space-y-10">+ <SettingsSection+ title={t('provisioning')}+ description={t('provisioningConfigured')}+ action={<Skeleton className="h-5 w-9 rounded-full" />}+ >+ <SettingsCard className="space-y-6 p-4">+ <div className="flex items-start justify-between gap-4">+ <div className="min-w-0 space-y-1">+ <div className="text-sm font-medium">{t('token')}</div>+ <Skeleton className="h-3 w-24" />+ <p className="text-xs text-muted-foreground">{t('tokenHint')}</p>+ </div>+ <Skeleton className="h-8 w-32 shrink-0" />+ </div>+ <WorkspacePreviewField label={t('baseUrl')} hint={t('baseUrlHint')} />+ </SettingsCard>+ </SettingsSection>+ <SettingsSection title={t('groups')} description={t('groupsHint')}>+ <SettingsCard className="divide-y divide-border/60">+ {GROUPS.map((width) => (+ <div key={width} className="flex items-center justify-between gap-4 p-4">+ <div className="min-w-0 flex-1 space-y-1.5">+ <Skeleton className="h-3.5" style={{ width }} />+ <Skeleton className="h-2.5 w-20" />+ </div>+ <Skeleton className="h-3 w-24" />+ </div>+ ))}+ </SettingsCard>+ </SettingsSection>+ </div>+ </SectionPreview>+ </SectionPageView>+ );+}diff --git a/apps/web/src/features/teams/components/workspace/preview/WorkspaceSsoPreview.tsx b/apps/web/src/features/teams/components/workspace/preview/WorkspaceSsoPreview.tsxnew file mode 100644index 00000000..1917d628--- /dev/null+++ b/apps/web/src/features/teams/components/workspace/preview/WorkspaceSsoPreview.tsx@@ -0,0 +1,44 @@+'use client';++import { useTranslations } from 'next-intl';+import SectionPageView from '@/components/common/page/SectionPageView';+import SectionPreview from '@/components/common/page/SectionPreview';+import SettingsCard from '@/components/common/page/SettingsCard';+import SettingsSection from '@/components/common/page/SettingsSection';+import { Skeleton } from '@/components/ui/skeleton';+import WorkspacePreviewField from './WorkspacePreviewField';++const FIELDS = [+ 'domains',+ 'entryPoint',+ 'entityId',+ 'certificate',+ 'acsUrl',+ 'spEntityId',+] as const;++export default function WorkspaceSsoPreview() {+ const t = useTranslations('sections.previews.sso');++ return (+ <SectionPageView title={t('title')} description={t('description')}>+ <SectionPreview>+ <SettingsSection+ title={t('provider')}+ description={t('providerHint')}+ action={<Skeleton className="h-8 w-28" />}+ >+ <SettingsCard className="space-y-6 p-4">+ {FIELDS.map((field) => (+ <WorkspacePreviewField+ key={field}+ label={t(`fields.${field}`)}+ tall={field === 'certificate'}+ />+ ))}+ </SettingsCard>+ </SettingsSection>+ </SectionPreview>+ </SectionPageView>+ );+}