Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
chore: move onboarding qr code to launch screen (#2762)
Peter Chinmande2c2486e04b
diff --git a/js/app/bun.lock b/js/app/bun.lockindex ea3669bd0f..c13b3682ae 100644--- a/js/app/bun.lock+++ b/js/app/bun.lock@@ -1,5 +1,6 @@{"lockfileVersion": 1,+ "configVersion": 0,"workspaces": {"": {"name": "@coparse/monorepo",@@ -317,11 +318,12 @@"@lexical/[email protected]": "patches/@lexical%[email protected]",},"overrides": {- "flatted": ">=3.4.0",+ "ajv": ">=6.14.0","cross-spawn": "7.0.6",- "rollup": ">=4.59.0",+ "flatted": ">=3.4.0","minimatch": ">=3.1.4",- "ajv": ">=6.14.0",+ "rollup": ">=4.59.0",+ "undici": ">=6.24.0",},"packages": {"@adobe/css-tools": ["@adobe/[email protected]", "", {}, "sha512-Elp+iwUx5rN5+Y8xLt5/GRoG20WGoDCQ/1Fb+1LiGtvwbDavuSk0jhD/eZdckHAuzcDzccnkv+rEjyWfRx18gg=="],diff --git a/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx b/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsxindex e0ad0e5cfe..2ff949630f 100644--- a/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx+++ b/js/app/packages/app/component/interactive-onboarding/InteractiveOnboarding.tsx@@ -27,7 +27,6 @@ import { useAnalytics } from '@app/component/analytics-context';import { useHasPaidAccess } from '@core/auth/license';import { useIsAuthenticated } from '@core/auth';import { fetchToken } from '@core/util/fetchWithToken';-import { ENABLE_APP_STORE_QR_CODE } from '@core/constant/featureFlags';import { isTouchDevice } from '@core/mobile/isTouchDevice';import { isNativeMobilePlatform } from '@core/mobile/isNativeMobilePlatform';import MobileWebWelcome from './MobileWebWelcome';@@ -106,7 +105,6 @@ function InteractiveOnboardingInner() {if (l.id === 'choose-plan' && (hasPaid() || tutorialCompleted()))return false;if (l.id === 'about-us' && isAuthenticated()) return false;- if (l.id === 'app-store' && !ENABLE_APP_STORE_QR_CODE) return false;return true;});const lessons = isTouchdiff --git a/js/app/packages/app/component/interactive-onboarding/lessons/app-store.tsx b/js/app/packages/app/component/interactive-onboarding/lessons/app-store.tsxdeleted file mode 100644index cbf81143e1..0000000000--- a/js/app/packages/app/component/interactive-onboarding/lessons/app-store.tsx+++ /dev/null@@ -1,36 +0,0 @@-import { onMount } from 'solid-js';-import AppStoreQr from '@macro-icons/app-store.svg';-import type { LessonContentProps, LessonDefinition } from '../types';--function AppStoreContent(props: LessonContentProps) {- onMount(() => props.onComplete());- return (- <div class="flex flex-col gap-3 onboarding-stagger">- <p>- Scan the QR code to download the Macro iOS app and take it on the go.- </p>- <p>This QR code is always available in the settings panel.</p>- </div>- );-}--function AppStoreDemo() {- return (- <div class="h-full w-full flex items-center justify-center px-8 @container">- <div class="h-full w-full flex flex-col items-center justify-center gap-6">- <AppStoreQr class="w-[50cqw] h-[50cqw] text-accent" />- <p class="text-ink font-medium">Download on the App Store</p>- </div>- </div>- );-}--export const appStoreLesson: LessonDefinition = {- id: 'app-store',- title: 'Get the iOS app',- subtitle: 'Take Macro on the go',- content: AppStoreContent,- demo: AppStoreDemo,- centeredButton: true,- order: 90,-};diff --git a/js/app/packages/app/component/interactive-onboarding/lessons/index.ts b/js/app/packages/app/component/interactive-onboarding/lessons/index.tsindex 7e6bef368a..c57d224382 100644--- a/js/app/packages/app/component/interactive-onboarding/lessons/index.ts+++ b/js/app/packages/app/component/interactive-onboarding/lessons/index.ts@@ -7,7 +7,6 @@ import { markdownMentionsLesson } from './markdown-mentions';// import { composersPreviewLesson } from './composers-preview';import { aboutUsLesson } from './about-us';import { choosePlanLesson } from './choose-plan';-import { appStoreLesson } from './app-store';import { launchLesson } from './launch';export const LESSONS: LessonDefinition[] = [@@ -19,6 +18,5 @@ export const LESSONS: LessonDefinition[] = [// composersPreviewLesson,aboutUsLesson,choosePlanLesson,- appStoreLesson,launchLesson,];diff --git a/js/app/packages/app/component/interactive-onboarding/lessons/launch.tsx b/js/app/packages/app/component/interactive-onboarding/lessons/launch.tsxindex 49e00b9ac6..c3adafb6d9 100644--- a/js/app/packages/app/component/interactive-onboarding/lessons/launch.tsx+++ b/js/app/packages/app/component/interactive-onboarding/lessons/launch.tsx@@ -1,5 +1,6 @@import { onMount } from 'solid-js';import { useSearchParams } from '@solidjs/router';+import AppStoreQr from '@macro-icons/app-store.svg';import type { LessonContentProps, LessonDefinition } from '../types';import { useAnalytics } from '@app/component/analytics-context';@@ -20,7 +21,20 @@ function LaunchContent(props: LessonContentProps) {return (<div class="flex flex-col gap-3 onboarding-stagger">- <p>You're all set! Let's dive in.</p>+ <p>You're all set!</p>+ <p>Before you dive in, you can also install our mobile iOS app.</p>+ <p>This QR code is always accessible from the settings panel.</p>+ </div>+ );+}++function LaunchDemo() {+ return (+ <div class="h-full w-full flex items-center justify-center px-8 @container">+ <div class="h-full w-full flex flex-col items-center justify-center gap-6">+ <AppStoreQr class="w-[50cqw] h-[50cqw] text-accent" />+ <p class="text-ink font-medium">Download on the App Store</p>+ </div></div>);}@@ -29,5 +43,7 @@ export const launchLesson: LessonDefinition = {id: 'launch',title: 'Welcome to Macro',content: LaunchContent,+ demo: LaunchDemo,+ centeredButton: true,order: 100,};