Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(apps): hide Standardize PM2 button for non-PM2 app types (xcode, swift, etc)

Adam Eivy329b779b7798
diff --git a/client/src/components/apps/constants.js b/client/src/components/apps/constants.js
index 15f508f30c..cc81b8613a 100644
--- a/client/src/components/apps/constants.js
+++ b/client/src/components/apps/constants.js
@@ -1,3 +1,5 @@
+export const NON_PM2_TYPES = new Set(['ios-native', 'macos-native', 'xcode', 'swift']);
+
export const APP_DETAIL_TABS = [
{ id: 'overview', label: 'Overview' },
{ id: 'automation', label: 'Automation' },
diff --git a/client/src/components/apps/tabs/OverviewTab.jsx b/client/src/components/apps/tabs/OverviewTab.jsx
index bb465d6f6d..23d72bcd46 100644
--- a/client/src/components/apps/tabs/OverviewTab.jsx
+++ b/client/src/components/apps/tabs/OverviewTab.jsx
@@ -1,6 +1,7 @@
import { useState, useEffect, useMemo } from 'react';
import { FolderOpen, Terminal, Code, RefreshCw, Wrench, Archive, ArchiveRestore, Ticket, Download, Tag } from 'lucide-react';
import toast from 'react-hot-toast';
+import { NON_PM2_TYPES } from '../constants';
import BrailleSpinner from '../../BrailleSpinner';
import KanbanBoard from '../../KanbanBoard';
import EditAppModal from '../EditAppModal';
@@ -205,14 +206,16 @@ export default function OverviewTab({ app, onRefresh }) {
<RefreshCw size={14} className={refreshingConfig ? 'animate-spin' : ''} />
Refresh Config
</button>
- <button
- onClick={handleStandardize}
- disabled={isOperating}
- className="px-3 py-1.5 bg-port-accent/20 text-port-accent hover:bg-port-accent/30 rounded-lg text-xs flex items-center gap-1 disabled:opacity-50"
- >
- <Wrench size={14} className={standardizing ? 'animate-spin' : ''} />
- {standardizing ? 'Standardizing...' : 'Standardize PM2'}
- </button>
+ {!NON_PM2_TYPES.has(app.type) && (
+ <button
+ onClick={handleStandardize}
+ disabled={isOperating}
+ className="px-3 py-1.5 bg-port-accent/20 text-port-accent hover:bg-port-accent/30 rounded-lg text-xs flex items-center gap-1 disabled:opacity-50"
+ >
+ <Wrench size={14} className={standardizing ? 'animate-spin' : ''} />
+ {standardizing ? 'Standardizing...' : 'Standardize PM2'}
+ </button>
+ )}
<button
onClick={() => setEditingApp(app)}
className="px-3 py-1.5 bg-port-accent/20 text-port-accent hover:bg-port-accent/30 rounded-lg text-xs flex items-center gap-1"
diff --git a/client/src/pages/Apps.jsx b/client/src/pages/Apps.jsx
index 6beb710431..b28455438d 100644
--- a/client/src/pages/Apps.jsx
+++ b/client/src/pages/Apps.jsx
@@ -10,9 +10,7 @@ import ActivityLog from '../components/apps/ActivityLog';
import { useAppOperation } from '../hooks/useAppOperation';
import * as api from '../services/api';
import socket from '../services/socket';
-
-/** App types that do not use PM2 for process management */
-const NON_PM2_TYPES = new Set(['ios-native', 'macos-native', 'xcode', 'swift']);
+import { NON_PM2_TYPES } from '../components/apps/constants';
export default function Apps() {
const [apps, setApps] = useState([]);
diff --git a/client/src/pages/CreateApp.jsx b/client/src/pages/CreateApp.jsx
index b166a78c65..5602b8b0d4 100644
--- a/client/src/pages/CreateApp.jsx
+++ b/client/src/pages/CreateApp.jsx
@@ -6,9 +6,7 @@ import toast from 'react-hot-toast';
import * as api from '../services/api';
import IconPicker from '../components/IconPicker';
import FolderPicker from '../components/FolderPicker';
-
-/** App types that do not use PM2 for process management */
-const NON_PM2_TYPES = new Set(['ios-native', 'macos-native', 'xcode', 'swift']);
+import { NON_PM2_TYPES } from '../components/apps/constants';
const DETECTION_STEPS_PM2 = [
{ id: 'validate', label: 'Validating path' },