From 79336ae3d791b51721fab243c149ebc0aefe6262 Mon Sep 17 00:00:00 2001 From: Hydra Date: Thu, 12 Nov 2026 17:03:58 +0200 Subject: [PATCH] update --- .../services/application-identity.test.ts | 101 + apps/dashboard/scripts/check-i18n.mjs | 25 +- apps/dashboard/src/app/(auth)/login/page.tsx | 6 +- .../[slug]/components/CloudWaitlistModal.tsx | 8 +- .../backups/backups-pages.test.tsx | 2 +- .../billing-overview-layout.render.test.tsx | 2 +- .../(dashboard)/billing/manage/page.test.tsx | 6 +- .../setup-error-banner.render.test.tsx | 2 +- .../(dashboard)/library/LibraryContent.tsx | 299 ++ .../src/app/(dashboard)/library/layout.tsx | 13 + .../app/(dashboard)/library/migrate/page.tsx | 4 + .../src/app/(dashboard)/library/page.test.tsx | 79 +- .../src/app/(dashboard)/library/page.tsx | 262 +- .../[id]/components/BuildSettings.tsx | 201 +- .../[id]/components/EnvVarsEditor.tsx | 468 +- .../projects/[id]/components/LogsSettings.tsx | 12 +- .../projects/[id]/components/ServicesTab.tsx | 289 +- .../components/UseInProjectModal.test.tsx | 4 +- .../[id]/components/environment-next.test.ts | 6 +- .../components/environment-scope.test.tsx | 158 +- .../components/routing-callout-reason.test.ts | 4 +- .../[id]/components/services-status.test.tsx | 64 +- .../services/ProjectApplicationCard.tsx | 59 - .../services/ProjectApplicationListItem.tsx | 34 + .../services/ProjectApplicationPanel.tsx | 187 + .../services/ServiceDetailPanel.tsx | 138 +- .../services/ServiceEnvironmentPanel.tsx | 204 +- .../components/services/ServiceListItem.tsx | 97 +- .../services/WorkloadDetailHeader.tsx | 142 + .../components/services/WorkloadListItem.tsx | 84 + .../src/app/(dashboard)/servers/page.tsx | 2 +- .../settings/_components/McpConnection.tsx | 4 +- .../settings/migration/switch-back/page.tsx | 2 +- .../src/app/(onboarding)/onboarding/page.tsx | 2 +- apps/dashboard/src/app/authorize/page.tsx | 2 +- .../src/app/cloud-connect-callback/page.tsx | 2 +- .../src/app/connections/callback/page.tsx | 6 +- apps/dashboard/src/app/global-error.tsx | 6 +- .../account-security.test.tsx | 4 +- .../actions/WorkflowChecks.test.tsx | 2 +- .../components/actions/WorkflowSetup.test.tsx | 12 +- .../src/components/apps/AppCatalog.tsx | 6 +- .../src/components/billing/BillingHome.tsx | 4 +- .../billing/ManagementAccess.test.tsx | 2 +- .../src/components/billing/ManagementPlan.tsx | 4 +- .../billing/ManagementPlanLayout.tsx | 2 +- .../cloud/CloudAuthorizationIdentity.test.tsx | 2 +- .../components/credentials/CredentialForm.tsx | 2 +- .../deployments/DeployCredentialModal.tsx | 14 +- .../github/CreateGitHubTokenLink.tsx | 2 +- .../import-project/BuildPages.test.tsx | 4 +- .../import-project/EnvironmentVariables.tsx | 2 +- .../components/ingress/IngressConnectForm.tsx | 2 +- .../components/instance/InstanceLocation.tsx | 4 +- .../src/components/issues/IssueList.test.tsx | 10 +- .../issues/MonitoringHealth.test.tsx | 2 +- .../src/components/issues/issue-fixtures.ts | 4 +- .../migration/MigrationProxyReview.tsx | 2 +- .../components/migration/MigrationWizard.tsx | 36 +- .../migration/PlatformImportReview.tsx | 4 +- .../migration/PlatformImportServices.tsx | 2 +- .../migration/platform-import-model.ts | 2 +- .../project-migration-card.render.test.tsx | 2 +- .../migration/server-migration-entry.test.tsx | 2 +- .../components/network-error-handler.test.tsx | 2 +- .../overview/AttentionCards.test.tsx | 4 +- .../project-settings/EnvironmentPanel.tsx | 70 + .../ProjectEnvironmentPanel.tsx | 405 ++ .../src/components/servers/ServerSwarm.tsx | 2 +- .../servers/clusters/ClusterDetail.tsx | 2 +- .../servers/server-form.render.test.tsx | 4 +- .../components/shared/ProjectStatusBadge.tsx | 4 +- .../shared/auto-dns-panel.render.test.tsx | 6 +- .../components/updates/UpdateCenter.test.tsx | 4 +- .../updates/useUpdates.requests.test.tsx | 2 +- apps/dashboard/src/context/CloudContext.tsx | 10 +- .../GitHubContext.personal-token.test.tsx | 2 +- .../context/GitHubContext.redirect.test.tsx | 2 +- apps/dashboard/src/i18n/i18n-parity.test.ts | 207 +- .../src/i18n/locales/ar/actions.json | 22 +- apps/dashboard/src/i18n/locales/ar/auth.json | 6 +- .../src/i18n/locales/ar/autoDns.json | 2 +- .../src/i18n/locales/ar/billing.json | 40 +- .../dashboard/src/i18n/locales/ar/chrome.json | 8 +- .../src/i18n/locales/ar/dashboard.json | 2 +- .../dashboard/src/i18n/locales/ar/deploy.json | 30 +- .../dashboard/src/i18n/locales/ar/emails.json | 8 +- .../src/i18n/locales/ar/emailsAdmin.json | 8 +- .../src/i18n/locales/ar/importProject.json | 14 +- .../src/i18n/locales/ar/ingress.json | 6 +- .../dashboard/src/i18n/locales/ar/issues.json | 16 +- .../src/i18n/locales/ar/library.json | 16 +- .../src/i18n/locales/ar/migration.json | 28 +- apps/dashboard/src/i18n/locales/ar/misc.json | 18 +- .../src/i18n/locales/ar/onboarding.json | 26 +- .../src/i18n/locales/ar/overview.json | 2 +- .../src/i18n/locales/ar/projectDetail.json | 12 +- .../src/i18n/locales/ar/projectSettings.json | 52 +- .../src/i18n/locales/ar/projects.json | 14 +- .../src/i18n/locales/ar/servers.json | 68 +- .../src/i18n/locales/ar/settings.json | 140 +- .../src/i18n/locales/ar/support.json | 6 +- .../src/i18n/locales/ar/widgets.json | 16 +- .../src/i18n/locales/de/actions.json | 22 +- apps/dashboard/src/i18n/locales/de/auth.json | 6 +- .../src/i18n/locales/de/autoDns.json | 2 +- .../src/i18n/locales/de/billing.json | 40 +- .../dashboard/src/i18n/locales/de/chrome.json | 8 +- .../src/i18n/locales/de/dashboard.json | 2 +- .../dashboard/src/i18n/locales/de/deploy.json | 30 +- .../dashboard/src/i18n/locales/de/emails.json | 8 +- .../src/i18n/locales/de/emailsAdmin.json | 8 +- .../src/i18n/locales/de/importProject.json | 14 +- .../src/i18n/locales/de/ingress.json | 6 +- .../dashboard/src/i18n/locales/de/issues.json | 16 +- .../src/i18n/locales/de/library.json | 16 +- .../src/i18n/locales/de/migration.json | 28 +- apps/dashboard/src/i18n/locales/de/misc.json | 18 +- .../src/i18n/locales/de/onboarding.json | 26 +- .../src/i18n/locales/de/overview.json | 2 +- .../src/i18n/locales/de/projectDetail.json | 12 +- .../src/i18n/locales/de/projectSettings.json | 52 +- .../src/i18n/locales/de/projects.json | 14 +- .../src/i18n/locales/de/servers.json | 66 +- .../src/i18n/locales/de/settings.json | 142 +- .../src/i18n/locales/de/support.json | 6 +- .../src/i18n/locales/de/widgets.json | 16 +- .../src/i18n/locales/en/actions.json | 22 +- apps/dashboard/src/i18n/locales/en/auth.json | 6 +- .../src/i18n/locales/en/autoDns.json | 2 +- .../src/i18n/locales/en/billing.json | 42 +- .../dashboard/src/i18n/locales/en/chrome.json | 6 +- .../src/i18n/locales/en/dashboard.json | 2 +- .../dashboard/src/i18n/locales/en/deploy.json | 30 +- .../dashboard/src/i18n/locales/en/emails.json | 8 +- .../src/i18n/locales/en/emailsAdmin.json | 8 +- .../src/i18n/locales/en/importProject.json | 14 +- .../src/i18n/locales/en/ingress.json | 6 +- .../dashboard/src/i18n/locales/en/issues.json | 14 +- .../src/i18n/locales/en/library.json | 20 +- .../src/i18n/locales/en/migration.json | 28 +- apps/dashboard/src/i18n/locales/en/misc.json | 18 +- .../src/i18n/locales/en/onboarding.json | 28 +- .../src/i18n/locales/en/overview.json | 2 +- .../src/i18n/locales/en/projectDetail.json | 16 +- .../src/i18n/locales/en/projectSettings.json | 52 +- .../src/i18n/locales/en/projects.json | 14 +- .../src/i18n/locales/en/servers.json | 68 +- .../src/i18n/locales/en/settings.json | 136 +- .../src/i18n/locales/en/support.json | 6 +- .../src/i18n/locales/en/widgets.json | 16 +- .../src/i18n/locales/es/actions.json | 22 +- apps/dashboard/src/i18n/locales/es/auth.json | 6 +- .../src/i18n/locales/es/autoDns.json | 2 +- .../src/i18n/locales/es/billing.json | 40 +- .../dashboard/src/i18n/locales/es/chrome.json | 6 +- .../src/i18n/locales/es/dashboard.json | 2 +- .../dashboard/src/i18n/locales/es/deploy.json | 30 +- .../dashboard/src/i18n/locales/es/emails.json | 8 +- .../src/i18n/locales/es/emailsAdmin.json | 8 +- .../src/i18n/locales/es/importProject.json | 14 +- .../src/i18n/locales/es/ingress.json | 6 +- .../dashboard/src/i18n/locales/es/issues.json | 16 +- .../src/i18n/locales/es/library.json | 16 +- .../src/i18n/locales/es/migration.json | 28 +- apps/dashboard/src/i18n/locales/es/misc.json | 18 +- .../src/i18n/locales/es/onboarding.json | 26 +- .../src/i18n/locales/es/overview.json | 2 +- .../src/i18n/locales/es/projectDetail.json | 12 +- .../src/i18n/locales/es/projectSettings.json | 52 +- .../src/i18n/locales/es/projects.json | 14 +- .../src/i18n/locales/es/servers.json | 68 +- .../src/i18n/locales/es/settings.json | 138 +- .../src/i18n/locales/es/support.json | 6 +- .../src/i18n/locales/es/widgets.json | 16 +- .../src/i18n/locales/fr/actions.json | 22 +- apps/dashboard/src/i18n/locales/fr/auth.json | 6 +- .../src/i18n/locales/fr/autoDns.json | 2 +- .../src/i18n/locales/fr/billing.json | 40 +- .../dashboard/src/i18n/locales/fr/chrome.json | 6 +- .../src/i18n/locales/fr/dashboard.json | 2 +- .../dashboard/src/i18n/locales/fr/deploy.json | 30 +- .../dashboard/src/i18n/locales/fr/emails.json | 8 +- .../src/i18n/locales/fr/emailsAdmin.json | 8 +- .../src/i18n/locales/fr/importProject.json | 14 +- .../src/i18n/locales/fr/ingress.json | 6 +- .../dashboard/src/i18n/locales/fr/issues.json | 16 +- .../src/i18n/locales/fr/library.json | 16 +- .../src/i18n/locales/fr/migration.json | 28 +- apps/dashboard/src/i18n/locales/fr/misc.json | 18 +- .../src/i18n/locales/fr/onboarding.json | 28 +- .../src/i18n/locales/fr/overview.json | 2 +- .../src/i18n/locales/fr/projectDetail.json | 16 +- .../src/i18n/locales/fr/projectSettings.json | 52 +- .../src/i18n/locales/fr/projects.json | 14 +- .../src/i18n/locales/fr/servers.json | 68 +- .../src/i18n/locales/fr/settings.json | 138 +- .../src/i18n/locales/fr/support.json | 6 +- .../src/i18n/locales/fr/widgets.json | 16 +- .../src/i18n/locales/ja/actions.json | 22 +- apps/dashboard/src/i18n/locales/ja/auth.json | 6 +- .../src/i18n/locales/ja/autoDns.json | 2 +- .../src/i18n/locales/ja/billing.json | 40 +- .../dashboard/src/i18n/locales/ja/chrome.json | 6 +- .../src/i18n/locales/ja/dashboard.json | 2 +- .../dashboard/src/i18n/locales/ja/deploy.json | 30 +- .../dashboard/src/i18n/locales/ja/emails.json | 8 +- .../src/i18n/locales/ja/emailsAdmin.json | 6 +- .../src/i18n/locales/ja/importProject.json | 14 +- .../src/i18n/locales/ja/ingress.json | 6 +- .../dashboard/src/i18n/locales/ja/issues.json | 16 +- .../src/i18n/locales/ja/library.json | 16 +- .../src/i18n/locales/ja/migration.json | 28 +- apps/dashboard/src/i18n/locales/ja/misc.json | 16 +- .../src/i18n/locales/ja/onboarding.json | 26 +- .../src/i18n/locales/ja/overview.json | 2 +- .../src/i18n/locales/ja/projectDetail.json | 12 +- .../src/i18n/locales/ja/projectSettings.json | 52 +- .../src/i18n/locales/ja/projects.json | 12 +- .../src/i18n/locales/ja/servers.json | 68 +- .../src/i18n/locales/ja/settings.json | 138 +- .../src/i18n/locales/ja/support.json | 6 +- .../src/i18n/locales/ja/widgets.json | 16 +- .../src/i18n/locales/pt/actions.json | 22 +- apps/dashboard/src/i18n/locales/pt/auth.json | 6 +- .../src/i18n/locales/pt/autoDns.json | 2 +- .../src/i18n/locales/pt/billing.json | 40 +- .../dashboard/src/i18n/locales/pt/chrome.json | 6 +- .../src/i18n/locales/pt/dashboard.json | 2 +- .../dashboard/src/i18n/locales/pt/deploy.json | 30 +- .../dashboard/src/i18n/locales/pt/emails.json | 8 +- .../src/i18n/locales/pt/emailsAdmin.json | 8 +- .../src/i18n/locales/pt/importProject.json | 14 +- .../src/i18n/locales/pt/ingress.json | 6 +- .../dashboard/src/i18n/locales/pt/issues.json | 16 +- .../src/i18n/locales/pt/library.json | 16 +- .../src/i18n/locales/pt/migration.json | 28 +- apps/dashboard/src/i18n/locales/pt/misc.json | 18 +- .../src/i18n/locales/pt/onboarding.json | 26 +- .../src/i18n/locales/pt/overview.json | 2 +- .../src/i18n/locales/pt/projectDetail.json | 12 +- .../src/i18n/locales/pt/projectSettings.json | 52 +- .../src/i18n/locales/pt/projects.json | 14 +- .../src/i18n/locales/pt/servers.json | 68 +- .../src/i18n/locales/pt/settings.json | 138 +- .../src/i18n/locales/pt/support.json | 6 +- .../src/i18n/locales/pt/widgets.json | 16 +- .../src/i18n/locales/ru/actions.json | 22 +- apps/dashboard/src/i18n/locales/ru/auth.json | 6 +- .../src/i18n/locales/ru/autoDns.json | 2 +- .../src/i18n/locales/ru/billing.json | 40 +- .../dashboard/src/i18n/locales/ru/chrome.json | 6 +- .../src/i18n/locales/ru/dashboard.json | 2 +- .../dashboard/src/i18n/locales/ru/deploy.json | 30 +- .../dashboard/src/i18n/locales/ru/emails.json | 8 +- .../src/i18n/locales/ru/emailsAdmin.json | 18 +- .../src/i18n/locales/ru/importProject.json | 14 +- .../src/i18n/locales/ru/ingress.json | 6 +- .../dashboard/src/i18n/locales/ru/issues.json | 14 +- .../src/i18n/locales/ru/library.json | 18 +- .../src/i18n/locales/ru/migration.json | 28 +- apps/dashboard/src/i18n/locales/ru/misc.json | 18 +- .../src/i18n/locales/ru/onboarding.json | 28 +- .../src/i18n/locales/ru/overview.json | 2 +- .../src/i18n/locales/ru/projectDetail.json | 16 +- .../src/i18n/locales/ru/projectSettings.json | 54 +- .../src/i18n/locales/ru/projects.json | 14 +- .../src/i18n/locales/ru/servers.json | 68 +- .../src/i18n/locales/ru/settings.json | 140 +- .../src/i18n/locales/ru/support.json | 6 +- .../src/i18n/locales/ru/widgets.json | 16 +- .../src/i18n/locales/tr/actions.json | 22 +- apps/dashboard/src/i18n/locales/tr/auth.json | 6 +- .../src/i18n/locales/tr/autoDns.json | 2 +- .../src/i18n/locales/tr/billing.json | 40 +- .../dashboard/src/i18n/locales/tr/chrome.json | 14 +- .../src/i18n/locales/tr/dashboard.json | 2 +- .../dashboard/src/i18n/locales/tr/deploy.json | 32 +- .../dashboard/src/i18n/locales/tr/emails.json | 8 +- .../src/i18n/locales/tr/emailsAdmin.json | 16 +- .../src/i18n/locales/tr/importProject.json | 14 +- .../src/i18n/locales/tr/ingress.json | 6 +- .../dashboard/src/i18n/locales/tr/issues.json | 16 +- .../src/i18n/locales/tr/library.json | 16 +- .../src/i18n/locales/tr/migration.json | 28 +- apps/dashboard/src/i18n/locales/tr/misc.json | 20 +- .../src/i18n/locales/tr/onboarding.json | 28 +- .../src/i18n/locales/tr/overview.json | 2 +- .../src/i18n/locales/tr/projectDetail.json | 16 +- .../src/i18n/locales/tr/projectSettings.json | 52 +- .../src/i18n/locales/tr/projects.json | 16 +- .../src/i18n/locales/tr/servers.json | 68 +- .../src/i18n/locales/tr/settings.json | 144 +- .../src/i18n/locales/tr/support.json | 6 +- .../src/i18n/locales/tr/widgets.json | 16 +- .../src/i18n/locales/zh/actions.json | 22 +- apps/dashboard/src/i18n/locales/zh/auth.json | 6 +- .../src/i18n/locales/zh/autoDns.json | 2 +- .../src/i18n/locales/zh/billing.json | 40 +- .../dashboard/src/i18n/locales/zh/chrome.json | 6 +- .../src/i18n/locales/zh/dashboard.json | 2 +- .../dashboard/src/i18n/locales/zh/deploy.json | 30 +- .../dashboard/src/i18n/locales/zh/emails.json | 8 +- .../src/i18n/locales/zh/emailsAdmin.json | 8 +- .../src/i18n/locales/zh/importProject.json | 14 +- .../src/i18n/locales/zh/ingress.json | 6 +- .../dashboard/src/i18n/locales/zh/issues.json | 16 +- .../src/i18n/locales/zh/library.json | 16 +- .../src/i18n/locales/zh/migration.json | 28 +- apps/dashboard/src/i18n/locales/zh/misc.json | 16 +- .../src/i18n/locales/zh/onboarding.json | 26 +- .../src/i18n/locales/zh/overview.json | 2 +- .../src/i18n/locales/zh/projectDetail.json | 12 +- .../src/i18n/locales/zh/projectSettings.json | 52 +- .../src/i18n/locales/zh/projects.json | 14 +- .../src/i18n/locales/zh/servers.json | 68 +- .../src/i18n/locales/zh/settings.json | 138 +- .../src/i18n/locales/zh/support.json | 6 +- .../src/i18n/locales/zh/widgets.json | 16 +- apps/dashboard/src/lib/api/client.ts | 4 +- .../dashboard/src/lib/api/mail.stream.test.ts | 2 +- apps/dashboard/src/lib/api/projects.ts | 4 +- apps/dashboard/src/lib/api/services.ts | 2 + apps/dashboard/src/lib/appearance-runtime.ts | 2 +- apps/dashboard/src/lib/cloud-auth.test.ts | 21 + apps/dashboard/src/lib/cloud-auth.ts | 7 +- .../src/lib/github-connect-error.test.ts | 2 +- .../dashboard/src/lib/github-connect-error.ts | 2 +- .../src/lib/i18n/audit-locales/ar.json | 8 +- .../src/lib/i18n/audit-locales/de.json | 8 +- .../src/lib/i18n/audit-locales/en.json | 16 +- .../src/lib/i18n/audit-locales/es.json | 8 +- .../src/lib/i18n/audit-locales/fr.json | 8 +- .../src/lib/i18n/audit-locales/ja.json | 8 +- .../src/lib/i18n/audit-locales/pt.json | 8 +- .../src/lib/i18n/audit-locales/ru.json | 8 +- .../src/lib/i18n/audit-locales/tr.json | 8 +- .../src/lib/i18n/audit-locales/zh.json | 8 +- .../dashboard/src/lib/i18n/localize-issues.ts | 2 +- .../src/lib/project-application.test.ts | 51 + apps/dashboard/src/lib/project-application.ts | 29 +- apps/dashboard/src/lib/sidebar-nav.test.ts | 2 +- apps/dashboard/src/proxy.test.ts | 9 + apps/desktop/src/main/index.ts | 12 +- apps/desktop/src/main/loading-screen.ts | 8 +- apps/desktop/src/main/menu.ts | 4 +- apps/desktop/src/main/update-window.ts | 4 +- apps/web/AGENTS.md | 9 + .../resources/how-ai-builds-work.ar.mdx | 53 + .../resources/how-ai-builds-work.de.mdx | 53 + .../resources/how-ai-builds-work.es.mdx | 53 + .../resources/how-ai-builds-work.fr.mdx | 53 + .../resources/how-ai-builds-work.ja.mdx | 53 + .../content/resources/how-ai-builds-work.mdx | 16 +- .../resources/how-ai-builds-work.pt.mdx | 53 + .../resources/how-ai-builds-work.ru.mdx | 53 + .../resources/how-ai-builds-work.tr.mdx | 53 + .../resources/how-ai-builds-work.zh.mdx | 53 + .../resources/introducing-openship.ar.mdx | 44 + .../resources/introducing-openship.de.mdx | 44 + .../resources/introducing-openship.es.mdx | 44 + .../resources/introducing-openship.fr.mdx | 44 + .../resources/introducing-openship.ja.mdx | 44 + .../resources/introducing-openship.mdx | 10 +- .../resources/introducing-openship.pt.mdx | 44 + .../resources/introducing-openship.ru.mdx | 44 + .../resources/introducing-openship.tr.mdx | 44 + .../resources/introducing-openship.zh.mdx | 44 + .../content/resources/openship-0-9-1.ar.mdx | 35 + .../content/resources/openship-0-9-1.de.mdx | 35 + .../content/resources/openship-0-9-1.es.mdx | 35 + .../content/resources/openship-0-9-1.fr.mdx | 35 + .../content/resources/openship-0-9-1.ja.mdx | 35 + apps/web/content/resources/openship-0-9-1.mdx | 6 +- .../content/resources/openship-0-9-1.pt.mdx | 35 + .../content/resources/openship-0-9-1.ru.mdx | 35 + .../content/resources/openship-0-9-1.tr.mdx | 35 + .../content/resources/openship-0-9-1.zh.mdx | 35 + .../self-hosting-cost-breakdown.ar.mdx | 57 + .../self-hosting-cost-breakdown.de.mdx | 57 + .../self-hosting-cost-breakdown.es.mdx | 57 + .../self-hosting-cost-breakdown.fr.mdx | 57 + .../self-hosting-cost-breakdown.ja.mdx | 57 + .../resources/self-hosting-cost-breakdown.mdx | 10 +- .../self-hosting-cost-breakdown.pt.mdx | 57 + .../self-hosting-cost-breakdown.ru.mdx | 57 + .../self-hosting-cost-breakdown.tr.mdx | 57 + .../self-hosting-cost-breakdown.zh.mdx | 57 + apps/web/next.config.mjs | 21 +- apps/web/package.json | 5 +- apps/web/public/screen.png | Bin 491763 -> 358520 bytes apps/web/public/screenshots/ar/deploy.webp | Bin 0 -> 152414 bytes .../screenshots/ar/mail-control-panel.webp | Bin 0 -> 58284 bytes .../ar/walkthrough/build-light.webp | Bin 0 -> 35118 bytes .../screenshots/ar/walkthrough/build.webp | Bin 0 -> 35990 bytes .../ar/walkthrough/connect-light.webp | Bin 0 -> 37362 bytes .../screenshots/ar/walkthrough/connect.webp | Bin 0 -> 37476 bytes .../ar/walkthrough/operate-light.webp | Bin 0 -> 50920 bytes .../screenshots/ar/walkthrough/operate.webp | Bin 0 -> 50154 bytes .../ar/walkthrough/route-light.webp | Bin 0 -> 32644 bytes .../screenshots/ar/walkthrough/route.webp | Bin 0 -> 33276 bytes .../ar/walkthrough/ship-light.webp | Bin 0 -> 28678 bytes .../screenshots/ar/walkthrough/ship.webp | Bin 0 -> 28928 bytes apps/web/public/screenshots/de/deploy.webp | Bin 0 -> 168780 bytes .../screenshots/de/mail-control-panel.webp | Bin 0 -> 63204 bytes .../de/walkthrough/build-light.webp | Bin 0 -> 36866 bytes .../screenshots/de/walkthrough/build.webp | Bin 0 -> 37832 bytes .../de/walkthrough/connect-light.webp | Bin 0 -> 38036 bytes .../screenshots/de/walkthrough/connect.webp | Bin 0 -> 37840 bytes .../de/walkthrough/operate-light.webp | Bin 0 -> 50758 bytes .../screenshots/de/walkthrough/operate.webp | Bin 0 -> 41728 bytes .../de/walkthrough/route-light.webp | Bin 0 -> 37610 bytes .../screenshots/de/walkthrough/route.webp | Bin 0 -> 38500 bytes .../de/walkthrough/ship-light.webp | Bin 0 -> 30260 bytes .../screenshots/de/walkthrough/ship.webp | Bin 0 -> 30746 bytes apps/web/public/screenshots/en/deploy.webp | Bin 0 -> 158590 bytes .../screenshots/en/mail-control-panel.webp | Bin 0 -> 61308 bytes .../en/walkthrough/build-light.webp | Bin 0 -> 35720 bytes .../screenshots/en/walkthrough/build.webp | Bin 0 -> 36554 bytes .../en/walkthrough/connect-light.webp | Bin 0 -> 37552 bytes .../screenshots/en/walkthrough/connect.webp | Bin 0 -> 37238 bytes .../en/walkthrough/operate-light.webp | Bin 0 -> 50078 bytes .../screenshots/en/walkthrough/operate.webp | Bin 0 -> 41028 bytes .../en/walkthrough/route-light.webp | Bin 0 -> 32058 bytes .../screenshots/en/walkthrough/route.webp | Bin 0 -> 32204 bytes .../en/walkthrough/ship-light.webp | Bin 0 -> 29612 bytes .../screenshots/en/walkthrough/ship.webp | Bin 0 -> 30184 bytes apps/web/public/screenshots/es/deploy.webp | Bin 0 -> 174664 bytes .../screenshots/es/mail-control-panel.webp | Bin 0 -> 63048 bytes .../es/walkthrough/build-light.webp | Bin 0 -> 37676 bytes .../screenshots/es/walkthrough/build.webp | Bin 0 -> 38756 bytes .../es/walkthrough/connect-light.webp | Bin 0 -> 39942 bytes .../screenshots/es/walkthrough/connect.webp | Bin 0 -> 39186 bytes .../es/walkthrough/operate-light.webp | Bin 0 -> 49994 bytes .../screenshots/es/walkthrough/operate.webp | Bin 0 -> 40816 bytes .../es/walkthrough/route-light.webp | Bin 0 -> 35110 bytes .../screenshots/es/walkthrough/route.webp | Bin 0 -> 36118 bytes .../es/walkthrough/ship-light.webp | Bin 0 -> 31646 bytes .../screenshots/es/walkthrough/ship.webp | Bin 0 -> 31948 bytes apps/web/public/screenshots/fr/deploy.webp | Bin 0 -> 172082 bytes .../screenshots/fr/mail-control-panel.webp | Bin 0 -> 68610 bytes .../fr/walkthrough/build-light.webp | Bin 0 -> 38094 bytes .../screenshots/fr/walkthrough/build.webp | Bin 0 -> 39056 bytes .../fr/walkthrough/connect-light.webp | Bin 0 -> 37950 bytes .../screenshots/fr/walkthrough/connect.webp | Bin 0 -> 37456 bytes .../fr/walkthrough/operate-light.webp | Bin 0 -> 50306 bytes .../screenshots/fr/walkthrough/operate.webp | Bin 0 -> 41030 bytes .../fr/walkthrough/route-light.webp | Bin 0 -> 36020 bytes .../screenshots/fr/walkthrough/route.webp | Bin 0 -> 36400 bytes .../fr/walkthrough/ship-light.webp | Bin 0 -> 31720 bytes .../screenshots/fr/walkthrough/ship.webp | Bin 0 -> 32100 bytes apps/web/public/screenshots/ja/deploy.webp | Bin 0 -> 167372 bytes .../screenshots/ja/mail-control-panel.webp | Bin 0 -> 62406 bytes .../ja/walkthrough/build-light.webp | Bin 0 -> 36256 bytes .../screenshots/ja/walkthrough/build.webp | Bin 0 -> 37348 bytes .../ja/walkthrough/connect-light.webp | Bin 0 -> 40184 bytes .../screenshots/ja/walkthrough/connect.webp | Bin 0 -> 39664 bytes .../ja/walkthrough/operate-light.webp | Bin 0 -> 49782 bytes .../screenshots/ja/walkthrough/operate.webp | Bin 0 -> 49256 bytes .../ja/walkthrough/route-light.webp | Bin 0 -> 43744 bytes .../screenshots/ja/walkthrough/route.webp | Bin 0 -> 43554 bytes .../ja/walkthrough/ship-light.webp | Bin 0 -> 31556 bytes .../screenshots/ja/walkthrough/ship.webp | Bin 0 -> 31976 bytes apps/web/public/screenshots/pt/deploy.webp | Bin 0 -> 167226 bytes .../screenshots/pt/mail-control-panel.webp | Bin 0 -> 67108 bytes .../pt/walkthrough/build-light.webp | Bin 0 -> 36506 bytes .../screenshots/pt/walkthrough/build.webp | Bin 0 -> 37524 bytes .../pt/walkthrough/connect-light.webp | Bin 0 -> 38038 bytes .../screenshots/pt/walkthrough/connect.webp | Bin 0 -> 37740 bytes .../pt/walkthrough/operate-light.webp | Bin 0 -> 51118 bytes .../screenshots/pt/walkthrough/operate.webp | Bin 0 -> 41702 bytes .../pt/walkthrough/route-light.webp | Bin 0 -> 34962 bytes .../screenshots/pt/walkthrough/route.webp | Bin 0 -> 35216 bytes .../pt/walkthrough/ship-light.webp | Bin 0 -> 30574 bytes .../screenshots/pt/walkthrough/ship.webp | Bin 0 -> 31302 bytes apps/web/public/screenshots/ru/deploy.webp | Bin 0 -> 173550 bytes .../screenshots/ru/mail-control-panel.webp | Bin 0 -> 67160 bytes .../ru/walkthrough/build-light.webp | Bin 0 -> 36888 bytes .../screenshots/ru/walkthrough/build.webp | Bin 0 -> 37982 bytes .../ru/walkthrough/connect-light.webp | Bin 0 -> 40886 bytes .../screenshots/ru/walkthrough/connect.webp | Bin 0 -> 40048 bytes .../ru/walkthrough/operate-light.webp | Bin 0 -> 52858 bytes .../screenshots/ru/walkthrough/operate.webp | Bin 0 -> 43380 bytes .../ru/walkthrough/route-light.webp | Bin 0 -> 35678 bytes .../screenshots/ru/walkthrough/route.webp | Bin 0 -> 36128 bytes .../ru/walkthrough/ship-light.webp | Bin 0 -> 32944 bytes .../screenshots/ru/walkthrough/ship.webp | Bin 0 -> 32910 bytes apps/web/public/screenshots/tr/deploy.webp | Bin 0 -> 162766 bytes .../screenshots/tr/mail-control-panel.webp | Bin 0 -> 62592 bytes .../tr/walkthrough/build-light.webp | Bin 0 -> 35374 bytes .../screenshots/tr/walkthrough/build.webp | Bin 0 -> 36622 bytes .../tr/walkthrough/connect-light.webp | Bin 0 -> 36496 bytes .../screenshots/tr/walkthrough/connect.webp | Bin 0 -> 36590 bytes .../tr/walkthrough/operate-light.webp | Bin 0 -> 49386 bytes .../screenshots/tr/walkthrough/operate.webp | Bin 0 -> 40328 bytes .../tr/walkthrough/route-light.webp | Bin 0 -> 34052 bytes .../screenshots/tr/walkthrough/route.webp | Bin 0 -> 34872 bytes .../tr/walkthrough/ship-light.webp | Bin 0 -> 35262 bytes .../screenshots/tr/walkthrough/ship.webp | Bin 0 -> 29390 bytes apps/web/public/screenshots/zh/deploy.webp | Bin 0 -> 154878 bytes .../screenshots/zh/mail-control-panel.webp | Bin 0 -> 60954 bytes .../zh/walkthrough/build-light.webp | Bin 0 -> 35392 bytes .../screenshots/zh/walkthrough/build.webp | Bin 0 -> 36464 bytes .../zh/walkthrough/connect-light.webp | Bin 0 -> 37114 bytes .../screenshots/zh/walkthrough/connect.webp | Bin 0 -> 36812 bytes .../zh/walkthrough/operate-light.webp | Bin 0 -> 48754 bytes .../screenshots/zh/walkthrough/operate.webp | Bin 0 -> 48326 bytes .../zh/walkthrough/route-light.webp | Bin 0 -> 36436 bytes .../screenshots/zh/walkthrough/route.webp | Bin 0 -> 36446 bytes .../zh/walkthrough/ship-light.webp | Bin 0 -> 28874 bytes .../screenshots/zh/walkthrough/ship.webp | Bin 0 -> 29698 bytes apps/web/public/walkthrough/build-light.jpg | Bin 108289 -> 108226 bytes apps/web/public/walkthrough/build.jpg | Bin 106512 -> 106383 bytes apps/web/public/walkthrough/connect-light.jpg | Bin 96293 -> 93712 bytes apps/web/public/walkthrough/connect.jpg | Bin 97341 -> 94841 bytes apps/web/public/walkthrough/operate-light.jpg | Bin 98338 -> 97853 bytes apps/web/public/walkthrough/operate.jpg | Bin 100670 -> 100178 bytes apps/web/public/walkthrough/route-light.jpg | Bin 76856 -> 76364 bytes apps/web/public/walkthrough/route.jpg | Bin 78586 -> 78094 bytes apps/web/public/walkthrough/ship-light.jpg | Bin 77525 -> 77033 bytes apps/web/public/walkthrough/ship.jpg | Bin 77878 -> 77386 bytes .../src/app/(docs)/docs/[[...slug]]/page.tsx | 11 +- apps/web/src/app/(docs)/docs/layout.tsx | 2 +- apps/web/src/app/(docs)/layout.tsx | 8 +- .../src/app/(site)/(marketing)/about/page.tsx | 141 - .../web/src/app/(site)/(marketing)/layout.tsx | 5 - .../mail/_components/home/HomeContent.tsx | 1773 ------- .../mail/setup-guide/android/page.tsx | 89 - .../mail/setup-guide/desktop/page.tsx | 123 - .../(marketing)/mail/setup-guide/ios/page.tsx | 102 - .../mail/setup-guide/nodemailer/page.tsx | 148 - .../app/(site)/(marketing)/pricing/_data.ts | 73 - .../app/(site)/(marketing)/privacy/page.tsx | 188 - .../app/(site)/(marketing)/referrals/page.tsx | 350 -- .../app/(site)/(marketing)/support/page.tsx | 55 - .../src/app/(site)/(marketing)/terms/page.tsx | 258 - .../[locale]/(marketing)/about/page.tsx | 161 + .../(marketing)/apps/[id]/page.tsx | 119 +- .../{ => [locale]}/(marketing)/apps/apps.css | 0 .../(marketing)/apps/layout.tsx | 0 .../{ => [locale]}/(marketing)/apps/page.tsx | 21 +- .../(marketing)}/blog/[...slug]/page.tsx | 94 +- .../{ => [locale]/(marketing)}/blog/blog.css | 0 .../(marketing)}/blog/layout.tsx | 0 .../{ => [locale]/(marketing)}/blog/page.tsx | 87 +- .../(marketing)}/blog/rss.xml/route.ts | 18 +- .../(marketing)}/changelog/[slug]/page.tsx | 27 +- .../_components/changelog-controls.tsx | 7 +- .../_components/changelog-entries.tsx | 49 +- .../changelog/_components/share-button.tsx | 23 +- .../(marketing)}/changelog/changelog.css | 0 .../(marketing)}/changelog/page.tsx | 34 +- .../(marketing)/contact/page.tsx | 33 +- .../(marketing)/download/download.css | 228 + .../(marketing)}/download/layout.tsx | 20 +- .../(marketing)}/download/opengraph-image.tsx | 4 +- .../[locale]/(marketing)/download/page.tsx | 208 + .../(marketing)}/download/twitter-image.tsx | 4 +- .../(marketing)/features/[slug]/page.tsx | 53 +- .../features/_components/FeatureLink.tsx | 8 +- .../features/_components/FeatureShot.tsx | 11 +- .../(marketing)/features/_data.ts | 0 .../(marketing)/features/features.css | 0 .../(marketing)/features/page.tsx | 36 +- .../(site)/[locale]/(marketing)/layout.tsx | 12 + .../(marketing)}/login/layout.tsx | 2 +- .../{ => [locale]/(marketing)}/login/page.tsx | 1 - .../mail/_components/home/HomeContent.tsx | 115 + .../mail/_components/home/footer.tsx | 24 +- .../mail/_components/home/pixelated-bg.tsx | 12 +- .../(marketing)/mail/_components/icons.tsx | 10 +- .../(marketing)/mail/_components/lib/cn.ts | 0 .../mail/_components/ui/animated-number.tsx | 8 +- .../mail/_components/ui/button.tsx | 0 .../mail/_components/ui/separator.tsx | 0 .../(marketing)/mail/_components/ui/sheet.tsx | 5 +- .../(marketing)/mail/_components/ui/tabs.tsx | 1 + .../(site)/[locale]/(marketing)/mail/mail.css | 54 + .../{ => [locale]}/(marketing)/mail/page.tsx | 12 +- .../setup-guide/_components/code-block.tsx | 18 +- .../setup-guide/_components/guide-layout.tsx | 40 +- .../mail/setup-guide/android/layout.tsx | 12 +- .../mail/setup-guide/android/page.tsx | 104 + .../mail/setup-guide/desktop/layout.tsx | 12 +- .../mail/setup-guide/desktop/page.tsx | 149 + .../mail/setup-guide/ios/layout.tsx | 12 +- .../(marketing)/mail/setup-guide/ios/page.tsx | 114 + .../mail/setup-guide/nodemailer/layout.tsx | 10 +- .../mail/setup-guide/nodemailer/page.tsx | 164 + .../migrate/[slug]/opengraph-image.tsx | 2 +- .../(marketing)/migrate/[slug]/page.tsx | 86 +- .../migrate/[slug]/twitter-image.tsx | 2 +- .../migrate/_components/migration-faq.tsx | 8 +- .../migrate/_components/migration-steps.tsx | 8 +- .../(marketing)/migrate/_data.ts | 50 +- .../(marketing)/migrate/migrate.css | 0 .../(marketing)/migrate/opengraph-image.tsx | 2 +- .../(marketing)/migrate/page.tsx | 99 +- .../(marketing)/migrate/twitter-image.tsx | 2 +- .../{ => [locale]/(marketing)}/page.tsx | 9 +- .../(marketing)/pricing/CloudBilling.tsx | 15 +- .../[locale]/(marketing)/pricing/_data.ts | 118 + .../(marketing)/pricing/layout.tsx | 45 +- .../(marketing)/pricing/opengraph-image.tsx | 2 +- .../(marketing)/pricing/page.tsx | 202 +- .../(marketing)/pricing/twitter-image.tsx | 2 +- .../[locale]/(marketing)/privacy/page.tsx | 242 + .../referrals/commission-preview.tsx | 32 +- .../(marketing)/referrals/opengraph-image.tsx | 0 .../[locale]/(marketing)/referrals/page.tsx | 429 ++ .../referrals/referrals.module.css | 0 .../(marketing)/referrals/twitter-image.tsx | 0 .../[locale]/(marketing)/support/page.tsx | 69 + .../[locale]/(marketing)/terms/page.tsx | 357 ++ .../{ => [locale]}/(marketing)/trust/page.tsx | 53 +- .../src/app/(site)/{ => [locale]}/layout.tsx | 67 +- .../web/src/app/(site)/[locale]/not-found.tsx | 1 + .../(site)/{ => [locale]}/opengraph-image.tsx | 0 .../(site)/{ => [locale]}/twitter-image.tsx | 0 apps/web/src/app/(site)/download/download.css | 70 - apps/web/src/app/(site)/download/page.tsx | 749 --- apps/web/src/app/api/github-stars/route.ts | 2 +- apps/web/src/app/global-not-found.tsx | 23 + apps/web/src/app/globals.css | 37 + apps/web/src/app/llms.txt/route.ts | 10 +- apps/web/src/app/not-found.tsx | 46 +- apps/web/src/app/sitemaps/blog.xml/route.ts | 5 +- apps/web/src/app/sitemaps/pages.xml/route.ts | 13 +- .../web/src/components/apps/app-directory.tsx | 51 +- .../components/apps/marketplace-app-link.tsx | 18 +- apps/web/src/components/contact-form.tsx | 48 +- apps/web/src/components/install-tabs.tsx | 115 +- .../src/components/landing/apps-showcase.tsx | 39 +- .../web/src/components/landing/comparison.tsx | 153 +- .../components/landing/complete-platform.tsx | 29 +- apps/web/src/components/landing/dashboard.tsx | 24 +- .../src/components/landing/data-privacy.tsx | 29 +- .../components/landing/deployment-models.tsx | 119 +- .../components/landing/download-button.tsx | 79 +- apps/web/src/components/landing/final-cta.tsx | 25 +- apps/web/src/components/landing/footer.tsx | 59 +- apps/web/src/components/landing/hero.tsx | 52 +- .../src/components/landing/how-it-works.tsx | 118 +- .../components/landing/language-switcher.tsx | 115 + .../src/components/landing/mail-server.tsx | 172 +- apps/web/src/components/landing/navbar.tsx | 75 +- .../src/components/landing/open-source.tsx | 43 +- .../src/components/marketing/contact-page.tsx | 9 +- .../components/marketing/illustrated-link.tsx | 12 +- .../marketing/mail-preview.module.css | 58 + .../src/components/marketing/mail-preview.tsx | 49 + .../components/marketing/marketing-cta.tsx | 14 +- .../components/marketing/marketing-intro.tsx | 10 +- .../marketing/marketing-section.tsx | 8 +- apps/web/src/components/not-found-content.tsx | 34 + apps/web/src/components/platform-icon.tsx | 63 + .../components/resources/share-sidebar.tsx | 24 +- .../components/resources/writer-sidebar.tsx | 22 +- apps/web/src/i18n/Link.tsx | 21 + apps/web/src/i18n/README.md | 13 + apps/web/src/i18n/catalogs.ts | 5 + apps/web/src/i18n/copy-server.ts | 5 + apps/web/src/i18n/copy.ts | 89 + apps/web/src/i18n/html.ts | 14 + apps/web/src/i18n/messages/ar.json | 4291 +++++++++++++++++ apps/web/src/i18n/messages/de.json | 4291 +++++++++++++++++ apps/web/src/i18n/messages/en.json | 4291 +++++++++++++++++ apps/web/src/i18n/messages/es.json | 4291 +++++++++++++++++ apps/web/src/i18n/messages/fr.json | 4291 +++++++++++++++++ apps/web/src/i18n/messages/ja.json | 4291 +++++++++++++++++ apps/web/src/i18n/messages/pt.json | 4291 +++++++++++++++++ apps/web/src/i18n/messages/ru.json | 4291 +++++++++++++++++ apps/web/src/i18n/messages/tr.json | 4291 +++++++++++++++++ apps/web/src/i18n/messages/zh.json | 4291 +++++++++++++++++ apps/web/src/i18n/metadata.ts | 43 + apps/web/src/i18n/paths.json | 20 + apps/web/src/i18n/request.ts | 18 + apps/web/src/i18n/routing.ts | 58 + apps/web/src/i18n/types.d.ts | 7 + apps/web/src/i18n/use-copy.ts | 7 + apps/web/src/lib/cloud-links.ts | 6 +- apps/web/src/lib/docs-og.tsx | 2 +- apps/web/src/lib/features.ts | 40 +- apps/web/src/lib/mail-features.ts | 53 + apps/web/src/lib/marketing-screenshots.ts | 18 + apps/web/src/lib/migration-og.ts | 2 +- apps/web/src/lib/migration-sources.ts | 41 +- apps/web/src/lib/og-image.tsx | 235 +- apps/web/src/lib/pricing.ts | 15 +- apps/web/src/lib/sitemap-builder.ts | 15 +- apps/web/src/lib/source.ts | 7 +- apps/web/src/proxy.ts | 25 + apps/web/src/styles/landing.css | 607 +-- apps/web/test/i18n.test.ts | 262 + apps/web/test/marketing-screenshots.test.ts | 49 + artifacts/project-consistency/.gitignore | 1 + .../after-add-postgres-form.png | Bin 0 -> 80884 bytes .../project-consistency/after-add-service.png | Bin 0 -> 105388 bytes .../project-consistency/after-app-apply.png | Bin 0 -> 74825 bytes .../project-consistency/after-app-dark.png | Bin 0 -> 75620 bytes .../project-consistency/after-app-dim.png | Bin 0 -> 76280 bytes .../after-app-environment.png | Bin 0 -> 69397 bytes .../project-consistency/after-app-light.png | Bin 0 -> 75866 bytes .../after-app-overview.png | Bin 0 -> 44541 bytes .../after-app-with-postgres.png | Bin 0 -> 75622 bytes .../after-arabic-mobile.png | Bin 0 -> 67612 bytes .../project-consistency/after-mobile.png | Bin 0 -> 70729 bytes .../after-postgres-environment.png | Bin 0 -> 72750 bytes .../after-project-settings.png | Bin 0 -> 45194 bytes .../project-consistency/after-single-app.png | Bin 0 -> 32855 bytes .../after-with-postgres.png | Bin 0 -> 38747 bytes .../before-after-comparison.png | Bin 0 -> 32693 bytes .../before-apps-services.png | Bin 0 -> 40548 bytes .../before-settings-editor.png | Bin 0 -> 51542 bytes .../project-consistency/browser-checks.json | 68 + artifacts/project-consistency/index.html | 11 + .../single-to-postgres-comparison.png | Bin 0 -> 22462 bytes artifacts/project-consistency/validation.json | 14 + .../after-application-apply.png | Bin 0 -> 81828 bytes .../after-application-arabic-mobile.png | Bin 0 -> 57567 bytes .../after-application-dim.png | Bin 0 -> 66063 bytes .../after-application-environment.png | Bin 0 -> 65549 bytes .../after-application-light.png | Bin 0 -> 65789 bytes .../after-application-mobile.png | Bin 0 -> 61626 bytes .../after-apps-services-docker.png | Bin 0 -> 43625 bytes .../after-apps-services.png | Bin 0 -> 41956 bytes .../after-browser-checks.json | 40 + .../after-settings-editor.png | Bin 0 -> 52611 bytes .../app-card-comparison.png | Bin 0 -> 33598 bytes .../before-apps-services.png | Bin 0 -> 40548 bytes .../before-browser-checks.json | 5 + .../before-settings-editor.png | Bin 0 -> 51542 bytes artifacts/project-environment/index.html | 14 + .../settings-comparison.png | Bin 0 -> 59142 bytes artifacts/project-environment/validation.json | 16 + bun.lock | 96 +- docs/dashboard-design.md | 32 + docs/design/deploy-walkthrough.md | 7 + docs/i18n/README.ar.md | 2 +- docs/i18n/README.de.md | 2 +- docs/i18n/README.es.md | 2 +- docs/i18n/README.fr.md | 2 +- docs/i18n/README.ja.md | 2 +- docs/i18n/README.pt.md | 2 +- docs/i18n/README.ru.md | 2 +- docs/i18n/README.tr.md | 2 +- docs/i18n/README.zh.md | 2 +- docs/illustrations.md | 25 + docs/screenshots/screen.png | Bin 491763 -> 358520 bytes packages/contracts/src/services.ts | 2 + packages/core/package.json | 4 + packages/core/src/index.ts | 1 + packages/core/src/migration-links.ts | 10 + .../modules/services/service.service.ts | 20 +- scripts/check-web-social-metadata.mjs | 75 +- .../deploy-walkthrough/Preview.tsx | 117 +- .../deploy-walkthrough/capture.mjs | 227 +- .../screenshots/deploy-walkthrough/fixture.ts | 91 + scripts/screenshots/landing/Preview.tsx | 90 + scripts/screenshots/landing/README.md | 46 + scripts/screenshots/landing/capture.mjs | 266 + scripts/screenshots/mail/Preview.tsx | 30 + scripts/screenshots/mail/README.md | 24 + scripts/screenshots/mail/capture.mjs | 119 + .../project-consistency/Preview.tsx | 142 + .../screenshots/project-consistency/README.md | 46 + .../project-consistency/capture.mjs | 173 + .../project-consistency/fixture.mjs | 313 ++ .../project-consistency/prepare.mjs | 79 + .../project-consistency/review.mjs | 26 + .../project-environment/Preview.tsx | 70 + .../screenshots/project-environment/README.md | 30 + .../project-environment/capture.mjs | 299 ++ .../project-environment/review.mjs | 20 + 774 files changed, 58305 insertions(+), 10441 deletions(-) create mode 100644 apps/api/test/modules/services/application-identity.test.ts create mode 100644 apps/dashboard/src/app/(dashboard)/library/LibraryContent.tsx create mode 100644 apps/dashboard/src/app/(dashboard)/library/layout.tsx create mode 100644 apps/dashboard/src/app/(dashboard)/library/migrate/page.tsx delete mode 100644 apps/dashboard/src/app/(dashboard)/projects/[id]/components/services/ProjectApplicationCard.tsx create mode 100644 apps/dashboard/src/app/(dashboard)/projects/[id]/components/services/ProjectApplicationListItem.tsx create mode 100644 apps/dashboard/src/app/(dashboard)/projects/[id]/components/services/ProjectApplicationPanel.tsx create mode 100644 apps/dashboard/src/app/(dashboard)/projects/[id]/components/services/WorkloadDetailHeader.tsx create mode 100644 apps/dashboard/src/app/(dashboard)/projects/[id]/components/services/WorkloadListItem.tsx create mode 100644 apps/dashboard/src/components/project-settings/EnvironmentPanel.tsx create mode 100644 apps/dashboard/src/components/project-settings/ProjectEnvironmentPanel.tsx create mode 100644 apps/dashboard/src/lib/project-application.test.ts create mode 100644 apps/web/AGENTS.md create mode 100644 apps/web/content/resources/how-ai-builds-work.ar.mdx create mode 100644 apps/web/content/resources/how-ai-builds-work.de.mdx create mode 100644 apps/web/content/resources/how-ai-builds-work.es.mdx create mode 100644 apps/web/content/resources/how-ai-builds-work.fr.mdx create mode 100644 apps/web/content/resources/how-ai-builds-work.ja.mdx create mode 100644 apps/web/content/resources/how-ai-builds-work.pt.mdx create mode 100644 apps/web/content/resources/how-ai-builds-work.ru.mdx create mode 100644 apps/web/content/resources/how-ai-builds-work.tr.mdx create mode 100644 apps/web/content/resources/how-ai-builds-work.zh.mdx create mode 100644 apps/web/content/resources/introducing-openship.ar.mdx create mode 100644 apps/web/content/resources/introducing-openship.de.mdx create mode 100644 apps/web/content/resources/introducing-openship.es.mdx create mode 100644 apps/web/content/resources/introducing-openship.fr.mdx create mode 100644 apps/web/content/resources/introducing-openship.ja.mdx create mode 100644 apps/web/content/resources/introducing-openship.pt.mdx create mode 100644 apps/web/content/resources/introducing-openship.ru.mdx create mode 100644 apps/web/content/resources/introducing-openship.tr.mdx create mode 100644 apps/web/content/resources/introducing-openship.zh.mdx create mode 100644 apps/web/content/resources/openship-0-9-1.ar.mdx create mode 100644 apps/web/content/resources/openship-0-9-1.de.mdx create mode 100644 apps/web/content/resources/openship-0-9-1.es.mdx create mode 100644 apps/web/content/resources/openship-0-9-1.fr.mdx create mode 100644 apps/web/content/resources/openship-0-9-1.ja.mdx create mode 100644 apps/web/content/resources/openship-0-9-1.pt.mdx create mode 100644 apps/web/content/resources/openship-0-9-1.ru.mdx create mode 100644 apps/web/content/resources/openship-0-9-1.tr.mdx create mode 100644 apps/web/content/resources/openship-0-9-1.zh.mdx create mode 100644 apps/web/content/resources/self-hosting-cost-breakdown.ar.mdx create mode 100644 apps/web/content/resources/self-hosting-cost-breakdown.de.mdx create mode 100644 apps/web/content/resources/self-hosting-cost-breakdown.es.mdx create mode 100644 apps/web/content/resources/self-hosting-cost-breakdown.fr.mdx create mode 100644 apps/web/content/resources/self-hosting-cost-breakdown.ja.mdx create mode 100644 apps/web/content/resources/self-hosting-cost-breakdown.pt.mdx create mode 100644 apps/web/content/resources/self-hosting-cost-breakdown.ru.mdx create mode 100644 apps/web/content/resources/self-hosting-cost-breakdown.tr.mdx create mode 100644 apps/web/content/resources/self-hosting-cost-breakdown.zh.mdx create mode 100644 apps/web/public/screenshots/ar/deploy.webp create mode 100644 apps/web/public/screenshots/ar/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/ar/walkthrough/ship.webp create mode 100644 apps/web/public/screenshots/de/deploy.webp create mode 100644 apps/web/public/screenshots/de/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/de/walkthrough/ship.webp create mode 100644 apps/web/public/screenshots/en/deploy.webp create mode 100644 apps/web/public/screenshots/en/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/en/walkthrough/ship.webp create mode 100644 apps/web/public/screenshots/es/deploy.webp create mode 100644 apps/web/public/screenshots/es/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/es/walkthrough/ship.webp create mode 100644 apps/web/public/screenshots/fr/deploy.webp create mode 100644 apps/web/public/screenshots/fr/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/fr/walkthrough/ship.webp create mode 100644 apps/web/public/screenshots/ja/deploy.webp create mode 100644 apps/web/public/screenshots/ja/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/ja/walkthrough/ship.webp create mode 100644 apps/web/public/screenshots/pt/deploy.webp create mode 100644 apps/web/public/screenshots/pt/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/pt/walkthrough/ship.webp create mode 100644 apps/web/public/screenshots/ru/deploy.webp create mode 100644 apps/web/public/screenshots/ru/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/ru/walkthrough/ship.webp create mode 100644 apps/web/public/screenshots/tr/deploy.webp create mode 100644 apps/web/public/screenshots/tr/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/tr/walkthrough/ship.webp create mode 100644 apps/web/public/screenshots/zh/deploy.webp create mode 100644 apps/web/public/screenshots/zh/mail-control-panel.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/build-light.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/build.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/connect-light.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/connect.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/operate-light.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/operate.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/route-light.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/route.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/ship-light.webp create mode 100644 apps/web/public/screenshots/zh/walkthrough/ship.webp delete mode 100644 apps/web/src/app/(site)/(marketing)/about/page.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/layout.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/mail/_components/home/HomeContent.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/mail/setup-guide/android/page.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/mail/setup-guide/desktop/page.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/mail/setup-guide/ios/page.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/mail/setup-guide/nodemailer/page.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/pricing/_data.ts delete mode 100644 apps/web/src/app/(site)/(marketing)/privacy/page.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/referrals/page.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/support/page.tsx delete mode 100644 apps/web/src/app/(site)/(marketing)/terms/page.tsx create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/about/page.tsx rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/apps/[id]/page.tsx (67%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/apps/apps.css (100%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/apps/layout.tsx (100%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/apps/page.tsx (70%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/blog/[...slug]/page.tsx (68%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/blog/blog.css (100%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/blog/layout.tsx (100%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/blog/page.tsx (70%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/blog/rss.xml/route.ts (50%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/changelog/[slug]/page.tsx (80%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/changelog/_components/changelog-controls.tsx (89%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/changelog/_components/changelog-entries.tsx (75%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/changelog/_components/share-button.tsx (66%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/changelog/changelog.css (100%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/changelog/page.tsx (68%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/contact/page.tsx (63%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/download/download.css rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/download/layout.tsx (84%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/download/opengraph-image.tsx (85%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/download/page.tsx rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/download/twitter-image.tsx (82%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/features/[slug]/page.tsx (71%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/features/_components/FeatureLink.tsx (75%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/features/_components/FeatureShot.tsx (69%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/features/_data.ts (100%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/features/features.css (100%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/features/page.tsx (69%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/layout.tsx rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/login/layout.tsx (87%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/login/page.tsx (99%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/mail/_components/home/HomeContent.tsx rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/_components/home/footer.tsx (81%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/_components/home/pixelated-bg.tsx (99%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/_components/icons.tsx (99%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/_components/lib/cn.ts (100%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/_components/ui/animated-number.tsx (84%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/_components/ui/button.tsx (100%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/_components/ui/separator.tsx (100%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/_components/ui/sheet.tsx (94%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/_components/ui/tabs.tsx (99%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/mail/mail.css rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/page.tsx (84%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/setup-guide/_components/code-block.tsx (78%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/setup-guide/_components/guide-layout.tsx (84%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/setup-guide/android/layout.tsx (74%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/mail/setup-guide/android/page.tsx rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/setup-guide/desktop/layout.tsx (74%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/mail/setup-guide/desktop/page.tsx rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/setup-guide/ios/layout.tsx (74%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/mail/setup-guide/ios/page.tsx rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/mail/setup-guide/nodemailer/layout.tsx (80%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/mail/setup-guide/nodemailer/page.tsx rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/[slug]/opengraph-image.tsx (84%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/[slug]/page.tsx (61%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/[slug]/twitter-image.tsx (75%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/_components/migration-faq.tsx (86%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/_components/migration-steps.tsx (72%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/_data.ts (57%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/migrate.css (100%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/opengraph-image.tsx (94%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/page.tsx (62%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/migrate/twitter-image.tsx (92%) rename apps/web/src/app/(site)/{ => [locale]/(marketing)}/page.tsx (88%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/pricing/CloudBilling.tsx (67%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/pricing/_data.ts rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/pricing/layout.tsx (66%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/pricing/opengraph-image.tsx (86%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/pricing/page.tsx (63%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/pricing/twitter-image.tsx (76%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/privacy/page.tsx rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/referrals/commission-preview.tsx (64%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/referrals/opengraph-image.tsx (100%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/referrals/page.tsx rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/referrals/referrals.module.css (100%) rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/referrals/twitter-image.tsx (100%) create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/support/page.tsx create mode 100644 apps/web/src/app/(site)/[locale]/(marketing)/terms/page.tsx rename apps/web/src/app/(site)/{ => [locale]}/(marketing)/trust/page.tsx (62%) rename apps/web/src/app/(site)/{ => [locale]}/layout.tsx (68%) create mode 100644 apps/web/src/app/(site)/[locale]/not-found.tsx rename apps/web/src/app/(site)/{ => [locale]}/opengraph-image.tsx (100%) rename apps/web/src/app/(site)/{ => [locale]}/twitter-image.tsx (100%) delete mode 100644 apps/web/src/app/(site)/download/download.css delete mode 100644 apps/web/src/app/(site)/download/page.tsx create mode 100644 apps/web/src/app/global-not-found.tsx create mode 100644 apps/web/src/components/landing/language-switcher.tsx create mode 100644 apps/web/src/components/marketing/mail-preview.module.css create mode 100644 apps/web/src/components/marketing/mail-preview.tsx create mode 100644 apps/web/src/components/not-found-content.tsx create mode 100644 apps/web/src/components/platform-icon.tsx create mode 100644 apps/web/src/i18n/Link.tsx create mode 100644 apps/web/src/i18n/README.md create mode 100644 apps/web/src/i18n/catalogs.ts create mode 100644 apps/web/src/i18n/copy-server.ts create mode 100644 apps/web/src/i18n/copy.ts create mode 100644 apps/web/src/i18n/html.ts create mode 100644 apps/web/src/i18n/messages/ar.json create mode 100644 apps/web/src/i18n/messages/de.json create mode 100644 apps/web/src/i18n/messages/en.json create mode 100644 apps/web/src/i18n/messages/es.json create mode 100644 apps/web/src/i18n/messages/fr.json create mode 100644 apps/web/src/i18n/messages/ja.json create mode 100644 apps/web/src/i18n/messages/pt.json create mode 100644 apps/web/src/i18n/messages/ru.json create mode 100644 apps/web/src/i18n/messages/tr.json create mode 100644 apps/web/src/i18n/messages/zh.json create mode 100644 apps/web/src/i18n/metadata.ts create mode 100644 apps/web/src/i18n/paths.json create mode 100644 apps/web/src/i18n/request.ts create mode 100644 apps/web/src/i18n/routing.ts create mode 100644 apps/web/src/i18n/types.d.ts create mode 100644 apps/web/src/i18n/use-copy.ts create mode 100644 apps/web/src/lib/mail-features.ts create mode 100644 apps/web/src/lib/marketing-screenshots.ts create mode 100644 apps/web/src/proxy.ts create mode 100644 apps/web/test/i18n.test.ts create mode 100644 apps/web/test/marketing-screenshots.test.ts create mode 100644 artifacts/project-consistency/.gitignore create mode 100644 artifacts/project-consistency/after-add-postgres-form.png create mode 100644 artifacts/project-consistency/after-add-service.png create mode 100644 artifacts/project-consistency/after-app-apply.png create mode 100644 artifacts/project-consistency/after-app-dark.png create mode 100644 artifacts/project-consistency/after-app-dim.png create mode 100644 artifacts/project-consistency/after-app-environment.png create mode 100644 artifacts/project-consistency/after-app-light.png create mode 100644 artifacts/project-consistency/after-app-overview.png create mode 100644 artifacts/project-consistency/after-app-with-postgres.png create mode 100644 artifacts/project-consistency/after-arabic-mobile.png create mode 100644 artifacts/project-consistency/after-mobile.png create mode 100644 artifacts/project-consistency/after-postgres-environment.png create mode 100644 artifacts/project-consistency/after-project-settings.png create mode 100644 artifacts/project-consistency/after-single-app.png create mode 100644 artifacts/project-consistency/after-with-postgres.png create mode 100644 artifacts/project-consistency/before-after-comparison.png create mode 100644 artifacts/project-consistency/before-apps-services.png create mode 100644 artifacts/project-consistency/before-settings-editor.png create mode 100644 artifacts/project-consistency/browser-checks.json create mode 100644 artifacts/project-consistency/index.html create mode 100644 artifacts/project-consistency/single-to-postgres-comparison.png create mode 100644 artifacts/project-consistency/validation.json create mode 100644 artifacts/project-environment/after-application-apply.png create mode 100644 artifacts/project-environment/after-application-arabic-mobile.png create mode 100644 artifacts/project-environment/after-application-dim.png create mode 100644 artifacts/project-environment/after-application-environment.png create mode 100644 artifacts/project-environment/after-application-light.png create mode 100644 artifacts/project-environment/after-application-mobile.png create mode 100644 artifacts/project-environment/after-apps-services-docker.png create mode 100644 artifacts/project-environment/after-apps-services.png create mode 100644 artifacts/project-environment/after-browser-checks.json create mode 100644 artifacts/project-environment/after-settings-editor.png create mode 100644 artifacts/project-environment/app-card-comparison.png create mode 100644 artifacts/project-environment/before-apps-services.png create mode 100644 artifacts/project-environment/before-browser-checks.json create mode 100644 artifacts/project-environment/before-settings-editor.png create mode 100644 artifacts/project-environment/index.html create mode 100644 artifacts/project-environment/settings-comparison.png create mode 100644 artifacts/project-environment/validation.json create mode 100644 packages/core/src/migration-links.ts create mode 100644 scripts/screenshots/deploy-walkthrough/fixture.ts create mode 100644 scripts/screenshots/landing/Preview.tsx create mode 100644 scripts/screenshots/landing/README.md create mode 100644 scripts/screenshots/landing/capture.mjs create mode 100644 scripts/screenshots/mail/Preview.tsx create mode 100644 scripts/screenshots/mail/README.md create mode 100644 scripts/screenshots/mail/capture.mjs create mode 100644 scripts/screenshots/project-consistency/Preview.tsx create mode 100644 scripts/screenshots/project-consistency/README.md create mode 100644 scripts/screenshots/project-consistency/capture.mjs create mode 100644 scripts/screenshots/project-consistency/fixture.mjs create mode 100644 scripts/screenshots/project-consistency/prepare.mjs create mode 100644 scripts/screenshots/project-consistency/review.mjs create mode 100644 scripts/screenshots/project-environment/Preview.tsx create mode 100644 scripts/screenshots/project-environment/README.md create mode 100644 scripts/screenshots/project-environment/capture.mjs create mode 100644 scripts/screenshots/project-environment/review.mjs diff --git a/apps/api/test/modules/services/application-identity.test.ts b/apps/api/test/modules/services/application-identity.test.ts new file mode 100644 index 000000000..5cef0a7f7 --- /dev/null +++ b/apps/api/test/modules/services/application-identity.test.ts @@ -0,0 +1,101 @@ +import { beforeEach, expect, it, vi } from "vitest"; +const mocks = vi.hoisted(() => ({ project: vi.fn(), services: vi.fn(), env: vi.fn() })); +vi.mock("@repo/db", async (original) => { + const actual = await original(); + return { + ...actual, + repos: { + ...actual.repos, + project: { ...actual.repos.project, findById: mocks.project, listEnvVars: mocks.env }, + service: { ...actual.repos.service, listByProject: mocks.services }, + }, + }; +}); +import { listServices } from "@repo/platform/engine/modules/services/service.service"; +const project = { + id: "p", + organizationId: "org", + slug: "website", + framework: "nextjs", + rootDirectory: ".", + buildCommand: "bun run build", + port: 3000, + hasServer: true, + workloadType: "web", +}; +const app = { + id: "app", + projectId: "p", + name: "website", + kind: "monorepo", + enabled: true, + sortOrder: -1, + rootDirectory: ".", + environment: {}, + volumes: [], + advanced: {}, + buildArgs: {}, +}; +const database = { + id: "db", + projectId: "p", + name: "postgres", + kind: "compose", + image: "postgres:17", + enabled: true, + sortOrder: 0, + exposed: false, + environment: { PASSWORD: "private-value" }, +}; +const context = { organizationId: "org" } as never; +beforeEach(() => { + mocks.project.mockResolvedValue(project); + mocks.services.mockResolvedValue([app, database]); + mocks.env.mockResolvedValue([]); +}); +it("exposes one stable project application when the first database is added", async () => { + const rows = await listServices(context, "p"); + expect(rows.map((s) => [s.id, s.applicationMode])).toEqual([ + ["app", "project"], + ["db", undefined], + ]); + expect(mocks.env).toHaveBeenCalledWith("p", undefined, "app"); + expect(JSON.stringify(rows)).not.toContain("private-value"); +}); +it("preserves the application identity after removing the last companion", async () => { + mocks.services.mockResolvedValue([app]); + expect((await listServices(context, "p"))[0].applicationMode).toBe("project"); +}); +it.each([ + ["saved runtime override", app, [{ key: "CUSTOM", value: "keep" }]], + ["Compose value", { ...app, environment: { CUSTOM: "keep" } }, []], + ["custom build", { ...app, buildCommand: "custom-build" }, []], + ["renamed app", { ...app, name: "renamed" }, []], + ["disabled app", { ...app, enabled: false }, []], +])("retains service ownership for %s", async (_name, row, env) => { + mocks.services.mockResolvedValue([row, database]); + mocks.env.mockResolvedValue(env); + expect((await listServices(context, "p"))[0].applicationMode).toBe("service"); +}); +it.each([ + { ...project, framework: "docker-compose" }, + { ...project, composePath: "compose.yml" }, +])("does not collapse a real Compose app into the project", async (shape) => { + mocks.project.mockResolvedValue(shape); + expect((await listServices(context, "p")).every((s) => s.applicationMode === undefined)).toBe( + true, + ); +}); +it("does not invent an identity for a regular monorepo application", async () => { + mocks.services.mockResolvedValue([{ ...app, sortOrder: 0 }, database]); + expect((await listServices(context, "p"))[0].applicationMode).toBeUndefined(); +}); + +it.each([ + { workspaceId: "cloud-workspace" }, + { clusterId: "cluster" }, + { workloadType: "static", hasServer: false }, +])("keeps service controls for a runtime outside the primary app pipeline", async (shape) => { + mocks.project.mockResolvedValue({ ...project, ...shape }); + expect((await listServices(context, "p"))[0].applicationMode).toBe("service"); +}); diff --git a/apps/dashboard/scripts/check-i18n.mjs b/apps/dashboard/scripts/check-i18n.mjs index 8eadfab65..7a3f6d701 100644 --- a/apps/dashboard/scripts/check-i18n.mjs +++ b/apps/dashboard/scripts/check-i18n.mjs @@ -14,6 +14,15 @@ import { fileURLToPath } from "node:url"; const SOURCE_LOCALE = "en"; +// These display names intentionally stay English in every locale. +const BRAND_NAMES = new Set([ + "OpenShip", + "OpenShip Cloud", + "OpenShip Desktop", + "OpenShip Manage", + "Ruby on Rails", +]); + /** Absolute path to the locales dir, resolved relative to this script. */ export function defaultLocalesDir() { return fileURLToPath(new URL("../src/i18n/locales", import.meta.url)); @@ -56,7 +65,12 @@ function readJson(file) { * English sentence, so the UI silently renders English and every test stays green. */ function looksTranslatable(value) { - return typeof value === "string" && value.trim().length > 3 && /\s/.test(value.trim()); + return ( + typeof value === "string" && + value.trim().length > 3 && + /\s/.test(value.trim()) && + !BRAND_NAMES.has(value.trim()) + ); } /** @@ -98,7 +112,8 @@ export function checkI18nParity(localesDir = defaultLocalesDir()) { if (fs.existsSync(file)) localeEntries = leafEntries(readJson(file)); const localeKeys = new Set(Object.keys(localeEntries)); for (const k of base) if (!localeKeys.has(k)) missing.push({ locale, namespace: ns, key: k }); - for (const k of localeKeys) if (!baseSet.has(k)) extra.push({ locale, namespace: ns, key: k }); + for (const k of localeKeys) + if (!baseSet.has(k)) extra.push({ locale, namespace: ns, key: k }); // Present, but still the English sentence — invisible to the two checks above. for (const k of localeKeys) { if (!baseSet.has(k)) continue; @@ -189,12 +204,14 @@ if (isMain()) { } if (r.missing.length) { console.log("MISSING (key → locales that lack it):"); - for (const [id, locs] of group(r.missing)) console.log(` ${id} [${[...locs].sort().join(",")}]`); + for (const [id, locs] of group(r.missing)) + console.log(` ${id} [${[...locs].sort().join(",")}]`); console.log(""); } if (r.extra.length) { console.log("EXTRA (stale locale keys not in en):"); - for (const [id, locs] of group(r.extra)) console.log(` ${id} [${[...locs].sort().join(",")}]`); + for (const [id, locs] of group(r.extra)) + console.log(` ${id} [${[...locs].sort().join(",")}]`); console.log(""); } } else { diff --git a/apps/dashboard/src/app/(auth)/login/page.tsx b/apps/dashboard/src/app/(auth)/login/page.tsx index 2cacb7df7..26e819723 100644 --- a/apps/dashboard/src/app/(auth)/login/page.tsx +++ b/apps/dashboard/src/app/(auth)/login/page.tsx @@ -236,7 +236,7 @@ function LoginPageInner() { ); } - /* ── Cloud mode (desktop): redirect to Openship Cloud for all auth ── */ + /* ── Cloud mode (desktop): redirect to OpenShip Cloud for all auth ── */ if (authMode === "cloud") { const apiUrl = getApiOrigin(typeof window !== "undefined" ? window.location.origin : undefined); const callbackUrl = `${apiUrl}/api/auth/cloud-callback`; @@ -251,7 +251,7 @@ function LoginPageInner() { {t.auth.login.title}

- Sign in with your Openship account to continue. + Sign in with your OpenShip account to continue.

@@ -272,7 +272,7 @@ function LoginPageInner() { onClick={() => { void handleCloudSignIn(callbackUrl); }} > {loading ? : } - {loading ? "Opening Openship Cloud..." : "Sign in with Openship"} + {loading ? "Opening OpenShip Cloud..." : "Sign in with OpenShip"} ); diff --git a/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/CloudWaitlistModal.tsx b/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/CloudWaitlistModal.tsx index 44e443d2b..797e21a01 100644 --- a/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/CloudWaitlistModal.tsx +++ b/apps/dashboard/src/app/(dashboard)/(deployment)/deploy/[slug]/components/CloudWaitlistModal.tsx @@ -5,12 +5,12 @@ import { Icon as UiIcon } from "@repo/ui/icons"; // TODO: removed — temporary SaaS "Cloud is almost here" waitlist gate. // Delete this file, the /api/cloud-waitlist route, and the gate in Sidebar's -// handleDeploy when Openship Cloud opens for real deploys. +// handleDeploy when OpenShip Cloud opens for real deploys. import { useState } from "react"; /** - * SaaS-only "Openship Cloud is almost here" gate. Shown instead of running a + * SaaS-only "OpenShip Cloud is almost here" gate. Shown instead of running a * deploy while the managed cloud isn't open yet — captures an email for the * notify-me waitlist. "Notify me" POSTs to `/api/cloud-waitlist`, a thin Next * route handler that forwards to `process.env.MARKETING_API_URL` (no DB / Hono @@ -53,7 +53,7 @@ export function CloudWaitlistModal({ onClose }: { onClose: () => void }) {
-

Openship Cloud is almost here

+

OpenShip Cloud is almost here

Thanks for your interest! We're building a fast, scalable, and efficient managed cloud — one-click deploys with zero infrastructure to run. Launching soon. @@ -64,7 +64,7 @@ export function CloudWaitlistModal({ onClose }: { onClose: () => void }) { {status === "done" ? (

- Thank you — we'll email you the moment Openship Cloud is ready. + Thank you — we'll email you the moment OpenShip Cloud is ready.
) : (
diff --git a/apps/dashboard/src/app/(dashboard)/backups/backups-pages.test.tsx b/apps/dashboard/src/app/(dashboard)/backups/backups-pages.test.tsx index 1bcfca29d..e710363c4 100644 --- a/apps/dashboard/src/app/(dashboard)/backups/backups-pages.test.tsx +++ b/apps/dashboard/src/app/(dashboard)/backups/backups-pages.test.tsx @@ -64,7 +64,7 @@ const row = (id: string, serviceName: string, bytes: number): BackupDestinationR destinationId: "storage", destinationName: "Production backups", projectId: "project", - projectName: "Openship", + projectName: "OpenShip", serviceId: serviceName, serviceName, mailServerId: null, diff --git a/apps/dashboard/src/app/(dashboard)/billing/_components/billing-overview-layout.render.test.tsx b/apps/dashboard/src/app/(dashboard)/billing/_components/billing-overview-layout.render.test.tsx index efc890889..733e1b53d 100644 --- a/apps/dashboard/src/app/(dashboard)/billing/_components/billing-overview-layout.render.test.tsx +++ b/apps/dashboard/src/app/(dashboard)/billing/_components/billing-overview-layout.render.test.tsx @@ -48,7 +48,7 @@ describe("billing sidebar", () => { it("keeps the no-plan promotion visible when the provider has no free product", () => { const out = render(); - expect(text(out)).toContain("Launch on Openship Cloud"); + expect(text(out)).toContain("Launch on OpenShip Cloud"); expect(out).toContain("/billing/plans"); expect(text(out)).not.toContain("Unlimited"); }); diff --git a/apps/dashboard/src/app/(dashboard)/billing/manage/page.test.tsx b/apps/dashboard/src/app/(dashboard)/billing/manage/page.test.tsx index 31f875750..569a0f6de 100644 --- a/apps/dashboard/src/app/(dashboard)/billing/manage/page.test.tsx +++ b/apps/dashboard/src/app/(dashboard)/billing/manage/page.test.tsx @@ -227,7 +227,7 @@ it("adds slots without a plan picker and confirms the exact quoted price only on return state; }); await render(); - expect(host.querySelector("h1")?.textContent).toBe("Openship Manage"); + expect(host.querySelector("h1")?.textContent).toBe("OpenShip Manage"); expect(host.querySelector('a[href="/servers/external"]')?.textContent).toContain( "Production server", ); @@ -270,7 +270,7 @@ it("adds slots without a plan picker and confirms the exact quoted price only on it("keeps an empty paid plan on its detail page and offers the normal server connection form", async () => { activateManagement(0); await render(); - expect(host.querySelector("h1")?.textContent).toBe("Openship Manage"); + expect(host.querySelector("h1")?.textContent).toBe("OpenShip Manage"); expect(host.textContent).toContain(baseDictionary.billing.managementDetail.empty); expect(host.textContent).toContain("0 / 2"); expect(host.querySelector('a[href="/servers/new"]')?.textContent).toContain( @@ -417,7 +417,7 @@ it("keeps the Manage payment controls in its own payments tab", async () => { it("shows an unfinished Manage purchase as a named pending plan with recovery actions", async () => { state.pendingCheckout = true; await render(); - expect(host.querySelector("h1")?.textContent).toBe("Openship Manage"); + expect(host.querySelector("h1")?.textContent).toBe("OpenShip Manage"); expect(host.textContent).toContain(baseDictionary.billing.hub.paymentRequired); expect(button("Resume checkout")).toBeDefined(); expect(host.querySelector('[role="radiogroup"]')).toBeNull(); diff --git a/apps/dashboard/src/app/(dashboard)/emails/_components/setup-error-banner.render.test.tsx b/apps/dashboard/src/app/(dashboard)/emails/_components/setup-error-banner.render.test.tsx index 1f3f83c5a..e4d1a0a25 100644 --- a/apps/dashboard/src/app/(dashboard)/emails/_components/setup-error-banner.render.test.tsx +++ b/apps/dashboard/src/app/(dashboard)/emails/_components/setup-error-banner.render.test.tsx @@ -33,7 +33,7 @@ describe("SetupErrorBanner", () => { render({ title: "Setup couldn't start", message: - "Can't start mail setup: Permission denied (publickey,password). Openship could not run a single command on this server.", + "Can't start mail setup: Permission denied (publickey,password). OpenShip could not run a single command on this server.", }), ); expect(out).toContain("Setup couldn't start"); diff --git a/apps/dashboard/src/app/(dashboard)/library/LibraryContent.tsx b/apps/dashboard/src/app/(dashboard)/library/LibraryContent.tsx new file mode 100644 index 000000000..a7d345baa --- /dev/null +++ b/apps/dashboard/src/app/(dashboard)/library/LibraryContent.tsx @@ -0,0 +1,299 @@ +"use client"; + +import { Icon as UiIcon, type IconName } from "@repo/ui/icons"; + +import React, { useState, useEffect, useCallback, useRef } from "react"; +import { usePathname, useRouter, useSearchParams } from "next/navigation"; +import { migrationHref, parseMigrationSource, type MigrationSourceKind } from "@repo/core"; +import { useGitHub } from "@/context/GitHubContext"; +import { usePlatform } from "@/context/PlatformContext"; +import { useCloud } from "@/context/CloudContext"; +import { ConnectPrompt } from "./components/ConnectPrompt"; +import { LoadingSkeleton } from "./components/LoadingSkeleton"; +import { RepositoryList } from "./components/RepositoryList"; +import { useLibraryRepos } from "./useLibraryRepos"; +import { GhCliConsent } from "./components/GhCliConsent"; +import { LocalProjects } from "./components/LocalProjects"; +import { FolderUpload } from "./components/FolderUpload"; +import { LibrarySidebar } from "./components/LibrarySidebar"; +import { UrlImport } from "./components/UrlImport"; +import { RepositoryAccounts } from "./components/RepositoryAccounts"; +import { PageContainer } from "@/components/ui/PageContainer"; +import { HelpMenu } from "@/components/HelpMenu"; +import { MigrationWizard } from "@/components/migration/MigrationWizard"; +import { useI18n } from "@/components/i18n-provider"; +import { AppCatalog } from "@/components/apps/AppCatalog"; + +type Tab = "folder" | "repositories" | "url" | "server" | "apps"; + +/** One-time gh-CLI repo-read consent flag (per browser — desktop is single-user). */ +const GH_CLI_CONSENT_KEY = "openship.gh-cli-consent"; + +interface TabItem { + key: Tab; + label: string; + icon: IconName; +} + +export function LibraryContent() { + const { t } = useI18n(); + const router = useRouter(); + const pathname = usePathname(); + const searchParams = useSearchParams(); + const migrating = pathname === migrationHref(); + const requestedSource = parseMigrationSource(searchParams.get("from")); + const { + state, + connected, + connecting, + loading, + capabilities, + connect, + cliAction, + accounts, + selectedOwner, + setSelectedOwner, + refresh, + installUrl, + } = useGitHub(); + // Server-paginated repo list for the Library (own hook so the shared + // GitHubContext.repos — used by the GitSettings + migration pickers — stays a + // full-set, client-side list). Fetches a page at a time + authoritative counts. + const libRepos = useLibraryRepos(selectedOwner, connected); + const { selfHosted, deployMode } = usePlatform(); + // Only the desktop app can read the user's folder off disk (native picker + + // co-located API). A remote self-hosted browser uploads it instead. + const isDesktop = deployMode === "desktop"; + const { connected: cloudConnected } = useCloud(); + + // Cloud has a dedicated URL tab. Self-hosted instances keep its shortcut in + // the account row; both use the same selection and public import flow. + const [selectedTab, setActiveTab] = useState("repositories"); + const activeTab = migrating ? "server" : selectedTab; + const appsTabRef = useRef(null); + const importingUrl = activeTab === "url"; + const [showMigrate, setShowMigrate] = useState(migrating); + const [migrationSource, setMigrationSource] = useState( + requestedSource, + ); + // The shared layout keeps an import draft/progress mounted while browsing + // other Library tabs. Browser navigation still selects the source from its URL. + useEffect(() => { + if (!migrating) return; + setShowMigrate(true); + setMigrationSource(requestedSource); + }, [migrating, requestedSource]); + + const importUrl = () => setActiveTab("url"); + const selectOwner = (login: string) => { + setActiveTab("repositories"); + if (login) setSelectedOwner(login); + }; + const addAccount = () => { + setActiveTab("repositories"); + const app = capabilities?.methods.find((method) => method.kind === "app"); + const available = app + ? app.available && (!app.requiresCloud || cloudConnected) + : !selfHosted || !!installUrl; + if (available) void connect("oauth"); + else router.push("/settings?tab=git"); + }; + const sourceHeader = ( +
+ +
+ ); + + // First-run consent before the gh-CLI source lists repos. The gh path runs + // entirely on this machine (nothing to the cloud), but we ask once so the + // Library doesn't silently enumerate the user's repos on first open. + const [ghCliConsent, setGhCliConsent] = useState(true); // optimistic until localStorage reads + useEffect(() => { + setGhCliConsent(localStorage.getItem(GH_CLI_CONSENT_KEY) === "1"); + }, []); + const allowGhCli = useCallback(() => { + localStorage.setItem(GH_CLI_CONSENT_KEY, "1"); + setGhCliConsent(true); + }, []); + // Gate ONLY a credential we found on the host by ourselves. A device sign-in or + // a pasted token was handed over by the operator inside Openship — asking them + // to consent again to the thing they just did is a dead end that made a fresh + // token look broken until the prompt was noticed and accepted. + const needsGhCliConsent = + state.primary === "gh-cli" && + (state.sources.ghCli.method ?? "host-cli") === "host-cli" && + !ghCliConsent; + + // Folder import is available on self-hosted instances. Cloud offers a Git URL tab. + const tabs: TabItem[] = [ + { key: "apps", label: t.dashboard.pages.apps.title, icon: "grid" }, + { key: "repositories", label: t.library.page.tabs.github, icon: "github" }, + ...(selfHosted + ? [{ key: "folder" as const, label: t.library.page.tabs.folder, icon: "folder-out" as const }] + : [{ key: "url" as const, label: t.library.page.tabs.gitUrl, icon: "link" as const }]), + { key: "server", label: t.migration.entry.tab, icon: "migration" }, + ]; + + return ( + + {/* ── Header ───────────────────────────────────────────── */} + {/* No primary action here (the tabs below are the action), so the shared ⋮ + help menu sits alone at the title's trailing edge — level with the + heading, matching the Projects / Apps headers. */} +
+
+

+ {t.library.page.title} +

+

{t.library.page.subtitle}

+
+ +
+ + {/* ── Tabs ─────────────────────────────────────────────── */} +
+ {tabs.map((tab) => { + const Icon = tab.icon; + const selected = + activeTab === tab.key || (selfHosted && importingUrl && tab.key === "repositories"); + return ( + + ); + })} +
+ + {/* ── Main Grid ──────────────────────────────────────────── */} +
+ {/* ── LEFT COLUMN ────────────────────────────────────────── */} +
+ {activeTab === "apps" ? ( + + ) : selfHosted && activeTab === "folder" ? ( + // Desktop reads the folder off disk; remote self-hosted browsers upload it. + isDesktop ? ( + + ) : ( + + ) + ) : importingUrl ? ( + + ) : loading ? ( + + ) : !connected ? ( + { + setActiveTab("apps"); + appsTabRef.current?.focus(); + }} + selfHosted={selfHosted} + /> + ) : needsGhCliConsent ? ( + + ) : ( + + )} +
+ + {/* ── RIGHT COLUMN ───────────────────────────────────────── */} + +
+ + {(migrating || showMigrate) && ( +
+ router.push(migrationHref(source), { scroll: false })} + onClose={() => { + setShowMigrate(false); + setMigrationSource(null); + setActiveTab("repositories"); + router.push("/library", { scroll: false }); + }} + /> +
+ )} +
+ ); +} diff --git a/apps/dashboard/src/app/(dashboard)/library/layout.tsx b/apps/dashboard/src/app/(dashboard)/library/layout.tsx new file mode 100644 index 000000000..c0ceb5ea5 --- /dev/null +++ b/apps/dashboard/src/app/(dashboard)/library/layout.tsx @@ -0,0 +1,13 @@ +import { Suspense, type ReactNode } from "react"; +import { LibraryContent } from "./LibraryContent"; + +export default function LibraryLayout({ children }: { children: ReactNode }) { + return ( + <> + + + + {children} + + ); +} diff --git a/apps/dashboard/src/app/(dashboard)/library/migrate/page.tsx b/apps/dashboard/src/app/(dashboard)/library/migrate/page.tsx new file mode 100644 index 000000000..063704560 --- /dev/null +++ b/apps/dashboard/src/app/(dashboard)/library/migrate/page.tsx @@ -0,0 +1,4 @@ +// A direct entry into the same Library flow, including a source selected by ?from=. +export default function LibraryMigrationPage() { + return null; +} diff --git a/apps/dashboard/src/app/(dashboard)/library/page.test.tsx b/apps/dashboard/src/app/(dashboard)/library/page.test.tsx index 63204a84e..0b0ded45a 100644 --- a/apps/dashboard/src/app/(dashboard)/library/page.test.tsx +++ b/apps/dashboard/src/app/(dashboard)/library/page.test.tsx @@ -2,7 +2,7 @@ import { act } from "react"; import { createRoot, type Root } from "react-dom/client"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import LibraryPage from "./page"; +import { LibraryContent } from "./LibraryContent"; import { decodeSlug } from "@/utils/repoSlug"; const h = vi.hoisted(() => ({ @@ -16,8 +16,13 @@ const h = vi.hoisted(() => ({ appAvailable: true, requiresCloud: false, cloudConnected: true, + href: "/library", +})); +vi.mock("next/navigation", () => ({ + useRouter: () => ({ push: h.push }), + usePathname: () => new URL(h.href, "https://app.test").pathname, + useSearchParams: () => new URL(h.href, "https://app.test").searchParams, })); -vi.mock("next/navigation", () => ({ useRouter: () => ({ push: h.push }) })); vi.mock("@/lib/auth-client", () => ({ useSession: () => ({ data: { user: { id: "user" }, session: { activeOrganizationId: "org" } }, @@ -74,6 +79,14 @@ vi.mock("./components/LibrarySidebar", () => ({ LibrarySidebar: () => null })); vi.mock("./components/LocalProjects", () => ({ LocalProjects: () => null })); vi.mock("./components/FolderUpload", () => ({ FolderUpload: () => null })); vi.mock("@/components/apps/AppCatalog", () => ({ AppCatalog: () =>
App catalog
})); +vi.mock("@/components/migration/PlatformMigrationWizard", () => ({ + PlatformMigrationWizard: ({ provider, onBack }: { provider: string; onBack: () => void }) => ( +
+ + +
+ ), +})); vi.mock("@/components/migration/ServerMigrationWizard", () => ({ ServerMigrationWizard: ({ variant, onClose }: { variant: string; onClose: () => void }) => (
@@ -95,6 +108,13 @@ beforeEach(() => { appAvailable: true, requiresCloud: false, cloudConnected: true, + href: "/library", + }); + h.push.mockImplementation((href: string) => { + if (href.split("?")[0] === "/library" || href.split("?")[0] === "/library/migrate") { + h.href = href; + root.render(); + } }); localStorage.clear(); vi.stubGlobal("IS_REACT_ACT_ENVIRONMENT", true); @@ -107,7 +127,7 @@ afterEach(async () => { container.remove(); vi.unstubAllGlobals(); }); -const render = () => act(async () => root.render()); +const render = () => act(async () => root.render()); function button(label: string) { const result = Array.from(container.querySelectorAll("button")).find( (node) => (node.getAttribute("aria-label") ?? node.textContent?.trim()) === label, @@ -225,20 +245,73 @@ describe("New Project source actions", () => { h.selfHosted = true; await render(); await click("Import existing project"); + expect(h.href).toBe("/library/migrate"); expect(container.textContent).toContain("Where are you moving from?"); const serverSource = Array.from(container.querySelectorAll("button")).find((node) => node.textContent?.includes("Server or Docker"), ); expect(serverSource).toBeDefined(); await act(async () => serverSource!.click()); + expect(h.href).toBe("/library/migrate?from=server"); const wizard = container.querySelector('[aria-label="Migration"]'); expect(wizard?.getAttribute("data-variant")).toBe("tab"); expect(container.querySelector('[role="dialog"]')).toBeNull(); await click("Apps"); + expect(h.href).toBe("/library"); await click("Import existing project"); + expect(h.href).toBe("/library/migrate?from=server"); expect(container.querySelector('[aria-label="Migration"]')).toBe(wizard); await click("Close migration"); + expect(h.href).toBe("/library"); expect(container.querySelector('[aria-label="Migration"]')).toBeNull(); expect(button("GitHub").getAttribute("aria-pressed")).toBe("true"); }); + + it.each(["railway", "vercel"])("opens a direct %s link without GitHub setup", async (provider) => { + h.connected = false; + h.loading = true; + h.href = `/library/migrate?from=${provider}`; + await render(); + expect(button("Import existing project").getAttribute("aria-pressed")).toBe("true"); + expect(container.querySelector(`[aria-label="${provider} import"]`)).not.toBeNull(); + expect(h.connect).not.toHaveBeenCalled(); + const draft = container.querySelector('[aria-label="Connection name"]')!; + draft.value = "My connection"; + await click("Apps"); + await click("Import existing project"); + expect(container.querySelector('[aria-label="Connection name"]')).toBe(draft); + expect(draft.value).toBe("My connection"); + await click("Choose another source"); + expect(h.href).toBe("/library/migrate"); + expect(container.textContent).toContain("Where are you moving from?"); + }); + + it("follows browser source navigation and resets provider-specific drafts", async () => { + h.href = "/library/migrate?from=railway"; + await render(); + const railwayDraft = container.querySelector('[aria-label="Connection name"]')!; + railwayDraft.value = "Railway connection"; + h.href = "/library/migrate?from=vercel"; + await render(); + expect(container.querySelector('[aria-label="railway import"]')).toBeNull(); + expect(container.querySelector('[aria-label="vercel import"]')).not.toBeNull(); + expect(container.querySelector('[aria-label="Connection name"]')!.value).toBe(""); + h.href = "/library/migrate?from=railway"; + await render(); + expect(container.querySelector('[aria-label="railway import"]')).not.toBeNull(); + h.href = "/library/migrate"; + await render(); + expect(container.textContent).toContain("Where are you moving from?"); + }); + + it.each(["", "?from=unknown", "?from=https%3A%2F%2Fevil.test", "?from=Railway"])( + "shows the source chooser for an absent or unsupported hint (%s)", async (query) => { + h.href = `/library/migrate${query}`; + await render(); + expect(container.textContent).toContain("Where are you moving from?"); + expect(container.querySelector('[aria-label="Migration"]')).toBeNull(); + expect(container.querySelector('[aria-label="railway import"]')).toBeNull(); + expect(h.push).not.toHaveBeenCalled(); + }, + ); }); diff --git a/apps/dashboard/src/app/(dashboard)/library/page.tsx b/apps/dashboard/src/app/(dashboard)/library/page.tsx index 3f82d5fc4..9ab8912f8 100644 --- a/apps/dashboard/src/app/(dashboard)/library/page.tsx +++ b/apps/dashboard/src/app/(dashboard)/library/page.tsx @@ -1,262 +1,4 @@ -"use client"; - -import { Icon as UiIcon, type IconName } from "@repo/ui/icons"; - -import React, { useState, useEffect, useCallback, useRef } from "react"; -import { useRouter } from "next/navigation"; -import { useGitHub } from "@/context/GitHubContext"; -import { usePlatform } from "@/context/PlatformContext"; -import { useCloud } from "@/context/CloudContext"; -import { ConnectPrompt } from "./components/ConnectPrompt"; -import { LoadingSkeleton } from "./components/LoadingSkeleton"; -import { RepositoryList } from "./components/RepositoryList"; -import { useLibraryRepos } from "./useLibraryRepos"; -import { GhCliConsent } from "./components/GhCliConsent"; -import { LocalProjects } from "./components/LocalProjects"; -import { FolderUpload } from "./components/FolderUpload"; -import { LibrarySidebar } from "./components/LibrarySidebar"; -import { UrlImport } from "./components/UrlImport"; -import { RepositoryAccounts } from "./components/RepositoryAccounts"; -import { PageContainer } from "@/components/ui/PageContainer"; -import { HelpMenu } from "@/components/HelpMenu"; -import { MigrationWizard } from "@/components/migration/MigrationWizard"; -import { useI18n } from "@/components/i18n-provider"; -import { AppCatalog } from "@/components/apps/AppCatalog"; - -type Tab = "folder" | "repositories" | "url" | "server" | "apps"; - -/** One-time gh-CLI repo-read consent flag (per browser — desktop is single-user). */ -const GH_CLI_CONSENT_KEY = "openship.gh-cli-consent"; - -interface TabItem { - key: Tab; - label: string; - icon: IconName; -} - +// The shared layout owns the Library and retains import progress across its routes. export default function LibraryPage() { - const { t } = useI18n(); - const router = useRouter(); - const { - state, - connected, - connecting, - loading, - capabilities, - connect, - cliAction, - accounts, - selectedOwner, - setSelectedOwner, - refresh, - installUrl, - } = useGitHub(); - // Server-paginated repo list for the Library (own hook so the shared - // GitHubContext.repos — used by the GitSettings + migration pickers — stays a - // full-set, client-side list). Fetches a page at a time + authoritative counts. - const libRepos = useLibraryRepos(selectedOwner, connected); - const { selfHosted, deployMode } = usePlatform(); - // Only the desktop app can read the user's folder off disk (native picker + - // co-located API). A remote self-hosted browser uploads it instead. - const isDesktop = deployMode === "desktop"; - const { connected: cloudConnected } = useCloud(); - - // Cloud has a dedicated URL tab. Self-hosted instances keep its shortcut in - // the account row; both use the same selection and public import flow. - const [activeTab, setActiveTab] = useState("repositories"); - const appsTabRef = useRef(null); - const importingUrl = activeTab === "url"; - const [showMigrate, setShowMigrate] = useState(false); - - const importUrl = () => setActiveTab("url"); - const selectOwner = (login: string) => { - setActiveTab("repositories"); - if (login) setSelectedOwner(login); - }; - const addAccount = () => { - setActiveTab("repositories"); - const app = capabilities?.methods.find((method) => method.kind === "app"); - const available = app - ? app.available && (!app.requiresCloud || cloudConnected) - : !selfHosted || !!installUrl; - if (available) void connect("oauth"); - else router.push("/settings?tab=git"); - }; - const sourceHeader = ( -
- -
- ); - - // First-run consent before the gh-CLI source lists repos. The gh path runs - // entirely on this machine (nothing to the cloud), but we ask once so the - // Library doesn't silently enumerate the user's repos on first open. - const [ghCliConsent, setGhCliConsent] = useState(true); // optimistic until localStorage reads - useEffect(() => { - setGhCliConsent(localStorage.getItem(GH_CLI_CONSENT_KEY) === "1"); - }, []); - const allowGhCli = useCallback(() => { - localStorage.setItem(GH_CLI_CONSENT_KEY, "1"); - setGhCliConsent(true); - }, []); - // Gate ONLY a credential we found on the host by ourselves. A device sign-in or - // a pasted token was handed over by the operator inside Openship — asking them - // to consent again to the thing they just did is a dead end that made a fresh - // token look broken until the prompt was noticed and accepted. - const needsGhCliConsent = - state.primary === "gh-cli" && - (state.sources.ghCli.method ?? "host-cli") === "host-cli" && - !ghCliConsent; - - // Folder import is available on self-hosted instances. Cloud offers a Git URL tab. - const tabs: TabItem[] = [ - { key: "apps", label: t.dashboard.pages.apps.title, icon: "grid" }, - { key: "repositories", label: t.library.page.tabs.github, icon: "github" }, - ...(selfHosted - ? [{ key: "folder" as const, label: t.library.page.tabs.folder, icon: "folder-out" as const }] - : [{ key: "url" as const, label: t.library.page.tabs.gitUrl, icon: "link" as const }]), - { key: "server", label: t.migration.entry.tab, icon: "migration" }, - ]; - - return ( - - {/* ── Header ───────────────────────────────────────────── */} - {/* No primary action here (the tabs below are the action), so the shared ⋮ - help menu sits alone at the title's trailing edge — level with the - heading, matching the Projects / Apps headers. */} -
-
-

- {t.library.page.title} -

-

{t.library.page.subtitle}

-
- -
- - {/* ── Tabs ─────────────────────────────────────────────── */} -
- {tabs.map((tab) => { - const Icon = tab.icon; - const selected = - activeTab === tab.key || (selfHosted && importingUrl && tab.key === "repositories"); - return ( - - ); - })} -
- - {/* ── Main Grid ──────────────────────────────────────────── */} -
- {/* ── LEFT COLUMN ────────────────────────────────────────── */} -
- {activeTab === "apps" ? ( - - ) : selfHosted && activeTab === "folder" ? ( - // Desktop reads the folder off disk; remote self-hosted browsers upload it. - isDesktop ? ( - - ) : ( - - ) - ) : importingUrl ? ( - - ) : loading ? ( - - ) : !connected ? ( - { - setActiveTab("apps"); - appsTabRef.current?.focus(); - }} - selfHosted={selfHosted} - /> - ) : needsGhCliConsent ? ( - - ) : ( - - )} -
- - {/* ── RIGHT COLUMN ───────────────────────────────────────── */} - -
- - {showMigrate && ( -
- { - setShowMigrate(false); - setActiveTab("repositories"); - }} - /> -
- )} -
- ); + return null; } diff --git a/apps/dashboard/src/app/(dashboard)/projects/[id]/components/BuildSettings.tsx b/apps/dashboard/src/app/(dashboard)/projects/[id]/components/BuildSettings.tsx index d3dfbd688..5cd3d24ee 100644 --- a/apps/dashboard/src/app/(dashboard)/projects/[id]/components/BuildSettings.tsx +++ b/apps/dashboard/src/app/(dashboard)/projects/[id]/components/BuildSettings.tsx @@ -12,6 +12,8 @@ import { BuildCacheMigration } from "@/components/project-settings/DeploymentAut import { ResourceSettings } from "./ResourceSettings"; import { CommandEnvironmentNotice } from "@/components/import-project/CommandEnvironmentNotice"; import { RuntimeSourceUpdate } from "@/components/updates/RuntimeSourceUpdate"; +import Link from "next/link"; +import { projectApplication } from "@/lib/project-application"; /** * Configuration cards within project Settings. Build settings link to the deploy wizard; project @@ -50,8 +52,12 @@ function SectionCard({ }) { return (
-
-
+
+
@@ -65,15 +71,7 @@ function SectionCard({ ); } -function Row({ - label, - value, - mono, -}: { - label: string; - value?: React.ReactNode; - mono?: boolean; -}) { +function Row({ label, value, mono }: { label: string; value?: React.ReactNode; mono?: boolean }) { const empty = value === undefined || value === null || value === ""; return (
@@ -87,13 +85,15 @@ function Row({ ); } -export const BuildSettings = () => { - const { buildData, projectData, servicesData, id, updateBuild, refreshEnvironment } = useProjectSettings(); +export const BuildSettings = ({ scope = "project" }: { scope?: "project" | "application" }) => { + const { buildData, projectData, servicesData, id, updateBuild, refreshEnvironment } = + useProjectSettings(); const { t } = useI18n(); const router = useRouter(); const isWebmail = projectData?.framework === "webmail"; const services = servicesData.services; + const application = projectApplication(projectData, services); // SERVICE-FIRST = the project itself is a set of services (a compose-stack // project) or a monorepo of sub-apps — its config genuinely lives per-service. // A single/static APP that merely had a sidecar service ADDED is NOT @@ -101,7 +101,7 @@ export const BuildSettings = () => { // the project's framework, never on "a service row exists" (which conflates // the two — the whole point of this fix). const isServiceFirst = - services.some((service) => service.kind === "monorepo") || + (application?.mode !== "project" && services.some((service) => service.kind === "monorepo")) || isServicesFramework(projectData?.framework); // Edit = the deploy wizard, rehydrated from this project. The single place @@ -146,12 +146,41 @@ export const BuildSettings = () => { // ── Service-first project: config lives per-service in the Services tab. // (A single/static app with an added sidecar service falls through to the // single-app config below — it is NOT service-first.) ── - if (isServiceFirst) { + if (scope === "project" && application) { return (
- {hasRepo && } + + {t.projectDetail.services.detail.tabs.settings} + + + } + /> - + + {services.some((service) => !service.applicationMode) && } +
+ ); + } + if (isServiceFirst && scope === "project") { + return ( +
+ {hasRepo && ( + + )} + +
); @@ -180,76 +209,166 @@ export const BuildSettings = () => { return (
- { updateBuild(commands); await refreshEnvironment(); }} /> + { + updateBuild(commands); + await refreshEnvironment(); + }} + /> - {hasRepo && (projectData?.buildKind === "dockerfile" || projectData?.framework === "docker") && } - -
} + actions={ +
+ {hasRepo && + (projectData?.buildKind === "dockerfile" || projectData?.framework === "docker") && ( + + )} + +
+ } >
- + {/* Resources moved to the editable ResourceSettings card below — one source, and it covers self-hosted (where limits are now a real choice) instead of being cloud-only and read-only. */} - - + + - {getRuntimeVersionPolicy(projectData?.framework) && } - {projectData?.runtimeImage && } - - + {getRuntimeVersionPolicy(projectData?.framework) && ( + + )} + {projectData?.runtimeImage && ( + + )} + + {/* Only when pinned — a blank row would be noise for the vast majority of projects, whose compose file (if any) sits at the root. */} {buildData.composePath && ( - + )}
- - + {scope === "project" && } + {scope === "project" && } {/* Project-wide limits also apply to companion services on a static site. */} - {(workload !== "static" || services.length > 0) && } + {(workload !== "static" || services.length > 0) && + (scope === "project" || !services.some((service) => !service.applicationMode)) && ( + + )} {/* Storage — persistent paths + object storage. Editable in place (see the component's own note on why it doesn't route through the wizard). Only meaningful for a project with a running container. */} - {workload !== "static" && } + {scope === "project" && workload !== "static" && }
); }; /** Shared project inputs remain editable for single apps, Compose and monorepos. */ export function ProjectEnvironmentSettings() { - const { id } = useProjectSettings(); + const { id, projectData, servicesData } = useProjectSettings(); const { t } = useI18n(); const [envOpen, setEnvOpen] = useState(false); + const application = projectApplication(projectData, servicesData.services); + const shared = servicesData.services.some((service) => !service.applicationMode); + if (application && !shared) { + return ( + + {t.projectSettings.build.env.edit} + + + } + /> + ); + } return ( <> - {/* Environment variables — edited in place via a safe per-variable editor - (diff-merge; untouched secrets are never re-sent), NOT the wizard. */} + {/* The same project environment panel also opens from Apps & Services. */} `row-${uidCounter++}`; +import { Button } from "@/components/ui/button"; +import { useI18n } from "@/components/i18n-provider"; +import { ProjectEnvironmentPanel } from "@/components/project-settings/ProjectEnvironmentPanel"; +/** Settings opens the same project environment panel as Apps & Services. */ export function EnvVarsEditor({ projectId, isOpen, @@ -50,425 +16,25 @@ export function EnvVarsEditor({ isOpen: boolean; onClose: () => void; }) { - const { showToast } = useToast(); const { t } = useI18n(); - const { projectData, servicesData } = useProjectSettings(); - const router = useRouter(); - const canRefresh = canRefreshProjectEnvironment(projectData, servicesData.services); - const showCloudPricing = useCloudDeployPricing(projectData.workspaceId); - const showComposeReview = useComposeReview(projectId); - const hasActiveDeployment = Boolean(projectData?.activeDeploymentId); - const [rows, setRows] = useState([]); - const [baseline, setBaseline] = useState(null); - const [loading, setLoading] = useState(false); - const [saving, setSaving] = useState(false); - const [reveal, setReveal] = useState>({}); - // Saving persists the values; applying explicitly updates the active deployment. - const [pendingApply, setPendingApply] = useState(false); - const [applying, setApplying] = useState(false); - // Env keys wired IN by a service connection (keyed by envKey). These render as - // read-only "linked integration" rows — click opens the integration detail. - const [linked, setLinked] = useState>({}); - const [linkDetail, setLinkDetail] = useState(null); - const [unlinking, setUnlinking] = useState(false); - - const load = useCallback(async () => { - setLoading(true); - setRows([]); - setBaseline(null); - setLinked({}); - try { - const res = await projectsApi.getEnv(projectId); - const envState = createProjectEnvEditState(res?.data ?? [], ENVIRONMENT); - const loaded: Row[] = envState.rows.map((row) => ({ - ...row, - uid: nextUid(), - isSecret: row.isSecret ?? false, - })); - setRows(loaded); - setBaseline(envState.baseline); - // Best-effort: which of these keys are managed by a service connection? - const conns = await connectionsApi.list(projectId).catch((diagnosticFailure) => { observeCaughtError(diagnosticFailure, "dashboard/app/(dashboard)/projects/[id]/components/EnvVarsEditor"); return ({ data: [] }); }); - const map: Record = {}; - for (const cn of conns?.data ?? []) map[cn.envKey] = cn; - setLinked(map); - } catch (err) { - showToast(getApiErrorMessage(err, t.projectSettings.envVars.toast.loadFailed), "error", t.projectSettings.envVars.toast.loadFailedTitle); - } finally { - setLoading(false); - } - }, [projectId, showToast, t]); - - useEffect(() => { - if (isOpen) { - setReveal({}); - setPendingApply(false); - void load(); - } - }, [isOpen, load]); - - const update = (uid: string, patch: Partial) => - setRows((prev) => prev.map((r) => (r.uid === uid ? { ...r, ...patch } : r))); - - const addRow = (atTop = false) => - setRows((prev) => { - const row = { uid: nextUid(), key: "", value: "", visible: true, isSecret: false }; - return atTop ? [row, ...prev] : [...prev, row]; - }); - - const removeRow = (uid: string) => setRows((prev) => prev.filter((r) => r.uid !== uid)); - - const handleSave = async () => { - if (baseline === null) return; - const result = computeProjectEnvDiff(rows, baseline); - if (!result.ok) { - showToast(result.error, "error", t.projectSettings.envVars.toast.validationTitle); - return; - } - const { upserts, deletes } = result.diff; - - if (upserts.length === 0 && deletes.length === 0) { - // Say so, rather than just closing. An untouched masked secret is deliberately - // absent from the diff (we never hold its value), so re-entering the SAME `.env` - // over a set of saved secrets produces an empty diff — and a dialog that shut - // itself with no word read as "Save did nothing", so operators retried and - // concluded env saving was broken (#587). - showToast( - t.projectSettings.envVars.toast.noChanges, - "info", - t.projectSettings.envVars.toast.noChangesTitle, - ); - onClose(); - return; - } - - setSaving(true); - try { - await projectsApi.mergeEnv(projectId, { environment: ENVIRONMENT, upserts, deletes }); - showToast(t.projectSettings.envVars.toast.saved, "success", t.projectSettings.envVars.toast.savedTitle); - // A persisted env change only reaches the RUNNING service on a deploy. - // Offer the deployment mode this project supports; otherwise the saved - // values will take effect on its first deployment. - if (hasActiveDeployment) { - await load(); // re-sync so the diff resets to the saved state - setPendingApply(true); - } else { - onClose(); - } - } catch (err) { - showToast(getApiErrorMessage(err, t.projectSettings.envVars.toast.saveFailed), "error", t.projectSettings.envVars.toast.saveFailedTitle); - } finally { - setSaving(false); - } - }; - - const handleApply = async () => { - setApplying(true); - try { - const res = await deployApi.trigger( - canRefresh ? { projectId, refresh: true } : { projectId, smartRoute: true }, - ); - if (canRefresh) { - showToast(t.projectSettings.envVars.toast.applying, "success", t.projectSettings.envVars.toast.applyingTitle); - } else { - openTriggeredBuild(router, res, projectId); - } - onClose(); - } catch (err) { - if (!showComposeReview(err) && !showCloudPricing(err)) { - showToast( - getApiErrorMessage( - err, - canRefresh - ? t.projectSettings.envVars.toast.applyFailed - : t.projects.redeploy.couldNotRedeploy, - ), - "error", - canRefresh ? t.projectSettings.envVars.toast.applyFailedTitle : t.projects.redeploy.errorTitle, - ); - } - } finally { - setApplying(false); - } - }; - - // Remove a linked connection: drops the injected env var + the link, then - // re-syncs. The connection API already requests a redeploy for a live target. - const handleUnlink = async () => { - if (!linkDetail) return; - setUnlinking(true); - try { - await connectionsApi.remove(projectId, linkDetail.id); - showToast(t.projects.connections.removed, "success"); - setLinkDetail(null); - await load(); - } catch (err) { - showToast(getApiErrorMessage(err, t.projects.connections.failed), "error"); - } finally { - setUnlinking(false); - } - }; - + const [busy, setBusy] = useState(false); return ( - <> - - {pendingApply ? ( - - ) : ( - - )} +
+
} > -
- {pendingApply && ( -
- -
-

- {canRefresh - ? t.projectSettings.envVars.applyTitle - : t.projectSettings.envVars.rebuildTitle} -

-

- {canRefresh ? t.projectSettings.envVars.applyText : t.projectSettings.envVars.rebuildText} -

-
-
- )} -
-
- -
-
-

{t.projectSettings.envVars.title}

-

- {t.projectSettings.envVars.description} -

-
-
- - {loading ? ( -
- -
- ) : ( -
-
- - row.originalKey && linked[row.originalKey]) - .map((row) => row.key)} - disabled={saving || applying || baseline === null} - className="inline-flex h-8 items-center gap-1.5 rounded-lg bg-muted/60 px-3 text-xs font-medium text-foreground hover:bg-muted disabled:opacity-50" - onChange={(next) => - setRows(next.map((row) => ({ - ...row, - uid: rows.find((previous) => previous.key === row.key)?.uid ?? nextUid(), - isSecret: row.isSecret ?? false, - }))) - } - /> -
- {rows.length === 0 ? ( -

- {t.projectSettings.envVars.empty} -

- ) : ( - rows.map((r) => { - // A connection-managed key renders as a read-only integration - // chip — not editable here; click opens the integration detail. - const conn = r.originalKey ? linked[r.originalKey] : undefined; - if (conn) { - return ( - - ); - } - const showValue = reveal[r.uid] || (!r.isSecret && !r.preserveValue); - return ( -
- update(r.uid, { key: e.target.value })} - placeholder={t.projectSettings.envVars.keyPlaceholder} - spellCheck={false} - className="h-9 w-2/5 rounded-lg border border-border/50 bg-muted/20 px-3 font-mono text-[13px] text-foreground outline-none transition-colors focus:border-primary/40" - /> -
- update(r.uid, { value: e.target.value, preserveValue: false })} - placeholder={r.preserveValue ? t.projectSettings.envVars.secretPlaceholder : t.projectSettings.envVars.valuePlaceholder} - spellCheck={false} - className="h-9 w-full rounded-lg border border-border/50 bg-muted/20 px-3 pe-9 font-mono text-[13px] text-foreground outline-none transition-colors focus:border-primary/40" - /> - -
- - -
- ); - }) - )} - - -
- )} -
+ {isOpen && }
- - {/* Linked-integration detail — opens above the env editor when a linked row - is clicked. Shows the source app + reach mode; the value lives in the - connection, so the only action here is removing the link. */} - {linkDetail && ( - setLinkDetail(null)} maxWidth="460px" width="92vw" zIndex={10010} showCloseButton> -
-
-
- -
-
-

- {t.projectSettings.envVars.linkedTitle} -

-

{linkDetail.sourceName}

-
-
- -
-
- {t.projectSettings.envVars.title} - {linkDetail.envKey} -
-
- {t.projects.connections.modeInternalShort}/{t.projects.connections.modePublicShort} - - {linkDetail.mode === "internal" ? : } - {linkDetail.mode === "internal" - ? t.projects.connections.modeInternalShort - : t.projects.connections.modePublicShort} - -
-
- -

- {interpolate(t.projectSettings.envVars.linkedBody, { app: linkDetail.sourceName })} -

- -
- - -
-
-
- )} - ); } diff --git a/apps/dashboard/src/app/(dashboard)/projects/[id]/components/LogsSettings.tsx b/apps/dashboard/src/app/(dashboard)/projects/[id]/components/LogsSettings.tsx index 1aebaf000..380b2814a 100644 --- a/apps/dashboard/src/app/(dashboard)/projects/[id]/components/LogsSettings.tsx +++ b/apps/dashboard/src/app/(dashboard)/projects/[id]/components/LogsSettings.tsx @@ -22,7 +22,7 @@ import { Button } from "@/components/ui/button"; type LogsTab = "terminal" | "server"; -export const LogsSettings = () => { +export const LogsSettings = ({ applicationOnly = false }: { applicationOnly?: boolean }) => { const { projectData, buildData, @@ -52,7 +52,7 @@ export const LogsSettings = () => { }) !== "static"; const searchParams = useSearchParams(); const router = useRouter(); - const serviceIdFromUrl = searchParams.get("service"); + const serviceIdFromUrl = applicationOnly ? null : searchParams.get("service"); const roleFromUrl = searchParams.get("role"); const roleReplicaFromUrl = Number(searchParams.get("replica") ?? 1); const roleDeploymentFromUrl = searchParams.get("deploymentId"); @@ -92,15 +92,15 @@ export const LogsSettings = () => { }, [requestedTarget, urlSelectionChanged]); // Public (exposed) services lead the target picker — the ones users browse to. const services = useMemo( - () => sortServicesByPublicFirst(servicesData.services), - [servicesData.services], + () => applicationOnly ? [] : sortServicesByPublicFirst(servicesData.services), + [servicesData.services, applicationOnly], ); const servicesLoading = servicesData.isLoading; const servicesLoaded = !servicesData.isLoading; const hasServices = services.length > 0; // The shared application model distinguishes companion services from a // Compose/monorepo app whose primary runtime already has a service row. - const hasProjectRuntime = effectiveHasServer && hasSeparateApplication(projectData, services); + const hasProjectRuntime = effectiveHasServer && (applicationOnly || hasSeparateApplication(projectData, services)); // Request logs come from the EDGE, not from a runtime process — so anything // served through an edge has them, whether or not it has a container to stream // stdout from. That's every project with a domain: cloud (Oblien's edge proxy) @@ -188,6 +188,7 @@ export const LogsSettings = () => { // filter is a real, shareable, refresh-safe query param (null = project // runtime → no param). Guarded so we only replace when it actually changed. useEffect(() => { + if (applicationOnly) return; if (servicesLoading || urlSelectionChanged) return; if (roleFromUrl && !urlDeepLinkAppliedRef.current) return; const role = roleTargets.find((target) => target.value === selectedTarget); @@ -210,6 +211,7 @@ export const LogsSettings = () => { roleTargets, roleFromUrl, urlSelectionChanged, + applicationOnly, ]); const switchTab = useCallback( diff --git a/apps/dashboard/src/app/(dashboard)/projects/[id]/components/ServicesTab.tsx b/apps/dashboard/src/app/(dashboard)/projects/[id]/components/ServicesTab.tsx index 147194d9b..4c3f35dec 100644 --- a/apps/dashboard/src/app/(dashboard)/projects/[id]/components/ServicesTab.tsx +++ b/apps/dashboard/src/app/(dashboard)/projects/[id]/components/ServicesTab.tsx @@ -2,14 +2,25 @@ import { serviceRepositorySource } from "./services/repository-source"; -import { observedAllSettled, reportCaughtError as observeCaughtError } from "@repo/core/diagnostics"; +import { + observedAllSettled, + reportCaughtError as observeCaughtError, +} from "@repo/core/diagnostics"; import { Icon as UiIcon } from "@repo/ui/icons"; import React, { useEffect, useState, useCallback, useMemo, useRef } from "react"; import Link from "next/link"; import { useProjectSettings } from "@/context/ProjectSettingsContext"; import { usePlatform } from "@/context/PlatformContext"; -import { serviceKind, serviceCanStartWithoutBuild, servicesApi, sortServicesByPublicFirst, type Service, type ServiceContainer, type ServiceInput } from "@/lib/api/services"; +import { + serviceKind, + serviceCanStartWithoutBuild, + servicesApi, + sortServicesByPublicFirst, + type Service, + type ServiceContainer, + type ServiceInput, +} from "@/lib/api/services"; import { getServiceStatus } from "@/components/services/ServiceStatusBadge"; import { Button } from "@/components/ui/button"; import { ConnectionNotice } from "@/components/shared/ConnectionNotice"; @@ -24,10 +35,17 @@ import { useCloudDeployPricing } from "@/hooks/useCloudDeployPricing"; import { AddServiceModal } from "./services/AddServiceModal"; import { LinkedAppsCard } from "./services/LinkedAppsCard"; import { ServiceListItem } from "./services/ServiceListItem"; -import { hasSeparateApplication } from "@/lib/project-application"; +import { + hasSeparateApplication, + projectApplication, + applicationServiceRoute, +} from "@/lib/project-application"; +import { ServiceIcon } from "@/components/services/ServiceIcon"; +import { canConfigureRuntimeRoles } from "@/lib/runtime-roles"; import { RuntimeRoleConfigurationControl } from "@/components/services/RuntimeRoleConfiguration"; import { RuntimeRolesCard } from "@/components/services/RuntimeRoles"; -import { ProjectApplicationCard } from "./services/ProjectApplicationCard"; +import { ProjectApplicationListItem } from "./services/ProjectApplicationListItem"; +import { ProjectApplicationPanel } from "./services/ProjectApplicationPanel"; /** Render a drift diff value (arrays → csv, objects → keys, scalars → string). */ const fmtDriftVal = (v: unknown): string => { @@ -74,7 +92,8 @@ export const ServicesTab = () => { // the full-tab skeleton on every action and tab switch (#666) — rows render // fine while their runtime status is checked separately. const loading = - servicesData.isLoading || (containersLoading && services.length === 0); + servicesData.isLoading || + (containersLoading && services.length === 0 && !hasSeparateApplication(projectData, services)); const projectSlugBase = projectData.slug || projectData.name || "project"; const selectedId = slug?.[1] ?? null; const hasProjectId = Boolean(id && id !== "undefined"); @@ -98,10 +117,10 @@ export const ServicesTab = () => { // surfaces as a bare runtime error overlay instead of this component's // error state. The container read is also the one that can time out // (it reflects live runtime state), so it must not take the tab down. - const [, containersResult] = await observedAllSettled([ - refreshServices(), - servicesApi.containers(id), - ], "dashboard/app/(dashboard)/projects/[id]/components/ServicesTab"); + const [, containersResult] = await observedAllSettled( + [refreshServices(), servicesApi.containers(id)], + "dashboard/app/(dashboard)/projects/[id]/components/ServicesTab", + ); if (request !== runtimeRequest.current) return; if (containersResult.status === "rejected") throw containersResult.reason; const ctRes = containersResult.value; @@ -121,9 +140,11 @@ export const ServicesTab = () => { projectId: id, // Keep identity/port details, but never present a stale health reading // as current after a failed request. - containers: previous.projectId === id - ? previous.containers?.map((container) => ({ ...container, status: "unknown" })) ?? null - : null, + containers: + previous.projectId === id + ? (previous.containers?.map((container) => ({ ...container, status: "unknown" })) ?? + null) + : null, loading: false, error: !isAbortError(e) && e instanceof Error ? e.message : t.projects.services.failedLoad, })); @@ -139,7 +160,35 @@ export const ServicesTab = () => { const containerFor = (serviceId: string) => containers?.find((c) => c.serviceId === serviceId); - const selectedService = services.find((s) => s.id === selectedId); + const application = + servicesData.error && services.length === 0 ? null : projectApplication(projectData, services); + const hasApplication = application?.mode === "project"; + const selectedApplication = + !!application && (selectedId === "application" || selectedId === application.service?.id); + const selectedService = + selectedApplication && application?.mode === "service" + ? application.service + : services.find((s) => s.id === selectedId); + const listedServices = hasApplication + ? services.filter((s) => s.id !== application?.service?.id) + : services; + const entryCount = listedServices.length + (hasApplication ? 1 : 0); + const choices = [ + ...(hasApplication + ? [ + { + id: application?.service?.id ?? "application", + name: projectData.name, + icon: , + }, + ] + : []), + ...listedServices.map((s) => ({ + id: s.id, + name: s.name, + icon: , + })), + ]; // Null for a service with no route — it is reachable on its port, and linking // to a derived `-` host sent people to a name nobody created. @@ -158,7 +207,7 @@ export const ServicesTab = () => { const handleCreateService = async (data: ServiceInput) => { if (!hasProjectId) return; - const result = await servicesApi.create(id, data).catch(error => { + const result = await servicesApi.create(id, data).catch((error) => { showCloudPricing(error); throw error; }); @@ -181,14 +230,22 @@ export const ServicesTab = () => { if (!shouldLaunch) { // Nothing to launch against yet — keep the row and land on its detail so // the user can deploy/start it when ready. - showToast(interpolate(t.projects.services.toastSavedDeploy, { name: data.name }), "success", t.projects.services.toastServiceTitle); + showToast( + interpolate(t.projects.services.toastSavedDeploy, { name: data.name }), + "success", + t.projects.services.toastServiceTitle, + ); router.push(`/projects/${id}/services/${newServiceId}`); return; } // Start this service on the project's selected server. Keep its saved // configuration on failure so the user can inspect and retry the operation. - showToast(interpolate(t.projects.services.toastAddedDeploying, { name: data.name }), "success", t.projects.services.toastServiceTitle); + showToast( + interpolate(t.projects.services.toastAddedDeploying, { name: data.name }), + "success", + t.projects.services.toastServiceTitle, + ); const showStartFailure = async (message: string) => { await fetchData(); showToast(message, "error", data.name); @@ -201,17 +258,26 @@ export const ServicesTab = () => { await showStartFailure(res?.error || t.projects.services.toastDeployFailed); return; } - showToast(interpolate(t.projects.services.toastStarting, { name: data.name }), "success", t.projects.services.toastServiceTitle); + showToast( + interpolate(t.projects.services.toastStarting, { name: data.name }), + "success", + t.projects.services.toastServiceTitle, + ); await fetchData(); router.push(`/projects/${id}/services/${newServiceId}`); }) .catch(async (err) => { - if (showCloudPricing(err, async () => { - const result = await servicesApi.start(id, newServiceId); - if (result?.success === false) throw new Error(t.projects.services.toastDeployFailed); + if ( + showCloudPricing(err, async () => { + const result = await servicesApi.start(id, newServiceId); + if (result?.success === false) throw new Error(t.projects.services.toastDeployFailed); + await fetchData(); + router.push(`/projects/${id}/services/${newServiceId}`); + }) + ) { await fetchData(); - router.push(`/projects/${id}/services/${newServiceId}`); - })) { await fetchData(); return; } + return; + } await showStartFailure(getApiErrorMessage(err, t.projects.services.toastDeployFailed)); }); }; @@ -236,7 +302,11 @@ export const ServicesTab = () => { await fetchData(); } catch (e) { observeCaughtError(e, "dashboard/app/(dashboard)/projects/[id]/components/ServicesTab"); - showToast(e instanceof Error ? e.message : t.projects.services.failedResolveDrift, "error", name); + showToast( + e instanceof Error ? e.message : t.projects.services.failedResolveDrift, + "error", + name, + ); } finally { setDriftBusy(null); } @@ -245,7 +315,12 @@ export const ServicesTab = () => { ); const driftedServices = services.filter((s) => s.drift && s.drift.changes.length > 0); - const hasApplication = !servicesData.error && hasSeparateApplication(projectData, services); + + // Application variables are control-plane data. Keep them reachable even if + // the live container listing is slow or unavailable (including bare runtimes). + if (selectedApplication && hasApplication && !servicesData.isLoading) { + return ; + } /* ── Loading state ─────────────────────────────────────────────── */ if (loading) { @@ -255,7 +330,10 @@ export const ServicesTab = () => {
-