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.

fix(ui): refine app settings and modal outlines

leepokai551519b71ca1
diff --git a/apps/desktop/src/renderer/components/overlay.css b/apps/desktop/src/renderer/components/overlay.css
index 73431c39..a9bc6025 100644
--- a/apps/desktop/src/renderer/components/overlay.css
+++ b/apps/desktop/src/renderer/components/overlay.css
@@ -43,6 +43,17 @@
}
/* Dialogs */
+.modal-content::after,
+.dialog-card::after {
+ content: '';
+ position: absolute;
+ inset: 0;
+ border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
+ border-radius: inherit;
+ pointer-events: none;
+ z-index: 1;
+}
+
.dialog {
position: fixed;
inset: 0;
diff --git a/apps/desktop/src/renderer/views/ComputerFilterHeader.tsx b/apps/desktop/src/renderer/views/ComputerFilterHeader.tsx
index 2d019f07..d04cd32f 100644
--- a/apps/desktop/src/renderer/views/ComputerFilterHeader.tsx
+++ b/apps/desktop/src/renderer/views/ComputerFilterHeader.tsx
@@ -58,7 +58,7 @@ export function ComputerFilterHeader({ hidden, setHidden, manage, compact = fals
return list
}
return (
- <DropdownMenu items={items} title={text} style={{ display: 'flex', alignItems: 'center', gap: 4, padding: '6px 0', ...font(12, 'medium'), color: 'var(--secondary)' }}>
+ <DropdownMenu items={items} title={text} className={compact ? 'computer-filter-action' : undefined} style={{ display: 'flex', alignItems: 'center', gap: 4, padding: compact ? '0 9px' : '6px 0', ...font(12, 'medium'), color: 'var(--secondary)' }}>
{compact ? <Icon name="desktopcomputer" size={12} weight="medium" /> : <span style={{ whiteSpace: 'nowrap' }} aria-label={`Computers, ${text}. Filter conversations`}>{text}</span>}
<Icon name="chevron.down" size={8} weight="semibold" />
</DropdownMenu>
diff --git a/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsx b/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsx
index 3fed0634..822c9554 100644
--- a/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsx
+++ b/apps/desktop/src/renderer/views/marketplace/ConnectionRequestCard.tsx
@@ -1,18 +1,17 @@
-import { useEffect, useState } from 'react'
+import { useState } from 'react'
import type { Entry } from '@shared/models'
-import { Button, CardForm, CardSection, IconButton, Spinner } from '../../components/Controls'
+import { Button, Spinner } from '../../components/Controls'
import { Icon } from '../../components/Icon'
-import { ModalHeader, useDismiss } from '../../components/Overlay'
import { font } from '../../lib/fonts'
import { useStore } from '../../store/context'
import { ComposioConnectSheet } from './ComposioViews'
import { InstallConnectorSheet } from './ConnectorSheets'
import {
errorText, market, needsSignIn,
- type ComposioApp, type ConnectionRequest, type CredentialStatus, type InstalledConnector, type MarketConnector, type SavedLogin,
+ type ComposioApp, type ConnectionRequest, type MarketConnector,
} from './market-models'
-import { ErrorText, Field, FormSheet, filled } from './pieces'
-import { pluginsFor, usePlugins } from './plugins'
+import { Field, FormSheet } from './pieces'
+import { pluginsFor } from './plugins'
const caption = { ...font('caption'), color: 'var(--secondary)' }
@@ -113,185 +112,3 @@ export function ConnectionRequestCard({ entry }: { entry: Entry }) {
</div>
)
}
-
-export function CredentialsView() {
- const store = useStore()
- const plugins = usePlugins(store)
- const [selected, setSelected] = useState<InstalledConnector | null>(null)
- const [token, setToken] = useState('')
- const [status, setStatus] = useState<CredentialStatus | null>(null)
- const [busy, setBusy] = useState(false)
- const [error, setError] = useState<string | null>(null)
-
- useEffect(() => {
- void (async () => {
- await plugins.refresh()
- const client = store.client
- if (!client) return
- try {
- setStatus(await market.credentialStatus(client))
- } catch (e) {
- setError(errorText(e))
- }
- })()
- }, [plugins, store])
-
- const save = async (value: string) => {
- const client = store.client
- if (!client) return
- setBusy(true)
- setError(null)
- try {
- setStatus(await market.setOnePasswordToken(client, value))
- setToken('')
- } catch (e) {
- setError(errorText(e))
- }
- setBusy(false)
- }
-
- return (
- <div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}>
- <ModalHeader title="Credentials" />
- <CardForm>
- <CardSection title="Storage">
- <span>{status?.provider ?? 'System credential store'}</span>
- <span style={{ color: 'var(--secondary)' }}>Credentials are encrypted on the connected computer. Linux uses Secret Service; macOS uses Keychain.</span>
- </CardSection>
- <CardSection title="Saved connections">
- {plugins.installedConnectors.filter((c) => c.keys.length > 0).map((c) => (
- <button key={c.id} className="plain-row-button" onClick={() => setSelected(c)}>
- <span style={{ flex: 1 }}>{c.name}</span>
- <Icon name="chevron.right" size={10} />
- </button>
- ))}
- <span style={caption}>Values stay hidden. Select a connection to replace its credentials.</span>
- </CardSection>
- <LoginsSection />
- <CardSection title="1Password" footer="Use a service account with read access only to a dedicated shared vault. The 1Password CLI must be installed on the computer.">
- <span>{status?.onePasswordConnected ? 'Connected' : 'Connect a shared vault'}</span>
- <Field value={token} onChange={setToken} placeholder="Service account token" secret />
- <div><Button disabled={busy || !token} onClick={() => void save(token)}>Connect</Button></div>
- {status?.onePasswordConnected ? <div><Button kind="secondary" disabled={busy} onClick={() => void save('')}>Disconnect</Button></div> : null}
- <span style={{ ...font('footnote'), color: 'var(--secondary)' }}>Use op://vault/item/field in a connector's credential field. Codync retrieves the value when the connector runs.</span>
- </CardSection>
- {busy ? <Spinner /> : null}
- {error ? <ErrorText text={error} /> : null}
- </CardForm>
- <FormSheet open={selected !== null} onClose={() => setSelected(null)}>
- {selected ? <ConnectorCredentialEditor key={selected.id} connector={selected} /> : null}
- </FormSheet>
- </div>
- )
-}
-
-/** Website and app logins bots type through the computer tool; passwords stay hidden. */
-function LoginsSection() {
- const store = useStore()
- const [logins, setLogins] = useState<SavedLogin[]>([])
- const [site, setSite] = useState('')
- const [username, setUsername] = useState('')
- const [password, setPassword] = useState('')
- const [busy, setBusy] = useState(false)
- const [error, setError] = useState<string | null>(null)
-
- const load = async () => {
- const client = store.client
- try {
- setLogins(client ? await market.logins(client) : [])
- } catch (e) {
- setError(errorText(e))
- }
- }
-
- useEffect(() => {
- void load()
- }, [])
-
- const save = async () => {
- const client = store.client
- if (!client) return
- setBusy(true)
- setError(null)
- try {
- await market.saveLogin(client, site, username, password)
- setSite('')
- setUsername('')
- setPassword('')
- await load()
- } catch (e) {
- setError(errorText(e))
- }
- setBusy(false)
- }
-
- const remove = async (login: SavedLogin) => {
- const client = store.client
- if (!client) return
- try {
- await market.removeLogin(client, login.id)
- setLogins((old) => old.filter((l) => l.id !== login.id))
- } catch (e) {
- setError(errorText(e))
- }
- }
-
- return (
- <CardSection title="Sign-ins" footer="Bots type these into the matching website or app and never see the password. You can use an op:// reference.">
- {logins.map((login) => (
- <div key={login.id} style={{ display: 'flex', alignItems: 'center' }}>
- <div style={{ display: 'flex', flexDirection: 'column', gap: 2, flex: 1, minWidth: 0 }}>
- <span>{login.site}</span>
- {login.username ? <span style={caption}>{login.username}</span> : null}
- </div>
- <IconButton title="Remove" icon="trash" onClick={() => void remove(login)} />
- </div>
- ))}
- <Field value={site} onChange={setSite} placeholder="Website or app, e.g. github.com" />
- <Field value={username} onChange={setUsername} placeholder="Username or email" />
- <Field value={password} onChange={setPassword} placeholder="Password or op:// reference" secret />
- <div><Button disabled={busy || !site || !password} onClick={() => void save()}>Save sign-in</Button></div>
- {error ? <span style={{ ...font('footnote'), color: 'var(--danger)' }}>{error}</span> : null}
- </CardSection>
- )
-}
-
-function ConnectorCredentialEditor({ connector }: { connector: InstalledConnector }) {
- const store = useStore()
- const dismiss = useDismiss()
- const [fields, setFields] = useState<Record<string, string>>({})
- const [saving, setSaving] = useState(false)
- const [error, setError] = useState<string | null>(null)
-
- const save = async () => {
- const client = store.client
- if (!client) return
- setSaving(true)
- setError(null)
- try {
- await market.updateConnectorCredentials(client, connector.id, filled(fields))
- setFields({})
- dismiss()
- } catch (e) {
- setError(errorText(e))
- }
- setSaving(false)
- }
-
- return (
- <div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}>
- <ModalHeader
- title={connector.name}
- trailing={saving ? <Spinner /> : <IconButton title="Save credentials" icon="checkmark" disabled={Object.values(fields).every((v) => !v)} onClick={() => void save()} />}
- />
- <CardForm>
- <CardSection footer="Enter only the values you want to replace. You can use an op:// reference.">
- {connector.keys.map((key) => (
- <Field key={key} label={key} value={fields[key] ?? ''} placeholder={key} secret onChange={(v) => setFields((old) => ({ ...old, [key]: v }))} />
- ))}
- </CardSection>
- {error ? <ErrorText text={error} /> : null}
- </CardForm>
- </div>
- )
-}
diff --git a/apps/desktop/src/renderer/views/marketplace/CredentialsView.tsx b/apps/desktop/src/renderer/views/marketplace/CredentialsView.tsx
new file mode 100644
index 00000000..f51f6d5d
--- /dev/null
+++ b/apps/desktop/src/renderer/views/marketplace/CredentialsView.tsx
@@ -0,0 +1,200 @@
+import { useEffect, useState } from 'react'
+import { Button, CardForm, CardSection, IconButton, Spinner } from '../../components/Controls'
+import { Icon } from '../../components/Icon'
+import { ModalHeader, useDismiss } from '../../components/Overlay'
+import { font } from '../../lib/fonts'
+import { useStore } from '../../store/context'
+import { errorText, market, type CredentialStatus, type InstalledConnector, type SavedLogin } from './market-models'
+import { ErrorText, Field, FormSheet, ScreenHeader, filled } from './pieces'
+import { usePlugins } from './plugins'
+import './credentials.css'
+
+const caption = { ...font('caption'), color: 'var(--secondary)' }
+
+export function CredentialsView({ onBack }: { onBack: () => void }) {
+ const dismiss = useDismiss()
+ const store = useStore()
+ const plugins = usePlugins(store)
+ const [selected, setSelected] = useState<InstalledConnector | null>(null)
+ const [token, setToken] = useState('')
+ const [status, setStatus] = useState<CredentialStatus | null>(null)
+ const [busy, setBusy] = useState(false)
+ const [error, setError] = useState<string | null>(null)
+
+ useEffect(() => {
+ void (async () => {
+ await plugins.refresh()
+ const client = store.client
+ if (!client) return
+ try {
+ setStatus(await market.credentialStatus(client))
+ } catch (e) {
+ setError(errorText(e))
+ }
+ })()
+ }, [plugins, store])
+
+ const save = async (value: string) => {
+ const client = store.client
+ if (!client) return
+ setBusy(true)
+ setError(null)
+ try {
+ setStatus(await market.setOnePasswordToken(client, value))
+ setToken('')
+ } catch (e) {
+ setError(errorText(e))
+ }
+ setBusy(false)
+ }
+
+ return (
+ <div className="credentials-page">
+ <ScreenHeader title="Credentials" onBack={onBack} trailing={<IconButton title="Close" icon="xmark" onClick={dismiss} />} />
+ <CardForm>
+ <CardSection title="Storage">
+ <div className="credential-storage"><Icon name="lock.shield" size={20} /><div><strong>{status?.provider ?? 'System credential store'}</strong><p>Encrypted on the connected computer.</p></div></div>
+ </CardSection>
+ <CardSection title="Saved connections">
+ {plugins.installedConnectors.filter((c) => c.keys.length > 0).map((c) => (
+ <button key={c.id} className="plain-row-button" onClick={() => setSelected(c)}>
+ <span style={{ flex: 1 }}>{c.name}</span>
+ <Icon name="chevron.right" size={10} />
+ </button>
+ ))}
+ {!plugins.installedConnectors.some((c) => c.keys.length > 0) ? <span style={caption}>No saved connection credentials yet.</span> : null}
+ <span style={caption}>Values stay hidden. Select a connection to replace its credentials.</span>
+ </CardSection>
+ <LoginsSection />
+ <CardSection title="1Password" footer="Use a service account with read access only to a dedicated shared vault. The 1Password CLI must be installed on the computer.">
+ <span>{status?.onePasswordConnected ? 'Connected' : 'Connect a shared vault'}</span>
+ <CredentialField label="Service account token" value={token} onChange={setToken} placeholder="Paste your token" secret />
+ <div><Button disabled={busy || !token} onClick={() => void save(token)}>Connect</Button></div>
+ {status?.onePasswordConnected ? <div><Button kind="secondary" disabled={busy} onClick={() => void save('')}>Disconnect</Button></div> : null}
+ <span style={{ ...font('footnote'), color: 'var(--secondary)' }}>Use op://vault/item/field in a connector's credential field. Codync retrieves the value when the connector runs.</span>
+ </CardSection>
+ {busy ? <Spinner /> : null}
+ {error ? <ErrorText text={error} /> : null}
+ </CardForm>
+ <FormSheet open={selected !== null} onClose={() => setSelected(null)}>
+ {selected ? <ConnectorCredentialEditor key={selected.id} connector={selected} /> : null}
+ </FormSheet>
+ </div>
+ )
+}
+
+/** Website and app logins bots type through the computer tool; passwords stay hidden. */
+function LoginsSection() {
+ const store = useStore()
+ const [logins, setLogins] = useState<SavedLogin[]>([])
+ const [site, setSite] = useState('')
+ const [username, setUsername] = useState('')
+ const [password, setPassword] = useState('')
+ const [busy, setBusy] = useState(false)
+ const [error, setError] = useState<string | null>(null)
+
+ const load = async () => {
+ const client = store.client
+ try {
+ setLogins(client ? await market.logins(client) : [])
+ } catch (e) {
+ setError(errorText(e))
+ }
+ }
+
+ useEffect(() => {
+ void load()
+ }, [])
+
+ const save = async () => {
+ const client = store.client
+ if (!client) return
+ setBusy(true)
+ setError(null)
+ try {
+ await market.saveLogin(client, site, username, password)
+ setSite('')
+ setUsername('')
+ setPassword('')
+ await load()
+ } catch (e) {
+ setError(errorText(e))
+ }
+ setBusy(false)
+ }
+
+ const remove = async (login: SavedLogin) => {
+ const client = store.client
+ if (!client) return
+ try {
+ await market.removeLogin(client, login.id)
+ setLogins((old) => old.filter((l) => l.id !== login.id))
+ } catch (e) {
+ setError(errorText(e))
+ }
+ }
+
+ return (
+ <CardSection title="Sign-ins" footer="Bots type these into the matching website or app and never see the password. You can use an op:// reference.">
+ {logins.map((login) => (
+ <div key={login.id} style={{ display: 'flex', alignItems: 'center' }}>
+ <div style={{ display: 'flex', flexDirection: 'column', gap: 2, flex: 1, minWidth: 0 }}>
+ <span>{login.site}</span>
+ {login.username ? <span style={caption}>{login.username}</span> : null}
+ </div>
+ <IconButton title="Remove" icon="trash" onClick={() => void remove(login)} />
+ </div>
+ ))}
+ <CredentialField label="Website or app" value={site} onChange={setSite} placeholder="github.com" />
+ <CredentialField label="Username or email" value={username} onChange={setUsername} placeholder="[email protected]" />
+ <CredentialField label="Password" value={password} onChange={setPassword} placeholder="Password or op:// reference" secret />
+ <div><Button disabled={busy || !site || !password} onClick={() => void save()}>Save sign-in</Button></div>
+ {error ? <span style={{ ...font('footnote'), color: 'var(--danger)' }}>{error}</span> : null}
+ </CardSection>
+ )
+}
+
+function ConnectorCredentialEditor({ connector }: { connector: InstalledConnector }) {
+ const store = useStore()
+ const dismiss = useDismiss()
+ const [fields, setFields] = useState<Record<string, string>>({})
+ const [saving, setSaving] = useState(false)
+ const [error, setError] = useState<string | null>(null)
+
+ const save = async () => {
+ const client = store.client
+ if (!client) return
+ setSaving(true)
+ setError(null)
+ try {
+ await market.updateConnectorCredentials(client, connector.id, filled(fields))
+ setFields({})
+ dismiss()
+ } catch (e) {
+ setError(errorText(e))
+ }
+ setSaving(false)
+ }
+
+ return (
+ <div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}>
+ <ModalHeader
+ title={connector.name}
+ trailing={saving ? <Spinner /> : <IconButton title="Save credentials" icon="checkmark" disabled={Object.values(fields).every((v) => !v)} onClick={() => void save()} />}
+ />
+ <CardForm>
+ <CardSection footer="Enter only the values you want to replace. You can use an op:// reference.">
+ {connector.keys.map((key) => (
+ <Field key={key} label={key} value={fields[key] ?? ''} placeholder={key} secret onChange={(v) => setFields((old) => ({ ...old, [key]: v }))} />
+ ))}
+ </CardSection>
+ {error ? <ErrorText text={error} /> : null}
+ </CardForm>
+ </div>
+ )
+}
+
+/** Persistent labels keep a filled credential field identifiable. */
+function CredentialField({ label, ...props }: Parameters<typeof Field>[0] & { label: string }) {
+ return <label className="credential-field"><span>{label}</span><Field {...props} label={label} /></label>
+}
diff --git a/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx b/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx
index f6e844dd..3e00bd32 100644
--- a/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx
+++ b/apps/desktop/src/renderer/views/marketplace/MarketplaceView.tsx
@@ -8,7 +8,7 @@ import { useStore } from '../../store/context'
import { ComputerBadge } from '../ComputerBadge'
import { AgentSheet, AgentTile } from './AgentSheet'
import { ComposioSection } from './ComposioViews'
-import { CredentialsView } from './ConnectionRequestCard'
+import { CredentialsView } from './CredentialsView'
import { CustomConnectorSheet, InstallConnectorSheet, NewSkillSheet } from './ConnectorSheets'
import {
appendPage, emptyPage, errorText, hasHiddenItems, market, needsSignIn, replacePage, revealMore, visible,
@@ -135,12 +135,12 @@ export function MarketplaceView({ computers, computer, onComputer, appsFirst = f
}
const header = (
- <div style={{ display: 'flex', alignItems: 'center', paddingTop: 28, gap: 8 }}>
+ <div className="market-heading">
{/* Everything here lives on one computer; say which. */}
<div style={{ display: 'flex', alignItems: 'center', gap: 10, minWidth: 0 }}>
<ComputerBadge computer={store.computer} size={32} />
<div style={{ display: 'flex', flexDirection: 'column', minWidth: 0, whiteSpace: 'nowrap' }}>
- <span style={{ ...font('title2', 'semibold'), color: 'var(--text)' }}>{appsFirst ? 'Connect apps' : 'Marketplace'}</span>
+ <span style={{ ...font('title', 'semibold'), color: 'var(--text)' }}>{appsFirst ? 'Connect apps' : 'Marketplace'}</span>
{computers.length > 1 ? (
<DropdownMenu
title="Switch computer"
@@ -156,6 +156,7 @@ export function MarketplaceView({ computers, computer, onComputer, appsFirst = f
</div>
</div>
<span style={{ flex: 1 }} />
+ <Button kind="secondary" onClick={() => setShowCredentials(true)}><Icon name="lock.shield" size={12} />Credentials</Button>
{installedCount > 0 ? (
<button className="press" style={{ display: 'flex', alignItems: 'center', gap: 8, flex: 'none' }} onClick={() => setShowInstalled(true)}>
<span style={{ display: 'flex' }}>
@@ -271,12 +272,6 @@ export function MarketplaceView({ computers, computer, onComputer, appsFirst = f
</ItemGrid>
)}
</MarketSection>
- <div>
- <Button kind="secondary" onClick={() => setShowCredentials(true)}>
- <Icon name="lock.shield" size={11} />
- Credentials
- </Button>
- </div>
<MarketSection title="Make your own">
<ItemGrid>
<MarketRow
@@ -312,13 +307,10 @@ export function MarketplaceView({ computers, computer, onComputer, appsFirst = f
return (
<>
- <SlideStack base={page} top={showInstalled ? <InstalledView back={() => setShowInstalled(false)} /> : null} />
+ <SlideStack base={page} top={showCredentials ? <CredentialsView onBack={() => setShowCredentials(false)} /> : showInstalled ? <InstalledView back={() => setShowInstalled(false)} /> : null} />
<FormSheet open={installing !== null} onClose={() => setInstalling(null)}>
{installing ? <InstallConnectorSheet key={installing.name} item={installing} done={() => void loadConnectors(connectorQuery.current)} /> : null}
</FormSheet>
- <FormSheet open={showCredentials} onClose={() => setShowCredentials(false)} width={560} height={720}>
- <CredentialsView />
- </FormSheet>
<FormSheet open={addingConnector} onClose={() => setAddingConnector(false)}>
<CustomConnectorSheet />
</FormSheet>
@@ -338,8 +330,8 @@ function AgentCard({ backend, onClick }: { backend: Backend; onClick: () => void
: backend.curated === true ? 'Not installed' : 'Sets up on first use'
return (
<button className="agent-card" title={backend.name} onClick={onClick}>
- <AgentTile registry={backend.registry} icon={34} tile={64} radius={18} />
- <span style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 2, maxWidth: '100%' }}>
+ <AgentTile registry={backend.registry} icon={24} tile={40} radius={11} />
+ <span style={{ display: 'flex', flexDirection: 'column', alignItems: 'flex-start', gap: 3, minWidth: 0 }}>
<span style={{ ...font('subheadline', 'semibold'), color: 'var(--text)', ...ellipsis }}>{backend.name}</span>
<span style={{ ...font('caption'), color: 'var(--secondary)', ...ellipsis }}>{status}</span>
</span>
diff --git a/apps/desktop/src/renderer/views/marketplace/credentials.css b/apps/desktop/src/renderer/views/marketplace/credentials.css
new file mode 100644
index 00000000..b99effa9
--- /dev/null
+++ b/apps/desktop/src/renderer/views/marketplace/credentials.css
@@ -0,0 +1,48 @@
+.credentials-page {
+ display: flex;
+ flex-direction: column;
+ height: 100%;
+ min-height: 0;
+ background: var(--background);
+}
+.credentials-page > .card-form { flex: 1; min-height: 0; }
+.credentials-page .card-form-content {
+ width: 100%;
+ max-width: 620px;
+ margin: 0 auto;
+ padding: 20px 28px 32px;
+ gap: 24px;
+ font-size: calc(13px * var(--scale));
+}
+.credentials-page .card-section { gap: 10px; }
+.credentials-page .card-section-rows { background: none; border-radius: 0; gap: 10px; }
+.credentials-page .card-row { min-height: 0; padding: 0; }
+.credentials-page .card-section-rows > .hairline { display: none; }
+.credentials-page .card-section-footer { font-size: calc(11px * var(--scale)); line-height: 1.5; }
+.credentials-page .card-section + .card-section { padding-top: 22px; border-top: 1px solid var(--border); }
+.credential-storage {
+ display: flex;
+ align-items: center;
+ gap: 12px;
+ padding: 14px 16px;
+ background: var(--surface);
+ border-radius: 12px;
+}
+.credential-storage strong { font-weight: 500; }
+.credential-storage p { margin: 4px 0 0; color: var(--secondary); font-size: calc(11px * var(--scale)); }
+.credential-field { display: flex; flex-direction: column; gap: 7px; }
+.credential-field > span { font-size: calc(12px * var(--scale)); color: var(--secondary); }
+.credential-field .market-field {
+ min-height: 36px;
+ padding: 9px 12px;
+ background: var(--surface);
+ border-radius: 9px;
+ box-shadow: inset 0 0 0 1px var(--border);
+ transition: box-shadow var(--hover);
+}
+.credential-field .market-field:focus-visible { outline-offset: 2px; }
+.credentials-page .plain-row-button { min-height: 38px; padding: 8px 10px; border-radius: 8px; }
+.credentials-page .plain-row-button:hover { background: var(--surface); }
+@media (max-width: 600px) {
+ .credentials-page .card-form-content { padding: 16px; }
+}
diff --git a/apps/desktop/src/renderer/views/marketplace/marketplace.css b/apps/desktop/src/renderer/views/marketplace/marketplace.css
index 0e3bce0f..7ea33687 100644
--- a/apps/desktop/src/renderer/views/marketplace/marketplace.css
+++ b/apps/desktop/src/renderer/views/marketplace/marketplace.css
@@ -10,9 +10,9 @@
.market-page-content {
display: flex;
flex-direction: column;
- gap: 28px;
- padding: 20px 44px;
- max-width: 980px;
+ gap: 24px;
+ padding: 30px 36px;
+ max-width: 860px;
margin: 0 auto;
}
.market-close {
@@ -53,7 +53,7 @@
padding: 0 14px;
height: 38px;
background: var(--bubble-agent);
- border-radius: 999px;
+ border-radius: 12px;
}
.market-search input {
flex: 1;
@@ -68,7 +68,7 @@
.agent-grid {
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
+ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 12px;
}
.item-grid {
@@ -80,13 +80,14 @@
.agent-card {
display: flex;
- flex-direction: column;
+ flex-direction: row;
align-items: center;
+ text-align: left;
gap: 12px;
- padding: 18px 10px;
- border-radius: 18px;
+ padding: 10px 12px;
+ border-radius: 12px;
min-width: 0;
- background: color-mix(in srgb, var(--bubble-agent) 45%, transparent);
+ background: transparent;
transition: background-color var(--hover), transform var(--press);
}
.agent-card:hover {
@@ -189,3 +190,10 @@ textarea.market-field {
opacity: 0;
}
}
+
+.market-heading { display: flex; align-items: center; gap: 12px; padding-right: 10px; flex-wrap: wrap; }
+@media (max-width: 640px) {
+ .market-page-content { padding: 28px 18px; }
+ .item-grid { grid-template-columns: minmax(0, 1fr); }
+ .agent-grid { grid-template-columns: minmax(0, 1fr); }
+}
diff --git a/apps/desktop/src/renderer/views/sidebar-header.css b/apps/desktop/src/renderer/views/sidebar-header.css
index e5ebfc43..33df3aa2 100644
--- a/apps/desktop/src/renderer/views/sidebar-header.css
+++ b/apps/desktop/src/renderer/views/sidebar-header.css
@@ -32,3 +32,17 @@
@media (prefers-reduced-transparency: reduce) {
.sidebar:not(.compact) .sidebar-header::before { backdrop-filter: none; }
}
+
+.computer-filter-action {
+ height: 32px;
+ min-width: 44px;
+ justify-content: center;
+ flex: none;
+ border: 1px solid var(--chrome-stroke);
+ border-radius: 999px;
+ background: var(--chrome-fill);
+ transition: background-color var(--hover);
+}
+.computer-filter-action:hover {
+ background: color-mix(in srgb, var(--text) 5%, var(--chrome-fill));
+}
diff --git a/apps/ios/Kit/Sources/CodyncUI/Marketplace/ConnectionRequestCard.swift b/apps/ios/Kit/Sources/CodyncUI/Marketplace/ConnectionRequestCard.swift
index e0ecf9a3..d035deee 100644
--- a/apps/ios/Kit/Sources/CodyncUI/Marketplace/ConnectionRequestCard.swift
+++ b/apps/ios/Kit/Sources/CodyncUI/Marketplace/ConnectionRequestCard.swift
@@ -114,7 +114,7 @@ struct CredentialsView: View {
CardForm {
CardSection("Storage") {
Text(status?.provider ?? "System credential store")
- Text("Credentials are encrypted on the connected computer. Linux uses Secret Service; macOS uses Keychain.")
+ Text("Encrypted on the connected computer.")
.foregroundStyle(Palette.secondary)
}
CardSection("Saved connections") {
@@ -124,13 +124,19 @@ struct CredentialsView: View {
}
.buttonStyle(.plain)
}
+ if !model.installedConnectors.contains(where: { !$0.keys.isEmpty }) {
+ Text("No saved connection credentials yet.")
+ .font(.caption).foregroundStyle(Palette.secondary)
+ }
Text("Values stay hidden. Select a connection to replace its credentials.")
.font(.caption).foregroundStyle(Palette.secondary)
}
LoginsSection()
CardSection("1Password", footer: "Use a service account with read access only to a dedicated shared vault. The 1Password CLI must be installed on the computer.") {
Text(status?.onePasswordConnected == true ? "Connected" : "Connect a shared vault")
- SecureField("Service account token", text: $token).plainTextInput()
+ CredentialFieldRow("Service account token") {
+ SecureField("Paste your token", text: $token).plainTextInput()
+ }
Button("Connect") { save(token) }.buttonStyle(PrimaryButtonStyle()).disabled(busy || token.isEmpty)
if status?.onePasswordConnected == true {
Button("Disconnect") { save("") }.buttonStyle(SecondaryButtonStyle()).disabled(busy)
@@ -187,9 +193,15 @@ private struct LoginsSection: View {
IconButton("Remove", systemImage: "trash") { remove(login) }
}
}
- TextField("Website or app, e.g. github.com", text: $site).plainTextInput()
- TextField("Username or email", text: $username).plainTextInput()
- SecureField("Password or op:// reference", text: $password).plainTextInput()
+ CredentialFieldRow("Website or app") {
+ TextField("github.com", text: $site).plainTextInput()
+ }
+ CredentialFieldRow("Username or email") {
+ TextField("[email protected]", text: $username).plainTextInput()
+ }
+ CredentialFieldRow("Password") {
+ SecureField("Password or op:// reference", text: $password).plainTextInput()
+ }
Button("Save sign-in") { save() }
.buttonStyle(PrimaryButtonStyle())
.disabled(busy || site.isEmpty || password.isEmpty)
@@ -269,3 +281,20 @@ private struct ConnectorCredentialEditor: View {
}
}
}
+
+private struct CredentialFieldRow<Content: View>: View {
+ let title: String
+ let content: Content
+
+ init(_ title: String, @ViewBuilder content: () -> Content) {
+ self.title = title
+ self.content = content()
+ }
+
+ var body: some View {
+ VStack(alignment: .leading, spacing: 8) {
+ Text(title).font(.caption).foregroundStyle(Palette.secondary)
+ content.accessibilityLabel(title)
+ }
+ }
+}
diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.md
index 288fbdd9..66d4224e 100644
--- a/apps/ios/WhatsNew.md
+++ b/apps/ios/WhatsNew.md
@@ -9,6 +9,7 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o
### zh-Hant
+- 憑證設定欄位保留清楚的標籤,並顯示尚未儲存連線憑證的狀態。
- 對話捲到底後繼續拖動時保留自然回彈,不再突然跳回底部或閃現跳至最新訊息按鈕。
- 改善跳至最新訊息的捲動動畫,避免長對話來回跳動,並可隨時用手勢中止。
- 調整對話氣泡與文字對比,讓閱讀更清楚。
@@ -16,6 +17,7 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o
### en-US
+- Credential fields keep their labels visible, with a clearer empty state for saved connections.
- Chats bounce naturally when dragged past the bottom, without snapping back or flashing the jump-to-latest button.
- Smoother jumps to the latest message, without back-and-forth movement in long chats; dragging interrupts immediately.
- Refined chat bubbles and text contrast for clearer reading.
diff --git a/docs/design/ui-conventions.md b/docs/design/ui-conventions.md
index 6fa70cf6..bd07ca97 100644
--- a/docs/design/ui-conventions.md
+++ b/docs/design/ui-conventions.md
@@ -174,3 +174,29 @@ from Google's gstatic branding assets as examples of available integrations,
never as a connected-status indicator. The iOS native controls and terminal
layout remain platform-specific; this desktop styling applies to the common
Electron implementation on macOS, Linux and Windows.
+
+### Apps and credential settings
+
+Desktop Apps keeps Credentials in the same modal navigation stack, with a back
+button and a persistent top-level entry. Settings content is constrained to 620px,
+with flat sections and compact, explicitly labeled credential fields. Input edges
+follow the desktop control-outline exception; there are no nested filled cards.
+The existing credential APIs, secret masking, and actions are unchanged.
+
+iOS keeps its native sheet presentation and touch-sized rows, while sharing field
+labels and the saved-credentials empty state. Terminal connection forms already
+show persistent labels; the TUI has no credential-manager page or modal-card layout,
+so this desktop presentation change does not affect its keyboard workflow.
+Desktop styling is shared across macOS, Linux and Windows.
+
+Desktop modal sheets and confirmation dialogs use one subtle 1px outer outline,
+including Apps, Credentials, and Settings. The outline follows the existing corner
+radius and overlays the content without changing layout or intercepting input.
+This is an explicit exception to the filled-surface border rule. iOS keeps the
+system sheet's own edge treatment; terminal dialogs retain their existing character
+borders. Neither receives an extra desktop-style outline.
+
+The desktop sidebar computer filter shares the toolbar's subtle outline and 32px
+height, with a capsule enclosing both the computer glyph and its chevron. This
+applies in expanded and compact sidebars. iOS retains native toolbar treatment;
+terminal computer selection has no corresponding icon button.
diff --git a/docs/screenshots/apps-settings.png b/docs/screenshots/apps-settings.png
new file mode 100644
index 00000000..4010c776
Binary files /dev/null and b/docs/screenshots/apps-settings.png differ