Skip to content

Commit 39923b9

Browse files
committed
fix(search): clarify reconnect recovery and receipt states
1 parent d077dce commit 39923b9

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎apps/docs/content/docs/search/connect-your-account.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ After your admin adds a source in **Settings → Sources**, connect your own acc
2222
variant="overview"
2323
/>
2424

25-
If your organization makes another connection available, choose **Add account** in the header. When several accounts are connected, select an account to see its permissions and connection actions.
25+
Your organization currently supports one connected account per provider. Open the app to see that account's permissions and connection actions.
2626

2727
The connection is usable when authorization completes; no initial indexing run is required. If a provider is missing, ask an admin to add it in **Sources**. `Not configured` means its app or deployment setup needs an admin's attention.
2828

@@ -70,7 +70,7 @@ Search sources and apps used for actions share the same Integrations list. An ad
7070

7171
## Reconnect or disconnect
7272

73-
Open the app and select the account, then choose **Reconnect** in the header when a grant expires, is revoked, or needs more scopes. Reconnect with the same provider account. To use a different account, add a separate connection. A temporary provider outage does not necessarily require reconnecting.
73+
Open the app and select the account, then choose **Reconnect** in the header when a grant expires, is revoked, or needs more scopes. Reconnect with the same provider account; switching identities on an existing connection is not supported, including after disconnecting. A temporary provider outage does not necessarily require reconnecting.
7474

7575
Choose **Disconnect** in the same header to stop future use of the grant. This can affect workflows sharing the account. Review the confirmation before removing it. Disconnecting does not remove your Sim membership.
7676

‎apps/sim/components/assistant-actions/action-preview.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function ActionPreview({ action, account, full = false }: ActionPreviewPr
3232
{(account || targets.length > 0) && (
3333
<div className='flex flex-col gap-1'>
3434
{account && (
35-
<dl className='grid grid-cols-[minmax(0,5rem)_minmax(0,1fr)] items-baseline gap-x-3 text-small'>
35+
<dl className='grid grid-cols-[minmax(0,6rem)_minmax(0,1fr)] items-baseline gap-x-3 text-small'>
3636
<dt className='text-[var(--text-muted)] text-caption'>Account</dt>
3737
<dd className='min-w-0 break-all text-[var(--text-body)]'>{account}</dd>
3838
</dl>
@@ -102,7 +102,7 @@ function PreviewField({ field, compact = false, prominent = false }: PreviewFiel
102102
className={cn(
103103
'min-w-0',
104104
compact && field.format === 'text'
105-
? 'grid grid-cols-[minmax(0,5rem)_minmax(0,1fr)] items-baseline gap-x-3'
105+
? 'grid grid-cols-[minmax(0,6rem)_minmax(0,1fr)] items-baseline gap-x-3'
106106
: 'flex flex-col gap-1'
107107
)}
108108
>

‎apps/sim/components/assistant-actions/action-receipt.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function AssistantActionReceipt({ receipt }: AssistantActionReceiptProps)
8585
/>
8686
) : (
8787
<div className='flex flex-col gap-1 break-words text-[var(--text-muted)] text-small'>
88-
{receipt.account && <p>{receipt.account.displayName}</p>}
88+
<p>{receipt.account?.displayName ?? 'Account unavailable'}</p>
8989
<p>Details are no longer available for this action.</p>
9090
</div>
9191
)}

‎apps/sim/lib/credential-groups/oauth.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ async function persistGrant(
257257
existing.providerTenantId !== grant.providerTenantId)
258258
) {
259259
throw new CredentialGroupOAuthError(
260-
'Choose the original account to reconnect. Add another connection to use a different account.',
260+
'Reconnect with the account originally used for this connection. Switching to a different account is not supported for this connection.',
261261
409
262262
)
263263
}

‎apps/sim/scripts/test-assistant-actions-e2e.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,8 @@ try {
900900
}
901901
await capture('email-receipts-mobile')
902902
const response = await context.request.get(
903-
`${baseUrl.origin}/api/organizations/${organizationId}/chats/${emailChatId}/actions/receipts`
903+
`${baseUrl.origin}/api/organizations/${organizationId}/chats/${emailChatId}/actions/receipts`,
904+
{ params: { streamId: emailStreamId } }
904905
)
905906
assert.equal(response.status(), 200, await response.text())
906907
const saved = listAssistantActionReceiptsContract.response.schema.parse(await response.json())

0 commit comments

Comments
 (0)