⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat(web): localize Gitea webhook controls and copy feedback
Tin7f90efa68261
diff --git a/apps/web/src/components/project/gitea-integration-settings.tsx b/apps/web/src/components/project/gitea-integration-settings.tsxindex 9067356a4..fb5651419 100644--- a/apps/web/src/components/project/gitea-integration-settings.tsx+++ b/apps/web/src/components/project/gitea-integration-settings.tsx@@ -150,6 +150,8 @@ export function GiteaIntegrationSettings({ projectId }: { projectId: string }) {repositoryOwner: integration.repositoryOwner,repositoryName: integration.repositoryName,});+ // Intentionally clear verify state after reload: import must not run until the user re-verifies (token/URL may have changed).+ // Clear verify state when the form reloads so import cannot run against stale credentials.setVerificationResult(null);setShowWebhookSecret(false);}, [@@ -385,13 +387,15 @@ export function GiteaIntegrationSettings({ projectId }: { projectId: string }) {try {await navigator.clipboard.writeText(integration.webhookSecret);- toast.success("Copied");+ toast.success(t("settings:giteaIntegration.toast.secretCopied"));} catch (error) {toast.error(- error instanceof Error ? error.message : "Unable to copy secret",+ error instanceof Error+ ? error.message+ : t("settings:giteaIntegration.toast.unableToCopySecret"),);}- }, [integration?.webhookSecret]);+ }, [integration?.webhookSecret, t]);if (isLoading) {return (@@ -429,6 +433,7 @@ export function GiteaIntegrationSettings({ projectId }: { projectId: string }) {}const isConnected = !!integration && integration.isActive;+ // Import stays disabled until the user verifies again after changing connection details (avoids importing with an unverified token).const hasVerifiedCurrentValues =verificationResult?.result.isInstalled &&verificationResult.result.hasRequiredPermissions &&@@ -518,7 +523,7 @@ export function GiteaIntegrationSettings({ projectId }: { projectId: string }) {</p></div><Switch- checked={integration.commentTaskLinkOnGiteaIssue !== false}+ checked={integration.commentTaskLinkOnGiteaIssue ?? true}onCheckedChange={async (checked) => {try {await updateGiteaSettings({@@ -576,7 +581,9 @@ export function GiteaIntegrationSettings({ projectId }: { projectId: string }) {setShowWebhookSecret((current) => !current)}>- {showWebhookSecret ? "Hide" : "Show"}+ {showWebhookSecret+ ? t("settings:giteaIntegration.webhookHide")+ : t("settings:giteaIntegration.webhookShow")}</Button><Buttontype="button"@@ -584,7 +591,7 @@ export function GiteaIntegrationSettings({ projectId }: { projectId: string }) {size="sm"onClick={handleCopyWebhookSecret}>- Copy+ {t("settings:giteaIntegration.webhookCopy")}</Button></div></div>diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex e49512351..09e176eea 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -635,8 +635,13 @@"importError": "Failed to import issues","commentOnEnabled": "Kaneo will comment with a task link on new issues","commentOnDisabled": "Task link comments on new issues are turned off",- "settingsUpdateError": "Failed to update Gitea integration"+ "settingsUpdateError": "Failed to update Gitea integration",+ "secretCopied": "Kopiert",+ "unableToCopySecret": "Geheimnis konnte nicht kopiert werden"},+ "webhookShow": "Anzeigen",+ "webhookHide": "Ausblenden",+ "webhookCopy": "Kopieren","connectionStatus": "Connection status","connectedActive": "Repository connected and active","notConnectedHint": "No Gitea repository connected",diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex 5e937fdb3..b5b4a9fe8 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -635,8 +635,13 @@"importError": "Failed to import issues","commentOnEnabled": "Kaneo will comment with a task link on new issues","commentOnDisabled": "Task link comments on new issues are turned off",- "settingsUpdateError": "Failed to update Gitea integration"+ "settingsUpdateError": "Failed to update Gitea integration",+ "secretCopied": "Copied",+ "unableToCopySecret": "Unable to copy secret"},+ "webhookShow": "Show",+ "webhookHide": "Hide",+ "webhookCopy": "Copy","connectionStatus": "Connection status","connectedActive": "Repository connected and active","notConnectedHint": "No Gitea repository connected",