Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add description for spanner instance creation (#4309)

p0nyae1042d57d75
diff --git a/frontend/src/components/CreateInstanceForm.vue b/frontend/src/components/CreateInstanceForm.vue
index 430346f276..53db0262dd 100644
--- a/frontend/src/components/CreateInstanceForm.vue
+++ b/frontend/src/components/CreateInstanceForm.vue
@@ -75,10 +75,16 @@
<template v-else-if="state.instance.engine == 'SPANNER'">
{{ $t("instance.project-id-and-instance-id") }}
<span style="color: red">*</span>
- <p class="text-sm text-gray-500 mt-1 mb-2">
- Don't know where to find project ID and instance ID? Check this
- link!
- <!-- TODO(p0ny): fix the link -->
+ <p class="text-sm text-gray-500 mt-1">
+ {{ $t("instance.find-gcp-project-id-and-instance-id") }}
+ <a
+ href="https://www.bytebase.com/docs/how-to/spanner/how-to-find-project-id-and-instance-id"
+ target="_blank"
+ class="normal-link inline-flex items-center"
+ >
+ {{ $t("common.detailed-guide")
+ }}<heroicons-outline:external-link class="w-4 h-4 ml-1"
+ /></a>
</p>
</template>
<template v-else>
@@ -206,6 +212,16 @@
<template v-if="state.instance.engine == 'SPANNER'">
{{ $t("common.credentials") }}
<span class="text-red-600">*</span>
+ <p class="text-sm text-gray-500 mt-1">
+ {{ $t("instance.create-gcp-credentials") }}
+ <a
+ href="https://www.bytebase.com/docs/how-to/spanner/how-to-create-a-service-account-for-bytebase"
+ target="_blank"
+ class="normal-link inline-flex items-center"
+ >{{ $t("common.detailed-guide") }}
+ <heroicons-outline:external-link class="w-4 h-4 ml-1"
+ /></a>
+ </p>
</template>
<template v-else>
{{ $t("common.password") }}
@@ -234,6 +250,9 @@
{{ $t("common.database") }}
<template v-if="state.instance.engine === 'SPANNER'">
<span style="color: red">*</span>
+ <p class="text-sm text-gray-500 mt-1">
+ {{ $t("instance.used-for-testing-connection") }}
+ </p>
</template>
</label>
</div>
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 83200bc393..91020157ee 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -745,7 +745,10 @@
"failed-to-connect-instance": "Failed to connect instance.",
"failed-to-connect-instance-localhost": "Failed to connect instance.\nIf you run Bytebase with Docker, please try \"host.docker.internal\" for the host address.",
"search-instance-name": "Search instance name",
- "grants": "Grants"
+ "grants": "Grants",
+ "find-gcp-project-id-and-instance-id": "To find GCP Project ID and instance ID, see",
+ "create-gcp-credentials": "To create Credentials, see",
+ "used-for-testing-connection": "Used for testing connections only"
},
"environment": {
"select": "Select environment",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 1a226f71ef..845702bf3b 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -745,7 +745,10 @@
"failed-to-connect-instance-localhost": "连接到实例失败。\n如果您使用的 Docker 部署,请尝试使用 \"host.docker.internal\" 作为 Host 地址。",
"search-instance-name": "搜索实例名称",
"grants": "权限",
- "authentication-database": "认证数据库"
+ "authentication-database": "认证数据库",
+ "find-gcp-project-id-and-instance-id": "查看 GCP 项目 ID 与实例 ID 的方法见",
+ "create-gcp-credentials": "创建凭据的方法见",
+ "used-for-testing-connection": "仅作测试连接用"
},
"environment": {
"select": "选择环境",