diff --git a/packages/app/src/i18n/resources/ar.ts b/packages/app/src/i18n/resources/ar.ts
index e17a76e37..1ae214cac 100644
--- a/packages/app/src/i18n/resources/ar.ts
+++ b/packages/app/src/i18n/resources/ar.ts
@@ -2084,6 +2084,7 @@ export const ar: TranslationResources = {
success: "{{source}} settings imported",
errorTitle: "Couldn't import settings",
errors: {
+ capabilityMissing: "Update the host to use this.",
notFound: "No {{source}} project config was found.",
invalid: "{{path}} couldn't be parsed.",
staleSource: "The {{source}} config changed. Refresh the preview before importing.",
diff --git a/packages/app/src/i18n/resources/en.ts b/packages/app/src/i18n/resources/en.ts
index 421a6dc34..e4b1a4922 100644
--- a/packages/app/src/i18n/resources/en.ts
+++ b/packages/app/src/i18n/resources/en.ts
@@ -2098,6 +2098,7 @@ export const en = {
success: "{{source}} settings imported",
errorTitle: "Couldn't import settings",
errors: {
+ capabilityMissing: "Update the host to use this.",
notFound: "No {{source}} project config was found.",
invalid: "{{path}} couldn't be parsed.",
staleSource: "The {{source}} config changed. Refresh the preview before importing.",
diff --git a/packages/app/src/i18n/resources/es.ts b/packages/app/src/i18n/resources/es.ts
index c32e5d6b3..e2e7241c1 100644
--- a/packages/app/src/i18n/resources/es.ts
+++ b/packages/app/src/i18n/resources/es.ts
@@ -2136,6 +2136,7 @@ export const es: TranslationResources = {
success: "{{source}} settings imported",
errorTitle: "Couldn't import settings",
errors: {
+ capabilityMissing: "Update the host to use this.",
notFound: "No {{source}} project config was found.",
invalid: "{{path}} couldn't be parsed.",
staleSource: "The {{source}} config changed. Refresh the preview before importing.",
diff --git a/packages/app/src/i18n/resources/fr.ts b/packages/app/src/i18n/resources/fr.ts
index 66ced4d41..40bc64d0f 100644
--- a/packages/app/src/i18n/resources/fr.ts
+++ b/packages/app/src/i18n/resources/fr.ts
@@ -2139,6 +2139,7 @@ export const fr: TranslationResources = {
success: "{{source}} settings imported",
errorTitle: "Couldn't import settings",
errors: {
+ capabilityMissing: "Update the host to use this.",
notFound: "No {{source}} project config was found.",
invalid: "{{path}} couldn't be parsed.",
staleSource: "The {{source}} config changed. Refresh the preview before importing.",
diff --git a/packages/app/src/i18n/resources/ja.ts b/packages/app/src/i18n/resources/ja.ts
index 3bdf0585b..9c61c8ca4 100644
--- a/packages/app/src/i18n/resources/ja.ts
+++ b/packages/app/src/i18n/resources/ja.ts
@@ -2109,6 +2109,7 @@ export const ja: TranslationResources = {
success: "{{source}} settings imported",
errorTitle: "Couldn't import settings",
errors: {
+ capabilityMissing: "Update the host to use this.",
notFound: "No {{source}} project config was found.",
invalid: "{{path}} couldn't be parsed.",
staleSource: "The {{source}} config changed. Refresh the preview before importing.",
diff --git a/packages/app/src/i18n/resources/pt-BR.ts b/packages/app/src/i18n/resources/pt-BR.ts
index 698eedf9c..238ba05f5 100644
--- a/packages/app/src/i18n/resources/pt-BR.ts
+++ b/packages/app/src/i18n/resources/pt-BR.ts
@@ -2122,6 +2122,7 @@ export const ptBR: TranslationResources = {
success: "{{source}} settings imported",
errorTitle: "Couldn't import settings",
errors: {
+ capabilityMissing: "Update the host to use this.",
notFound: "No {{source}} project config was found.",
invalid: "{{path}} couldn't be parsed.",
staleSource: "The {{source}} config changed. Refresh the preview before importing.",
diff --git a/packages/app/src/i18n/resources/ru.ts b/packages/app/src/i18n/resources/ru.ts
index 7e910b8f2..4d9598187 100644
--- a/packages/app/src/i18n/resources/ru.ts
+++ b/packages/app/src/i18n/resources/ru.ts
@@ -2127,6 +2127,7 @@ export const ru: TranslationResources = {
success: "{{source}} settings imported",
errorTitle: "Couldn't import settings",
errors: {
+ capabilityMissing: "Update the host to use this.",
notFound: "No {{source}} project config was found.",
invalid: "{{path}} couldn't be parsed.",
staleSource: "The {{source}} config changed. Refresh the preview before importing.",
diff --git a/packages/app/src/i18n/resources/zh-CN.ts b/packages/app/src/i18n/resources/zh-CN.ts
index 0efdf5c32..5f22bdc97 100644
--- a/packages/app/src/i18n/resources/zh-CN.ts
+++ b/packages/app/src/i18n/resources/zh-CN.ts
@@ -2060,6 +2060,7 @@ export const zhCN: TranslationResources = {
success: "{{source}} settings imported",
errorTitle: "Couldn't import settings",
errors: {
+ capabilityMissing: "Update the host to use this.",
notFound: "No {{source}} project config was found.",
invalid: "{{path}} couldn't be parsed.",
staleSource: "The {{source}} config changed. Refresh the preview before importing.",
diff --git a/packages/app/src/project-config-import/project-config-import-sheet.tsx b/packages/app/src/project-config-import/project-config-import-sheet.tsx
index e50f0a0f5..25c59e95e 100644
--- a/packages/app/src/project-config-import/project-config-import-sheet.tsx
+++ b/packages/app/src/project-config-import/project-config-import-sheet.tsx
@@ -16,6 +16,7 @@ import type { ProjectConfigImportIntent } from "./route";
export type ProjectConfigImportVisibleError =
| ProjectConfigRpcError
+ | { code: "capability_missing" }
| { code: "transport"; message: string };
export type ProjectConfigImportState =
@@ -58,12 +59,7 @@ export function ProjectConfigImportSheet({
);
const preview = state.preview;
const visibleError = state.status === "error" ? state.error : null;
- const needsRefresh =
- visibleError?.code === "stale_source_config" ||
- visibleError?.code === "stale_project_config" ||
- visibleError?.code === "nothing_to_import";
const retryAction = state.status === "error" ? state.retryAction : "refresh";
- const handleRetry = retryAction === "apply" ? onApply : onRefresh;
const canImport =
state.status === "ready" &&
state.preview.status === "available" &&
@@ -93,25 +89,12 @@ export function ProjectConfigImportSheet({
title={t("settings.project.import.errorTitle")}
description={projectConfigImportErrorText(visibleError, t, sourceName)}
>
- {needsRefresh ? (
-
- ) : (
-
- )}
+