-
-
+
+
+
-
-
Environment Keys
-
Copy and manage your public and private keys
+
+
Environment Keys
+
Manage your public and private keys
-
+
Read about our SDKs
+
-
+
>
);
}
+
+interface SettingFieldProps {
+ label: string;
+ tooltip?: string;
+ value?: string;
+ secret?: boolean;
+ isLoading?: boolean;
+ readOnly?: boolean;
+}
+
+function SettingField({
+ label,
+ tooltip,
+ value,
+ secret = false,
+ isLoading = false,
+ readOnly = true,
+}: SettingFieldProps) {
+ const [showSecret, setShowSecret] = useState(false);
+
+ const toggleSecretVisibility = () => {
+ setShowSecret(!showSecret);
+ };
+
+ const maskSecret = (secret: string) => {
+ return `${'•'.repeat(28)} ${secret.slice(-4)}`;
+ };
+
+ return (
+
+
+
+ {isLoading ? (
+ <>
+
+ {secret && }
+ >
+ ) : (
+ <>
+
+
+
+
+
+ {secret && (
+
+ )}
+ >
+ )}
+
+
+ );
+}
diff --git a/apps/dashboard/src/utils/telemetry.ts b/apps/dashboard/src/utils/telemetry.ts
index 2e7642e8618..0212716ce5d 100644
--- a/apps/dashboard/src/utils/telemetry.ts
+++ b/apps/dashboard/src/utils/telemetry.ts
@@ -22,4 +22,5 @@ export enum TelemetryEvent {
INBOX_EMBED_SUCCESS_PAGE_VIEWED = 'Inbox embed success page viewed - [Onboarding]',
WORKFLOW_PREFERENCES_OVERRIDE_USED = 'Workflow preferences override used',
EXPORT_TO_CODE_BANNER_REACTION = 'Export to Code banner reaction - [Promotional]',
+ EXTERNAL_LINK_CLICKED = 'External link clicked',
}