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.
TypeScript adhdagent-orchestrationai-agentscanvasclaude-codecodexcoding-agentsdeveloper-toolselectrongeminilinuxmacosmultiplexeropencodeparallel-agentsterminalterminal-emulatorterminal-multiplexertmuxworkspace-manager
feat(links): one store-link helper; Play link gated behind ANDROID_APP_PUBLISHED
reviewb18ba64e17c8
diff --git a/src/renderer/lib/links.test.ts b/src/renderer/lib/links.test.tsnew file mode 100644index 000000000..1cc5b656e--- /dev/null+++ b/src/renderer/lib/links.test.ts@@ -0,0 +1,36 @@+import { describe, expect, it } from 'vitest'+import {+ ANDROID_APP_PUBLISHED,+ ANDROID_PLAY_STORE_URL,+ IOS_APP_STORE_URL,+ mobileStoreLinks,+ mobileStoreNames+} from './links'++describe('mobile store links', () => {+ it('ships with the Android listing switched OFF (it does not exist yet)', () => {+ expect(ANDROID_APP_PUBLISHED).toBe(false)+ })++ it('by default offers only the App Store — no dead Play link', () => {+ const links = mobileStoreLinks()+ expect(links.map((l) => l.url)).toEqual([IOS_APP_STORE_URL])+ expect(JSON.stringify(links)).not.toContain('play.google.com')+ expect(mobileStoreNames()).toBe('the App Store')+ })++ it('adds Google Play, after the App Store, once published', () => {+ const links = mobileStoreLinks(true)+ expect(links).toEqual([+ { id: 'app-store', label: 'Get it on the App Store', prose: 'the App Store', url: IOS_APP_STORE_URL },+ { id: 'google-play', label: 'Get it on Google Play', prose: 'Google Play', url: ANDROID_PLAY_STORE_URL }+ ])+ expect(mobileStoreNames(true)).toBe('the App Store or Google Play')+ })++ it('points at the Android package id the app ships under', () => {+ expect(ANDROID_PLAY_STORE_URL).toBe(+ 'https://play.google.com/store/apps/details?id=com.nodeterm.android'+ )+ })+})diff --git a/src/renderer/lib/links.ts b/src/renderer/lib/links.tsindex 363cd76fd..0e6aad76e 100644--- a/src/renderer/lib/links.ts+++ b/src/renderer/lib/links.ts@@ -1,3 +1,57 @@-/** nodeterm mobile on the App Store (live since 1.0). One home for the link so the welcome- * flow, Settings → Phone and the quick-pair popover can never drift apart. */+/** nodeterm mobile on the App Store (live since 1.0). Render it through `mobileStoreLinks()` —+ * a guard test (added with the component migration) will refuse a direct import anywhere else. */export const IOS_APP_STORE_URL = 'https://apps.apple.com/app/nodeterm/id6790581233'++/**+ * nodeterm mobile for Android on Google Play. The listing DOES NOT EXIST YET — this is the package+ * id the Android app ships under. Nothing renders it until `ANDROID_APP_PUBLISHED` is true, so no+ * build ever ships a link to a 404.+ */+export const ANDROID_PLAY_STORE_URL =+ 'https://play.google.com/store/apps/details?id=com.nodeterm.android'++/** Flip to `true` the day the Play listing is public — the ONE switch for every surface. */+export const ANDROID_APP_PUBLISHED: boolean = false++export interface MobileStoreLink {+ id: 'app-store' | 'google-play'+ /** Button / link text. */+ label: string+ /** How prose names the store ("Grab it from the App Store"). */+ prose: string+ url: string+}++/**+ * Where to get nodeterm mobile, in display order. One home so the welcome flow, Settings → Phone,+ * the quick-pair popover and the launch card can never drift apart — and so the Play link appears+ * everywhere on the same day.+ */+export function mobileStoreLinks(+ androidPublished: boolean = ANDROID_APP_PUBLISHED+): MobileStoreLink[] {+ const links: MobileStoreLink[] = [+ {+ id: 'app-store',+ label: 'Get it on the App Store',+ prose: 'the App Store',+ url: IOS_APP_STORE_URL+ }+ ]+ if (androidPublished) {+ links.push({+ id: 'google-play',+ label: 'Get it on Google Play',+ prose: 'Google Play',+ url: ANDROID_PLAY_STORE_URL+ })+ }+ return links+}++/** "the App Store" today; "the App Store or Google Play" once Android is published. */+export function mobileStoreNames(androidPublished: boolean = ANDROID_APP_PUBLISHED): string {+ return mobileStoreLinks(androidPublished)+ .map((l) => l.prose)+ .join(' or ')+}