Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(frontend): enhance GitOps page UI with section boundaries and updated titles (#19510)
rebelice41f0dd0dc00c
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex c7821fad5b..54bf1015bb 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2835,11 +2835,12 @@"gitops": {"self": "GitOps","overview": {+ "title": "What is GitOps","description": "Bytebase GitOps lets you manage Database as Code by integrating database schema changes into your CI/CD pipeline.","description-git": "Your database schema lives in Git alongside your application code. Pull requests trigger SQL review, and merging to the target branch automatically creates rollouts."},"checklist": {- "title": "Checklist",+ "title": "Checks before we start","external-url": "External URL","external-url-missing": "External URL is not configured.","configure": "Configure",@@ -2851,12 +2852,12 @@"no-identity": "No workload identity found. Create one to get started."},"workflow": {- "title": "Workflow File",+ "title": "Workflow file generation","description": "Copy the workflow files into your repository to automate SQL review and database rollouts.","file-hint": "Save as {filePath} in your repository"},"test-setup": {- "title": "Test Your Setup",+ "title": "Test your first GitOps migration","description": "Verify the workflow is working end-to-end with a sample migration file.","step-create-branch": "Create a new branch, add the file above, and open a pull request targeting {branch}.","step-sql-review": "SQL Review runs automatically on the pull request and posts review comments.",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 1a7f36c37c..024e2805af 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2835,11 +2835,12 @@"gitops": {"self": "GitOps","overview": {+ "title": "Qué es GitOps","description": "Bytebase GitOps le permite gestionar Database as Code integrando los cambios de esquema de base de datos en su pipeline de CI/CD.","description-git": "El esquema de su base de datos se almacena en Git junto con el código de su aplicación. Las pull requests activan la revisión de SQL, y la fusión en la rama de destino crea automáticamente los despliegues."},"checklist": {- "title": "Lista de verificación",+ "title": "Verificaciones antes de comenzar","external-url": "URL externa","external-url-missing": "La URL externa no está configurada.","configure": "Configurar",@@ -2851,12 +2852,12 @@"no-identity": "No se encontró ninguna identidad de carga de trabajo. Cree una para comenzar."},"workflow": {- "title": "Archivo de flujo de trabajo",+ "title": "Generación de archivo de flujo de trabajo","description": "Copie los archivos de flujo de trabajo en su repositorio para automatizar la revisión de SQL y los despliegues de base de datos.","file-hint": "Guardar como {filePath} en su repositorio"},"test-setup": {- "title": "Pruebe su configuración",+ "title": "Pruebe su primera migración GitOps","description": "Verifique que el flujo de trabajo funciona de extremo a extremo con un archivo de migración de ejemplo.","step-create-branch": "Cree una nueva rama, agregue el archivo anterior y abra una pull request dirigida a {branch}.","step-sql-review": "SQL Review se ejecuta automáticamente en la pull request y publica comentarios de revisión.",diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 7a1aa73f68..6612b58ca2 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2835,11 +2835,12 @@"gitops": {"self": "GitOps","overview": {+ "title": "GitOps とは","description": "Bytebase GitOps は、データベーススキーマの変更を CI/CD パイプラインに統合し、Database as Code として管理できます。","description-git": "データベーススキーマはアプリケーションコードと一緒に Git で管理されます。プルリクエストで SQL レビューがトリガーされ、ターゲットブランチへのマージで自動的にロールアウトが作成されます。"},"checklist": {- "title": "チェックリスト",+ "title": "開始前の確認","external-url": "外部URL","external-url-missing": "外部URLが設定されていません。","configure": "設定",@@ -2851,12 +2852,12 @@"no-identity": "ワークロードアイデンティティが見つかりません。作成して始めましょう。"},"workflow": {- "title": "ワークフローファイル",+ "title": "ワークフローファイル生成","description": "ワークフローファイルをリポジトリにコピーして、SQL レビューとデータベースロールアウトを自動化します。","file-hint": "リポジトリ内に {filePath} として保存"},"test-setup": {- "title": "セットアップのテスト",+ "title": "最初の GitOps マイグレーションをテスト","description": "サンプルマイグレーションファイルでワークフロー全体が正常に動作するか確認します。","step-create-branch": "新しいブランチを作成し、上記のファイルを追加して、{branch} へのプルリクエストを作成します。","step-sql-review": "SQL Review がプルリクエストで自動的に実行され、レビューコメントが投稿されます。",diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 58cbe15394..b8ab9e48ce 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -2835,11 +2835,12 @@"gitops": {"self": "GitOps","overview": {+ "title": "GitOps là gì","description": "Bytebase GitOps cho phép bạn quản lý Database as Code bằng cách tích hợp các thay đổi schema cơ sở dữ liệu vào pipeline CI/CD.","description-git": "Schema cơ sở dữ liệu của bạn được lưu trữ trong Git cùng với mã nguồn ứng dụng. Pull request sẽ kích hoạt SQL review, và việc merge vào nhánh đích sẽ tự động tạo rollout."},"checklist": {- "title": "Danh sách kiểm tra",+ "title": "Kiểm tra trước khi bắt đầu","external-url": "URL bên ngoài","external-url-missing": "URL bên ngoài chưa được cấu hình.","configure": "Cấu hình",@@ -2851,12 +2852,12 @@"no-identity": "Không tìm thấy workload identity. Tạo một cái để bắt đầu."},"workflow": {- "title": "Tệp workflow",+ "title": "Tạo tệp workflow","description": "Sao chép các tệp workflow vào kho lưu trữ của bạn để tự động hóa SQL review và triển khai cơ sở dữ liệu.","file-hint": "Lưu dưới dạng {filePath} trong kho lưu trữ của bạn"},"test-setup": {- "title": "Kiểm tra cấu hình",+ "title": "Thử nghiệm migration GitOps đầu tiên","description": "Xác minh workflow hoạt động đầy đủ với một tệp migration mẫu.","step-create-branch": "Tạo nhánh mới, thêm tệp ở trên và mở pull request nhắm đến {branch}.","step-sql-review": "SQL Review tự động chạy trên pull request và đăng nhận xét review.",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 504459dab3..8444b7fc83 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2835,11 +2835,12 @@"gitops": {"self": "GitOps","overview": {+ "title": "什么是 GitOps","description": "Bytebase GitOps 让您通过将数据库架构变更集成到 CI/CD 流水线中,以 Database as Code 的方式管理数据库。","description-git": "数据库架构与应用代码一起存储在 Git 中。拉取请求会触发 SQL 审查,合并到目标分支后会自动创建变更发布。"},"checklist": {- "title": "检查清单",+ "title": "开始前检查","external-url": "外部访问地址","external-url-missing": "尚未配置外部访问地址。","configure": "去配置",@@ -2851,12 +2852,12 @@"no-identity": "未找到工作负载身份,请创建一个以开始使用。"},"workflow": {- "title": "工作流文件",+ "title": "工作流文件生成","description": "将工作流文件复制到您的代码仓库中,以自动化 SQL 审查和数据库变更发布。","file-hint": "保存为仓库中的 {filePath}"},"test-setup": {- "title": "测试您的配置",+ "title": "测试您的首次 GitOps 迁移","description": "使用示例迁移文件验证整个工作流是否正常运行。","step-create-branch": "创建新分支,添加上面的文件,然后向 {branch} 提交拉取请求。","step-sql-review": "SQL Review 会自动在拉取请求上运行并发布审查评论。",diff --git a/frontend/src/views/project/ProjectGitOpsDashboard.vue b/frontend/src/views/project/ProjectGitOpsDashboard.vueindex e8982675f6..70f756590d 100644--- a/frontend/src/views/project/ProjectGitOpsDashboard.vue+++ b/frontend/src/views/project/ProjectGitOpsDashboard.vue@@ -1,25 +1,27 @@<template><div class="w-full px-4 flex flex-col gap-y-6 py-4">- <!-- Header -->- <div>- <h2 class="text-lg font-medium">{{ $t("gitops.self") }}</h2>- <p class="textinfolabel mt-1">- {{ $t("gitops.overview.description") }}- </p>- <p class="textinfolabel mt-1">- {{ $t("gitops.overview.description-git") }}- </p>+ <!-- Section 1: What is GitOps -->+ <div class="border border-gray-200 rounded-lg p-6 flex flex-col gap-y-2">+ <h2 class="text-lg font-medium">+ {{ $t("gitops.overview.title") }}+ </h2>+ <div>+ <p class="textinfolabel">+ {{ $t("gitops.overview.description") }}+ </p>+ <p class="textinfolabel">+ {{ $t("gitops.overview.description-git") }}+ </p>+ </div>+ <img+ :src="gitopsWorkflowImage"+ alt="GitOps Workflow"+ class="w-full max-w-4xl h-[350px] object-contain"+ /></div>- <!-- Workflow diagram -->- <img- :src="gitopsWorkflowImage"- alt="GitOps Workflow"- class="w-full max-w-4xl"- />-- <!-- Part 1: Checklist -->- <div class="flex flex-col gap-y-1">+ <!-- Section 2: Checks before we start -->+ <div class="border border-gray-200 rounded-lg p-6 flex flex-col gap-y-1"><h2 class="text-lg font-medium mb-2">{{ $t("gitops.checklist.title") }}</h2>@@ -135,8 +137,8 @@</div></div>- <!-- Part 2: Workflow File -->- <div class="flex flex-col gap-y-3">+ <!-- Section 3: Workflow file generation -->+ <div class="border border-gray-200 rounded-lg p-6 flex flex-col gap-y-3"><h2 class="text-lg font-medium">{{ $t("gitops.workflow.title") }}</h2>@@ -247,8 +249,8 @@</NTabs></div>- <!-- Part 3: Test Your Setup -->- <div class="flex flex-col gap-y-4">+ <!-- Section 4: Test your first GitOps migration -->+ <div class="border border-gray-200 rounded-lg p-6 flex flex-col gap-y-4"><h2 class="text-lg font-medium">{{ $t("gitops.test-setup.title") }}</h2>