Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

feat(phone): one-shot mobile-launch announcement card

enes3ebc840cc4d7
diff --git a/src/renderer/canvas/Canvas.tsx b/src/renderer/canvas/Canvas.tsx
index 195c57b90..6e8620e46 100644
--- a/src/renderer/canvas/Canvas.tsx
+++ b/src/renderer/canvas/Canvas.tsx
@@ -80,6 +80,11 @@ import { WelcomeScreen } from '../components/WelcomeScreen'
import { CloneRepoDialog } from '../components/CloneRepoDialog'
import { ShortcutsPanel } from '../components/ShortcutsPanel'
import { OnboardingFlow } from '../components/onboarding/OnboardingFlow'
+import {
+ MobileLaunchCard,
+ markMobileLaunchSeen,
+ shouldShowMobileLaunch
+} from '../components/MobileLaunchCard'
import { DictationOverlay, type DictationTarget } from '../components/DictationOverlay'
import { BugReportDialog } from '../components/BugReportDialog'
import { describeOs, REPO_URL } from '../lib/bugReport'
@@ -560,6 +565,8 @@ export function Canvas() {
const [shortcutsOpen, setShortcutsOpen] = useState(false)
// First-run setup tour (agents / dictation / kanban / notifications) — see OnboardingFlow.
const [onboardingOpen, setOnboardingOpen] = useState(false)
+ // One-shot mobile-launch announcement for established installs — see MobileLaunchCard.
+ const [mobileLaunchOpen, setMobileLaunchOpen] = useState(false)
const [dictationOpen, setDictationOpen] = useState(false)
// Target = the first selected terminal node AT OPEN TIME (not live-tracked while the
// overlay is up — the design explicitly freezes it so a stray click elsewhere mid-dictation
@@ -1320,15 +1327,22 @@ export function Canvas() {
.hydrate()
.then(() => {
const s = useSettings.getState().settings
- if (s.seenOnboarding) return
+ if (s.seenOnboarding) {
+ // Established install: the one-shot mobile-launch card (fresh installs get the same
+ // pitch from the tour's phone step instead, marked below so it never shows twice).
+ if (shouldShowMobileLaunch()) setMobileLaunchOpen(true)
+ return
+ }
if (s.seenShortcuts) {
// Existing install (pre-tour): the setup tour is for fresh installs — migrate
// silently so it never pops over an established workspace. Rerunnable via ⌘K.
useSettings.getState().update({ seenOnboarding: true })
+ if (shouldShowMobileLaunch()) setMobileLaunchOpen(true)
} else {
// Fresh install: the tour replaces the auto-opened ShortcutsPanel (⌘/ still
// opens it manually) and owns the notification-consent question.
setOnboardingOpen(true)
+ markMobileLaunchSeen()
}
})
api.workspace.load().then((ws) => {
@@ -7396,6 +7410,14 @@ export function Canvas() {
)}
{shortcutsOpen && <ShortcutsPanel onClose={() => setShortcutsOpen(false)} />}
+ {mobileLaunchOpen && (
+ <MobileLaunchCard
+ onClose={() => {
+ markMobileLaunchSeen()
+ setMobileLaunchOpen(false)
+ }}
+ />
+ )}
{onboardingOpen && (
<OnboardingFlow
onClose={() => {
diff --git a/src/renderer/components/MobileLaunchCard.tsx b/src/renderer/components/MobileLaunchCard.tsx
new file mode 100644
index 000000000..69c57bda6
--- /dev/null
+++ b/src/renderer/components/MobileLaunchCard.tsx
@@ -0,0 +1,78 @@
+import { useEffect } from 'react'
+import { createPortal } from 'react-dom'
+import { ScenePhone } from './onboarding/scenes'
+import { IOS_APP_STORE_URL } from '@renderer/lib/links'
+
+/** One-shot flag: the mobile-launch announcement has been shown and closed (or pre-empted by
+ * the setup tour, whose phone step makes the same pitch to fresh installs). localStorage, not
+ * settings — it is per-machine presentation state, like dismissed announcement banners. */
+const MOBILE_LAUNCH_SEEN_KEY = 'nodeterm.seenMobileLaunch'
+
+export function markMobileLaunchSeen(): void {
+ try {
+ localStorage.setItem(MOBILE_LAUNCH_SEEN_KEY, '1')
+ } catch {
+ // storage unavailable: worst case the card shows again next launch
+ }
+}
+
+export function shouldShowMobileLaunch(): boolean {
+ try {
+ return localStorage.getItem(MOBILE_LAUNCH_SEEN_KEY) == null
+ } catch {
+ return false
+ }
+}
+
+/**
+ * One-time launch announcement for nodeterm mobile (App Store release): a centered card over
+ * the canvas in the promo style — dark, purple glow, the floating phone mockup from the setup
+ * tour. Closes for good via the button, Esc, or the backdrop; every path persists the flag.
+ */
+export function MobileLaunchCard({ onClose }: { onClose: () => void }): React.JSX.Element {
+ useEffect(() => {
+ const onKey = (e: KeyboardEvent): void => {
+ if (e.key === 'Escape') onClose()
+ }
+ window.addEventListener('keydown', onKey)
+ return () => window.removeEventListener('keydown', onKey)
+ }, [onClose])
+
+ return createPortal(
+ <div className="mlaunch__backdrop" onClick={onClose}>
+ <div
+ className="mlaunch"
+ role="dialog"
+ aria-label="nodeterm mobile is on the App Store"
+ onClick={(e) => e.stopPropagation()}
+ >
+ <h2 className="mlaunch__title">
+ Your terminal, <span>everywhere</span>
+ </h2>
+ <p className="mlaunch__sub">nodeterm mobile is now on the App Store 🎉</p>
+ <div className="mlaunch__scene">
+ <ScenePhone />
+ </div>
+ <p className="mlaunch__body">
+ Attach to these same live sessions from your phone — watch an agent work, answer a
+ &ldquo;needs you&rdquo;, type into any terminal from anywhere. nodeterm stays free and
+ open source, developed in the open with the community; the app and its Pro features are
+ what fund that work. Your support means everything. ❤️
+ </p>
+ <div className="mlaunch__actions">
+ <button
+ className="onb-btn onb-btn--primary"
+ autoFocus
+ onClick={() => window.nodeTerminal.shell.openExternal(IOS_APP_STORE_URL)}
+ >
+ Get the iOS app
+ </button>
+ <button className="onb-btn" onClick={onClose}>
+ Close
+ </button>
+ </div>
+ </div>
+ </div>,
+ document.body
+ )
+}
diff --git a/src/renderer/styles.css b/src/renderer/styles.css
index f6bbfad34..7a0a4c0b4 100644
--- a/src/renderer/styles.css
+++ b/src/renderer/styles.css
@@ -8645,3 +8645,72 @@ body,
.kanban-card--drop-after::after {
bottom: -5px;
}
+
+/* ---- one-shot mobile-launch announcement (MobileLaunchCard) ---- */
+.mlaunch__backdrop {
+ position: fixed;
+ inset: 0;
+ z-index: 40; /* the onboarding layer — the two never show together */
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: rgba(0, 0, 0, 0.72);
+}
+.mlaunch {
+ position: relative;
+ width: min(440px, calc(100vw - 48px));
+ max-height: calc(100vh - 96px);
+ overflow-y: auto;
+ padding: 34px 34px 28px;
+ border-radius: 20px;
+ background: #0b0b0d;
+ border: 1px solid rgba(139, 92, 246, 0.35);
+ box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
+ text-align: center;
+ color: var(--text);
+}
+/* the promo's purple halo, behind the phone mockup */
+.mlaunch::before {
+ content: '';
+ position: absolute;
+ top: 120px;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 340px;
+ height: 340px;
+ border-radius: 50%;
+ background: radial-gradient(circle, rgba(139, 92, 246, 0.38) 0%, rgba(139, 92, 246, 0) 68%);
+ pointer-events: none;
+}
+.mlaunch__title {
+ margin: 0 0 6px;
+ font-size: 27px;
+ font-weight: 800;
+ letter-spacing: -0.02em;
+}
+.mlaunch__title span {
+ color: #a78bfa;
+}
+.mlaunch__sub {
+ margin: 0 0 14px;
+ font-size: 13px;
+ color: var(--muted);
+}
+.mlaunch__scene {
+ position: relative; /* keeps the halo behind, the phone above */
+ display: flex;
+ justify-content: center;
+ margin-bottom: 14px;
+}
+.mlaunch__body {
+ margin: 0 0 18px;
+ font-size: 12.5px;
+ line-height: 1.55;
+ color: var(--muted);
+ text-align: left;
+}
+.mlaunch__actions {
+ display: flex;
+ justify-content: center;
+ gap: 10px;
+}