Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

feat(apps): keep Continue without an account on screen as a button

leepokai6195c2afe941
diff --git a/apps/android/app/src/main/kotlin/com/codync/android/WelcomeView.kt b/apps/android/app/src/main/kotlin/com/codync/android/WelcomeView.kt
index 7cf5b966..d75e235f 100644
--- a/apps/android/app/src/main/kotlin/com/codync/android/WelcomeView.kt
+++ b/apps/android/app/src/main/kotlin/com/codync/android/WelcomeView.kt
@@ -20,6 +20,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.layout.requiredHeight
import androidx.compose.foundation.layout.safeDrawingPadding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.rememberScrollState
@@ -40,11 +41,13 @@ import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.TransformOrigin
import androidx.compose.ui.graphics.graphicsLayer
+import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalUriHandler
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.text.font.FontWeight
+import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
@@ -66,73 +69,90 @@ import kotlin.math.sin
LaunchedEffect(Unit) {
for (next in beat + 1..4) { delay(if (next == 1) 150 else 280); beat = next }
}
- BoxWithConstraints(Modifier.fillMaxSize().background(Palette.background).safeDrawingPadding()) {
- val height = maxHeight
- Column(Modifier.fillMaxSize().verticalScroll(rememberScrollState())) {
- // Three flexible gaps as the iOS spacers: above the crew, under it, and over the buttons.
- Column(Modifier.fillMaxWidth().heightIn(min = height).padding(horizontal = 24.dp).padding(bottom = 12.dp),
- verticalArrangement = Arrangement.SpaceBetween) {
- Spacer(Modifier.height(0.dp))
- Crew(beat >= 1, Modifier.padding(top = 24.dp))
- Column(Modifier.padding(top = 24.dp)) {
- ChatGlimpse(beat >= 2, Modifier.padding(bottom = 24.dp))
- Column(Modifier.rise(beat >= 3), verticalArrangement = Arrangement.spacedBy(10.dp)) {
- Text(tr("Your coding agents,\nas teammates."), style = Type.system(34f, FontWeight.SemiBold).copy(letterSpacing = (-0.6).sp),
- color = Palette.text)
- Text(tr("Give each one a name and a project. They work on your computer while you're away."), style = Type.body, color = Palette.secondary)
- DemoButton(Modifier.padding(top = 4.dp))
+ val density = LocalDensity.current
+ // What the pitch needs besides the crew, which shrinks into the rest.
+ var textHeight by remember { mutableStateOf(0.dp) }
+ Column(Modifier.fillMaxSize().background(Palette.background).safeDrawingPadding()) {
+ // The way forward stays on screen at any size: the pitch above it gives way.
+ BoxWithConstraints(Modifier.weight(1f).fillMaxWidth()) {
+ val room = maxHeight
+ Column(Modifier.fillMaxSize().verticalScroll(rememberScrollState())) {
+ // Two flexible gaps as the iOS spacers: above the crew and under it.
+ Column(Modifier.fillMaxWidth().heightIn(min = room).padding(horizontal = 24.dp),
+ verticalArrangement = Arrangement.SpaceBetween) {
+ Spacer(Modifier.height(0.dp))
+ Crew(beat >= 1, room - textHeight - 48.dp, Modifier.padding(top = 24.dp))
+ Column(Modifier.padding(top = 24.dp).onSizeChanged { textHeight = with(density) { it.height.toDp() } }) {
+ ChatGlimpse(beat >= 2, Modifier.padding(bottom = 24.dp))
+ Column(Modifier.rise(beat >= 3), verticalArrangement = Arrangement.spacedBy(10.dp)) {
+ Text(tr("Your coding agents,\nas teammates."), style = Type.system(34f, FontWeight.SemiBold).copy(letterSpacing = (-0.6).sp),
+ color = Palette.text)
+ Text(tr("Give each one a name and a project. They work on your computer while you're away."), style = Type.body, color = Palette.secondary)
+ DemoButton(Modifier.padding(top = 4.dp))
+ }
}
}
- Column(Modifier.padding(top = 32.dp).rise(beat >= 4), verticalArrangement = Arrangement.spacedBy(10.dp)) {
- if (signedOutComputers > 0) Text(if (signedOutComputers == 1)
- tr("Your computer stays paired. If you sign in with an account used on this phone before, scan its code again. Add to account brings it into your account.")
- else tr("Your {count} computers stay paired. If you sign in with an account used on this phone before, scan their codes again. Add to account brings each into your account.")
- .replace("{count}", signedOutComputers.toString()),
- Modifier.fillMaxWidth().padding(bottom = 4.dp), style = Type.footnote, color = Palette.secondary)
- if (state.account.configured) {
- SignInButtons(state, store)
- Column(Modifier.fillMaxWidth().plainButton(action = start).padding(vertical = 8.dp),
- horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.spacedBy(2.dp)) {
- Text(tr("Continue without an account"), style = Type.subheadline, color = Palette.text)
- Text(tr("Only on the same Wi-Fi or Tailscale as your computer"), style = Type.caption, color = Palette.secondary)
- }
- } else WideButton("Get started", action = start)
- // Restoring sign-in failed (the only account error): Clerk retries on its own with a backoff of up to a minute; Try again asks now.
- state.account.error?.let {
- Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {
- Text(it, Modifier.weight(1f, fill = false), style = Type.footnote, color = Palette.danger)
- IconButton("Try again", "arrow.clockwise") { store.retryAccounts() }
- }
+ }
+ }
+ Column(Modifier.padding(horizontal = 24.dp).padding(top = 20.dp, bottom = 12.dp).rise(beat >= 4),
+ verticalArrangement = Arrangement.spacedBy(10.dp)) {
+ if (signedOutComputers > 0) Text(if (signedOutComputers == 1)
+ tr("Your computer stays paired. If you sign in with an account used on this phone before, scan its code again. Add to account brings it into your account.")
+ else tr("Your {count} computers stay paired. If you sign in with an account used on this phone before, scan their codes again. Add to account brings each into your account.")
+ .replace("{count}", signedOutComputers.toString()),
+ Modifier.fillMaxWidth().padding(bottom = 4.dp), style = Type.footnote, color = Palette.secondary)
+ if (state.account.configured) {
+ SignInButtons(state, store)
+ SecondaryButton(start, Modifier.fillMaxWidth()) {
+ Column(horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.spacedBy(2.dp)) {
+ Text(tr("Continue without an account"), style = Type.subheadline.medium, color = Palette.text)
+ // A little stronger than `Palette.secondary`, which is too faint for this size on the fill.
+ Text(tr("Only on the same Wi-Fi or Tailscale as your computer"), style = Type.caption,
+ color = Palette.text.copy(alpha = 0.7f), textAlign = TextAlign.Center)
}
}
+ } else WideButton("Get started", action = start)
+ // Restoring sign-in failed (the only account error): Clerk retries on its own with a backoff of up to a minute; Try again asks now.
+ state.account.error?.let {
+ Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {
+ Text(it, Modifier.weight(1f, fill = false), style = Type.footnote, color = Palette.danger)
+ IconButton("Try again", "arrow.clockwise") { store.retryAccounts() }
+ }
}
}
}
}
/** Five bots bobbing out of step: the "persistent, named" part of the pitch, without words. */
-@Composable private fun Crew(shown: Boolean, modifier: Modifier = Modifier) {
+@Composable private fun Crew(shown: Boolean, room: Dp, modifier: Modifier = Modifier) {
val still = reduceMotion()
+ // It shrinks into the height the pitch leaves it, and goes when it would be too small to read.
+ val fit = (room / CREW_HEIGHT).coerceAtMost(1f).takeIf { it >= 0.35f } ?: 0f
+ val scale by animateFloatAsState(fit, Motion.fade(), label = "Crew")
var time by remember { mutableFloatStateOf(0f) }
if (shown && !still) LaunchedEffect(Unit) { while (true) withFrameNanos { time = it / 1e9f } }
val density = LocalDensity.current
- Box(modifier.fillMaxWidth().height(170.dp), contentAlignment = Alignment.Center) {
- for ((index, member) in CREW.withIndex()) {
- val entry = remember { Animatable(if (still) 1f else 0f) }
- LaunchedEffect(shown) {
- if (shown) { delay(index * 70L); entry.animateTo(1f, Motion.spring(0.7f, 0.4f)) } else entry.snapTo(0f)
+ Box(modifier.fillMaxWidth().height(CREW_HEIGHT * scale), contentAlignment = Alignment.Center) {
+ Box(Modifier.fillMaxWidth().requiredHeight(CREW_HEIGHT).graphicsLayer { scaleX = scale; scaleY = scale }, contentAlignment = Alignment.Center) {
+ for ((index, member) in CREW.withIndex()) {
+ val entry = remember { Animatable(if (still) 1f else 0f) }
+ LaunchedEffect(shown) {
+ if (shown) { delay(index * 70L); entry.animateTo(1f, Motion.spring(0.7f, 0.4f)) } else entry.snapTo(0f)
+ }
+ Box(Modifier.graphicsLayer {
+ val bob = if (still) 0f else sin(time * 1.3f + index * 1.7f) * 5f
+ translationX = with(density) { member.x.dp.toPx() }
+ translationY = with(density) { (member.y + bob).dp.toPx() }
+ val scale = 0.3f + 0.7f * entry.value
+ scaleX = scale; scaleY = scale; alpha = entry.value.coerceIn(0f, 1f)
+ }) { CharacterAvatar(member.shape, member.color, member.size.dp, member.mood) }
}
- Box(Modifier.graphicsLayer {
- val bob = if (still) 0f else sin(time * 1.3f + index * 1.7f) * 5f
- translationX = with(density) { member.x.dp.toPx() }
- translationY = with(density) { (member.y + bob).dp.toPx() }
- val scale = 0.3f + 0.7f * entry.value
- scaleX = scale; scaleY = scale; alpha = entry.value.coerceIn(0f, 1f)
- }) { CharacterAvatar(member.shape, member.color, member.size.dp, member.mood) }
}
}
}
+private val CREW_HEIGHT = 170.dp
+
private class CrewMember(val shape: String, val color: String, val size: Int, val x: Float, val y: Float, val mood: String)
private val CREW = listOf(
diff --git a/apps/desktop/e2e/optional-sign-in.spec.ts b/apps/desktop/e2e/optional-sign-in.spec.ts
index 287a4f0c..8deb6e98 100644
--- a/apps/desktop/e2e/optional-sign-in.spec.ts
+++ b/apps/desktop/e2e/optional-sign-in.spec.ts
@@ -51,7 +51,7 @@ test('a phone with no account is asked about, on a computer in no account', asyn
test('the welcome lets you go on without an account, and it stays that way', async () => {
const { browser, page } = await attach()
- const goOn = page.getByRole('button', { name: /^Continue on this/ })
+ const goOn = page.getByRole('button', { name: /^Continue without an account/ })
const restore = async () => {
await setPref(page, 'macAccountOnboardingCompleted', true)
await setPref(page, 'withoutAccount', false)
diff --git a/apps/desktop/src/renderer/views/AccountWelcomeView.tsx b/apps/desktop/src/renderer/views/AccountWelcomeView.tsx
index 475737c4..8bb6ce57 100644
--- a/apps/desktop/src/renderer/views/AccountWelcomeView.tsx
+++ b/apps/desktop/src/renderer/views/AccountWelcomeView.tsx
@@ -79,27 +79,31 @@ export function AccountWelcomeView({ onContinue }: { onContinue: () => void }) {
return (
<div className="welcome">
<VStack className="welcome-column">
- <Spacer min={24} />
- <WelcomeCrew shown={beat >= 1} />
- <Spacer min={24} />
- <div className="welcome-glimpse">
- <WelcomeChatGlimpse shown={beat >= 2} />
- </div>
- <VStack gap={10} style={rise(beat >= 3)}>
- <div className="welcome-title">{tr('Your coding agents,\nas teammates.')}</div>
- <Text as="div" size="body" tone="secondary">{tr(`Give each one a name and a project. They work on your computer while you're away.`)}</Text>
+ {/* The way forward stays on screen at any size: the pitch above it gives way (account-welcome.css). */}
+ <VStack className="welcome-pitch">
+ <Spacer min={24} />
+ <WelcomeCrew shown={beat >= 1} />
+ <Spacer min={24} />
+ <div className="welcome-glimpse">
+ <WelcomeChatGlimpse shown={beat >= 2} />
+ </div>
+ <VStack gap={10} style={rise(beat >= 3)}>
+ <div className="welcome-title">{tr('Your coding agents,\nas teammates.')}</div>
+ <Text as="div" size="body" tone="secondary">{tr(`Give each one a name and a project. They work on your computer while you're away.`)}</Text>
+ </VStack>
</VStack>
- <Spacer min={32} />
- <VStack gap={10} style={rise(beat >= 4)}>
+ <VStack gap={10} className="welcome-actions" style={rise(beat >= 4)}>
<ProviderButton provider="apple" mark={<Icon name="apple.logo" size={20} />} title="Continue with Apple" />
<ProviderButton provider="google" kind="secondary" mark={<img src={googleLogo} alt="" width={20} height={20} />} title="Continue with Google" />
<ProviderButton provider="github" kind="secondary" mark={<Icon name="github.logo" size={20} />} title="Continue with GitHub" />
<Button kind="secondary" onClick={onContinue} className="welcome-button">
- {onThis}
+ {account.isConfigured ? (
+ <VStack as="span" align="center" gap={2}>
+ <Text size="subheadline" weight="medium">{tr('Continue without an account')}</Text>
+ <Text size="caption" weight="regular" className="welcome-continue-note">{tr('Phones then connect only over Wi-Fi or Tailscale.')}</Text>
+ </VStack>
+ ) : onThis}
</Button>
- {account.isConfigured ? (
- <Text as="div" size="footnote" tone="tertiary">{tr('Phones then connect only over Wi-Fi or Tailscale.')}</Text>
- ) : null}
{!account.isConfigured ? (
<Text as="div" size="footnote" tone="tertiary">{tr(deviceName === 'Mac' ? "Sign-in isn't configured in this build. You can still use Codync on this Mac." : "Sign-in isn't configured in this build. You can still use Codync on this computer.")}</Text>
) : null}
diff --git a/apps/desktop/src/renderer/views/account-welcome.css b/apps/desktop/src/renderer/views/account-welcome.css
index 15817a67..d729fdaf 100644
--- a/apps/desktop/src/renderer/views/account-welcome.css
+++ b/apps/desktop/src/renderer/views/account-welcome.css
@@ -8,15 +8,24 @@
.welcome {
height: 100%;
- overflow-y: auto;
background: var(--background);
}
.welcome-column {
- min-height: 100%;
+ height: 100%;
max-width: 480px;
margin: 0 auto;
padding: 0 24px 12px;
}
+/* The way forward stays on screen at any window size: the pitch scrolls behind it, and gives up the crew first. */
+.welcome-pitch {
+ flex: 1;
+ min-height: 0;
+ overflow-y: auto;
+}
+.welcome-actions {
+ flex-shrink: 0;
+ padding-top: 20px;
+}
.welcome-glimpse {
padding-bottom: 24px;
}
@@ -35,11 +44,32 @@
font-size: var(--text-body);
font-weight: 700;
}
+/* A little stronger than the secondary tone, which is too faint for this size on the button's fill. */
+.welcome-continue-note {
+ opacity: 0.7;
+}
.welcome-crew {
position: relative;
+ flex-shrink: 0;
height: 170px;
}
+@media (max-height: 720px) {
+ .welcome-crew {
+ height: 110px;
+ transform: scale(0.65);
+ }
+}
+@media (max-height: 640px) {
+ .welcome-crew {
+ display: none;
+ }
+}
+@media (max-height: 540px) {
+ .welcome-glimpse {
+ display: none;
+ }
+}
.welcome-crew-member {
position: absolute;
left: 50%;
diff --git a/apps/ios/Views/WelcomeView.swift b/apps/ios/Views/WelcomeView.swift
index bcb267f2..292bfd95 100644
--- a/apps/ios/Views/WelcomeView.swift
+++ b/apps/ios/Views/WelcomeView.swift
@@ -12,14 +12,20 @@ struct WelcomeView: View {
@Environment(\.accessibilityReduceMotion) private var reduceMotion
/// 0 = nothing yet … 4 = everything shown. Each beat enters in turn.
@State private var beat = 0
+ /// What the pitch needs besides the crew, which shrinks into the rest.
+ @State private var textHeight: CGFloat = 0
var body: some View {
- GeometryReader { geometry in
- ScrollView {
- content
- .frame(minHeight: geometry.size.height)
+ VStack(spacing: 0) {
+ // The way forward stays on screen at any size: the pitch above it gives way.
+ GeometryReader { geometry in
+ ScrollView {
+ pitch(room: geometry.size.height)
+ .frame(minHeight: geometry.size.height)
+ }
+ .scrollBounceBehavior(.basedOnSize)
}
- .scrollBounceBehavior(.basedOnSize)
+ actions
}
.background(Palette.background)
.tracked(.onboardingStepViewed(.welcome))
@@ -32,83 +38,89 @@ struct WelcomeView: View {
}
}
- private var content: some View {
+ private func pitch(room: CGFloat) -> some View {
VStack(alignment: .leading, spacing: 0) {
Spacer(minLength: 24)
- Crew(shown: beat >= 1)
+ Crew(shown: beat >= 1, room: room - textHeight - 48)
.frame(maxWidth: .infinity)
Spacer(minLength: 24)
- ChatGlimpse(shown: beat >= 2)
- .padding(.bottom, 24)
+ VStack(alignment: .leading, spacing: 0) {
+ ChatGlimpse(shown: beat >= 2)
+ .padding(.bottom, 24)
- VStack(alignment: .leading, spacing: 10) {
- Text(L10n.tr("Your coding agents,\nas teammates."))
- .font(.system(size: 34, weight: .semibold))
- .tracking(-0.6)
- .foregroundStyle(Palette.text)
- .fixedSize(horizontal: false, vertical: true)
- Text(L10n.tr("Give each one a name and a project. They work on your computer while you're away."))
- .font(.body)
- .foregroundStyle(Palette.secondary)
- DemoButton().padding(.top, 4)
- }
- .rise(beat >= 3)
-
- Spacer(minLength: 32)
-
- VStack(spacing: 10) {
- if signedOutComputers > 0 {
- Text(signedOutComputers == 1
- ? L10n.tr("Your computer stays paired. If you sign in with an account used on this phone before, scan its code again. Add to account brings it into your account.")
- : L10n.tr("Your {count} computers stay paired. If you sign in with an account used on this phone before, scan their codes again. Add to account brings each into your account.")
- .replacingOccurrences(of: "{count}", with: String(signedOutComputers)))
- .font(.footnote)
- .foregroundStyle(Palette.secondary)
+ VStack(alignment: .leading, spacing: 10) {
+ Text(L10n.tr("Your coding agents,\nas teammates."))
+ .font(.system(size: 34, weight: .semibold))
+ .tracking(-0.6)
+ .foregroundStyle(Palette.text)
.fixedSize(horizontal: false, vertical: true)
- .frame(maxWidth: .infinity, alignment: .leading)
- .padding(.bottom, 4)
+ Text(L10n.tr("Give each one a name and a project. They work on your computer while you're away."))
+ .font(.body)
+ .foregroundStyle(Palette.secondary)
+ DemoButton().padding(.top, 4)
}
- if account.isConfigured {
- SignInButtons().disabled(!account.isReady)
- Button(action: start) {
- VStack(spacing: 2) {
- Text(L10n.tr("Continue without an account")).font(.subheadline.weight(.medium))
- .foregroundStyle(Palette.text)
- Text(L10n.tr("Only on the same Wi-Fi or Tailscale as your computer"))
- .font(.caption)
- .foregroundStyle(Palette.secondary)
- }
- .frame(maxWidth: .infinity, minHeight: 44)
- .contentShape(Rectangle())
- }
- .buttonStyle(PressScale())
- } else {
- Button(action: start) {
- Text(L10n.tr("Get started")).font(.headline).frame(maxWidth: .infinity, minHeight: 50)
+ .rise(beat >= 3)
+ }
+ .onGeometryChange(for: CGFloat.self) { $0.size.height } action: { textHeight = $0 }
+ }
+ .padding(.horizontal, 24)
+ }
+
+ private var actions: some View {
+ VStack(spacing: 10) {
+ if signedOutComputers > 0 {
+ Text(signedOutComputers == 1
+ ? L10n.tr("Your computer stays paired. If you sign in with an account used on this phone before, scan its code again. Add to account brings it into your account.")
+ : L10n.tr("Your {count} computers stay paired. If you sign in with an account used on this phone before, scan their codes again. Add to account brings each into your account.")
+ .replacingOccurrences(of: "{count}", with: String(signedOutComputers)))
+ .font(.footnote)
+ .foregroundStyle(Palette.secondary)
+ .fixedSize(horizontal: false, vertical: true)
+ .frame(maxWidth: .infinity, alignment: .leading)
+ .padding(.bottom, 4)
+ }
+ if account.isConfigured {
+ SignInButtons().disabled(!account.isReady)
+ Button(action: start) {
+ VStack(spacing: 2) {
+ Text(L10n.tr("Continue without an account")).font(.subheadline.weight(.medium))
+ // A little stronger than `Palette.secondary`, which is too faint for this size on the fill.
+ Text(L10n.tr("Only on the same Wi-Fi or Tailscale as your computer"))
+ .font(.caption)
+ .foregroundStyle(Palette.text.opacity(0.7))
+ .fixedSize(horizontal: false, vertical: true)
}
- .buttonStyle(.primary)
+ .multilineTextAlignment(.center)
+ .frame(maxWidth: .infinity)
}
- if let message = account.errorMessage {
- Text(message).font(.footnote).foregroundStyle(Palette.danger)
- .transition(.opacity)
+ .buttonStyle(.secondary)
+ } else {
+ Button(action: start) {
+ Text(L10n.tr("Get started")).font(.headline).frame(maxWidth: .infinity, minHeight: 50)
}
- if account.restoreFailed {
- HStack(spacing: 8) {
- Text(L10n.tr("Couldn't restore sign-in. Check your connection and retry."))
- .font(.footnote).foregroundStyle(Palette.danger)
- .fixedSize(horizontal: false, vertical: true)
- IconButton("Try again", systemImage: "arrow.clockwise") { Task { await account.retryRestore() } }
- }
+ .buttonStyle(.primary)
+ }
+ if let message = account.errorMessage {
+ Text(message).font(.footnote).foregroundStyle(Palette.danger)
.transition(.opacity)
+ }
+ if account.restoreFailed {
+ HStack(spacing: 8) {
+ Text(L10n.tr("Couldn't restore sign-in. Check your connection and retry."))
+ .font(.footnote).foregroundStyle(Palette.danger)
+ .fixedSize(horizontal: false, vertical: true)
+ IconButton("Try again", systemImage: "arrow.clockwise") { Task { await account.retryRestore() } }
}
+ .transition(.opacity)
}
- .animation(Motion.fade, value: account.restoreFailed)
- .rise(beat >= 4)
}
+ .animation(Motion.fade, value: account.restoreFailed)
+ .rise(beat >= 4)
.padding(.horizontal, 24)
+ .padding(.top, 20)
.padding(.bottom, 12)
}
}
@@ -116,8 +128,16 @@ struct WelcomeView: View {
/// Five bots bobbing out of step: the "persistent, named" part of the pitch, without words.
private struct Crew: View {
let shown: Bool
+ /// The height the pitch leaves it. It shrinks into that, and goes when it would be too small to read.
+ let room: CGFloat
@Environment(\.accessibilityReduceMotion) private var reduceMotion
+ private static let fullHeight: CGFloat = 170
+ private var fit: CGFloat {
+ let fit = min(1, room / Self.fullHeight)
+ return fit < 0.35 ? 0 : fit
+ }
+
private let members: [(shape: String, color: String, size: CGFloat, x: CGFloat, y: CGFloat, mood: CharacterAvatar.Mood)] = [
("blob", "blue", 92, 0, 0, .working),
("squircle", "orange", 64, -104, -34, .idle),
@@ -140,7 +160,9 @@ private struct Crew: View {
}
}
}
- .frame(height: 170)
+ .scaleEffect(fit)
+ .frame(height: Self.fullHeight * fit)
+ .animation(Motion.fade, value: fit)
}
}
diff --git a/web/content/docs/getting-started.mdx b/web/content/docs/getting-started.mdx
index 8dce0899..9a62ff4b 100644
--- a/web/content/docs/getting-started.mdx
+++ b/web/content/docs/getting-started.mdx
@@ -41,7 +41,7 @@ You can also install the host with Homebrew (`brew install leepokai/codync/codyn
### The first launch of the desktop app
-The app first offers to sign in with Apple, Google or GitHub. Signed in, it asks to add the computer to your account, so your phone can find it there and reach it from anywhere. Without an account, choose **Continue on this Mac** (or **this computer**): phones then connect only over Wi-Fi or Tailscale. It then offers **Computer access**, which bots need only to use the screen; choose **Set up later** to skip it. See [Computer use](/docs/computer-use).
+The app first offers to sign in with Apple, Google or GitHub. Signed in, it asks to add the computer to your account, so your phone can find it there and reach it from anywhere. Without an account, choose **Continue without an account**: phones then connect only over Wi-Fi or Tailscale. It then offers **Computer access**, which bots need only to use the screen; choose **Set up later** to skip it. See [Computer use](/docs/computer-use).
Setup also offers an optional GitHub star. If you skip it, the desktop app invites you once more when you've sent your fifth message from that computer. That invitation has two actions: **Star on GitHub** opens the repository, and **Not now** dismisses it. You can also dismiss it by clicking outside the card or pressing Escape. Opening the repository or dismissing this invitation ends the invitations on that computer.
diff --git a/web/content/docs/remote-access.mdx b/web/content/docs/remote-access.mdx
index 870095e8..b26968f6 100644
--- a/web/content/docs/remote-access.mdx
+++ b/web/content/docs/remote-access.mdx
@@ -50,7 +50,7 @@ Changing the account a computer belongs to (moving it, or **Remove from account*
## Signing in
-You can use the iPhone, Android and desktop apps without an account: choose **Continue without an account** (on the computer, **Continue on this Mac** or **this computer**). Then phones pair by scanning the computer's code, only with a computer that isn't in an account, and connect only over Wi-Fi or Tailscale. The relay, **Ask for access**, custom icons, cloud assistants and public webhook addresses need a computer in an account and a phone signed in to it.
+You can use the iPhone, Android and desktop apps without an account: choose **Continue without an account**. Then phones pair by scanning the computer's code, only with a computer that isn't in an account, and connect only over Wi-Fi or Tailscale. The relay, **Ask for access**, custom icons, cloud assistants and public webhook addresses need a computer in an account and a phone signed in to it.
Signing in with Apple, Google or GitHub doesn't give any device access by itself. It lets your phone find the computers in your account without scanning a code, and reach them from anywhere: