The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.
TypeScript ai-receptionistanswering-serviceappointment-bookinglivekitlocal-firstmcpopen-sourceself-hostedsiptelephonytypescriptvoice-agentvoice-ai
Store listing draft and screenshot scripts; the iOS app is iPhone only, both apps portrait (PR 2002)
Tim Gutberleteaca9ec83fdb
diff --git a/apps/mobile/android/app/src/main/AndroidManifest.xml b/apps/mobile/android/app/src/main/AndroidManifest.xmlindex 4579e7c0..aa1eac6f 100644--- a/apps/mobile/android/app/src/main/AndroidManifest.xml+++ b/apps/mobile/android/app/src/main/AndroidManifest.xml@@ -13,6 +13,7 @@android:label="@string/title_activity_main"android:theme="@style/AppTheme.NoActionBarLaunch"android:launchMode="singleTask"+ android:screenOrientation="portrait"android:exported="true"><intent-filter><action android:name="android.intent.action.MAIN" />diff --git a/apps/mobile/ios/App/App.xcodeproj/project.pbxproj b/apps/mobile/ios/App/App.xcodeproj/project.pbxprojindex 15c62f7e..39ff0b80 100644--- a/apps/mobile/ios/App/App.xcodeproj/project.pbxproj+++ b/apps/mobile/ios/App/App.xcodeproj/project.pbxproj@@ -321,7 +321,7 @@PRODUCT_NAME = "$(TARGET_NAME)";SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;SWIFT_VERSION = 5.0;- TARGETED_DEVICE_FAMILY = "1,2";+ TARGETED_DEVICE_FAMILY = 1;};name = Debug;};@@ -344,7 +344,7 @@PRODUCT_NAME = "$(TARGET_NAME)";SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";SWIFT_VERSION = 5.0;- TARGETED_DEVICE_FAMILY = "1,2";+ TARGETED_DEVICE_FAMILY = 1;};name = Release;};diff --git a/apps/mobile/ios/App/App/Info.plist b/apps/mobile/ios/App/App/Info.plistindex 3da66b30..76a34fdd 100644--- a/apps/mobile/ios/App/App/Info.plist+++ b/apps/mobile/ios/App/App/Info.plist@@ -70,8 +70,6 @@<key>UISupportedInterfaceOrientations</key><array><string>UIInterfaceOrientationPortrait</string>- <string>UIInterfaceOrientationLandscapeLeft</string>- <string>UIInterfaceOrientationLandscapeRight</string></array><key>UISupportedInterfaceOrientations~ipad</key><array>diff --git a/apps/mobile/scripts/store-frame.py b/apps/mobile/scripts/store-frame.pynew file mode 100644index 00000000..953a9daf--- /dev/null+++ b/apps/mobile/scripts/store-frame.py@@ -0,0 +1,51 @@+"""Store screenshots: the app's screen on a Linedesk-ink background with a short caption on top."""+import sys+from PIL import Image, ImageDraw, ImageFont++FONT = sys.argv[1]+SRC, OUT = sys.argv[2], sys.argv[3]+INK, PAPER, GREEN = (0x1C, 0x19, 0x17), (0xFA, 0xFA, 0xF8), (0x4A, 0xDE, 0x80)++CAPTIONS = {+ '1-inbox': ('Every call, sorted', 'What needs you comes first.'),+ '2-call': ('Know what they wanted', 'A summary and the next step for each call.'),+ '3-contacts': ('Your callers, remembered', 'Every caller with their calls and notes.'),+ '4-insights': ('Never miss a call', 'See what your assistant answered for you.'),+ '5-assistant': ('Your AI assistant', 'Answers when you can’t, day and night.'),+}+++def frame(name, size):+ w, h = size+ canvas = Image.new('RGB', (w, h), INK)+ d = ImageDraw.Draw(canvas)+ title, sub = CAPTIONS[name]+ tf = ImageFont.truetype(FONT, int(w * 0.072))+ sf = ImageFont.truetype(FONT.replace('600', '400'), int(w * 0.04))+ top = int(h * 0.06)+ tw = d.textlength(title, font=tf)+ d.text(((w - tw) / 2, top), title, font=tf, fill=PAPER)+ sw = d.textlength(sub, font=sf)+ d.text(((w - sw) / 2, top + int(w * 0.105)), sub, font=sf, fill=(0xC8, 0xC5, 0xC0))+ # A small green dot, the brand's "live" mark, above the title.+ r = int(w * 0.012)+ d.ellipse((w / 2 - r, top - 3 * r, w / 2 + r, top - r), fill=GREEN)+ shot = Image.open(f'{SRC}/{name}.png').convert('RGB')+ area_top = top + int(w * 0.2)+ scale = 0.84+ sw_, sh_ = int(w * scale), int(shot.height * (w * scale) / shot.width)+ shot = shot.resize((sw_, sh_), Image.LANCZOS)+ # Rounded corners, like a phone screen.+ mask = Image.new('L', (sw_, sh_), 0)+ ImageDraw.Draw(mask).rounded_rectangle((0, 0, sw_, sh_), radius=int(w * 0.06), fill=255)+ canvas.paste(shot, ((w - sw_) // 2, area_top), mask)+ canvas.save(f'{OUT}/{name}.png')+++import os++os.makedirs(OUT, exist_ok=True)+size = Image.open(f'{SRC}/1-inbox.png').size+for n in CAPTIONS:+ frame(n, size)+print('ok', size)diff --git a/apps/mobile/scripts/store-screenshots.mjs b/apps/mobile/scripts/store-screenshots.mjsnew file mode 100644index 00000000..410811d2--- /dev/null+++ b/apps/mobile/scripts/store-screenshots.mjs@@ -0,0 +1,66 @@+// Store screenshots from a local stack with the demo data (pnpm db:seed), rendered as inside the app: Capacitor's+// native bridge is faked, so the app's own look shows (no purchase steps). Run from apps/web (Playwright is there):+// LINEDESK_URL=http://localhost:5173 node ../mobile/scripts/store-screenshots.mjs <out dir>+// then frame them: python3 ../mobile/scripts/store-frame.py <Geist 600 .woff> <out dir>/ios <framed dir>+import { chromium } from '@playwright/test'+import { mkdirSync } from 'node:fs'+const B = process.env.LINEDESK_URL ?? 'http://localhost:5173'+const out = process.argv[2] ?? 'store-screenshots'+const sizes = {+ ios: { width: 440, height: 956, scale: 3, platform: 'ios' }, // 1320 x 2868 (iPhone 6.9")+ android: { width: 360, height: 720, scale: 3, platform: 'android' }, // 1080 x 2160 (2:1)+}+const browser = await chromium.launch()+for (const [name, s] of Object.entries(sizes)) {+ mkdirSync(`${out}/${name}`, { recursive: true })+ const ctx = await browser.newContext({+ viewport: { width: s.width, height: s.height },+ deviceScaleFactor: s.scale,+ isMobile: true,+ hasTouch: true,+ userAgent:+ s.platform === 'ios'+ ? 'Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'+ : 'Mozilla/5.0 (Linux; Android 15; Pixel 9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0 Mobile Safari/537.36',+ })+ await ctx.addInitScript(platform => {+ // What Capacitor looks for to know it runs in the app; the plugins then never answer (nothing waits on them here).+ if (platform === 'android') window.androidBridge = { postMessage() {} }+ else window.webkit = { messageHandlers: { bridge: { postMessage() {} } } }+ }, s.platform)+ const p = await ctx.newPage()+ await p.goto(B + '/')+ await p.evaluate(async () =>+ fetch('/api/auth/sign-in/email', {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({ email: '[email protected]', password: 'brightwater-demo' }),+ }).then(r => r.status),+ )+ await p.reload()+ await p.waitForTimeout(3000)+ // The one-time "Add a passkey" card is no part of the app's look.+ await p+ .getByRole('button', { name: 'Not now' })+ .click({ timeout: 3000 })+ .catch(() => {})+ const shot = async (hash, file, wait = 2500) => {+ await p.evaluate(h => {+ window.location.hash = h+ }, hash)+ await p.waitForTimeout(wait)+ await p.screenshot({ path: `${out}/${name}/${file}.png` })+ }+ await shot('#calls', '1-inbox', 4000)+ const first = await p+ .locator('[data-call-id]')+ .first()+ .getAttribute('data-call-id')+ .catch(() => null)+ if (first) await shot(`#call/${first}`, '2-call')+ await shot('#contacts', '3-contacts')+ await shot('#insights', '4-insights')+ await shot('#assistant', '5-assistant')+ await ctx.close()+}+await browser.close()