Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

refactor(profile-ui): simplify desktop setup action gating (R13-L13)

Josué8450b99de641
diff --git a/profile-ui/app/settings/SettingsContent.tsx b/profile-ui/app/settings/SettingsContent.tsx
index 698cf94a1..93c84f85f 100644
--- a/profile-ui/app/settings/SettingsContent.tsx
+++ b/profile-ui/app/settings/SettingsContent.tsx
@@ -677,8 +677,6 @@ function DesktopSetupModal({
onCopy: () => void
onOpenDesktop: () => void
}) {
- const canOpenDesktop = handoffEnabled && Boolean(environment?.externalRestApiBaseUrl)
-
return (
<div
className="cu-modal-backdrop"
@@ -721,19 +719,21 @@ function DesktopSetupModal({
</Button>
</div>
</div>
- {!handoffEnabled ? (
- <p className="settings-help">
- Automatic Desktop handoff is temporarily unavailable. You can copy this API URL and
- add it in Desktop.
- </p>
- ) : null}
{handoffEnabled ? (
<div className="settings-desktop-setup-actions">
- <Button onClick={onOpenDesktop} disabled={busy || !canOpenDesktop}>
+ <Button
+ onClick={onOpenDesktop}
+ disabled={busy || !environment?.externalRestApiBaseUrl}
+ >
Open desktop app and setup
</Button>
</div>
- ) : null}
+ ) : (
+ <p className="settings-help">
+ Automatic Desktop handoff is temporarily unavailable. You can copy this API URL and
+ add it in Desktop.
+ </p>
+ )}
</div>
</section>
</div>
diff --git a/profile-ui/package-lock.json b/profile-ui/package-lock.json
index 0895a4808..143e1d11b 100644
--- a/profile-ui/package-lock.json
+++ b/profile-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-profile-ui",
- "version": "0.1.171",
+ "version": "0.1.172",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-profile-ui",
- "version": "0.1.171",
+ "version": "0.1.172",
"dependencies": {
"@clerum/desktop-app-links": "file:../packages/desktop-app-links",
"@clerum/frontend-components": "file:../packages/frontend-components",
diff --git a/profile-ui/package.json b/profile-ui/package.json
index 9ca20129c..10c1e8fff 100644
--- a/profile-ui/package.json
+++ b/profile-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-profile-ui",
- "version": "0.1.171",
+ "version": "0.1.172",
"private": true,
"scripts": {
"dev": "next dev",