Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor(frontend): migrate project access grants page to React (#19860)
Danny Xub288bb91084b
diff --git a/frontend/src/react/components/AdvancedSearch.tsx b/frontend/src/react/components/AdvancedSearch.tsxindex 18ae7e7c82..9ce354bc52 100644--- a/frontend/src/react/components/AdvancedSearch.tsx+++ b/frontend/src/react/components/AdvancedSearch.tsx@@ -30,6 +30,8 @@ export interface ScopeOption {description?: string;options?: ValueOption[];allowMultiple?: boolean;+ /** Server-side search callback. When provided, options are fetched dynamically instead of filtered client-side. */+ onSearch?: (keyword: string) => Promise<ValueOption[]>;}export function emptySearchParams(): SearchParams {@@ -65,6 +67,9 @@ export function AdvancedSearch({const [currentScope, setCurrentScope] = useState<string | undefined>();const [menuIndex, setMenuIndex] = useState(0);const [focusedTagIndex, setFocusedTagIndex] = useState<number | undefined>();+ const [asyncOptions, setAsyncOptions] = useState<ValueOption[]>([]);+ const [asyncLoading, setAsyncLoading] = useState(false);+ const asyncSearchRef = useRef<ReturnType<typeof setTimeout>>(undefined);// Sync external query changesuseEffect(() => {@@ -81,6 +86,7 @@ export function AdvancedSearch({!containerRef.current.contains(e.target as Node)) {setMenuView(undefined);+ setCurrentScope(undefined);setFocusedTagIndex(undefined);}};@@ -135,25 +141,60 @@ export function AdvancedSearch({);}, [currentScopeOption, inputText, availableScopeOptions]);+ // Trigger async search when scope has onSearch+ const isAsyncScope = currentScopeOption?.onSearch != null;+ useEffect(() => {+ if (!isAsyncScope || !currentScopeOption?.onSearch) return;+ clearTimeout(asyncSearchRef.current);+ const keyword = currentValueForScope;+ setAsyncLoading(true);+ asyncSearchRef.current = setTimeout(() => {+ currentScopeOption.onSearch!(keyword).then((results) => {+ setAsyncOptions(results);+ setAsyncLoading(false);+ setMenuIndex(0);+ });+ }, 300);+ return () => clearTimeout(asyncSearchRef.current);+ }, [isAsyncScope, currentScopeOption, currentValueForScope]);++ // Reset async state when scope changes+ useEffect(() => {+ setAsyncOptions([]);+ setAsyncLoading(false);+ }, [currentScope]);+// Visible value options (filtered, de-duped)const visibleValueOptions = useMemo(() => {if (!currentScope || !currentScopeOption) return [];const selectedValues = new Set(params.scopes.filter((s) => s.id === currentScope).map((s) => s.value));- let options = (currentScopeOption.options ?? []).filter(- (opt) => !selectedValues.has(opt.value)- );- const keyword = currentValueForScope.trim().toLowerCase();- if (keyword) {- options = options.filter(- (opt) =>- opt.value.toLowerCase().includes(keyword) ||- opt.keywords.some((k) => k.toLowerCase().includes(keyword))- );+ // Use async results for scopes with onSearch, static options otherwise+ const sourceOptions = isAsyncScope+ ? asyncOptions+ : (currentScopeOption.options ?? []);+ let options = sourceOptions.filter((opt) => !selectedValues.has(opt.value));+ // Only apply client-side filtering for static options+ if (!isAsyncScope) {+ const keyword = currentValueForScope.trim().toLowerCase();+ if (keyword) {+ options = options.filter(+ (opt) =>+ opt.value.toLowerCase().includes(keyword) ||+ opt.keywords.some((k) => k.toLowerCase().includes(keyword))+ );+ }}return options;- }, [currentScope, currentScopeOption, params.scopes, currentValueForScope]);+ }, [+ currentScope,+ currentScopeOption,+ params.scopes,+ currentValueForScope,+ isAsyncScope,+ asyncOptions,+ ]);const showMenu = useMemo(() => {if (menuView === "scope") return visibleScopeOptions.length > 0;@@ -168,8 +209,8 @@ export function AdvancedSearch({if (id) {setMenuView("value");setMenuIndex(0);- // Clear the input so the value menu is unobstructed- setInputText("");+ // Show "scope:" prefix in the input to match Vue behavior+ setInputText(`${id}:`);} else {setMenuView("scope");}@@ -354,7 +395,13 @@ export function AdvancedSearch({) {selectValue(visibleValueOptions[menuIndex].value);} else if (currentScope && inputText.trim()) {- selectValue(inputText.trim());+ // Strip the "scope:" prefix if present+ const prefix = `${currentScope}:`;+ const raw = inputText.trim();+ const value = raw.startsWith(prefix)+ ? raw.substring(prefix.length).trim()+ : raw;+ if (value) selectValue(value);}}}@@ -539,7 +586,12 @@ export function AdvancedSearch({</div>))}</div>- ) : !(currentScopeOption.options ?? []).length ? (+ ) : asyncLoading ? (+ <div className="py-4 text-center text-sm text-control-placeholder">+ …+ </div>+ ) : !(currentScopeOption.options ?? []).length &&+ !isAsyncScope ? (<div className="px-3 py-2 text-xs text-control-light border-t border-block-border">Type a value and press Enter</div>diff --git a/frontend/src/react/locales/en-US.json b/frontend/src/react/locales/en-US.jsonindex 7f6bacecd2..4d5575142f 100644--- a/frontend/src/react/locales/en-US.json+++ b/frontend/src/react/locales/en-US.json@@ -61,12 +61,16 @@}},"common": {+ "activated": "Activated",+ "active": "Active","add": "Add","add-permissions": "Add permissions","added": "Added","address": "Address","all": "All","archive": "Archive",+ "archive-description": "Mark \"{{name}}\" as archived and read-only.",+ "archive-resource": "Archive {{type}}","archived": "Archived","back": "Back","cancel": "Cancel",@@ -78,17 +82,26 @@"confirm": "Confirm","confirm-and-add": "Confirm and add","confirm-and-update": "Confirm and update",+ "confirm-archive": "Archive Resource?",+ "confirm-delete": "Delete Resource?","copied": "Copied","copy": "Copy","copy-failed": "Copy failed","create": "Create","created": "Created",+ "created-at": "Created",+ "creator": "Creator",+ "danger-zone": "Danger Zone","database": "Database",+ "database-group": "Database Group",+ "databases": "Databases","default": "Default","delete": "Delete","delete-resource": "Delete {{type}}",+ "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.","deleted": "Deleted","description": "Description",+ "deselect-all": "Deselect all","disable": "Disable","discard-changes": "Discard changes","edit": "Edit",@@ -98,6 +111,7 @@"enabled": "Enabled","environment": "Environment","environment-name": "Environment Name",+ "environments": "Environments","expiration": "Expiration","export": "Export","failed": "Failed",@@ -105,6 +119,7 @@"size-limit": "File size should less than {{size}} MiB","type-limit": "Only support {{extension}} file"},+ "filter": "Filter","filter-by-name": "Filter by name","from": "From","general": "General",@@ -112,12 +127,14 @@"id": "ID","instance": "Instance","is-required": "is required",+ "items": "items","key": "Key","labels": "Labels","learn-more": "Learn more","leave-without-saving": "Leave without saving?","load-more": "Load more","loading": "Loading",+ "manually-select": "Manually select","members_one": "Member","members_other": "Members","missing-required-permission": "Missing required permissions {{permissions}}",@@ -126,20 +143,22 @@"next": "Next","no-data": "No data","ok": "OK",- "optional": "Optional","operations": "Operations",+ "optional": "Optional",+ "pending": "Pending","permissions": "Permissions","previous": "Previous","project": "Project","reason": "Reason","release": "Release","reorder": "Reorder",- "resource": "Resource","required-permission": "Required permissions","required-workspace-permission": "Following permissions are required to initialize the workspace UX",+ "resource": "Resource","restore": "Restore","restored": "Restored","revert": "Revert",+ "revoked": "Revoked","rows-per-page": "Rows per page","save": "Save","schema": "Schema",@@ -147,13 +166,16 @@"search-for-more": "Search for more","select": "Please Select","select-all": "Select all",+ "selected": "selected","sensitive-placeholder": "Sensitive - write only","state": "State",+ "statement": "Statement","status": "Status","system": "System","table": "Table","title": "Title","to": "To",+ "total": "Total","total-n-items": "Total {{n}} items","type": "Type","unassigned": "Unassigned",@@ -166,22 +188,7 @@"view": "View","view-details": "View Details","warning": "Warning",- "you": "you",- "database-group": "Database Group",- "databases": "Databases",- "danger-zone": "Danger Zone",- "archive-resource": "Archive {{type}}",- "archive-description": "Mark \"{{name}}\" as archived and read-only.",- "confirm-archive": "Archive Resource?",- "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",- "confirm-delete": "Delete Resource?",- "environments": "Environments",- "manually-select": "Manually select",- "filter": "Filter",- "total": "Total",- "selected": "selected",- "items": "items",- "deselect-all": "Deselect all"+ "you": "you"},"create-db": {"cluster": "Cluster",@@ -254,6 +261,7 @@}},"database": {+ "change-database": "Change Database","classification": {"description": "Define classification levels to apply consistent masking policies across columns and databases."},@@ -262,18 +270,28 @@"engine": "Engine","expression": "Expression","filter-database": "Filter database",+ "mixed-label-values": "mixed values",+ "mixed-label-values-warning": "Some of the selected resources have mixed values for the same key. Only edit these key-value pairs if you intend to change them.",+ "select": "Select database","selected-n-databases": "{{n}} database(s) selected","successfully-transferred-databases": "Successfully transferred databases","sync-schema-button": "Sync Schema","sync-status-failed": "Sync failed","transfer-project": "Transfer Project",- "change-database": "Change Database",- "mixed-label-values": "mixed values",- "mixed-label-values-warning": "Some of the selected resources have mixed values for the same key. Only edit these key-value pairs if you intend to change them.","unassign": "Unassign","unassign-alert-description": "The selected databases will be removed from the project",- "unassign-alert-title": "Unassign databases",- "select": "Select database"+ "unassign-alert-title": "Unassign databases"+ },+ "database-group": {+ "condition": {+ "self": "Condition"+ },+ "create": "New database group",+ "delete-group": "Delete the database group {{name}}",+ "matched-database": "Matched database",+ "no-matched-databases": "No matched databases",+ "select": "Select database group",+ "unmatched-database": "Unmatched database"},"db": {"character-set": "Character set",@@ -288,12 +306,47 @@"delete": "Delete this environment","delete-description": "Delete environment will also remove it from related instances and databases. You cannot undo this action","reorder": "Reorder Environments",- "successfully-updated-environment": "Successfully updated environment '{{name}}'.",- "select": "Select environment"+ "select": "Select environment",+ "successfully-updated-environment": "Successfully updated environment '{{name}}'."},"error-page": {"not-found": "Not Found"},+ "gitops": {+ "checklist": {+ "database-group-recommendation": "For databases sharing the same schema, a database group lets you migrate them together in one change. Define the group once and reuse it across migrations without picking individual databases every time.",+ "external-url": "External URL",+ "target-databases": "Target Databases",+ "title": "Checks before we start",+ "wif-notice-suffix": "to set up GitOps using a service account.",+ "wif-notice-text": "Workload Identity Federation is currently supported for GitHub and GitLab only. For other VCS, refer to the tutorials for",+ "workload-identity": "Workload Identity"+ },+ "documentation": "View Documentation",+ "overview": {+ "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.",+ "title": "What is GitOps"+ },+ "test-setup": {+ "description": "Verify the workflow is working end-to-end with a sample migration file.",+ "naming-convention": "Migration files are applied in lexicographic order. Use a timestamp or sequence prefix, e.g. 20240101000000_create_table.sql. Append _ddl or _dml to indicate the change type.",+ "step-create-branch": "Create a new branch, add the file above, and open a pull request targeting {branch}.",+ "step-merge": "Once the review passes, merge the PR. Bytebase will automatically create a rollout and deploy to the target environments.",+ "step-sql-review": "SQL Review runs automatically on the pull request and posts review comments.",+ "title": "Test your first GitOps migration"+ },+ "workflow": {+ "description": "Copy the workflow files into your repository to automate SQL review and database rollouts.",+ "file-hint": "Save as {filePath} in your repository {repository}",+ "provider-not-match": "The selected workload identity only works for {provider}.",+ "self-hosted-runner": "Self-hosted runner",+ "title": "Workflow file generation"+ },+ "workload-identity": {+ "select-placeholder": "Select a workload identity"+ }+ },"identity-provider": {"claims-description": "The following claims were returned by the identity provider. This information can help you configure field mappings.","delete-warning": "Are you sure you want to delete this identity provider? Users who signed up via this SSO will not be able to sign in with it anymore. If password sign-in is disabled in your workspace settings, these users may be locked out completely.",@@ -338,12 +391,15 @@"syncing": "Syncing ..."},"issue": {- "labels": "Issue Labels"+ "labels": "Issue Labels",+ "advanced-search": {+ "filter": "Filter"+ }},"label": {"error": {- "key-necessary": "Key is required","key-duplicated": "Duplicated keys",+ "key-necessary": "Key is required","max-value-length-exceeded": "Value's length cannot exceed {{length}} characters"}},@@ -372,15 +428,6 @@}},"project": {- "members": {- "add-more": "Add more",- "description": "Project members determine the permission to operate database and issues inside the project. Project Owner, Workspace Admin and Workspace DBA all have full project permissions.",- "never-expires": "Never",- "allow-ddl": "Allow running DDL/DML statements in the selected environments.",- "disallow-ddl-all-environments": "Disallow running DDL/DML statements for all environments.",- "edit-member": "Edit member - {{member}}",- "revoke-role-from-member": "Revoke '{{role}}' from '{{member}}'?"- },"batch": {"archive": {"description": "This will archive the selected projects. You can restore them later if needed.",@@ -407,109 +454,118 @@"success-prompt": "Successfully created project {{name}}."},"filter-projects": "Filter projects",- "table": {- "name": "Name"+ "members": {+ "add-more": "Add more",+ "allow-ddl": "Allow running DDL/DML statements in the selected environments.",+ "description": "Project members determine the permission to operate database and issues inside the project. Project Owner, Workspace Admin and Workspace DBA all have full project permissions.",+ "disallow-ddl-all-environments": "Disallow running DDL/DML statements for all environments.",+ "edit-member": "Edit member - {{member}}",+ "never-expires": "Never",+ "revoke-role-from-member": "Revoke '{{role}}' from '{{member}}'?"},"settings": {- "success-updated": "Project settings updated successfully.",- "update-failed": "Failed to update the project setting.","confirm-archive-project": "Archiving \"{{name}}\" will make it read-only and hide it from active project lists. All issues, databases, and settings will be preserved. You can restore it later from the archived projects list.","confirm-delete-project": "Deleting \"{{name}}\" will permanently remove the project and all associated data including issues, configurations, and history. All databases in this project will be moved to the default project. This action cannot be undone.",- "restore": {- "title": "Restore project",- "btn-text": "Restore this project"- },- "project-labels": {- "self": "Project Labels",- "description": "Organize projects with key-value labels (max 64)"- },"issue-related": {- "self": "Issue Related",- "labels": {- "self": "Issue Labels",- "description": "Labels can be attached in the issues for management",- "placeholder": "Press Enter to add tag",- "force-issue-labels": {- "self": "Require labels for all issues",- "description": "Require at least one label when creating issues.",- "warning": "Require at least configured one label"- }- },- "enforce-issue-title": {- "self": "Require manual title",- "description": "Require titles for issues and plans to be created by user instead of auto-generated."+ "allow-jit": {+ "description": "Allow project members to request just-in-time (JIT) access.",+ "self": "Just-In-Time access"},- "enforce-sql-review": {- "self": "Enforce SQL review",- "description": "Require SQL review checks to pass without errors before allowing issue creation."+ "allow-request-role": {+ "description": "Allow project members to request roles.",+ "self": "Allow request role"},"allow-self-approval": {- "self": "Allow self approval",- "description": "Allow the issue creator to approve the issue."+ "description": "Allow the issue creator to approve the issue.",+ "self": "Allow self approval"},- "allow-request-role": {- "self": "Allow request role",- "description": "Allow project members to request roles."+ "approval-flow-configured": "Approval flow configured",+ "approval-flow-fallback": "Using fallback approval flow",+ "approval-flow-not-configured": "No approval flow configured",+ "ci-sampling-size": {+ "description": "The maximum number of databases to sample during CI data validation. When disabled (zero), full validation will be performed.",+ "self": "CI Data Sampling Size"},- "allow-jit": {- "self": "Just-In-Time access",- "description": "Allow project members to request just-in-time (JIT) access."+ "enforce-issue-title": {+ "description": "Require titles for issues and plans to be created by user instead of auto-generated.",+ "self": "Require manual title"},- "postgres-database-tenant-mode": {- "self": "Postgres database tenant mode",- "description": "The tenant mode for Postgres database. If enable, the issue will be run by the database OWNER. Otherwise, the issue will be run by the instance connection user."+ "enforce-sql-review": {+ "description": "Require SQL review checks to pass without errors before allowing issue creation.",+ "self": "Enforce SQL review"},- "max-retries": {- "self": "Maximum retries count for lock timeout",- "description": "The maximum retries count for lock timeout when running the task. The default value is 0. Only applicable to Postgres."+ "labels": {+ "description": "Labels can be attached in the issues for management",+ "force-issue-labels": {+ "description": "Require at least one label when creating issues.",+ "self": "Require labels for all issues",+ "warning": "Require at least configured one label"+ },+ "placeholder": "Press Enter to add tag",+ "self": "Issue Labels"},- "ci-sampling-size": {- "self": "CI Data Sampling Size",- "description": "The maximum number of databases to sample during CI data validation. When disabled (zero), full validation will be performed."+ "max-retries": {+ "description": "The maximum retries count for lock timeout when running the task. The default value is 0. Only applicable to Postgres.",+ "self": "Maximum retries count for lock timeout"},"parallel_tasks_per_rollout": {- "self": "Parallel tasks per rollout",- "description": "Control the number of parallel tasks per rollout. Setting this to zero disables any throttling."+ "description": "Control the number of parallel tasks per rollout. Setting this to zero disables any throttling.",+ "self": "Parallel tasks per rollout"+ },+ "postgres-database-tenant-mode": {+ "description": "The tenant mode for Postgres database. If enable, the issue will be run by the database OWNER. Otherwise, the issue will be run by the instance connection user.",+ "self": "Postgres database tenant mode"},"require-issue-approval": {- "self": "Require issue approval before creating rollout",- "description": "Issue must be approved before creating rollout."+ "description": "Issue must be approved before creating rollout.",+ "self": "Require issue approval before creating rollout"},"require-plan-check-no-error": {- "self": "Require plan checks to pass before creating rollout",- "description": "Plan checks must pass without error before creating rollout."+ "description": "Plan checks must pass without error before creating rollout.",+ "self": "Require plan checks to pass before creating rollout"},- "approval-flow-configured": "Approval flow configured",- "approval-flow-fallback": "Using fallback approval flow",- "approval-flow-not-configured": "No approval flow configured",+ "self": "Issue Related","view-approval-flow": "View approval flow"- }+ },+ "project-labels": {+ "description": "Organize projects with key-value labels (max 64)",+ "self": "Project Labels"+ },+ "restore": {+ "btn-text": "Restore this project",+ "title": "Restore project"+ },+ "success-updated": "Project settings updated successfully.",+ "update-failed": "Failed to update the project setting."+ },+ "table": {+ "name": "Name"},"webhook": {- "success-created-prompt": "Successfully created webhook {{name}}.",- "success-updated-prompt": "Successfully updated webhook {{name}}.",- "success-deleted-prompt": "Successfully deleted webhook {{name}}.",- "success-tested-prompt": "Test webhook event OK.",- "fail-tested-title": "Test webhook event failed.",+ "activity-support-direct-message": "Support send direct messages to related users","add-a-webhook": "Add a webhook",- "destination": "Destination",- "webhook-url": "Webhook URL",- "triggering-activity": "Triggering activities",- "test-webhook": "Test Webhook","creation": {- "title": "Create webhook","desc": "Create the corresponding webhook for the {{destination}} channel receiving the message.",+ "title": "Create webhook","view-doc": "View {{destination}}'s doc"},"deletion": {"confirm-title": "Delete webhook '{{title}}'?"},+ "destination": "Destination","direct-messages": "Direct messages",- "direct-messages-tip": "Bytebase will fall back to posting webhook messages if no users are matched or the delivery of the message fails.",- "enable-direct-messages": "Enable direct messages","direct-messages-description": "Once enabled, Bytebase will send following events as direct messages to the related users (matched by email):",+ "direct-messages-tip": "Bytebase will fall back to posting webhook messages if no users are matched or the delivery of the message fails.","direct-messages-warning": "You need to configure IM integration to make it work.",- "activity-support-direct-message": "Support send direct messages to related users"+ "enable-direct-messages": "Enable direct messages",+ "fail-tested-title": "Test webhook event failed.",+ "success-created-prompt": "Successfully created webhook {{name}}.",+ "success-deleted-prompt": "Successfully deleted webhook {{name}}.",+ "success-tested-prompt": "Test webhook event OK.",+ "success-updated-prompt": "Successfully updated webhook {{name}}.",+ "test-webhook": "Test Webhook",+ "triggering-activity": "Triggering activities",+ "webhook-url": "Webhook URL"}},"quick-action": {@@ -789,6 +845,7 @@"add-user": "Add user","add-workload-identity": "Add Workload Identity","all-users": "All users",+ "assign-role": "Assign role","cannot-revoke-self": "You cannot revoke yourself","copy-service-key": "Copy Service Key","entra-sync": {@@ -822,21 +879,20 @@"inactive-service-accounts": "Inactive service accounts","inactive-users": "Inactive users","inactive-workload-identities": "Inactive workload identities",+ "reset-service-key": "Reset Service Key",+ "reset-service-key-alert": "This action cannot be undone. The old key will stop working immediately. Are you sure you want to reset this service key?","revoke-access": "Revoke Access","revoke-access-alert": "Are you sure to revoke access?","revoke-allusers-alert": "Revoke \"All users\" will revoke related roles from all other users in your workspace. Are you sure to continue?",- "reset-service-key": "Reset Service Key",- "reset-service-key-alert": "This action cannot be undone. The old key will stop working immediately. Are you sure you want to reset this service key?","revoked": "Revoked","search-member": "Search member",- "service-key-copied": "Service Key copied to clipboard, please keep it in secret.","select-account_one": "Select account","select-account_other": "Select accounts",- "assign-role": "Assign role","select-role_one": "Select role","select-role_other": "Select roles","service-account": "Service Account","service-accounts": "Service Accounts",+ "service-key-copied": "Service Key copied to clipboard, please keep it in secret.","show-inactive": "Show inactive accounts","table": {"account": "Account",@@ -972,10 +1028,10 @@"mcp": "MCP","members": "Members","members-and-groups": "Members & Groups",+ "security-and-policy": "Security & Policy","sso": "SSO","subscription": "Subscription",- "users-and-groups": "Users & Groups",- "security-and-policy": "Security & Policy"+ "users-and-groups": "Users & Groups"},"sso": {"create": "Create SSO",@@ -1064,7 +1120,15 @@}},"sql-editor": {- "self": "SQL Editor"+ "access-grants-redirect-hint": "Go to {link} to view and manage your own access grants.",+ "activate-access": "Activate",+ "activate-confirm": "Are you sure you want to activate this access grant?",+ "expired": "Expired",+ "grant-type-unmask": "Unmask",+ "revoke-access": "Revoke",+ "revoke-confirm": "Are you sure you want to revoke this access grant?",+ "self": "SQL Editor",+ "view-issue": "View Issue"},"sql-review": {"add-or-remove-rules": "Add or remove rules",@@ -1201,51 +1265,5 @@},"two-factor": {"enabled": "2FA Enabled"- },- "database-group": {- "condition": {- "self": "Condition"- },- "create": "New database group",- "delete-group": "Delete the database group {{name}}",- "matched-database": "Matched database",- "no-matched-databases": "No matched databases",- "select": "Select database group",- "unmatched-database": "Unmatched database"- },- "gitops": {- "checklist": {- "database-group-recommendation": "For databases sharing the same schema, a database group lets you migrate them together in one change. Define the group once and reuse it across migrations without picking individual databases every time.",- "external-url": "External URL",- "target-databases": "Target Databases",- "title": "Checks before we start",- "wif-notice-suffix": "to set up GitOps using a service account.",- "wif-notice-text": "Workload Identity Federation is currently supported for GitHub and GitLab only. For other VCS, refer to the tutorials for",- "workload-identity": "Workload Identity"- },- "documentation": "View Documentation",- "overview": {- "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.",- "title": "What is GitOps"- },- "test-setup": {- "description": "Verify the workflow is working end-to-end with a sample migration file.",- "naming-convention": "Migration files are applied in lexicographic order. Use a timestamp or sequence prefix, e.g. 20240101000000_create_table.sql. Append _ddl or _dml to indicate the change type.",- "step-create-branch": "Create a new branch, add the file above, and open a pull request targeting {branch}.",- "step-merge": "Once the review passes, merge the PR. Bytebase will automatically create a rollout and deploy to the target environments.",- "step-sql-review": "SQL Review runs automatically on the pull request and posts review comments.",- "title": "Test your first GitOps migration"- },- "workflow": {- "description": "Copy the workflow files into your repository to automate SQL review and database rollouts.",- "file-hint": "Save as {filePath} in your repository {repository}",- "provider-not-match": "The selected workload identity only works for {provider}.",- "self-hosted-runner": "Self-hosted runner",- "title": "Workflow file generation"- },- "workload-identity": {- "select-placeholder": "Select a workload identity"- }}}diff --git a/frontend/src/react/locales/es-ES.json b/frontend/src/react/locales/es-ES.jsonindex 28bb0e5e0d..431d528a8c 100644--- a/frontend/src/react/locales/es-ES.json+++ b/frontend/src/react/locales/es-ES.json@@ -61,12 +61,16 @@}},"common": {+ "activated": "Activado",+ "active": "Activo","add": "Agregar","add-permissions": "Agregar permisos","added": "Agregado","address": "Dirección","all": "Todos","archive": "Archivo",+ "archive-description": "Mark \"{{name}}\" as archived and read-only.",+ "archive-resource": "Archive {{type}}","archived": "Archivada","back": "Volver","cancel": "Cancelar",@@ -78,17 +82,26 @@"confirm": "Confirmar","confirm-and-add": "Confirm and add","confirm-and-update": "Confirmar y actualizar",+ "confirm-archive": "Archive Resource?",+ "confirm-delete": "Delete Resource?","copied": "Copiado","copy": "Copiar","copy-failed": "Copy failed","create": "Crear","created": "Creado",+ "created-at": "Creado",+ "creator": "Creador",+ "danger-zone": "Danger Zone","database": "Base de datos",+ "database-group": "Grupo de bases de datos",+ "databases": "Bases de datos","default": "Predeterminado","delete": "Eliminar","delete-resource": "Delete {{type}}",+ "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.","deleted": "Eliminado","description": "Descripción",+ "deselect-all": "Deselect all","disable": "Disable","discard-changes": "Descartar cambios","edit": "Editar",@@ -98,6 +111,7 @@"enabled": "Enabled","environment": "Entorno","environment-name": "Nombre del entorno",+ "environments": "Entornos","expiration": "Expiration","export": "Exportar","failed": "Error",@@ -105,6 +119,7 @@"size-limit": "El tamaño del archivo debe ser menor que {{size}} MiB","type-limit": "Solo se admiten archivos {{extension}}"},+ "filter": "Filter","filter-by-name": "Filtrar por nombre","from": "Desde","general": "General",@@ -112,12 +127,14 @@"id": "ID","instance": "Instancia","is-required": "is required",+ "items": "items","key": "Clave","labels": "Etiquetas","learn-more": "Aprender más","leave-without-saving": "¿Salir sin guardar?","load-more": "Cargar más","loading": "Cargando",+ "manually-select": "Manually select","members_one": "Miembro","members_other": "Miembros","missing-required-permission": "Faltan permisos requeridos {{permissions}}",@@ -126,20 +143,22 @@"next": "Siguiente","no-data": "Sin datos","ok": "OK",- "optional": "Optional","operations": "Operaciones",+ "optional": "Optional",+ "pending": "Pendiente","permissions": "Permisos","previous": "Previous","project": "Proyecto","reason": "Reason","release": "Versión","reorder": "Reordenar",- "resource": "Resource","required-permission": "Permisos necesarios","required-workspace-permission": "Se requieren los siguientes permisos para inicializar el espacio de trabajo UX",+ "resource": "Resource","restore": "Restaurar","restored": "Restored","revert": "Revertir",+ "revoked": "Revocado","rows-per-page": "Filas por página","save": "Guardar","schema": "Esquema",@@ -147,13 +166,16 @@"search-for-more": "Buscar más","select": "Seleccionar","select-all": "Seleccionar todo",+ "selected": "selected","sensitive-placeholder": "Sensible - solo escritura","state": "Estado",+ "statement": "Declaración","status": "Estado","system": "Sistema","table": "Tabla","title": "Título","to": "Hasta",+ "total": "Total","total-n-items": "Total {{n}} elementos","type": "Tipo","unassigned": "No asignado",@@ -166,22 +188,7 @@"view": "Ver","view-details": "Ver Detalles","warning": "Advertencia",- "you": "tu",- "database-group": "Grupo de bases de datos",- "databases": "Bases de datos",- "danger-zone": "Danger Zone",- "archive-resource": "Archive {{type}}",- "archive-description": "Mark \"{{name}}\" as archived and read-only.",- "confirm-archive": "Archive Resource?",- "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",- "confirm-delete": "Delete Resource?",- "environments": "Entornos",- "manually-select": "Manually select",- "filter": "Filter",- "total": "Total",- "selected": "selected",- "items": "items",- "deselect-all": "Deselect all"+ "you": "tu"},"create-db": {"cluster": "Clúster",@@ -254,6 +261,7 @@}},"database": {+ "change-database": "Modificar base de datos","classification": {"description": "Define classification levels to apply consistent masking policies across columns and databases."},@@ -262,18 +270,28 @@"engine": "Motor","expression": "Expression","filter-database": "Filtrar base de datos",+ "mixed-label-values": "valores mixtos",+ "mixed-label-values-warning": "Algunos de los recursos seleccionados tienen valores mixtos para la misma clave. Solo edite estos pares clave-valor si tiene la intención de cambiarlos.",+ "select": "Seleccionar base de datos","selected-n-databases": "{{n}} base(s) de datos seleccionada(s)","successfully-transferred-databases": "Bases de datos transferidas exitosamente","sync-schema-button": "Sincronizar esquema","sync-status-failed": "Sincronización fallida","transfer-project": "Transferir proyecto",- "change-database": "Modificar base de datos",- "mixed-label-values": "valores mixtos",- "mixed-label-values-warning": "Algunos de los recursos seleccionados tienen valores mixtos para la misma clave. Solo edite estos pares clave-valor si tiene la intención de cambiarlos.","unassign": "Desasignar","unassign-alert-description": "Las bases de datos seleccionadas serán eliminadas del proyecto",- "unassign-alert-title": "Desasignar bases de datos",- "select": "Seleccionar base de datos"+ "unassign-alert-title": "Desasignar bases de datos"+ },+ "database-group": {+ "condition": {+ "self": "Condition"+ },+ "create": "New database group",+ "delete-group": "Delete the database group {{name}}",+ "matched-database": "Matched database",+ "no-matched-databases": "No matched databases",+ "select": "Select database group",+ "unmatched-database": "Unmatched database"},"db": {"character-set": "Juego de caracteres",@@ -288,12 +306,47 @@"delete": "Eliminar este entorno","delete-description": "Eliminar el entorno también lo eliminará de las instancias y bases de datos relacionadas. No se puede deshacer esta acción","reorder": "Reordenar entornos",- "successfully-updated-environment": "entorno '{{name}}' actualizado exitosamente.",- "select": "Seleccionar entorno"+ "select": "Seleccionar entorno",+ "successfully-updated-environment": "entorno '{{name}}' actualizado exitosamente."},"error-page": {"not-found": "No encontrado"},+ "gitops": {+ "checklist": {+ "database-group-recommendation": "Para bases de datos con el mismo esquema, un grupo de bases de datos permite migrarlas juntas en un solo cambio. Defina el grupo una vez y reutilícelo en las migraciones sin tener que seleccionar bases de datos individuales cada vez.",+ "external-url": "URL externa",+ "target-databases": "Bases de datos de destino",+ "title": "Verificaciones antes de comenzar",+ "wif-notice-suffix": "para configurar GitOps con una cuenta de servicio.",+ "wif-notice-text": "Workload Identity Federation actualmente solo es compatible con GitHub y GitLab. Para otros VCS, consulte los tutoriales de",+ "workload-identity": "Identidad de carga de trabajo"+ },+ "documentation": "Ver documentación",+ "overview": {+ "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.",+ "title": "Qué es GitOps"+ },+ "test-setup": {+ "description": "Verifique que el flujo de trabajo funciona de extremo a extremo con un archivo de migración de ejemplo.",+ "naming-convention": "Los archivos de migración se aplican en orden lexicográfico. Use un prefijo de marca de tiempo o secuencia, p. ej. 20240101000000_create_table.sql. Agregue _ddl o _dml para indicar el tipo de cambio.",+ "step-create-branch": "Cree una nueva rama, agregue el archivo anterior y abra una pull request dirigida a {branch}.",+ "step-merge": "Una vez que la revisión pase, fusione el PR. Bytebase creará automáticamente un despliegue y lo implementará en los entornos de destino.",+ "step-sql-review": "SQL Review se ejecuta automáticamente en la pull request y publica comentarios de revisión.",+ "title": "Pruebe su primera migración GitOps"+ },+ "workflow": {+ "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",+ "provider-not-match": "La workload identity seleccionada solo funciona para {provider}.",+ "self-hosted-runner": "Runner self-hosted",+ "title": "Generación de archivo de flujo de trabajo"+ },+ "workload-identity": {+ "select-placeholder": "Seleccionar una identidad de carga de trabajo"+ }+ },"identity-provider": {"claims-description": "El proveedor de identidad devolvió las siguientes notificaciones. Esta información puede ayudarle a configurar las asignaciones de campos.","delete-warning": "¿Seguro que desea eliminar este proveedor de identidad? Los usuarios que se registraron con este SSO ya no podrán iniciar sesión con él. Si el inicio de sesión con contraseña está deshabilitado en la configuración de su espacio de trabajo, es posible que estos usuarios queden completamente bloqueados.",@@ -338,12 +391,15 @@"syncing": "Sincronizando..."},"issue": {- "labels": "Etiquetas de problema"+ "labels": "Etiquetas de problema",+ "advanced-search": {+ "filter": "Filtrar"+ }},"label": {"error": {- "key-necessary": "Se requiere una clave","key-duplicated": "Claves duplicadas",+ "key-necessary": "Se requiere una clave","max-value-length-exceeded": "La longitud del valor no puede exceder {{length}} caracteres"}},@@ -398,118 +454,118 @@"success-prompt": "Proyecto {{name}} creado exitosamente."},"filter-projects": "Filtrar proyectos",- "table": {- "name": "Nombre"+ "members": {+ "add-more": "Add more",+ "allow-ddl": "Permitir ejecutar sentencias DDL/DML en los entornos seleccionados.",+ "description": "Los miembros del proyecto determinan el permiso para operar la base de datos y los problemas dentro del proyecto. El propietario del proyecto, el administrador del espacio de trabajo y el DBA del espacio de trabajo tienen permisos completos para el proyecto.",+ "disallow-ddl-all-environments": "No permitir ejecutar sentencias DDL/DML en ningún entorno.",+ "edit-member": "Editar miembro - {{member}}",+ "never-expires": "Never",+ "revoke-role-from-member": "¿Revocar '{{role}}' de '{{member}}'?"},"settings": {- "success-updated": "La configuración del proyecto se actualizó correctamente.",- "update-failed": "No se pudo actualizar la configuración del proyecto.","confirm-archive-project": "Archiving \"{{name}}\" will make it read-only and hide it from active project lists. All issues, databases, and settings will be preserved. You can restore it later from the archived projects list.","confirm-delete-project": "Deleting \"{{name}}\" will permanently remove the project and all associated data including issues, configurations, and history. All databases in this project will be moved to the default project. This action cannot be undone.",- "restore": {- "title": "Restaurar proyecto",- "btn-text": "Restaurar este @.lower:{'common.project'}"- },- "project-labels": {- "self": "Etiquetas de proyecto",- "description": "Organizar proyectos con etiquetas clave-valor (máximo 64)"- },"issue-related": {- "self": "Problema Relacionado",- "labels": {- "self": "Etiquetas de problema",- "description": "Se pueden colocar etiquetas en los problemas para su gestión.",- "placeholder": "Presione Enter para agregar etiqueta",- "force-issue-labels": {- "self": "Requerir etiquetas para todos los problemas",- "description": "Exija al menos una etiqueta al crear problemas.",- "warning": "Requiere al menos una etiqueta configurada"- }- },- "enforce-issue-title": {- "self": "Requerir título manual",- "description": "Requerir que los títulos de problemas y planes sean creados por el usuario en lugar de generarse automáticamente."+ "allow-jit": {+ "description": "Una vez habilitado, los usuarios pueden solicitar y usar el acceso justo a tiempo en el Editor SQL.",+ "self": "Permitir acceso justo a tiempo"},- "enforce-sql-review": {- "self": "Aplicar revisión SQL",- "description": "Requiere que las comprobaciones de revisión SQL pasen sin errores antes de permitir la creación de issues."+ "allow-request-role": {+ "description": "Los usuarios que no son propietarios del proyecto pueden solicitar roles a nivel de proyecto por sí mismos",+ "self": "Permitir solicitar rol"},"allow-self-approval": {- "self": "Permitir la autoaprobación",- "description": "Permitir que el creador del problema apruebe el problema."+ "description": "Permitir que el creador del problema apruebe el problema.",+ "self": "Permitir la autoaprobación"},- "allow-request-role": {- "self": "Permitir solicitar rol",- "description": "Los usuarios que no son propietarios del proyecto pueden solicitar roles a nivel de proyecto por sí mismos"+ "approval-flow-configured": "Flujo de aprobación configurado",+ "approval-flow-fallback": "Usando regla de aprobación predeterminada",+ "approval-flow-not-configured": "Flujo de aprobación no configurado",+ "ci-sampling-size": {+ "description": "El número máximo de bases de datos para probar durante la validación de datos de CI. \nCuando está deshabilitado (cero), se realizará la validación completa.",+ "self": "Tamaño de muestreo de datos de CI"},- "allow-jit": {- "self": "Permitir acceso justo a tiempo",- "description": "Una vez habilitado, los usuarios pueden solicitar y usar el acceso justo a tiempo en el Editor SQL."+ "enforce-issue-title": {+ "description": "Requerir que los títulos de problemas y planes sean creados por el usuario en lugar de generarse automáticamente.",+ "self": "Requerir título manual"},- "postgres-database-tenant-mode": {- "self": "Modo inquilino de base de datos Postgres",- "description": "Modo de base de datos de inquilino de Postgres. Si se habilita, el problema será ejecutado por el OWNER de la base de datos. De lo contrario, la tarea será ejecutada por el usuario de conexión de la instancia."+ "enforce-sql-review": {+ "description": "Requiere que las comprobaciones de revisión SQL pasen sin errores antes de permitir la creación de issues.",+ "self": "Aplicar revisión SQL"},- "max-retries": {- "self": "Los reintentos máximos cuentan para el tiempo de espera de bloqueo",- "description": "Las reintentos máximas cuentan para el tiempo de espera de bloqueo al ejecutar la tarea. \nEl valor predeterminado es 0. Solo aplicable a Postgres."+ "labels": {+ "description": "Se pueden colocar etiquetas en los problemas para su gestión.",+ "force-issue-labels": {+ "description": "Exija al menos una etiqueta al crear problemas.",+ "self": "Requerir etiquetas para todos los problemas",+ "warning": "Requiere al menos una etiqueta configurada"+ },+ "placeholder": "Presione Enter para agregar etiqueta",+ "self": "Etiquetas de problema"},- "ci-sampling-size": {- "self": "Tamaño de muestreo de datos de CI",- "description": "El número máximo de bases de datos para probar durante la validación de datos de CI. \nCuando está deshabilitado (cero), se realizará la validación completa."+ "max-retries": {+ "description": "Las reintentos máximas cuentan para el tiempo de espera de bloqueo al ejecutar la tarea. \nEl valor predeterminado es 0. Solo aplicable a Postgres.",+ "self": "Los reintentos máximos cuentan para el tiempo de espera de bloqueo"},"parallel_tasks_per_rollout": {- "self": "Tareas paralelas por despliegue",- "description": "Controle el número de tareas paralelas por despliegue. \nEstablecer esto en cero deshabilita cualquier estrangulamiento."+ "description": "Controle el número de tareas paralelas por despliegue. \nEstablecer esto en cero deshabilita cualquier estrangulamiento.",+ "self": "Tareas paralelas por despliegue"+ },+ "postgres-database-tenant-mode": {+ "description": "Modo de base de datos de inquilino de Postgres. Si se habilita, el problema será ejecutado por el OWNER de la base de datos. De lo contrario, la tarea será ejecutada por el usuario de conexión de la instancia.",+ "self": "Modo inquilino de base de datos Postgres"},"require-issue-approval": {- "self": "Requiere aprobación de issue antes de crear el despliegue",- "description": "El issue debe ser aprobado antes de crear un despliegue."+ "description": "El issue debe ser aprobado antes de crear un despliegue.",+ "self": "Requiere aprobación de issue antes de crear el despliegue"},"require-plan-check-no-error": {- "self": "Requiere que las verificaciones del plan pasen antes de crear el despliegue",- "description": "Todas las verificaciones del plan deben pasar sin errores antes de crear un despliegue."+ "description": "Todas las verificaciones del plan deben pasar sin errores antes de crear un despliegue.",+ "self": "Requiere que las verificaciones del plan pasen antes de crear el despliegue"},- "approval-flow-configured": "Flujo de aprobación configurado",- "approval-flow-fallback": "Usando regla de aprobación predeterminada",- "approval-flow-not-configured": "Flujo de aprobación no configurado",+ "self": "Problema Relacionado","view-approval-flow": "Ver flujo de aprobación"- }+ },+ "project-labels": {+ "description": "Organizar proyectos con etiquetas clave-valor (máximo 64)",+ "self": "Etiquetas de proyecto"+ },+ "restore": {+ "btn-text": "Restaurar este @.lower:{'common.project'}",+ "title": "Restaurar proyecto"+ },+ "success-updated": "La configuración del proyecto se actualizó correctamente.",+ "update-failed": "No se pudo actualizar la configuración del proyecto."},- "members": {- "add-more": "Add more",- "description": "Los miembros del proyecto determinan el permiso para operar la base de datos y los problemas dentro del proyecto. El propietario del proyecto, el administrador del espacio de trabajo y el DBA del espacio de trabajo tienen permisos completos para el proyecto.",- "never-expires": "Never",- "allow-ddl": "Permitir ejecutar sentencias DDL/DML en los entornos seleccionados.",- "disallow-ddl-all-environments": "No permitir ejecutar sentencias DDL/DML en ningún entorno.",- "edit-member": "Editar miembro - {{member}}",- "revoke-role-from-member": "¿Revocar '{{role}}' de '{{member}}'?"+ "table": {+ "name": "Nombre"},"webhook": {- "success-created-prompt": "Webhook {{name}} creado exitosamente.",- "success-updated-prompt": "Webhook {{name}} actualizado exitosamente.",- "success-deleted-prompt": "Webhook {{name}} eliminado exitosamente.",- "success-tested-prompt": "Prueba de evento de webhook OK.",- "fail-tested-title": "La prueba de evento de webhook falló.",+ "activity-support-direct-message": "Soporte para enviar mensajes directos a usuarios relacionados.","add-a-webhook": "Agregar un webhook",- "destination": "Destino",- "webhook-url": "URL del webhook",- "triggering-activity": "Actividades de disparo",- "test-webhook": "Probar webhook","creation": {- "title": "Crear webhook","desc": "Cree el webhook correspondiente para el canal {{destination}} que reciba el mensaje.",+ "title": "Crear webhook","view-doc": "Ver documentación de {{destination}}"},"deletion": {"confirm-title": "¿Eliminar el webhook '{{title}}'?"},+ "destination": "Destino","direct-messages": "Mensajes directos",- "direct-messages-tip": "Bytebase recurrirá a la publicación de mensajes de webhook si no hay usuarios coincidentes o si falla la entrega del mensaje.",- "enable-direct-messages": "Habilitar mensajes directos","direct-messages-description": "Una vez habilitado, Bytebase enviará mensajes directos a los usuarios relacionados (emparejados por correo electrónico). Solo soporte:",+ "direct-messages-tip": "Bytebase recurrirá a la publicación de mensajes de webhook si no hay usuarios coincidentes o si falla la entrega del mensaje.","direct-messages-warning": "Debes configurar la integración IM para que funcione.",- "activity-support-direct-message": "Soporte para enviar mensajes directos a usuarios relacionados."+ "enable-direct-messages": "Habilitar mensajes directos",+ "fail-tested-title": "La prueba de evento de webhook falló.",+ "success-created-prompt": "Webhook {{name}} creado exitosamente.",+ "success-deleted-prompt": "Webhook {{name}} eliminado exitosamente.",+ "success-tested-prompt": "Prueba de evento de webhook OK.",+ "success-updated-prompt": "Webhook {{name}} actualizado exitosamente.",+ "test-webhook": "Probar webhook",+ "triggering-activity": "Actividades de disparo",+ "webhook-url": "URL del webhook"}},"quick-action": {@@ -789,6 +845,7 @@"add-user": "Agregar usuario","add-workload-identity": "Añadir Identidad de Carga de Trabajo","all-users": "Todos los usuarios",+ "assign-role": "Assign role","cannot-revoke-self": "You cannot revoke yourself","copy-service-key": "Copiar Clave de Servicio","entra-sync": {@@ -822,21 +879,20 @@"inactive-service-accounts": "Cuentas de servicio inactivas","inactive-users": "Usuarios inactivos","inactive-workload-identities": "Identidades de carga de trabajo inactivas",+ "reset-service-key": "Restablecer Clave de Servicio",+ "reset-service-key-alert": "Esta acción no se puede deshacer. La clave antigua dejará de funcionar de inmediato. ¿Está seguro de que desea restablecer esta clave de servicio?","revoke-access": "Revocar acceso","revoke-access-alert": "¿Está seguro de revocar el acceso?","revoke-allusers-alert": "Revocar \"Todos los usuarios\" revocará los roles relacionados de todos los demás usuarios de su espacio de trabajo. ¿Desea continuar?",- "reset-service-key": "Restablecer Clave de Servicio",- "reset-service-key-alert": "Esta acción no se puede deshacer. La clave antigua dejará de funcionar de inmediato. ¿Está seguro de que desea restablecer esta clave de servicio?","revoked": "Revocado","search-member": "Buscar miembro",- "service-key-copied": "Clave de Servicio copiada al portapapeles, por favor manténgala en secreto.","select-account_one": "Seleccionar cuenta","select-account_other": "Seleccionar cuentas",- "assign-role": "Assign role","select-role_one": "Seleccionar rol","select-role_other": "Seleccionar roles","service-account": "Cuenta de Servicio","service-accounts": "Cuentas de Servicio",+ "service-key-copied": "Clave de Servicio copiada al portapapeles, por favor manténgala en secreto.","show-inactive": "Mostrar cuentas inactivas","table": {"account": "Cuenta",@@ -972,10 +1028,10 @@"mcp": "MCP","members": "Miembros","members-and-groups": "Miembros y grupos",+ "security-and-policy": "Seguridad y Política","sso": "SSO","subscription": "Suscripción",- "users-and-groups": "Usuarios y grupos",- "security-and-policy": "Seguridad y Política"+ "users-and-groups": "Usuarios y grupos"},"sso": {"create": "Crear SSO",@@ -1064,7 +1120,15 @@}},"sql-editor": {- "self": "Editor de SQL"+ "access-grants-redirect-hint": "Go to {link} to view and manage your own access grants.",+ "activate-access": "Activate",+ "activate-confirm": "Are you sure you want to activate this access grant?",+ "expired": "Expired",+ "grant-type-unmask": "Unmask",+ "revoke-access": "Revoke",+ "revoke-confirm": "Are you sure you want to revoke this access grant?",+ "self": "Editor de SQL",+ "view-issue": "View Issue"},"sql-review": {"add-or-remove-rules": "Add or remove rules",@@ -1201,51 +1265,5 @@},"two-factor": {"enabled": "2FA habilitado"- },- "database-group": {- "condition": {- "self": "Condition"- },- "create": "New database group",- "delete-group": "Delete the database group {{name}}",- "matched-database": "Matched database",- "no-matched-databases": "No matched databases",- "select": "Select database group",- "unmatched-database": "Unmatched database"- },- "gitops": {- "checklist": {- "database-group-recommendation": "Para bases de datos con el mismo esquema, un grupo de bases de datos permite migrarlas juntas en un solo cambio. Defina el grupo una vez y reutilícelo en las migraciones sin tener que seleccionar bases de datos individuales cada vez.",- "external-url": "URL externa",- "target-databases": "Bases de datos de destino",- "title": "Verificaciones antes de comenzar",- "wif-notice-suffix": "para configurar GitOps con una cuenta de servicio.",- "wif-notice-text": "Workload Identity Federation actualmente solo es compatible con GitHub y GitLab. Para otros VCS, consulte los tutoriales de",- "workload-identity": "Identidad de carga de trabajo"- },- "documentation": "Ver documentación",- "overview": {- "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.",- "title": "Qué es GitOps"- },- "test-setup": {- "description": "Verifique que el flujo de trabajo funciona de extremo a extremo con un archivo de migración de ejemplo.",- "naming-convention": "Los archivos de migración se aplican en orden lexicográfico. Use un prefijo de marca de tiempo o secuencia, p. ej. 20240101000000_create_table.sql. Agregue _ddl o _dml para indicar el tipo de cambio.",- "step-create-branch": "Cree una nueva rama, agregue el archivo anterior y abra una pull request dirigida a {branch}.",- "step-merge": "Una vez que la revisión pase, fusione el PR. Bytebase creará automáticamente un despliegue y lo implementará en los entornos de destino.",- "step-sql-review": "SQL Review se ejecuta automáticamente en la pull request y publica comentarios de revisión.",- "title": "Pruebe su primera migración GitOps"- },- "workflow": {- "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",- "provider-not-match": "La workload identity seleccionada solo funciona para {provider}.",- "self-hosted-runner": "Runner self-hosted",- "title": "Generación de archivo de flujo de trabajo"- },- "workload-identity": {- "select-placeholder": "Seleccionar una identidad de carga de trabajo"- }}}diff --git a/frontend/src/react/locales/ja-JP.json b/frontend/src/react/locales/ja-JP.jsonindex 8352e21174..7d419e908a 100644--- a/frontend/src/react/locales/ja-JP.json+++ b/frontend/src/react/locales/ja-JP.json@@ -61,12 +61,16 @@}},"common": {+ "activated": "有効化しました",+ "active": "アクティブ","add": "追加","add-permissions": "権限を追加","added": "作成した","address": "接続先","all": "全て","archive": "アーカイブ",+ "archive-description": "Mark \"{{name}}\" as archived and read-only.",+ "archive-resource": "Archive {{type}}","archived": "アーカイブ済み","back": "戻る","cancel": "キャンセル",@@ -78,17 +82,26 @@"confirm": "確認する","confirm-and-add": "Confirm and add","confirm-and-update": "確認して更新する",+ "confirm-archive": "Archive Resource?",+ "confirm-delete": "Delete Resource?","copied": "コピーされました","copy": "コピー","copy-failed": "Copy failed","create": "作成する","created": "作成済",+ "created-at": "作成日時",+ "creator": "作成者",+ "danger-zone": "Danger Zone","database": "データベース",+ "database-group": "データベースグループ",+ "databases": "データベース","default": "デフォルト","delete": "消去","delete-resource": "Delete {{type}}",+ "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.","deleted": "削除されました","description": "説明",+ "deselect-all": "Deselect all","disable": "Disable","discard-changes": "変更をキャンセルする","edit": "編集",@@ -98,6 +111,7 @@"enabled": "Enabled","environment": "環境","environment-name": "環境名",+ "environments": "環境","expiration": "Expiration","export": "エクスポート","failed": "失敗",@@ -105,6 +119,7 @@"size-limit": "ファイルサイズは {{size}} MiB 未満である必要があります","type-limit": "タイプ {{extension}} のファイルのみがサポートされます"},+ "filter": "Filter","filter-by-name": "名前でフィルタリングする","from": "開始","general": "全般",@@ -112,12 +127,14 @@"id": "ID","instance": "インスタンス","is-required": "is required",+ "items": "items","key": "キー","labels": "ラベル","learn-more": "もっと詳しく知る","leave-without-saving": "変更を保存していませんか?","load-more": "もっと読み込む","loading": "読み込み中",+ "manually-select": "Manually select","members_one": "メンバー","members_other": "メンバー","missing-required-permission": "必要な権限がありません {{permissions}}",@@ -126,20 +143,22 @@"next": "次のステップ","no-data": "データなし","ok": "わかりました",- "optional": "Optional","operations": "操作",+ "optional": "Optional",+ "pending": "保留中","permissions": "権限","previous": "Previous","project": "プロジェクト","reason": "Reason","release": "リリース","reorder": "並び替え",- "resource": "Resource","required-permission": "必要な権限","required-workspace-permission": "ワークスペース UX の初期化には以下の権限が必要です",+ "resource": "Resource","restore": "復元する","restored": "Restored","revert": "元に戻す",+ "revoked": "取り消し済み","rows-per-page": "ページあたりの行数","save": "保存","schema": "スキーマ",@@ -147,13 +166,16 @@"search-for-more": "さらに検索","select": "選択してください","select-all": "すべて選択",+ "selected": "selected","sensitive-placeholder": "機密データ - 書き込みのみ","state": "ステート",+ "statement": "ステートメント","status": "ステータス","system": "システム","table": "テーブル","title": "タイトル","to": "終了",+ "total": "Total","total-n-items": "合計 {{n}} 件","type": "タイプ","unassigned": "割り当てられていない",@@ -166,22 +188,7 @@"view": "表示","view-details": "詳細を表示","warning": "警告する",- "you": "あなた",- "database-group": "データベースグループ",- "databases": "データベース",- "danger-zone": "Danger Zone",- "archive-resource": "Archive {{type}}",- "archive-description": "Mark \"{{name}}\" as archived and read-only.",- "confirm-archive": "Archive Resource?",- "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",- "confirm-delete": "Delete Resource?",- "environments": "環境",- "manually-select": "Manually select",- "filter": "Filter",- "total": "Total",- "selected": "selected",- "items": "items",- "deselect-all": "Deselect all"+ "you": "あなた"},"create-db": {"cluster": "集まる",@@ -254,6 +261,7 @@}},"database": {+ "change-database": "データベースの変更","classification": {"description": "Define classification levels to apply consistent masking policies across columns and databases."},@@ -262,18 +270,28 @@"engine": "エンジン","expression": "Expression","filter-database": "データベースをフィルター",+ "mixed-label-values": "混合値",+ "mixed-label-values-warning": "選択されたリソースの一部は、同じキーに対して異なる値を持っています。これらのキーと値のペアを変更する場合にのみ編集してください。",+ "select": "データベースの選択","selected-n-databases": "{{n}} 個のデータベースが選択されました","successfully-transferred-databases": "データベースの転送に成功しました","sync-schema-button": "スキーマを同期","sync-status-failed": "同期に失敗しました","transfer-project": "プロジェクトの転送",- "change-database": "データベースの変更",- "mixed-label-values": "混合値",- "mixed-label-values-warning": "選択されたリソースの一部は、同じキーに対して異なる値を持っています。これらのキーと値のペアを変更する場合にのみ編集してください。","unassign": "割り当てを解除する","unassign-alert-description": "選択したデータベースがプロジェクトから削除されます",- "unassign-alert-title": "データベースの割り当てを解除する",- "select": "データベースの選択"+ "unassign-alert-title": "データベースの割り当てを解除する"+ },+ "database-group": {+ "condition": {+ "self": "Condition"+ },+ "create": "New database group",+ "delete-group": "Delete the database group {{name}}",+ "matched-database": "Matched database",+ "no-matched-databases": "No matched databases",+ "select": "Select database group",+ "unmatched-database": "Unmatched database"},"db": {"character-set": "文字セット",@@ -288,12 +306,47 @@"delete": "この環境を削除します","delete-description": "環境を削除すると、関連するインスタンスとデータベースからも削除されます。この操作は元に戻せません","reorder": "環境の並べ替え",- "successfully-updated-environment": "環境「{{name}}」は正常に更新されました",- "select": "環境を選ぶ"+ "select": "環境を選ぶ",+ "successfully-updated-environment": "環境「{{name}}」は正常に更新されました"},"error-page": {"not-found": "ページが見つかりません"},+ "gitops": {+ "checklist": {+ "database-group-recommendation": "同じスキーマを持つデータベースには、データベースグループを使用すると一度の変更でまとめてマイグレーションできます。グループを一度定義すれば、毎回個別にデータベースを選択することなく、マイグレーション全体で再利用できます。",+ "external-url": "外部URL",+ "target-databases": "ターゲットデータベース",+ "title": "開始前の確認",+ "wif-notice-suffix": "サービスアカウントを使用して GitOps を設定できます。",+ "wif-notice-text": "Workload Identity Federation は現在 GitHub と GitLab のみサポートしています。他の VCS については、チュートリアルを参照してください:",+ "workload-identity": "ワークロードアイデンティティ"+ },+ "documentation": "ドキュメントを見る",+ "overview": {+ "description": "Bytebase GitOps は、データベーススキーマの変更を CI/CD パイプラインに統合し、Database as Code として管理できます。",+ "description-git": "データベーススキーマはアプリケーションコードと一緒に Git で管理されます。プルリクエストで SQL レビューがトリガーされ、ターゲットブランチへのマージで自動的にロールアウトが作成されます。",+ "title": "GitOps とは"+ },+ "test-setup": {+ "description": "サンプルマイグレーションファイルでワークフロー全体が正常に動作するか確認します。",+ "naming-convention": "マイグレーションファイルは辞書順に適用されます。タイムスタンプまたはシーケンス番号のプレフィックスを使用してください(例: 20240101000000_create_table.sql)。変更タイプを示すために _ddl または _dml を末尾に追加してください。",+ "step-create-branch": "新しいブランチを作成し、上記のファイルを追加して、{branch} へのプルリクエストを作成します。",+ "step-merge": "レビューが通過したら PR をマージします。Bytebase が自動的にロールアウトを作成し、ターゲット環境にデプロイします。",+ "step-sql-review": "SQL Review がプルリクエストで自動的に実行され、レビューコメントが投稿されます。",+ "title": "最初の GitOps マイグレーションをテスト"+ },+ "workflow": {+ "description": "ワークフローファイルをリポジトリにコピーして、SQL レビューとデータベースロールアウトを自動化します。",+ "file-hint": "リポジトリ内に {filePath} として保存",+ "provider-not-match": "選択された ワークロード アイデンティティ は {provider} 専用です。",+ "self-hosted-runner": "セルフホスト runner",+ "title": "ワークフローファイル生成"+ },+ "workload-identity": {+ "select-placeholder": "ワークロードアイデンティティを選択"+ }+ },"identity-provider": {"claims-description": "IDプロバイダーから以下のクレームが返されました。この情報は、フィールドマッピングの設定に役立ちます。","delete-warning": "このアイデンティティプロバイダを削除してもよろしいですか?このSSO経由でサインアップしたユーザーは、今後このSSOでサインインできなくなります。ワークスペースの設定でパスワードによるサインインが無効になっている場合、これらのユーザーは完全にロックアウトされる可能性があります。",@@ -338,12 +391,15 @@"syncing": "同期中 ..."},"issue": {- "labels": "イシューラベル"+ "labels": "イシューラベル",+ "advanced-search": {+ "filter": "フィルター"+ }},"label": {"error": {- "key-necessary": "キーを指定する必要があります","key-duplicated": "キーが繰り返されました",+ "key-necessary": "キーを指定する必要があります","max-value-length-exceeded": "値は {{length}} 文字を超えることはできません"}},@@ -398,118 +454,118 @@"success-prompt": "{{name}} が正常に作成されました。"},"filter-projects": "プロジェクトをフィルタリング",- "table": {- "name": "名前"+ "members": {+ "add-more": "Add more",+ "allow-ddl": "選択した環境で DDL/DML ステートメントの実行を許可する。",+ "description": "プロジェクトメンバーのロールにより、プロジェクト内のデータベースとイシューを操作するための権限が決まります。プロジェクト所有者、ワークスペース管理者、および DBA はすべて、プロジェクトに対する完全な権限を持っています。",+ "disallow-ddl-all-environments": "すべての環境で DDL/DML ステートメントの実行を禁止する。",+ "edit-member": "メンバー編集 - {{member}}",+ "never-expires": "Never",+ "revoke-role-from-member": "'{{member}}' から '{{role}}' を取り消しますか?"},"settings": {- "success-updated": "プロジェクト設定が正常に更新されました",- "update-failed": "プロジェクト設定の更新に失敗しました。","confirm-archive-project": "Archiving \"{{name}}\" will make it read-only and hide it from active project lists. All issues, databases, and settings will be preserved. You can restore it later from the archived projects list.","confirm-delete-project": "Deleting \"{{name}}\" will permanently remove the project and all associated data including issues, configurations, and history. All databases in this project will be moved to the default project. This action cannot be undone.",- "restore": {- "title": "アイテムを復元する",- "btn-text": "この @:common.project を復元します"- },- "project-labels": {- "self": "プロジェクトラベル",- "description": "キーバリューラベルでプロジェクトを整理(最大64個)"- },"issue-related": {- "self": "イシュー関連",- "labels": {- "self": "イシューラベル",- "description": "イシューにラベルを貼って管理できる",- "placeholder": "Enterキーを押してタグを追加してください",- "force-issue-labels": {- "self": "すべてのイシューにラベルが必要",- "description": "イシューを作成するときは、少なくとも 1 つのラベルが必要です。",- "warning": "少なくとも 1 つのラベルを設定する必要があります"- }- },- "enforce-issue-title": {- "self": "手動タイトルを要求する",- "description": "イシューとプランのタイトルを自動生成ではなくユーザーが作成することを要求します。"+ "allow-jit": {+ "description": "有効にすると、ユーザーは SQL エディタでジャストインタイムアクセスをリクエストして使用できます。",+ "self": "ジャストインタイムアクセスを許可"},- "enforce-sql-review": {- "self": "SQL レビューを強制",- "description": "課題作成を許可する前に、SQL レビューチェックがエラーなしで合格することを要求します。"+ "allow-request-role": {+ "description": "プロジェクト所有者以外のユーザーがプロジェクトレベルのロールを自分でリクエストできます",+ "self": "ロールリクエストを許可"},"allow-self-approval": {- "self": "自己承認を許可する",- "description": "イシューの作成者がイシューを承認できるようにします。"+ "description": "イシューの作成者がイシューを承認できるようにします。",+ "self": "自己承認を許可する"},- "allow-request-role": {- "self": "ロールリクエストを許可",- "description": "プロジェクト所有者以外のユーザーがプロジェクトレベルのロールを自分でリクエストできます"+ "approval-flow-configured": "承認フローが設定済み",+ "approval-flow-fallback": "フォールバック承認ルールを使用中",+ "approval-flow-not-configured": "承認フローが未設定",+ "ci-sampling-size": {+ "description": "CIデータ検証中にサンプリングするデータベースの最大数。\n無効(ゼロ)の場合、完全な検証が実行されます。",+ "self": "CIデータサンプリングサイズ"},- "allow-jit": {- "self": "ジャストインタイムアクセスを許可",- "description": "有効にすると、ユーザーは SQL エディタでジャストインタイムアクセスをリクエストして使用できます。"+ "enforce-issue-title": {+ "description": "イシューとプランのタイトルを自動生成ではなくユーザーが作成することを要求します。",+ "self": "手動タイトルを要求する"},- "postgres-database-tenant-mode": {- "self": "Postgres データベーステナントモード",- "description": "Postgres データベーステナントモード。有効にすると、イシューはデータベースのOWNERによって実行されます。無効にすると、イシューはインスタンス接続ユーザーによって実行されます。"+ "enforce-sql-review": {+ "description": "課題作成を許可する前に、SQL レビューチェックがエラーなしで合格することを要求します。",+ "self": "SQL レビューを強制"},- "max-retries": {- "self": "ロックタイムアウトの最大レトリカウント",- "description": "タスクを実行するときのロックタイムアウトの最大再試行カウント。\nデフォルト値は0です。ポストグレスにのみ適用できます。"+ "labels": {+ "description": "イシューにラベルを貼って管理できる",+ "force-issue-labels": {+ "description": "イシューを作成するときは、少なくとも 1 つのラベルが必要です。",+ "self": "すべてのイシューにラベルが必要",+ "warning": "少なくとも 1 つのラベルを設定する必要があります"+ },+ "placeholder": "Enterキーを押してタグを追加してください",+ "self": "イシューラベル"},- "ci-sampling-size": {- "self": "CIデータサンプリングサイズ",- "description": "CIデータ検証中にサンプリングするデータベースの最大数。\n無効(ゼロ)の場合、完全な検証が実行されます。"+ "max-retries": {+ "description": "タスクを実行するときのロックタイムアウトの最大再試行カウント。\nデフォルト値は0です。ポストグレスにのみ適用できます。",+ "self": "ロックタイムアウトの最大レトリカウント"},"parallel_tasks_per_rollout": {- "self": "ロールアウトごとの並列タスク",- "description": "ロールアウトあたりの並列タスクの数を制御します。\nこれをゼロに設定すると、スロットリングが無効になります。"+ "description": "ロールアウトあたりの並列タスクの数を制御します。\nこれをゼロに設定すると、スロットリングが無効になります。",+ "self": "ロールアウトごとの並列タスク"+ },+ "postgres-database-tenant-mode": {+ "description": "Postgres データベーステナントモード。有効にすると、イシューはデータベースのOWNERによって実行されます。無効にすると、イシューはインスタンス接続ユーザーによって実行されます。",+ "self": "Postgres データベーステナントモード"},"require-issue-approval": {- "self": "ロールアウト作成前にイシュー承認が必要",- "description": "ロールアウトを作成する前にイシューの承認が必要です。"+ "description": "ロールアウトを作成する前にイシューの承認が必要です。",+ "self": "ロールアウト作成前にイシュー承認が必要"},"require-plan-check-no-error": {- "self": "ロールアウト作成前にプランチェック合格が必要",- "description": "ロールアウトを作成する前にすべてのプランチェックがエラーなしで合格する必要があります。"+ "description": "ロールアウトを作成する前にすべてのプランチェックがエラーなしで合格する必要があります。",+ "self": "ロールアウト作成前にプランチェック合格が必要"},- "approval-flow-configured": "承認フローが設定済み",- "approval-flow-fallback": "フォールバック承認ルールを使用中",- "approval-flow-not-configured": "承認フローが未設定",+ "self": "イシュー関連","view-approval-flow": "承認フローを表示"- }+ },+ "project-labels": {+ "description": "キーバリューラベルでプロジェクトを整理(最大64個)",+ "self": "プロジェクトラベル"+ },+ "restore": {+ "btn-text": "この @:common.project を復元します",+ "title": "アイテムを復元する"+ },+ "success-updated": "プロジェクト設定が正常に更新されました",+ "update-failed": "プロジェクト設定の更新に失敗しました。"},- "members": {- "add-more": "Add more",- "description": "プロジェクトメンバーのロールにより、プロジェクト内のデータベースとイシューを操作するための権限が決まります。プロジェクト所有者、ワークスペース管理者、および DBA はすべて、プロジェクトに対する完全な権限を持っています。",- "never-expires": "Never",- "allow-ddl": "選択した環境で DDL/DML ステートメントの実行を許可する。",- "disallow-ddl-all-environments": "すべての環境で DDL/DML ステートメントの実行を禁止する。",- "edit-member": "メンバー編集 - {{member}}",- "revoke-role-from-member": "'{{member}}' から '{{role}}' を取り消しますか?"+ "table": {+ "name": "名前"},"webhook": {- "success-created-prompt": "{{name}} Webhook が正常に作成されました。",- "success-updated-prompt": "{{name}} Webhook が正常に更新されました。",- "success-deleted-prompt": "{{name}} Webhook が正常に削除されました。",- "success-tested-prompt": "Webhook イベントのテストが成功しました。",- "fail-tested-title": "Webhook イベントのテストに失敗しました。",+ "activity-support-direct-message": "関連するユーザーへのプライベートメッセージ通知の送信のサポート","add-a-webhook": "Webhook を追加する",- "destination": "外部アプリケーション",- "webhook-url": "Webhook URL",- "triggering-activity": "トリガーイベント",- "test-webhook": "Webhook のテスト","creation": {- "title": "Webhook の作成","desc": "{{destination}} の Webhook を作成します",+ "title": "Webhook の作成","view-doc": "{{destination}} の公式ドキュメント"},"deletion": {"confirm-title": "Webhook '{{title}}' を削除しますか?"},+ "destination": "外部アプリケーション","direct-messages": "プライベートメッセージ通知",- "direct-messages-tip": "一致するユーザーがいない場合、またはメッセージの配信が失敗した場合、Bytebase は webhook メッセージの投稿にフォールバックします。",- "enable-direct-messages": "プライベートメッセージ通知を有効にする","direct-messages-description": "有効にすると、Bytebase は関連ユーザー (電子メールで一致) にダイレクトメッセージを送信します。サポートのみ:",+ "direct-messages-tip": "一致するユーザーがいない場合、またはメッセージの配信が失敗した場合、Bytebase は webhook メッセージの投稿にフォールバックします。","direct-messages-warning": "これを機能させるには、IM 統合を設定する必要があります。",- "activity-support-direct-message": "関連するユーザーへのプライベートメッセージ通知の送信のサポート"+ "enable-direct-messages": "プライベートメッセージ通知を有効にする",+ "fail-tested-title": "Webhook イベントのテストに失敗しました。",+ "success-created-prompt": "{{name}} Webhook が正常に作成されました。",+ "success-deleted-prompt": "{{name}} Webhook が正常に削除されました。",+ "success-tested-prompt": "Webhook イベントのテストが成功しました。",+ "success-updated-prompt": "{{name}} Webhook が正常に更新されました。",+ "test-webhook": "Webhook のテスト",+ "triggering-activity": "トリガーイベント",+ "webhook-url": "Webhook URL"}},"quick-action": {@@ -789,6 +845,7 @@"add-user": "ユーザーを追加","add-workload-identity": "ワークロードIDを追加","all-users": "すべてのユーザー",+ "assign-role": "Assign role","cannot-revoke-self": "You cannot revoke yourself","copy-service-key": "サービスキーをコピーする","entra-sync": {@@ -822,21 +879,20 @@"inactive-service-accounts": "非アクティブサービスアカウント","inactive-users": "非アクティブユーザー","inactive-workload-identities": "非アクティブワークロードID",+ "reset-service-key": "サービスキーのリセット",+ "reset-service-key-alert": "古いサービス キーはすぐにリセットされ、この操作は元に戻すことはできません。サービス キーをリセットしてもよろしいですか?","revoke-access": "アクセスを取り消す","revoke-access-alert": "アクセスを取り消してもよろしいですか?","revoke-allusers-alert": "「すべてのユーザー」を取り消すと、ワークスペース内の他のすべてのユーザーの関連ロールが取り消されます。続行しますか?",- "reset-service-key": "サービスキーのリセット",- "reset-service-key-alert": "古いサービス キーはすぐにリセットされ、この操作は元に戻すことはできません。サービス キーをリセットしてもよろしいですか?","revoked": "取り消されました","search-member": "メンバーを検索",- "service-key-copied": "サービスキーはコピーされています。公開しないでください","select-account_one": "アカウントを選択","select-account_other": "アカウントを選択",- "assign-role": "Assign role","select-role_one": "ロールを選択","select-role_other": "ロールを選択","service-account": "サービスアカウント","service-accounts": "サービスアカウント",+ "service-key-copied": "サービスキーはコピーされています。公開しないでください","show-inactive": "非アクティブなアカウントを表示","table": {"account": "アカウント",@@ -972,10 +1028,10 @@"mcp": "MCP","members": "メンバー","members-and-groups": "メンバーとグループ",+ "security-and-policy": "セキュリティポリシー","sso": "SSO","subscription": "サブスクリプション",- "users-and-groups": "ユーザーとグループ",- "security-and-policy": "セキュリティポリシー"+ "users-and-groups": "ユーザーとグループ"},"sso": {"create": "SSOの作成",@@ -1064,7 +1120,15 @@}},"sql-editor": {- "self": "SQLエディタ"+ "access-grants-redirect-hint": "Go to {link} to view and manage your own access grants.",+ "activate-access": "Activate",+ "activate-confirm": "Are you sure you want to activate this access grant?",+ "expired": "Expired",+ "grant-type-unmask": "Unmask",+ "revoke-access": "Revoke",+ "revoke-confirm": "Are you sure you want to revoke this access grant?",+ "self": "SQLエディタ",+ "view-issue": "View Issue"},"sql-review": {"add-or-remove-rules": "Add or remove rules",@@ -1201,51 +1265,5 @@},"two-factor": {"enabled": "二要素認証がオンになっています"- },- "database-group": {- "condition": {- "self": "Condition"- },- "create": "New database group",- "delete-group": "Delete the database group {{name}}",- "matched-database": "Matched database",- "no-matched-databases": "No matched databases",- "select": "Select database group",- "unmatched-database": "Unmatched database"- },- "gitops": {- "checklist": {- "database-group-recommendation": "同じスキーマを持つデータベースには、データベースグループを使用すると一度の変更でまとめてマイグレーションできます。グループを一度定義すれば、毎回個別にデータベースを選択することなく、マイグレーション全体で再利用できます。",- "external-url": "外部URL",- "target-databases": "ターゲットデータベース",- "title": "開始前の確認",- "wif-notice-suffix": "サービスアカウントを使用して GitOps を設定できます。",- "wif-notice-text": "Workload Identity Federation は現在 GitHub と GitLab のみサポートしています。他の VCS については、チュートリアルを参照してください:",- "workload-identity": "ワークロードアイデンティティ"- },- "documentation": "ドキュメントを見る",- "overview": {- "description": "Bytebase GitOps は、データベーススキーマの変更を CI/CD パイプラインに統合し、Database as Code として管理できます。",- "description-git": "データベーススキーマはアプリケーションコードと一緒に Git で管理されます。プルリクエストで SQL レビューがトリガーされ、ターゲットブランチへのマージで自動的にロールアウトが作成されます。",- "title": "GitOps とは"- },- "test-setup": {- "description": "サンプルマイグレーションファイルでワークフロー全体が正常に動作するか確認します。",- "naming-convention": "マイグレーションファイルは辞書順に適用されます。タイムスタンプまたはシーケンス番号のプレフィックスを使用してください(例: 20240101000000_create_table.sql)。変更タイプを示すために _ddl または _dml を末尾に追加してください。",- "step-create-branch": "新しいブランチを作成し、上記のファイルを追加して、{branch} へのプルリクエストを作成します。",- "step-merge": "レビューが通過したら PR をマージします。Bytebase が自動的にロールアウトを作成し、ターゲット環境にデプロイします。",- "step-sql-review": "SQL Review がプルリクエストで自動的に実行され、レビューコメントが投稿されます。",- "title": "最初の GitOps マイグレーションをテスト"- },- "workflow": {- "description": "ワークフローファイルをリポジトリにコピーして、SQL レビューとデータベースロールアウトを自動化します。",- "file-hint": "リポジトリ内に {filePath} として保存",- "provider-not-match": "選択された ワークロード アイデンティティ は {provider} 専用です。",- "self-hosted-runner": "セルフホスト runner",- "title": "ワークフローファイル生成"- },- "workload-identity": {- "select-placeholder": "ワークロードアイデンティティを選択"- }}}diff --git a/frontend/src/react/locales/vi-VN.json b/frontend/src/react/locales/vi-VN.jsonindex 3ef7e5f684..a5af883b96 100644--- a/frontend/src/react/locales/vi-VN.json+++ b/frontend/src/react/locales/vi-VN.json@@ -61,12 +61,16 @@}},"common": {+ "activated": "Đã kích hoạt",+ "active": "Hoạt động","add": "Thêm","add-permissions": "Thêm quyền","added": "Đã thêm","address": "Địa chỉ","all": "Tất cả","archive": "Lưu trữ",+ "archive-description": "Mark \"{{name}}\" as archived and read-only.",+ "archive-resource": "Archive {{type}}","archived": "Đã lưu trữ","back": "Quay lại","cancel": "Hủy",@@ -78,17 +82,26 @@"confirm": "Xác nhận","confirm-and-add": "Confirm and add","confirm-and-update": "Xác nhận và Cập nhật",+ "confirm-archive": "Archive Resource?",+ "confirm-delete": "Delete Resource?","copied": "Đã sao chép","copy": "Sao chép","copy-failed": "Copy failed","create": "Tạo","created": "Đã tạo",+ "created-at": "Thời gian tạo",+ "creator": "Người tạo",+ "danger-zone": "Danger Zone","database": "Cơ sở dữ liệu",+ "database-group": "Nhóm cơ sở dữ liệu",+ "databases": "Cơ sở dữ liệu","default": "Mặc định","delete": "Xóa","delete-resource": "Delete {{type}}",+ "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.","deleted": "Đã xóa","description": "Mô tả",+ "deselect-all": "Deselect all","disable": "Disable","discard-changes": "Hủy thay đổi","edit": "Chỉnh sửa",@@ -98,6 +111,7 @@"enabled": "Enabled","environment": "Môi trường","environment-name": "Tên môi trường",+ "environments": "Môi trường","expiration": "Expiration","export": "Xuất","failed": "Thất bại",@@ -105,6 +119,7 @@"size-limit": "Kích thước tệp phải nhỏ hơn {{size}} MiB","type-limit": "Chỉ hỗ trợ tệp {{extension}}"},+ "filter": "Filter","filter-by-name": "Lọc theo tên","from": "Từ","general": "Chung",@@ -112,12 +127,14 @@"id": "ID","instance": "Phiên bản","is-required": "is required",+ "items": "items","key": "Khóa","labels": "Nhãn","learn-more": "Tìm hiểu thêm","leave-without-saving": "Thoát mà không lưu?","load-more": "Tải thêm","loading": "Đang tải",+ "manually-select": "Manually select","members_one": "Thành viên","members_other": "Thành viên","missing-required-permission": "Thiếu quyền cần thiết {{permissions}}",@@ -126,20 +143,22 @@"next": "Tiếp theo","no-data": "Không có dữ liệu","ok": "OK",- "optional": "Optional","operations": "Các thao tác",+ "optional": "Optional",+ "pending": "Đang chờ","permissions": "Quyền","previous": "Previous","project": "Dự án","reason": "Reason","release": "Phiên bản","reorder": "Sắp xếp lại",- "resource": "Resource","required-permission": "Quyền hạn cần thiết","required-workspace-permission": "Các quyền sau đây cần thiết để khởi tạo không gian làm việc UX",+ "resource": "Resource","restore": "Khôi phục","restored": "Restored","revert": "Hoàn tác",+ "revoked": "Đã thu hồi","rows-per-page": "Số dòng mỗi trang","save": "Lưu","schema": "Schema",@@ -147,13 +166,16 @@"search-for-more": "Tìm kiếm thêm","select": "Vui lòng chọn","select-all": "Chọn tất cả",+ "selected": "selected","sensitive-placeholder": "Nhạy cảm - Chỉ ghi","state": "Trạng thái",+ "statement": "Câu lệnh","status": "Trạng thái","system": "Hệ thống","table": "Bảng","title": "Tiêu đề","to": "Đến",+ "total": "Total","total-n-items": "Tổng {{n}} mục","type": "Loại","unassigned": "Chưa gán",@@ -166,22 +188,7 @@"view": "Xem","view-details": "Xem Chi tiết","warning": "Cảnh báo",- "you": "bạn",- "database-group": "Nhóm cơ sở dữ liệu",- "databases": "Cơ sở dữ liệu",- "danger-zone": "Danger Zone",- "archive-resource": "Archive {{type}}",- "archive-description": "Mark \"{{name}}\" as archived and read-only.",- "confirm-archive": "Archive Resource?",- "delete-resource-description": "Once you delete \"{{name}}\", there is no going back. Please be certain.",- "confirm-delete": "Delete Resource?",- "environments": "Môi trường",- "manually-select": "Manually select",- "filter": "Filter",- "total": "Total",- "selected": "selected",- "items": "items",- "deselect-all": "Deselect all"+ "you": "bạn"},"create-db": {"cluster": "Cụm",@@ -254,6 +261,7 @@}},"database": {+ "change-database": "Thay đổi cơ sở dữ liệu","classification": {"description": "Define classification levels to apply consistent masking policies across columns and databases."},@@ -262,18 +270,28 @@"engine": "Engine","expression": "Expression","filter-database": "Lọc cơ sở dữ liệu",+ "mixed-label-values": "giá trị hỗn hợp",+ "mixed-label-values-warning": "Một số tài nguyên đã chọn có các giá trị khác nhau cho cùng một khóa. Chỉ chỉnh sửa các cặp khóa-giá trị này nếu bạn muốn thay đổi chúng.",+ "select": "Chọn cơ sở dữ liệu","selected-n-databases": "Đã chọn {{n}} cơ sở dữ liệu","successfully-transferred-databases": "Chuyển cơ sở dữ liệu thành công","sync-schema-button": "Đồng bộ lược đồ","sync-status-failed": "Đồng bộ thất bại","transfer-project": "Chuyển dự án",- "change-database": "Thay đổi cơ sở dữ liệu",- "mixed-label-values": "giá trị hỗn hợp",- "mixed-label-values-warning": "Một số tài nguyên đã chọn có các giá trị khác nhau cho cùng một khóa. Chỉ chỉnh sửa các cặp khóa-giá trị này nếu bạn muốn thay đổi chúng.","unassign": "Hủy gán","unassign-alert-description": "Các cơ sở dữ liệu đã chọn sẽ bị xóa khỏi dự án",- "unassign-alert-title": "Hủy gán cơ sở dữ liệu",- "select": "Chọn cơ sở dữ liệu"+ "unassign-alert-title": "Hủy gán cơ sở dữ liệu"+ },+ "database-group": {+ "condition": {+ "self": "Condition"+ },+ "create": "New database group",+ "delete-group": "Delete the database group {{name}}",+ "matched-database": "Matched database",+ "no-matched-databases": "No matched databases",+ "select": "Select database group",+ "unmatched-database": "Unmatched database"},"db": {"character-set": "Bộ ký tự",@@ -288,12 +306,47 @@"delete": "Xóa môi trường này","delete-description": "Xóa môi trường cũng sẽ xóa nó khỏi các phiên bản và cơ sở dữ liệu liên quan. Bạn không thể hoàn tác hành động này.","reorder": "Sắp xếp lại môi trường",- "successfully-updated-environment": "Đã cập nhật thành công môi trường '{{name}}'.",- "select": "Chọn môi trường"+ "select": "Chọn môi trường",+ "successfully-updated-environment": "Đã cập nhật thành công môi trường '{{name}}'."},"error-page": {"not-found": "Không tìm thấy"},+ "gitops": {+ "checklist": {+ "database-group-recommendation": "Đối với các cơ sở dữ liệu có cùng schema, nhóm cơ sở dữ liệu cho phép bạn migration tất cả cùng lúc trong một thay đổi. Chỉ cần định nghĩa nhóm một lần và tái sử dụng trong các lần migration mà không cần chọn từng cơ sở dữ liệu mỗi lần.",+ "external-url": "URL bên ngoài",+ "target-databases": "Cơ sở dữ liệu đích",+ "title": "Kiểm tra trước khi bắt đầu",+ "wif-notice-suffix": "để thiết lập GitOps bằng tài khoản dịch vụ.",+ "wif-notice-text": "Workload Identity Federation hiện chỉ hỗ trợ GitHub và GitLab. Đối với các VCS khác, vui lòng tham khảo hướng dẫn cho",+ "workload-identity": "Workload Identity"+ },+ "documentation": "Xem tài liệu",+ "overview": {+ "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.",+ "title": "GitOps là gì"+ },+ "test-setup": {+ "description": "Xác minh workflow hoạt động đầy đủ với một tệp migration mẫu.",+ "naming-convention": "Các tệp migration được áp dụng theo thứ tự từ điển. Sử dụng tiền tố timestamp hoặc số thứ tự, ví dụ: 20240101000000_create_table.sql. Thêm _ddl hoặc _dml để chỉ loại thay đổi.",+ "step-create-branch": "Tạo nhánh mới, thêm tệp ở trên và mở pull request nhắm đến {branch}.",+ "step-merge": "Sau khi review thông qua, merge PR. Bytebase sẽ tự động tạo rollout và triển khai đến các môi trường đích.",+ "step-sql-review": "SQL Review tự động chạy trên pull request và đăng nhận xét review.",+ "title": "Thử nghiệm migration GitOps đầu tiên"+ },+ "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",+ "provider-not-match": "Workload identity đã chọn chỉ hoạt động cho {provider}.",+ "self-hosted-runner": "Runner tự lưu trữ",+ "title": "Tạo tệp workflow"+ },+ "workload-identity": {+ "select-placeholder": "Chọn một workload identity"+ }+ },"identity-provider": {"claims-description": "Các yêu cầu sau đây đã được nhà cung cấp danh tính trả về. Thông tin này có thể giúp bạn cấu hình ánh xạ trường.","delete-warning": "Bạn có chắc chắn muốn xóa nhà cung cấp danh tính này không? Người dùng đã đăng ký qua SSO này sẽ không thể đăng nhập bằng SSO này nữa. Nếu đăng nhập bằng mật khẩu bị vô hiệu hóa trong cài đặt không gian làm việc của bạn, những người dùng này có thể bị khóa hoàn toàn.",@@ -338,12 +391,15 @@"syncing": "Đang đồng bộ hóa ..."},"issue": {- "labels": "Nhãn vấn đề"+ "labels": "Nhãn vấn đề",+ "advanced-search": {+ "filter": "Bộ lọc"+ }},"label": {"error": {- "key-necessary": "Khóa là bắt buộc","key-duplicated": "Khóa trùng lặp",+ "key-necessary": "Khóa là bắt buộc","max-value-length-exceeded": "Độ dài giá trị không được vượt quá {{length}} ký tự"}},@@ -398,118 +454,118 @@"success-prompt": "Đã tạo thành công dự án {{name}}."},"filter-projects": "Lọc dự án",- "table": {- "name": "Tên"+ "members": {+ "add-more": "Add more",+ "allow-ddl": "Cho phép chạy câu lệnh DDL/DML trong các môi trường đã chọn.",+ "description": "Thành viên dự án xác định quyền để vận hành cơ sở dữ liệu và các vấn đề bên trong dự án. Chủ sở hữu dự án, Quản trị viên không gian làm việc và DBA không gian làm việc đều có toàn quyền dự án.",+ "disallow-ddl-all-environments": "Không cho phép chạy câu lệnh DDL/DML cho tất cả các môi trường.",+ "edit-member": "Chỉnh sửa thành viên - {{member}}",+ "never-expires": "Never",+ "revoke-role-from-member": "Thu hồi '{{role}}' từ '{{member}}'?"},"settings": {- "success-updated": "Đã cập nhật thành công cài đặt dự án.",- "update-failed": "Không cập nhật được cài đặt dự án.","confirm-archive-project": "Archiving \"{{name}}\" will make it read-only and hide it from active project lists. All issues, databases, and settings will be preserved. You can restore it later from the archived projects list.","confirm-delete-project": "Deleting \"{{name}}\" will permanently remove the project and all associated data including issues, configurations, and history. All databases in this project will be moved to the default project. This action cannot be undone.",- "restore": {- "title": "Khôi phục dự án",- "btn-text": "Khôi phục @.lower:{'common.project'} này"- },- "project-labels": {- "self": "Nhãn dự án",- "description": "Tổ chức dự án với nhãn khóa-giá trị (tối đa 64)"- },"issue-related": {- "self": "Liên quan đến vấn đề",- "labels": {- "self": "Nhãn vấn đề",- "description": "Có thể gắn nhãn vào các vấn đề để quản lý",- "placeholder": "Nhấn Enter để thêm thẻ",- "force-issue-labels": {- "self": "Yêu cầu nhãn cho tất cả các vấn đề",- "description": "Yêu cầu ít nhất một nhãn khi tạo vấn đề.",- "warning": "Yêu cầu ít nhất một nhãn được cấu hình"- }- },- "enforce-issue-title": {- "self": "Yêu cầu tiêu đề thủ công",- "description": "Yêu cầu tiêu đề cho vấn đề và kế hoạch được tạo bởi người dùng thay vì tự động tạo."+ "allow-jit": {+ "description": "Khi được bật, người dùng có thể yêu cầu và sử dụng quyền truy cập tức thời trong Trình soạn thảo SQL.",+ "self": "Cho phép truy cập tức thời"},- "enforce-sql-review": {- "self": "Bắt buộc đánh giá SQL",- "description": "Yêu cầu kiểm tra đánh giá SQL phải vượt qua mà không có lỗi trước khi cho phép tạo vấn đề。"+ "allow-request-role": {+ "description": "Người dùng không phải chủ sở hữu dự án có thể tự yêu cầu vai trò cấp dự án",+ "self": "Cho phép yêu cầu vai trò"},"allow-self-approval": {- "self": "Cho phép tự phê duyệt",- "description": "Cho phép người tạo vấn đề phê duyệt vấn đề."+ "description": "Cho phép người tạo vấn đề phê duyệt vấn đề.",+ "self": "Cho phép tự phê duyệt"},- "allow-request-role": {- "self": "Cho phép yêu cầu vai trò",- "description": "Người dùng không phải chủ sở hữu dự án có thể tự yêu cầu vai trò cấp dự án"+ "approval-flow-configured": "Quy trình phê duyệt đã được cấu hình",+ "approval-flow-fallback": "Đang sử dụng quy tắc phê duyệt mặc định",+ "approval-flow-not-configured": "Chưa cấu hình quy trình phê duyệt",+ "ci-sampling-size": {+ "description": "Số lượng cơ sở dữ liệu tối đa để lấy mẫu trong quá trình xác thực dữ liệu CI. \nKhi bị vô hiệu hóa (không), xác thực đầy đủ sẽ được thực hiện.",+ "self": "Kích thước lấy mẫu dữ liệu CI"},- "allow-jit": {- "self": "Cho phép truy cập tức thời",- "description": "Khi được bật, người dùng có thể yêu cầu và sử dụng quyền truy cập tức thời trong Trình soạn thảo SQL."+ "enforce-issue-title": {+ "description": "Yêu cầu tiêu đề cho vấn đề và kế hoạch được tạo bởi người dùng thay vì tự động tạo.",+ "self": "Yêu cầu tiêu đề thủ công"},- "postgres-database-tenant-mode": {- "self": "Chế độ đối tượng thuê cơ sở dữ liệu Postgres",- "description": "Chế độ đối tượng thuê cho cơ sở dữ liệu Postgres. Nếu bật, vấn đề sẽ được chạy bởi CHỦ SỞ HỮU cơ sở dữ liệu. Nếu không, vấn đề sẽ được chạy bởi người dùng kết nối phiên bản."+ "enforce-sql-review": {+ "description": "Yêu cầu kiểm tra đánh giá SQL phải vượt qua mà không có lỗi trước khi cho phép tạo vấn đề。",+ "self": "Bắt buộc đánh giá SQL"},- "max-retries": {- "self": "Số lần thử lại tối đa cho thời gian chờ khóa",- "description": "Tối đa nhớ lại số lượng thời gian chờ khóa khi chạy tác vụ. \nGiá trị mặc định là 0. Chỉ áp dụng cho Postgres."+ "labels": {+ "description": "Có thể gắn nhãn vào các vấn đề để quản lý",+ "force-issue-labels": {+ "description": "Yêu cầu ít nhất một nhãn khi tạo vấn đề.",+ "self": "Yêu cầu nhãn cho tất cả các vấn đề",+ "warning": "Yêu cầu ít nhất một nhãn được cấu hình"+ },+ "placeholder": "Nhấn Enter để thêm thẻ",+ "self": "Nhãn vấn đề"},- "ci-sampling-size": {- "self": "Kích thước lấy mẫu dữ liệu CI",- "description": "Số lượng cơ sở dữ liệu tối đa để lấy mẫu trong quá trình xác thực dữ liệu CI. \nKhi bị vô hiệu hóa (không), xác thực đầy đủ sẽ được thực hiện."+ "max-retries": {+ "description": "Tối đa nhớ lại số lượng thời gian chờ khóa khi chạy tác vụ. \nGiá trị mặc định là 0. Chỉ áp dụng cho Postgres.",+ "self": "Số lần thử lại tối đa cho thời gian chờ khóa"},"parallel_tasks_per_rollout": {- "self": "Nhiệm vụ song song cho mỗi lần triển khai",- "description": "Kiểm soát số lượng các tác vụ song song cho mỗi lần triển khai. \nĐặt điều này thành 0 vô hiệu hóa bất kỳ điều chỉnh."+ "description": "Kiểm soát số lượng các tác vụ song song cho mỗi lần triển khai. \nĐặt điều này thành 0 vô hiệu hóa bất kỳ điều chỉnh.",+ "self": "Nhiệm vụ song song cho mỗi lần triển khai"+ },+ "postgres-database-tenant-mode": {+ "description": "Chế độ đối tượng thuê cho cơ sở dữ liệu Postgres. Nếu bật, vấn đề sẽ được chạy bởi CHỦ SỞ HỮU cơ sở dữ liệu. Nếu không, vấn đề sẽ được chạy bởi người dùng kết nối phiên bản.",+ "self": "Chế độ đối tượng thuê cơ sở dữ liệu Postgres"},"require-issue-approval": {- "self": "Yêu cầu phê duyệt issue trước khi tạo triển khai",- "description": "Issue phải được phê duyệt trước khi tạo triển khai."+ "description": "Issue phải được phê duyệt trước khi tạo triển khai.",+ "self": "Yêu cầu phê duyệt issue trước khi tạo triển khai"},"require-plan-check-no-error": {- "self": "Yêu cầu kiểm tra kế hoạch phải đạt trước khi tạo triển khai",- "description": "Tất cả kiểm tra kế hoạch phải đạt không có lỗi trước khi tạo triển khai."+ "description": "Tất cả kiểm tra kế hoạch phải đạt không có lỗi trước khi tạo triển khai.",+ "self": "Yêu cầu kiểm tra kế hoạch phải đạt trước khi tạo triển khai"},- "approval-flow-configured": "Quy trình phê duyệt đã được cấu hình",- "approval-flow-fallback": "Đang sử dụng quy tắc phê duyệt mặc định",- "approval-flow-not-configured": "Chưa cấu hình quy trình phê duyệt",+ "self": "Liên quan đến vấn đề","view-approval-flow": "Xem quy trình phê duyệt"- }+ },+ "project-labels": {+ "description": "Tổ chức dự án với nhãn khóa-giá trị (tối đa 64)",+ "self": "Nhãn dự án"+ },+ "restore": {+ "btn-text": "Khôi phục @.lower:{'common.project'} này",+ "title": "Khôi phục dự án"+ },+ "success-updated": "Đã cập nhật thành công cài đặt dự án.",+ "update-failed": "Không cập nhật được cài đặt dự án."},- "members": {- "add-more": "Add more",- "description": "Thành viên dự án xác định quyền để vận hành cơ sở dữ liệu và các vấn đề bên trong dự án. Chủ sở hữu dự án, Quản trị viên không gian làm việc và DBA không gian làm việc đều có toàn quyền dự án.",- "never-expires": "Never",- "allow-ddl": "Cho phép chạy câu lệnh DDL/DML trong các môi trường đã chọn.",- "disallow-ddl-all-environments": "Không cho phép chạy câu lệnh DDL/DML cho tất cả các môi trường.",- "edit-member": "Chỉnh sửa thành viên - {{member}}",- "revoke-role-from-member": "Thu hồi '{{role}}' từ '{{member}}'?"+ "table": {+ "name": "Tên"},"webhook": {- "success-created-prompt": "Đã tạo thành công webhook {{name}}.",- "success-updated-prompt": "Đã cập nhật thành công webhook {{name}}.",- "success-deleted-prompt": "Đã xóa thành công webhook {{name}}.",- "success-tested-prompt": "Kiểm tra sự kiện webhook OK.",- "fail-tested-title": "Kiểm tra sự kiện webhook không thành công.",+ "activity-support-direct-message": "Hỗ trợ gửi tin nhắn trực tiếp đến người dùng liên quan","add-a-webhook": "Thêm một webhook",- "destination": "Đích",- "webhook-url": "URL Webhook",- "triggering-activity": "Hoạt động kích hoạt",- "test-webhook": "Kiểm tra Webhook","creation": {- "title": "Tạo webhook","desc": "Tạo webhook tương ứng cho kênh {{destination}} nhận tin nhắn.",+ "title": "Tạo webhook","view-doc": "Xem tài liệu của {{destination}}"},"deletion": {"confirm-title": "Xóa webhook '{{title}}'?"},+ "destination": "Đích","direct-messages": "Tin nhắn trực tiếp",- "direct-messages-tip": "Bytebase sẽ quay lại đăng tin nhắn webhook nếu không có người dùng nào khớp hoặc việc gửi tin nhắn không thành công.",- "enable-direct-messages": "Bật tin nhắn trực tiếp","direct-messages-description": "Khi được bật, Bytebase sẽ gửi tin nhắn trực tiếp đến người dùng liên quan (được khớp bằng email). Chỉ hỗ trợ:",+ "direct-messages-tip": "Bytebase sẽ quay lại đăng tin nhắn webhook nếu không có người dùng nào khớp hoặc việc gửi tin nhắn không thành công.","direct-messages-warning": "Bạn cần định cấu hình tích hợp IM để làm cho nó hoạt động.",- "activity-support-direct-message": "Hỗ trợ gửi tin nhắn trực tiếp đến người dùng liên quan"+ "enable-direct-messages": "Bật tin nhắn trực tiếp",+ "fail-tested-title": "Kiểm tra sự kiện webhook không thành công.",+ "success-created-prompt": "Đã tạo thành công webhook {{name}}.",+ "success-deleted-prompt": "Đã xóa thành công webhook {{name}}.",+ "success-tested-prompt": "Kiểm tra sự kiện webhook OK.",+ "success-updated-prompt": "Đã cập nhật thành công webhook {{name}}.",+ "test-webhook": "Kiểm tra Webhook",+ "triggering-activity": "Hoạt động kích hoạt",+ "webhook-url": "URL Webhook"}},"quick-action": {@@ -789,6 +845,7 @@"add-user": "Thêm người dùng","add-workload-identity": "Thêm danh tính Workload","all-users": "Tất cả người dùng",+ "assign-role": "Assign role","cannot-revoke-self": "You cannot revoke yourself","copy-service-key": "Sao chép Khóa Dịch vụ","entra-sync": {@@ -822,21 +879,20 @@"inactive-service-accounts": "Tài khoản dịch vụ không hoạt động","inactive-users": "Người dùng không hoạt động","inactive-workload-identities": "Danh tính Workload không hoạt động",+ "reset-service-key": "Đặt lại Khóa Dịch vụ",+ "reset-service-key-alert": "Hành động này không thể hoàn tác. Khóa cũ sẽ ngừng hoạt động ngay lập tức. Bạn có chắc chắn muốn đặt lại khóa dịch vụ này?","revoke-access": "Thu hồi Quyền truy cập","revoke-access-alert": "Bạn có chắc muốn thu hồi quyền truy cập?","revoke-allusers-alert": "Thu hồi \"Tất cả người dùng\" sẽ thu hồi các vai trò liên quan từ tất cả người dùng khác trong không gian làm việc của bạn. Bạn có chắc chắn muốn tiếp tục không?",- "reset-service-key": "Đặt lại Khóa Dịch vụ",- "reset-service-key-alert": "Hành động này không thể hoàn tác. Khóa cũ sẽ ngừng hoạt động ngay lập tức. Bạn có chắc chắn muốn đặt lại khóa dịch vụ này?","revoked": "Đã thu hồi","search-member": "Tìm kiếm thành viên",- "service-key-copied": "Khóa Dịch vụ đã được sao chép vào khay nhớ tạm, vui lòng giữ bí mật.","select-account_one": "Chọn tài khoản","select-account_other": "Chọn tài khoản",- "assign-role": "Assign role","select-role_one": "Chọn vai trò","select-role_other": "Chọn vai trò","service-account": "Tài khoản dịch vụ","service-accounts": "Tài khoản dịch vụ",+ "service-key-copied": "Khóa Dịch vụ đã được sao chép vào khay nhớ tạm, vui lòng giữ bí mật.","show-inactive": "Hiển thị tài khoản không hoạt động","table": {"account": "Tài khoản",@@ -972,10 +1028,10 @@"mcp": "MCP","members": "Thành viên","members-and-groups": "Thành viên & Nhóm",+ "security-and-policy": "Bảo mật & Chính sách","sso": "SSO","subscription": "Gói đăng ký",- "users-and-groups": "Người dùng & Nhóm",- "security-and-policy": "Bảo mật & Chính sách"+ "users-and-groups": "Người dùng & Nhóm"},"sso": {"create": "Tạo SSO",@@ -1064,7 +1120,15 @@}},"sql-editor": {- "self": "Trình soạn thảo SQL"+ "access-grants-redirect-hint": "Go to {link} to view and manage your own access grants.",+ "activate-access": "Activate",+ "activate-confirm": "Are you sure you want to activate this access grant?",+ "expired": "Expired",+ "grant-type-unmask": "Unmask",+ "revoke-access": "Revoke",+ "revoke-confirm": "Are you sure you want to revoke this access grant?",+ "self": "Trình soạn thảo SQL",+ "view-issue": "View Issue"},"sql-review": {"add-or-remove-rules": "Add or remove rules",@@ -1201,51 +1265,5 @@},"two-factor": {"enabled": "Đã bật 2FA"- },- "database-group": {- "condition": {- "self": "Condition"- },- "create": "New database group",- "delete-group": "Delete the database group {{name}}",- "matched-database": "Matched database",- "no-matched-databases": "No matched databases",- "select": "Select database group",- "unmatched-database": "Unmatched database"- },- "gitops": {- "checklist": {- "database-group-recommendation": "Đối với các cơ sở dữ liệu có cùng schema, nhóm cơ sở dữ liệu cho phép bạn migration tất cả cùng lúc trong một thay đổi. Chỉ cần định nghĩa nhóm một lần và tái sử dụng trong các lần migration mà không cần chọn từng cơ sở dữ liệu mỗi lần.",- "external-url": "URL bên ngoài",- "target-databases": "Cơ sở dữ liệu đích",- "title": "Kiểm tra trước khi bắt đầu",- "wif-notice-suffix": "để thiết lập GitOps bằng tài khoản dịch vụ.",- "wif-notice-text": "Workload Identity Federation hiện chỉ hỗ trợ GitHub và GitLab. Đối với các VCS khác, vui lòng tham khảo hướng dẫn cho",- "workload-identity": "Workload Identity"- },- "documentation": "Xem tài liệu",- "overview": {- "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.",- "title": "GitOps là gì"- },- "test-setup": {- "description": "Xác minh workflow hoạt động đầy đủ với một tệp migration mẫu.",- "naming-convention": "Các tệp migration được áp dụng theo thứ tự từ điển. Sử dụng tiền tố timestamp hoặc số thứ tự, ví dụ: 20240101000000_create_table.sql. Thêm _ddl hoặc _dml để chỉ loại thay đổi.",- "step-create-branch": "Tạo nhánh mới, thêm tệp ở trên và mở pull request nhắm đến {branch}.",- "step-merge": "Sau khi review thông qua, merge PR. Bytebase sẽ tự động tạo rollout và triển khai đến các môi trường đích.",- "step-sql-review": "SQL Review tự động chạy trên pull request và đăng nhận xét review.",- "title": "Thử nghiệm migration GitOps đầu tiên"- },- "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",- "provider-not-match": "Workload identity đã chọn chỉ hoạt động cho {provider}.",- "self-hosted-runner": "Runner tự lưu trữ",- "title": "Tạo tệp workflow"- },- "workload-identity": {- "select-placeholder": "Chọn một workload identity"- }}}diff --git a/frontend/src/react/locales/zh-CN.json b/frontend/src/react/locales/zh-CN.jsonindex f6f924e3c1..fb8a383770 100644--- a/frontend/src/react/locales/zh-CN.json+++ b/frontend/src/react/locales/zh-CN.json@@ -61,12 +61,16 @@}},"common": {+ "activated": "已激活",+ "active": "开启","add": "添加","add-permissions": "添加权限","added": "已创建","address": "地址","all": "全部","archive": "归档",+ "archive-description": "将「{{name}}」标记为已归档且只读。",+ "archive-resource": "归档{{type}}","archived": "已归档","back": "返回","cancel": "取消",@@ -78,17 +82,26 @@"confirm": "确认","confirm-and-add": "确认并添加","confirm-and-update": "确认并更新",+ "confirm-archive": "确定归档资源?",+ "confirm-delete": "确定删除资源?","copied": "已拷贝","copy": "拷贝","copy-failed": "Copy failed","create": "创建","created": "已创建",+ "created-at": "创建于",+ "creator": "创建人",+ "danger-zone": "危险区域","database": "数据库",+ "database-group": "数据库分组",+ "databases": "数据库","default": "默认","delete": "删除","delete-resource": "删除{{type}}",+ "delete-resource-description": "删除「{{name}}」后将无法恢复,请确认。","deleted": "已删除","description": "描述",+ "deselect-all": "Deselect all","disable": "禁用","discard-changes": "取消修改","edit": "编辑",@@ -98,6 +111,7 @@"enabled": "开启","environment": "环境","environment-name": "环境名",+ "environments": "环境","expiration": "Expiration","export": "导出","failed": "失败",@@ -105,6 +119,7 @@"size-limit": "文件大小需小于 {{size}} MiB","type-limit": "仅支持 {{extension}} 类型的文件"},+ "filter": "Filter","filter-by-name": "按名称过滤","from": "从","general": "通用",@@ -112,12 +127,14 @@"id": "ID","instance": "实例","is-required": "is required",+ "items": "items","key": "键","labels": "标签","learn-more": "了解更多","leave-without-saving": "不保存变动?","load-more": "加载更多","loading": "加载中",+ "manually-select": "Manually select","members_one": "成员","members_other": "成员","missing-required-permission": "缺少必需的权限 {{permissions}}",@@ -126,20 +143,22 @@"next": "下一步","no-data": "无数据","ok": "OK",- "optional": "Optional","operations": "操作",+ "optional": "Optional",+ "pending": "待审批","permissions": "权限","previous": "上一步","project": "项目","reason": "Reason","release": "版本","reorder": "排序",- "resource": "资源","required-permission": "所需权限","required-workspace-permission": "初始化工作空间 UX 需要以下权限",+ "resource": "资源","restore": "恢复","restored": "已恢复","revert": "恢复",+ "revoked": "已撤销","rows-per-page": "每页行数","save": "保存","schema": "模式",@@ -147,13 +166,16 @@"search-for-more": "搜索更多","select": "请选择","select-all": "全选",+ "selected": "selected","sensitive-placeholder": "敏感数据 - 仅写入","state": "状态",+ "statement": "语句","status": "状态","system": "系统","table": "表","title": "标题","to": "到",+ "total": "Total","total-n-items": "共 {{n}} 项","type": "类型","unassigned": "未分配",@@ -166,22 +188,7 @@"view": "查看","view-details": "查看详情","warning": "警告",- "you": "您",- "database-group": "数据库分组",- "databases": "数据库",- "danger-zone": "危险区域",- "archive-resource": "归档{{type}}",- "archive-description": "将「{{name}}」标记为已归档且只读。",- "confirm-archive": "确定归档资源?",- "delete-resource-description": "删除「{{name}}」后将无法恢复,请确认。",- "confirm-delete": "确定删除资源?",- "environments": "环境",- "manually-select": "Manually select",- "filter": "Filter",- "total": "Total",- "selected": "selected",- "items": "items",- "deselect-all": "Deselect all"+ "you": "您"},"create-db": {"cluster": "集群",@@ -254,6 +261,7 @@}},"database": {+ "change-database": "变更数据库","classification": {"description": "定义分类分级,跨列和数据库统一应用脱敏策略。"},@@ -262,18 +270,28 @@"engine": "引擎","expression": "Expression","filter-database": "筛选数据库",+ "mixed-label-values": "混合值",+ "mixed-label-values-warning": "部分标签拥有不同的值,编辑标签将会批量应用。仅在您打算更改时再编辑这些键值对。",+ "select": "选择数据库","selected-n-databases": "已选择 {{n}} 个数据库","successfully-transferred-databases": "成功转移数据库","sync-schema-button": "同步 Schema","sync-status-failed": "同步失败","transfer-project": "转移项目",- "change-database": "变更数据库",- "mixed-label-values": "混合值",- "mixed-label-values-warning": "部分标签拥有不同的值,编辑标签将会批量应用。仅在您打算更改时再编辑这些键值对。","unassign": "取消分配","unassign-alert-description": "选定的数据库将从项目中移除",- "unassign-alert-title": "取消分配数据库",- "select": "选择数据库"+ "unassign-alert-title": "取消分配数据库"+ },+ "database-group": {+ "condition": {+ "self": "Condition"+ },+ "create": "New database group",+ "delete-group": "Delete the database group {{name}}",+ "matched-database": "Matched database",+ "no-matched-databases": "No matched databases",+ "select": "Select database group",+ "unmatched-database": "Unmatched database"},"db": {"character-set": "字符集",@@ -288,12 +306,47 @@"delete": "删除此环境","delete-description": "删除环境也会将其从相关实例和数据库中删除。这个操作无法撤销","reorder": "重新排序环境",- "successfully-updated-environment": "环境'{{name}}'更新成功",- "select": "选择环境"+ "select": "选择环境",+ "successfully-updated-environment": "环境'{{name}}'更新成功"},"error-page": {"not-found": "页面未找到"},+ "gitops": {+ "checklist": {+ "database-group-recommendation": "对于具有相同 Schema 的数据库,数据库分组可以让您在一次变更中同时迁移它们。只需定义一次分组,即可在多次迁移中复用,无需每次都逐个选择数据库。",+ "external-url": "外部访问地址",+ "target-databases": "目标数据库",+ "title": "开始前检查",+ "wif-notice-suffix": "以使用服务账号配置 GitOps。",+ "wif-notice-text": "Workload Identity Federation 目前仅支持 GitHub 和 GitLab。对于其他 VCS,请参考以下教程:",+ "workload-identity": "工作负载身份"+ },+ "documentation": "查看文档",+ "overview": {+ "description": "Bytebase GitOps 让您通过将数据库架构变更集成到 CI/CD 流水线中,以 Database as Code 的方式管理数据库。",+ "description-git": "数据库架构与应用代码一起存储在 Git 中。拉取请求会触发 SQL 审查,合并到目标分支后会自动创建变更发布。",+ "title": "什么是 GitOps"+ },+ "test-setup": {+ "description": "使用示例迁移文件验证整个工作流是否正常运行。",+ "naming-convention": "迁移文件按字典顺序执行。请使用时间戳或序号前缀,例如 20240101000000_create_table.sql。在文件名末尾添加 _ddl 或 _dml 来标识变更类型。",+ "step-create-branch": "创建新分支,添加上面的文件,然后向 {branch} 提交拉取请求。",+ "step-merge": "审查通过后,合并 PR。Bytebase 将自动创建 rollout 并部署到目标环境。",+ "step-sql-review": "SQL Review 会自动在拉取请求上运行并发布审查评论。",+ "title": "测试您的首次 GitOps 迁移"+ },+ "workflow": {+ "description": "将工作流文件复制到您的代码仓库中,以自动化 SQL 审查和数据库变更发布。",+ "file-hint": "保存为仓库中的 {filePath}",+ "provider-not-match": "所选的 工作负载标识 (Workload Identity) 仅适用于 {provider}。",+ "self-hosted-runner": "自托管 runner",+ "title": "工作流文件生成"+ },+ "workload-identity": {+ "select-placeholder": "选择工作负载身份"+ }+ },"identity-provider": {"claims-description": "身份提供商返回了以下 claims。此信息可帮助您配置用户信息映射。","delete-warning": "您确定要删除此身份提供者吗?通过此 SSO 注册的用户将无法再使用该身份提供者登录。如果您在工作区设置中禁用了密码登录,这些用户可能会被完全锁定。",@@ -338,12 +391,15 @@"syncing": "同步中 ..."},"issue": {- "labels": "工单标签"+ "labels": "工单标签",+ "advanced-search": {+ "filter": "过滤"+ }},"label": {"error": {- "key-necessary": "需要指定 Key","key-duplicated": "Key 重复了",+ "key-necessary": "需要指定 Key","max-value-length-exceeded": "值的长度不能超过 {{length}} 字符"}},@@ -398,118 +454,118 @@"success-prompt": "成功创建 {{name}}."},"filter-projects": "过滤项目",- "table": {- "name": "名称"+ "members": {+ "add-more": "Add more",+ "allow-ddl": "允许在所选环境中执行 DDL/DML 语句。",+ "description": "项目成员角色决定了操作项目中的数据库和工单的权限。项目的所有者,工作空间管理员和 DBA 都具有项目所有的权限。",+ "disallow-ddl-all-environments": "禁止在所有环境中执行 DDL/DML 语句。",+ "edit-member": "编辑成员 - {{member}}",+ "never-expires": "Never",+ "revoke-role-from-member": "从 '{{member}}' 撤销 '{{role}}' 角色?"},"settings": {- "success-updated": "项目设置更新成功",- "update-failed": "无法更新项目设置。","confirm-archive-project": "归档「{{name}}」将使其变为只读并从活跃项目列表中隐藏。所有工单、数据库和设置将被保留。您可以稍后从已归档项目列表中恢复。","confirm-delete-project": "删除「{{name}}」将永久移除该项目及所有关联数据,包括工单、配置和历史记录。该项目中的所有数据库将被移至默认项目。此操作无法撤销。",- "restore": {- "title": "恢复项目",- "btn-text": "恢复这个@:common.project"- },- "project-labels": {- "self": "项目标签",- "description": "用键值标签组织项目(最多64个)"- },"issue-related": {- "self": "工单相关",- "labels": {- "self": "工单标签",- "description": "可以在工单中附加标签以便管理",- "placeholder": "按 Enter 键添加标签",- "force-issue-labels": {- "self": "要求所有工单都必须有标签",- "description": "创建工单时必须添加至少一个标签。",- "warning": "至少需要配置一个标签"- }- },- "enforce-issue-title": {- "self": "要求手动输入标题",- "description": "工单和计划的标题必须由用户输入,而不是自动生成。"+ "allow-jit": {+ "description": "启用后,用户可以在 SQL 编辑器中请求并使用即时数据访问权限。",+ "self": "允许即时访问"},- "enforce-sql-review": {- "self": "强制 SQL 审核",- "description": "在允许创建工单之前,要求 SQL 审核检查通过且无错误。"+ "allow-request-role": {+ "description": "非项目所有者可以自行申请项目级角色",+ "self": "允许申请角色"},"allow-self-approval": {- "self": "允许创建者审批",- "description": "允许创建者审批自己创建的工单。"+ "description": "允许创建者审批自己创建的工单。",+ "self": "允许创建者审批"},- "allow-request-role": {- "self": "允许申请角色",- "description": "非项目所有者可以自行申请项目级角色"+ "approval-flow-configured": "审批流程已配置",+ "approval-flow-fallback": "使用默认审批规则",+ "approval-flow-not-configured": "未配置审批流程",+ "ci-sampling-size": {+ "description": "在CI数据验证期间,要采样的数据库数量的最大数量。\n禁用(零)时,将执行完整验证。",+ "self": "CI 数据采样大小"},- "allow-jit": {- "self": "允许即时访问",- "description": "启用后,用户可以在 SQL 编辑器中请求并使用即时数据访问权限。"+ "enforce-issue-title": {+ "description": "工单和计划的标题必须由用户输入,而不是自动生成。",+ "self": "要求手动输入标题"},- "postgres-database-tenant-mode": {- "self": "Postgres 数据库租户模式",- "description": "Postgres 数据库租户模式。如果启用,该工单将由数据库 OWNER 运行。否则,该工单将由实例连接用户运行。"+ "enforce-sql-review": {+ "description": "在允许创建工单之前,要求 SQL 审核检查通过且无错误。",+ "self": "强制 SQL 审核"},- "max-retries": {- "self": "锁超时的最大重试数",- "description": "运行任务时锁超时的最大重试数。默认值为0。只对 PostgreSQL 有效。"+ "labels": {+ "description": "可以在工单中附加标签以便管理",+ "force-issue-labels": {+ "description": "创建工单时必须添加至少一个标签。",+ "self": "要求所有工单都必须有标签",+ "warning": "至少需要配置一个标签"+ },+ "placeholder": "按 Enter 键添加标签",+ "self": "工单标签"},- "ci-sampling-size": {- "self": "CI 数据采样大小",- "description": "在CI数据验证期间,要采样的数据库数量的最大数量。\n禁用(零)时,将执行完整验证。"+ "max-retries": {+ "description": "运行任务时锁超时的最大重试数。默认值为0。只对 PostgreSQL 有效。",+ "self": "锁超时的最大重试数"},"parallel_tasks_per_rollout": {- "self": "每个发布的并行任务数",- "description": "控制每个发布的并行任务数量。\n将其设置为零,可以禁用任何节流。"+ "description": "控制每个发布的并行任务数量。\n将其设置为零,可以禁用任何节流。",+ "self": "每个发布的并行任务数"+ },+ "postgres-database-tenant-mode": {+ "description": "Postgres 数据库租户模式。如果启用,该工单将由数据库 OWNER 运行。否则,该工单将由实例连接用户运行。",+ "self": "Postgres 数据库租户模式"},"require-issue-approval": {- "self": "创建发布前需要工单审批",- "description": "工单必须在创建发布前获得批准。"+ "description": "工单必须在创建发布前获得批准。",+ "self": "创建发布前需要工单审批"},"require-plan-check-no-error": {- "self": "创建发布前要求变更检查通过",- "description": "所有变更检查必须无错误才能创建发布。"+ "description": "所有变更检查必须无错误才能创建发布。",+ "self": "创建发布前要求变更检查通过"},- "approval-flow-configured": "审批流程已配置",- "approval-flow-fallback": "使用默认审批规则",- "approval-flow-not-configured": "未配置审批流程",+ "self": "工单相关","view-approval-flow": "查看审批流程"- }+ },+ "project-labels": {+ "description": "用键值标签组织项目(最多64个)",+ "self": "项目标签"+ },+ "restore": {+ "btn-text": "恢复这个@:common.project",+ "title": "恢复项目"+ },+ "success-updated": "项目设置更新成功",+ "update-failed": "无法更新项目设置。"},- "members": {- "add-more": "Add more",- "description": "项目成员角色决定了操作项目中的数据库和工单的权限。项目的所有者,工作空间管理员和 DBA 都具有项目所有的权限。",- "never-expires": "Never",- "allow-ddl": "允许在所选环境中执行 DDL/DML 语句。",- "disallow-ddl-all-environments": "禁止在所有环境中执行 DDL/DML 语句。",- "edit-member": "编辑成员 - {{member}}",- "revoke-role-from-member": "从 '{{member}}' 撤销 '{{role}}' 角色?"+ "table": {+ "name": "名称"},"webhook": {- "success-created-prompt": "成功创建 {{name}} webhook.",- "success-updated-prompt": "成功更新 {{name}} webhook.",- "success-deleted-prompt": "成功删除 {{name}} webhook.",- "success-tested-prompt": "测试 webhook 事件成功.",- "fail-tested-title": "测试 webhook 事件失败.",+ "activity-support-direct-message": "支持向相关用户发送私信通知","add-a-webhook": "添加 webhook",- "destination": "外部应用",- "webhook-url": "Webhook URL",- "triggering-activity": "触发事件",- "test-webhook": "测试 Webhook","creation": {- "title": "创建 webhook","desc": "为 {{destination}} 创建一个 webhook",+ "title": "创建 webhook","view-doc": "{{destination}} 的官方文档"},"deletion": {"confirm-title": "删除 webhook '{{title}}'?"},+ "destination": "外部应用","direct-messages": "私信通知",- "direct-messages-tip": "如果没有匹配的用户或者消息发送失败,Bytebase 将回退发布 webhook 消息。",- "enable-direct-messages": "启用私信通知","direct-messages-description": "启用后,Bytebase 将私信通知相关用户(通过电子邮箱匹配)。仅支持:",+ "direct-messages-tip": "如果没有匹配的用户或者消息发送失败,Bytebase 将回退发布 webhook 消息。","direct-messages-warning": "您需要配置 IM 集成才能使其正常工作。",- "activity-support-direct-message": "支持向相关用户发送私信通知"+ "enable-direct-messages": "启用私信通知",+ "fail-tested-title": "测试 webhook 事件失败.",+ "success-created-prompt": "成功创建 {{name}} webhook.",+ "success-deleted-prompt": "成功删除 {{name}} webhook.",+ "success-tested-prompt": "测试 webhook 事件成功.",+ "success-updated-prompt": "成功更新 {{name}} webhook.",+ "test-webhook": "测试 Webhook",+ "triggering-activity": "触发事件",+ "webhook-url": "Webhook URL"}},"quick-action": {@@ -789,6 +845,7 @@"add-user": "添加用户","add-workload-identity": "添加工作负载身份","all-users": "全部用户",+ "assign-role": "Assign role","cannot-revoke-self": "You cannot revoke yourself","copy-service-key": "复制 Service Key","entra-sync": {@@ -822,21 +879,20 @@"inactive-service-accounts": "未激活服务账号","inactive-users": "未激活用户","inactive-workload-identities": "未激活工作负载身份",+ "reset-service-key": "重置 Service Key",+ "reset-service-key-alert": "旧 Service Key 将立即被重置,该操作不可逆。确定要重置 Service Key 吗?","revoke-access": "撤销访问权限","revoke-access-alert": "您确定要撤销访问权限吗?","revoke-allusers-alert": "撤销“全部用户”将撤销您工作区中所有其他用户的相关角色。您确定要继续吗?",- "reset-service-key": "重置 Service Key",- "reset-service-key-alert": "旧 Service Key 将立即被重置,该操作不可逆。确定要重置 Service Key 吗?","revoked": "已撤销","search-member": "搜索成员",- "service-key-copied": "Service Key 已复制,请勿泄漏","select-account_one": "选择账户","select-account_other": "选择账户",- "assign-role": "Assign role","select-role_one": "选择角色","select-role_other": "选择角色","service-account": "服务账号","service-accounts": "服务账号",+ "service-key-copied": "Service Key 已复制,请勿泄漏","show-inactive": "显示已停用账户","table": {"account": "账户",@@ -972,10 +1028,10 @@"mcp": "MCP","members": "成员","members-and-groups": "成员和群组",+ "security-and-policy": "安全 & 策略","sso": "SSO","subscription": "订阅",- "users-and-groups": "用户和群组",- "security-and-policy": "安全 & 策略"+ "users-and-groups": "用户和群组"},"sso": {"create": "创建 SSO",@@ -1064,7 +1120,15 @@}},"sql-editor": {- "self": "SQL 编辑器"+ "access-grants-redirect-hint": "前往 {link} 查看和管理您自己的访问授权。",+ "activate-access": "激活",+ "activate-confirm": "确定要激活此访问授权吗?",+ "expired": "已过期",+ "grant-type-unmask": "脱敏豁免",+ "revoke-access": "撤销",+ "revoke-confirm": "确定要撤销此访问授权吗?",+ "self": "SQL 编辑器",+ "view-issue": "查看工单"},"sql-review": {"add-or-remove-rules": "添加或删除规则",@@ -1201,51 +1265,5 @@},"two-factor": {"enabled": "双重认证已开启"- },- "database-group": {- "condition": {- "self": "Condition"- },- "create": "New database group",- "delete-group": "Delete the database group {{name}}",- "matched-database": "Matched database",- "no-matched-databases": "No matched databases",- "select": "Select database group",- "unmatched-database": "Unmatched database"- },- "gitops": {- "checklist": {- "database-group-recommendation": "对于具有相同 Schema 的数据库,数据库分组可以让您在一次变更中同时迁移它们。只需定义一次分组,即可在多次迁移中复用,无需每次都逐个选择数据库。",- "external-url": "外部访问地址",- "target-databases": "目标数据库",- "title": "开始前检查",- "wif-notice-suffix": "以使用服务账号配置 GitOps。",- "wif-notice-text": "Workload Identity Federation 目前仅支持 GitHub 和 GitLab。对于其他 VCS,请参考以下教程:",- "workload-identity": "工作负载身份"- },- "documentation": "查看文档",- "overview": {- "description": "Bytebase GitOps 让您通过将数据库架构变更集成到 CI/CD 流水线中,以 Database as Code 的方式管理数据库。",- "description-git": "数据库架构与应用代码一起存储在 Git 中。拉取请求会触发 SQL 审查,合并到目标分支后会自动创建变更发布。",- "title": "什么是 GitOps"- },- "test-setup": {- "description": "使用示例迁移文件验证整个工作流是否正常运行。",- "naming-convention": "迁移文件按字典顺序执行。请使用时间戳或序号前缀,例如 20240101000000_create_table.sql。在文件名末尾添加 _ddl 或 _dml 来标识变更类型。",- "step-create-branch": "创建新分支,添加上面的文件,然后向 {branch} 提交拉取请求。",- "step-merge": "审查通过后,合并 PR。Bytebase 将自动创建 rollout 并部署到目标环境。",- "step-sql-review": "SQL Review 会自动在拉取请求上运行并发布审查评论。",- "title": "测试您的首次 GitOps 迁移"- },- "workflow": {- "description": "将工作流文件复制到您的代码仓库中,以自动化 SQL 审查和数据库变更发布。",- "file-hint": "保存为仓库中的 {filePath}",- "provider-not-match": "所选的 工作负载标识 (Workload Identity) 仅适用于 {provider}。",- "self-hosted-runner": "自托管 runner",- "title": "工作流文件生成"- },- "workload-identity": {- "select-placeholder": "选择工作负载身份"- }}}diff --git a/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx b/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsxnew file mode 100644index 0000000000..a60469ac90--- /dev/null+++ b/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx@@ -0,0 +1,782 @@+import { ArrowDown, ArrowUp, ArrowUpDown, ShieldAlert } from "lucide-react";+import { useCallback, useMemo, useState } from "react";+import { useTranslation } from "react-i18next";+import { EngineIconPath } from "@/components/InstanceForm/constants";+import {+ AdvancedSearch,+ emptySearchParams,+ type ScopeOption,+ type SearchParams,+ type ValueOption,+} from "@/react/components/AdvancedSearch";+import { FeatureAttention } from "@/react/components/FeatureAttention";+import { Badge } from "@/react/components/ui/badge";+import { Button } from "@/react/components/ui/button";+import {+ Dialog,+ DialogContent,+ DialogTitle,+} from "@/react/components/ui/dialog";+import { Input } from "@/react/components/ui/input";+import { Tooltip } from "@/react/components/ui/tooltip";+import { useVueState } from "@/react/hooks/useVueState";+import {+ PagedTableFooter,+ usePagedData,+} from "@/react/pages/settings/shared/usePagedData";+import { router } from "@/router";+import {+ featureToRef,+ pushNotification,+ useAccessGrantStore,+ useCurrentUserV1,+ useDatabaseV1Store,+ useProjectV1Store,+ useUserStore,+} from "@/store";+import type { AccessFilter } from "@/store/modules/accessGrant";+import { extractUserEmail, projectNamePrefix } from "@/store/modules/v1/common";+import { getTimeForPbTimestampProtoEs } from "@/types";+import type { AccessGrant } from "@/types/proto-es/v1/access_grant_service_pb";+import { AccessGrant_Status } from "@/types/proto-es/v1/access_grant_service_pb";+import type { Database } from "@/types/proto-es/v1/database_service_pb";+import { PlanFeature } from "@/types/proto-es/v1/subscription_service_pb";+import {+ type AccessGrantDisplayStatus,+ type AccessGrantFilterStatus,+ formatAbsoluteDateTime,+ getAccessGrantDisplayStatus,+ getAccessGrantDisplayStatusText,+ getAccessGrantExpirationText,+ getAccessGrantStatusTagType,+ hasProjectPermissionV2,+} from "@/utils";+import { extractDatabaseResourceName } from "@/utils/v1/database";++type SortKey = "creator" | "create_time" | "expire_time";+type SortDir = "asc" | "desc";++function hashCode(str: string): number {+ let hash = 0;+ for (let i = 0; i < str.length; i++) {+ hash = (hash << 5) - hash + str.charCodeAt(i);+ hash |= 0;+ }+ return Math.abs(hash);+}++function getDatabaseName(target: string) {+ const match = target.match(/databases\/(.+)$/);+ return match ? match[1] : target;+}++function statusTagVariant(+ status: AccessGrantDisplayStatus+): "success" | "warning" | "destructive" | "default" {+ const tagType = getAccessGrantStatusTagType(status);+ if (tagType === "error") return "destructive";+ return tagType;+}++function getValuesFromScopes(params: SearchParams, id: string): string[] {+ return params.scopes.filter((s) => s.id === id).map((s) => s.value);+}++function getValueFromScopes(params: SearchParams, id: string): string {+ return params.scopes.find((s) => s.id === id)?.value ?? "";+}++function mapDatabase(db: Database) {+ const { database: dbName } = extractDatabaseResourceName(db.name);+ const inst = db.instanceResource;+ const envId = (db.effectiveEnvironment ?? db.environment ?? "")+ .split("/")+ .pop();+ return {+ value: db.name,+ dbName,+ instanceTitle: inst?.title ?? "",+ envId: envId ?? "",+ engineIcon: inst ? (EngineIconPath[inst.engine] ?? "") : "",+ };+}++export function ProjectAccessGrantsPage({ projectId }: { projectId: string }) {+ const { t } = useTranslation();+ const accessGrantStore = useAccessGrantStore();+ const projectStore = useProjectV1Store();+ const databaseStore = useDatabaseV1Store();+ const userStore = useUserStore();+ const currentUser = useVueState(() => useCurrentUserV1().value);++ const projectName = `${projectNamePrefix}${projectId}`;+ const project = useVueState(() => projectStore.getProjectByName(projectName));++ const hasJITFeature = useVueState(+ () => featureToRef(PlanFeature.FEATURE_JIT).value+ );+ const canList = useMemo(+ () =>+ project ? hasProjectPermissionV2(project, "bb.accessGrants.list") : false,+ [project]+ );+ const canActivate = useMemo(+ () =>+ project+ ? hasProjectPermissionV2(project, "bb.accessGrants.activate")+ : false,+ [project]+ );+ const canRevoke = useMemo(+ () =>+ project+ ? hasProjectPermissionV2(project, "bb.accessGrants.revoke")+ : false,+ [project]+ );++ // --- Search state ---+ const [searchParams, setSearchParams] =+ useState<SearchParams>(emptySearchParams);++ // --- Created-time range state ---+ const [createdAfter, setCreatedAfter] = useState("");+ const [createdBefore, setCreatedBefore] = useState("");++ // --- Sort state ---+ const [sortKey, setSortKey] = useState<SortKey | "">("");+ const [sortDir, setSortDir] = useState<SortDir>("desc");++ const [confirmAction, setConfirmAction] = useState<{+ type: "activate" | "revoke";+ grant: AccessGrant;+ } | null>(null);++ // Server-side search for database filter options+ const searchDatabases = useCallback(+ async (keyword: string): Promise<ValueOption[]> => {+ const result = await databaseStore.fetchDatabases({+ parent: projectName,+ pageSize: 50,+ filter: keyword ? { query: keyword } : undefined,+ });+ return result.databases.map((db) => {+ const mapped = mapDatabase(db);+ return {+ value: mapped.value,+ keywords: [+ mapped.dbName,+ mapped.instanceTitle,+ mapped.envId,+ mapped.value,+ ],+ custom: true,+ render: () => (+ <span className="inline-flex items-center gap-x-1">+ {mapped.engineIcon && (+ <img+ className="h-4 w-4 shrink-0"+ src={mapped.engineIcon}+ alt=""+ />+ )}+ <span>{mapped.instanceTitle}</span>+ <span className="text-control-placeholder">></span>+ <span>{mapped.envId}</span>+ <span className="text-control-placeholder">></span>+ <span>{mapped.dbName}</span>+ </span>+ ),+ };+ });+ },+ [databaseStore, projectName]+ );++ // Server-side search for creator filter options+ const searchUsers = useCallback(+ async (keyword: string): Promise<ValueOption[]> => {+ const result = await userStore.fetchUserList({+ pageSize: 50,+ filter: keyword ? { query: keyword } : undefined,+ });+ return result.users.map((u) => ({+ value: u.email,+ keywords: [u.email, u.title],+ custom: true,+ render: () => (+ <span className="inline-flex items-center gap-x-1.5">+ <span+ className="w-5 h-5 rounded-full text-white text-xs flex items-center justify-center shrink-0"+ style={{+ backgroundColor: `hsl(${hashCode(u.title) % 360}, 55%, 55%)`,+ }}+ >+ {u.title.charAt(0).toUpperCase()}+ </span>+ <span>{u.title}</span>+ {currentUser && u.name === currentUser.name && (+ <span className="text-xs bg-green-100 text-green-700 rounded-full px-1.5">+ {t("common.you")}+ </span>+ )}+ <span className="text-control-light">{u.email}</span>+ </span>+ ),+ }));+ },+ [userStore, currentUser, t]+ );++ const scopeOptions: ScopeOption[] = useMemo(+ () => [+ {+ id: "status",+ title: t("common.status"),+ allowMultiple: true,+ options: [+ {+ value: AccessGrant_Status[AccessGrant_Status.ACTIVE],+ keywords: ["active"],+ render: () => <span>{t("common.active")}</span>,+ },+ {+ value: AccessGrant_Status[AccessGrant_Status.PENDING],+ keywords: ["pending"],+ render: () => <span>{t("common.pending")}</span>,+ },+ {+ value: "EXPIRED",+ keywords: ["expired"],+ render: () => <span>{t("sql-editor.expired")}</span>,+ },+ {+ value: AccessGrant_Status[AccessGrant_Status.REVOKED],+ keywords: ["revoked"],+ render: () => <span>{t("common.revoked")}</span>,+ },+ ],+ },+ {+ id: "database",+ title: t("common.database"),+ onSearch: searchDatabases,+ },+ {+ id: "creator",+ title: t("common.creator"),+ onSearch: searchUsers,+ },+ ],+ [t, searchDatabases, searchUsers]+ );++ const orderBy = useMemo(() => {+ if (!sortKey) return "";+ return `${sortKey} ${sortDir}`;+ }, [sortKey, sortDir]);++ const handleSort = useCallback(+ (key: SortKey) => {+ if (sortKey === key) {+ if (sortDir === "desc") {+ setSortDir("asc");+ } else {+ setSortKey("");+ setSortDir("desc");+ }+ } else {+ setSortKey(key);+ setSortDir("desc");+ }+ },+ [sortKey, sortDir]+ );++ const fetchList = useCallback(+ async (params: { pageSize: number; pageToken: string }) => {+ const filter: AccessFilter = {};+ const statuses = getValuesFromScopes(+ searchParams,+ "status"+ ) as AccessGrantFilterStatus[];+ if (statuses.length > 0) {+ filter.status = statuses;+ }+ const creator = getValueFromScopes(searchParams, "creator");+ if (creator) {+ filter.creator = `users/${creator}`;+ }+ const database = getValueFromScopes(searchParams, "database");+ if (database) {+ filter.target = database;+ }+ const query = searchParams.query.trim();+ if (query) {+ filter.statement = query;+ }+ if (createdAfter) {+ const [y, m, d] = createdAfter.split("-").map(Number);+ filter.createdTsAfter = new Date(y, m - 1, d).getTime();+ }+ if (createdBefore) {+ const [y, m, d] = createdBefore.split("-").map(Number);+ // End of the selected day (23:59:59.999)+ filter.createdTsBefore = new Date(+ y,+ m - 1,+ d,+ 23,+ 59,+ 59,+ 999+ ).getTime();+ }+ const response = await accessGrantStore.listAccessGrants({+ parent: projectName,+ filter,+ pageSize: params.pageSize,+ pageToken: params.pageToken || undefined,+ orderBy,+ });+ return {+ list: response.accessGrants,+ nextPageToken: response.nextPageToken,+ };+ },+ [+ projectName,+ accessGrantStore,+ searchParams,+ orderBy,+ createdAfter,+ createdBefore,+ ]+ );++ const paged = usePagedData<AccessGrant>({+ sessionKey: `project-${projectName}-access-grants`,+ fetchList,+ enabled: canList,+ });++ const handleConfirm = useCallback(async () => {+ if (!confirmAction) return;+ const { type, grant } = confirmAction;+ if (type === "activate") {+ await accessGrantStore.activateAccessGrant(grant.name);+ pushNotification({+ module: "bytebase",+ style: "SUCCESS",+ title: t("common.activated"),+ });+ } else {+ await accessGrantStore.revokeAccessGrant(grant.name);+ pushNotification({+ module: "bytebase",+ style: "SUCCESS",+ title: t("common.revoked"),+ });+ }+ setConfirmAction(null);+ paged.refresh();+ }, [confirmAction, accessGrantStore, t, paged]);++ return (+ <div className="py-4 w-full flex flex-col">+ <div className="mx-4 mb-2">+ <FeatureAttention feature={PlanFeature.FEATURE_JIT} />+ </div>++ {canList ? (+ <>+ <div className="px-4 pb-2 flex items-center gap-x-2">+ <AdvancedSearch+ params={searchParams}+ onParamsChange={setSearchParams}+ scopeOptions={scopeOptions}+ placeholder={t("issue.advanced-search.filter")}+ />+ <div className="flex items-center gap-x-1 shrink-0">+ <Input+ type="date"+ className="w-36 text-xs"+ value={createdAfter}+ onChange={(e) => setCreatedAfter(e.target.value)}+ title={t("common.from")}+ />+ <span className="text-control-light text-xs">–</span>+ <Input+ type="date"+ className="w-36 text-xs"+ value={createdBefore}+ onChange={(e) => setCreatedBefore(e.target.value)}+ title={t("common.to")}+ />+ </div>+ </div>++ {!hasJITFeature ? (+ <div className="mx-4 py-12 border rounded-sm flex items-center justify-center text-control-light">+ {t("common.no-data")}+ </div>+ ) : paged.isLoading ? (+ <div className="flex justify-center py-8 text-control-light">+ {t("common.loading")}+ </div>+ ) : paged.dataList.length === 0 ? (+ <div className="flex justify-center py-8 text-control-light">+ {t("common.no-data")}+ </div>+ ) : (+ <div className="px-4">+ <table className="w-full text-sm">+ <thead>+ <tr className="border-b text-left text-control-light">+ <th className="py-2 pr-4 font-medium w-24">+ {t("common.status")}+ </th>+ <SortableHeader+ label={t("common.creator")}+ sortKey="creator"+ activeSortKey={sortKey}+ sortDir={sortDir}+ onSort={handleSort}+ className="w-44"+ />+ <SortableHeader+ label={t("common.created-at")}+ sortKey="create_time"+ activeSortKey={sortKey}+ sortDir={sortDir}+ onSort={handleSort}+ className="w-44 hidden xl:table-cell"+ />+ <SortableHeader+ label={t("common.expiration")}+ sortKey="expire_time"+ activeSortKey={sortKey}+ sortDir={sortDir}+ onSort={handleSort}+ className="w-44 hidden xl:table-cell"+ />+ <th className="py-2 pr-4 font-medium">+ {t("common.statement")}+ </th>+ <th className="py-2 pr-4 font-medium w-48">+ {t("common.databases")}+ </th>+ <th className="py-2 font-medium w-40" />+ </tr>+ </thead>+ <tbody>+ {paged.dataList.map((grant) => (+ <AccessGrantRow+ key={grant.name}+ grant={grant}+ canActivate={canActivate}+ canRevoke={canRevoke}+ onActivate={() =>+ setConfirmAction({ type: "activate", grant })+ }+ onRevoke={() =>+ setConfirmAction({ type: "revoke", grant })+ }+ />+ ))}+ </tbody>+ </table>++ <div className="mt-3">+ <PagedTableFooter+ pageSize={paged.pageSize}+ pageSizeOptions={paged.pageSizeOptions}+ onPageSizeChange={paged.onPageSizeChange}+ hasMore={paged.hasMore}+ isFetchingMore={paged.isFetchingMore}+ onLoadMore={paged.loadMore}+ />+ </div>+ </div>+ )}+ </>+ ) : (+ <div className="mx-4 mt-2 flex flex-col gap-y-3">+ {/* Permission guard fallback */}+ <div+ role="alert"+ className="relative w-full rounded-xs border border-error/30 bg-error/5 text-error px-4 py-3 text-sm flex gap-x-3"+ >+ <ShieldAlert className="h-5 w-5 shrink-0 mt-0.5" />+ <div className="flex flex-col gap-2">+ <h5 className="font-medium leading-tight">+ {t("common.missing-required-permission", { permissions: "" })}+ </h5>+ <div>+ {t("common.required-permission")}+ <ul className="list-disc pl-4">+ <li>bb.accessGrants.list</li>+ </ul>+ </div>+ </div>+ </div>++ {/* Redirect hint */}+ <div className="flex items-start gap-3 rounded-xs border border-blue-200 bg-blue-50 px-4 py-3 text-sm text-blue-700">+ <span>+ {t("sql-editor.access-grants-redirect-hint")+ .split("{link}")+ .map((part, i) =>+ i === 0 ? (+ <span key={i}>{part}</span>+ ) : (+ <span key={i}>+ <a+ className="normal-link"+ href="#"+ onClick={(e) => {+ e.preventDefault();+ router.push({+ name: "sql-editor.project",+ params: { project: projectId },+ query: { panel: "access" },+ });+ }}+ >+ {t("sql-editor.self")}+ </a>+ {part}+ </span>+ )+ )}+ </span>+ </div>+ </div>+ )}++ {/* Activate / Revoke confirmation dialog */}+ <Dialog+ open={confirmAction !== null}+ onOpenChange={(open) => {+ if (!open) setConfirmAction(null);+ }}+ >+ <DialogContent className="p-6">+ <DialogTitle>+ {confirmAction?.type === "activate"+ ? t("sql-editor.activate-access")+ : t("sql-editor.revoke-access")}+ </DialogTitle>+ <p className="text-sm text-control-light mt-2">+ {confirmAction?.type === "activate"+ ? t("sql-editor.activate-confirm")+ : t("sql-editor.revoke-confirm")}+ </p>+ <div className="flex justify-end gap-x-2 mt-4">+ <Button variant="outline" onClick={() => setConfirmAction(null)}>+ {t("common.cancel")}+ </Button>+ <Button+ variant={+ confirmAction?.type === "revoke" ? "destructive" : "default"+ }+ onClick={handleConfirm}+ >+ {confirmAction?.type === "activate"+ ? t("sql-editor.activate-access")+ : t("sql-editor.revoke-access")}+ </Button>+ </div>+ </DialogContent>+ </Dialog>+ </div>+ );+}++// ---------------------------------------------------------------------------+// SortableHeader+// ---------------------------------------------------------------------------++function SortableHeader({+ label,+ sortKey,+ activeSortKey,+ sortDir,+ onSort,+ className,+}: {+ label: string;+ sortKey: SortKey;+ activeSortKey: SortKey | "";+ sortDir: SortDir;+ onSort: (key: SortKey) => void;+ className?: string;+}) {+ const isActive = activeSortKey === sortKey;+ const Icon = isActive+ ? sortDir === "asc"+ ? ArrowUp+ : ArrowDown+ : ArrowUpDown;++ return (+ <th+ className={`py-2 pr-4 font-medium cursor-pointer select-none hover:text-control ${className ?? ""}`}+ onClick={() => onSort(sortKey)}+ >+ <span className="inline-flex items-center gap-x-1">+ {label}+ <Icon+ className={`w-3.5 h-3.5 ${isActive ? "text-accent" : "text-control-placeholder"}`}+ />+ </span>+ </th>+ );+}++// ---------------------------------------------------------------------------+// AccessGrantRow+// ---------------------------------------------------------------------------++function AccessGrantRow({+ grant,+ canActivate,+ canRevoke,+ onActivate,+ onRevoke,+}: {+ grant: AccessGrant;+ canActivate: boolean;+ canRevoke: boolean;+ onActivate: () => void;+ onRevoke: () => void;+}) {+ const { t } = useTranslation();+ const status = getAccessGrantDisplayStatus(grant);++ const createdAt = grant.createTime+ ? formatAbsoluteDateTime(getTimeForPbTimestampProtoEs(grant.createTime))+ : "-";++ const expirationInfo = getAccessGrantExpirationText(grant);+ const expiration =+ expirationInfo.type === "datetime" ? expirationInfo.value : "-";++ return (+ <tr className="border-b">+ <td className="py-2 pr-4">+ <Badge variant={statusTagVariant(status)}>+ {getAccessGrantDisplayStatusText(grant)}+ </Badge>+ </td>+ <td className="py-2 pr-4 truncate max-w-44">+ {extractUserEmail(grant.creator)}+ </td>+ <td className="py-2 pr-4 text-sm hidden xl:table-cell">{createdAt}</td>+ <td className="py-2 pr-4 text-sm hidden xl:table-cell">{expiration}</td>+ <td className="py-2 pr-4">+ <Tooltip+ content={+ <pre className="max-w-lg whitespace-pre-wrap">{grant.query}</pre>+ }+ >+ <div className="flex items-center gap-x-1 overflow-hidden">+ <span className="font-mono text-xs truncate shrink">+ {grant.query}+ </span>+ {grant.unmask && (+ <Badge variant="warning" className="shrink-0">+ {t("sql-editor.grant-type-unmask")}+ </Badge>+ )}+ </div>+ </Tooltip>+ </td>+ <td className="py-2 pr-4">+ <DatabaseTargets targets={grant.targets} />+ </td>+ <td className="py-2">+ <div className="flex items-center justify-end gap-x-1">+ {status === "REVOKED" && canActivate && (+ <Button variant="ghost" size="sm" onClick={onActivate}>+ {t("sql-editor.activate-access")}+ </Button>+ )}+ {status === "ACTIVE" && canRevoke && (+ <Button+ variant="ghost"+ size="sm"+ className="text-error"+ onClick={onRevoke}+ >+ {t("sql-editor.revoke-access")}+ </Button>+ )}+ {grant.issue && (+ <a+ href={+ grant.issue.startsWith("/") ? grant.issue : `/${grant.issue}`+ }+ target="_blank"+ rel="noreferrer"+ onClick={(e) => e.stopPropagation()}+ >+ <Button variant="ghost" size="sm">+ {t("sql-editor.view-issue")}+ </Button>+ </a>+ )}+ </div>+ </td>+ </tr>+ );+}++// ---------------------------------------------------------------------------+// DatabaseTargets+// ---------------------------------------------------------------------------++function DatabaseTargets({ targets }: { targets: string[] }) {+ if (targets.length === 0) return <span>-</span>;++ const visible = targets.slice(0, 2);+ const rest = targets.length - visible.length;++ const renderLink = (target: string) => (+ <span+ key={target}+ className="normal-link hover:underline cursor-pointer text-sm"+ onClick={() => router.push({ path: `/${target}` })}+ >+ {getDatabaseName(target)}+ </span>+ );++ const inline = (+ <div className="flex items-center truncate gap-x-0.5">+ {visible.map((target, i) => (+ <span key={target} className="flex items-center gap-x-0.5">+ {i > 0 && <span className="text-sm">, </span>}+ {renderLink(target)}+ </span>+ ))}+ {rest > 0 && (+ <span className="text-sm text-control-placeholder"> +{rest}</span>+ )}+ </div>+ );++ if (rest <= 0) return inline;++ return (+ <Tooltip+ content={+ <div className="flex flex-col gap-y-1">+ {targets.map((target) => renderLink(target))}+ </div>+ }+ >+ {inline}+ </Tooltip>+ );+}diff --git a/frontend/src/react/pages/settings/DatabasesPage.tsx b/frontend/src/react/pages/settings/DatabasesPage.tsxindex c43f56db1d..c3da78df97 100644--- a/frontend/src/react/pages/settings/DatabasesPage.tsx+++ b/frontend/src/react/pages/settings/DatabasesPage.tsx@@ -3,6 +3,7 @@ import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";import { Plus } from "lucide-react";import { useCallback, useEffect, useMemo, useState } from "react";import { useTranslation } from "react-i18next";+import { EngineIconPath } from "@/components/InstanceForm/constants";import {AdvancedSearch,getValueFromScopes,@@ -17,6 +18,7 @@ import {TransferProjectDrawer,} from "@/react/components/database";import { EditEnvironmentDrawer } from "@/react/components/EditEnvironmentDrawer";+import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";import { PermissionGuard } from "@/react/components/PermissionGuard";import { Button } from "@/react/components/ui/button";import { useVueState } from "@/react/hooks/useVueState";@@ -140,12 +142,8 @@ export function DatabasesPage() {keywords: isUnknown? ["unassigned", "none", env.id]: [env.id, env.title],- render: isUnknown- ? () => (- <span className="italic text-control-light">Unassigned</span>- )- : undefined,- custom: isUnknown,+ custom: true,+ render: () => <EnvironmentLabel environment={env} />,};}),},@@ -161,6 +159,17 @@ export function DatabasesPage() {options: supportedEngineV1List().map((engine) => ({value: Engine[engine],keywords: [Engine[engine].toLowerCase(), engineNameV1(engine)],+ custom: true,+ render: () => (+ <span className="inline-flex items-center gap-x-1.5">+ <img+ className="h-4 w-4 shrink-0"+ src={EngineIconPath[engine]}+ alt=""+ />+ <span>{engineNameV1(engine)}</span>+ </span>+ ),})),allowMultiple: true,},diff --git a/frontend/src/react/pages/settings/InstancesPage.tsx b/frontend/src/react/pages/settings/InstancesPage.tsxindex 78458a78df..6a07c92f53 100644--- a/frontend/src/react/pages/settings/InstancesPage.tsx+++ b/frontend/src/react/pages/settings/InstancesPage.tsx@@ -20,6 +20,7 @@ import {type ScopeOption,type SearchParams,} from "@/react/components/AdvancedSearch";+import { EnvironmentLabel } from "@/react/components/EnvironmentLabel";import { PermissionGuard } from "@/react/components/PermissionGuard";import { Button } from "@/react/components/ui/button";import { useVueState } from "@/react/hooks/useVueState";@@ -746,12 +747,8 @@ export function InstancesPage() {keywords: isUnknown? ["unassigned", "none", env.id]: [env.id, env.title],- render: isUnknown- ? () => (- <span className="italic text-control-light">Unassigned</span>- )- : undefined,- custom: isUnknown,+ custom: true,+ render: () => <EnvironmentLabel environment={env} />,};}),},@@ -762,6 +759,17 @@ export function InstancesPage() {options: supportedEngineV1List().map((engine) => ({value: Engine[engine],keywords: [Engine[engine].toLowerCase(), engineNameV1(engine)],+ custom: true,+ render: () => (+ <span className="inline-flex items-center gap-x-1.5">+ <img+ className="h-4 w-4 shrink-0"+ src={EngineIconPath[engine]}+ alt=""+ />+ <span>{engineNameV1(engine)}</span>+ </span>+ ),})),allowMultiple: true,},diff --git a/frontend/src/router/dashboard/projectV1.ts b/frontend/src/router/dashboard/projectV1.tsindex bd26c1c800..910807fb2b 100644--- a/frontend/src/router/dashboard/projectV1.ts+++ b/frontend/src/router/dashboard/projectV1.ts@@ -169,9 +169,11 @@ const projectV1Routes: RouteRecordRaw[] = [meta: {title: () => t("sql-editor.access-grants"),},- component: () =>- import("@/views/project/ProjectAccessGrantDashboard.vue"),- props: true,+ component: () => import("@/react/ReactPageMount.vue"),+ props: (route: RouteLocationNormalized) => ({+ page: "ProjectAccessGrantsPage",+ ...route.params,+ }),},{path: "masking-exemption",