-
-
-
- {t("settings.environment.title")}
-
-
- {t("settings.environment.description")}
-
-
- {canEdit ? (
-
- ) : null}
-
-
- {isRemoteWorkspace ? (
-
- {t("settings.environment.remote_workspace_hint")}
-
- ) : null}
-
- {error ? (
-
- {error}
-
- ) : null}
-
- {pendingChanges && !isRemoteWorkspace ? (
-
-
-
-
-
-
-
-
- {t("settings.environment.apply_pending_title")}
-
-
- {props.onApplyChanges
- ? t("settings.environment.apply_pending_body")
- : t("settings.environment.apply_pending_body_manual")}
-
- {applyBlockedReason ? (
-
- {applyBlockedReason}
-
- ) : applyError ? (
-
- {applyError}
-
- ) : null}
-
-
- {props.onApplyChanges ? (
-
- ) : null}
-
-
- ) : null}
-
- {isRemoteWorkspace ? null : loading && items.length === 0 ? (
-
- {t("settings.environment.loading")}
-
- ) : items.length === 0 ? (
-
-
- {t("settings.environment.empty_title")}
-
-
- {t("settings.environment.empty_body")}
-
-
- ) : (
-
- {items.map((item) => {
- const isRevealed = Boolean(revealed[item.key]);
- const displayValue = isRevealed ? item.value : maskValue(item.value);
- return (
-
-
-
-
- {displayValue || t("settings.environment.empty_value")}
- ·
- {formatUpdatedAt(item.updatedAt)}
-
-
-
-
- {canEdit ? (
-
- ) : null}
-
-
- );
- })}
-
- )}
-
- {!isRemoteWorkspace ? (
-
-
{t("settings.environment.footer_hint")}
-
{t("settings.environment.override_hint")}
-
- ) : null}
-