Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d84cba6
chore(self-hosting): add health check endpoint (#3562)
PlaneInABottle Mar 13, 2026
9229002
fix(execution): queued execution finalization and async correlation (…
PlaneInABottle Mar 13, 2026
7e740e6
improvement(copilot): state persistence, subflow recreation, dynamic …
icecrasher321 Mar 14, 2026
5b9f0d7
feat(mothership): mothership (#3411)
Sg312 Mar 14, 2026
d06aa1d
fix(connectors): align connector scopes with oauth config and fix kb …
waleedlatif1 Mar 14, 2026
b2d146c
improvement(mothership): message queueing for home chat (#3576)
waleedlatif1 Mar 14, 2026
8f15be2
fix(ashby): add secretToken to webhook creation and fix trigger UX (#…
waleedlatif1 Mar 14, 2026
c738226
fix(file): bun issues with new file creation (#3582)
icecrasher321 Mar 14, 2026
9ae656c
fix(files): default file name (#3585)
icecrasher321 Mar 14, 2026
e6b2b73
fix(execution): report cancellation durability truthfully (#3550)
PlaneInABottle Mar 14, 2026
e13f52f
fix(tools): support stringified HTTP request tables (#3565)
PlaneInABottle Mar 14, 2026
f347e3f
fix(firecrawl) fix firecrawl scrape credit usage calculation (#3583)
TheodoreSpeaks Mar 14, 2026
a2f8ed0
fix lint
icecrasher321 Mar 14, 2026
00ff21a
fix(workflow) Fix embedded workflow logs (#3587)
TheodoreSpeaks Mar 14, 2026
5ba3118
feat(byok-migration) byok migration script (#3584)
TheodoreSpeaks Mar 14, 2026
cbc9f42
improvement(cleanup): remove unused old ui components (#3589)
waleedlatif1 Mar 14, 2026
952915a
fix(sidebar): collapsed sidebar shows single icons with hover dropdow…
waleedlatif1 Mar 14, 2026
75bdf46
improvement(promos): promo codes should be only stripe codes (#3591)
icecrasher321 Mar 14, 2026
f077751
fix(mothership): file materialization tools (#3586)
Sg312 Mar 14, 2026
8837f14
feat(home): expand template examples with 83 categorized templates (#…
waleedlatif1 Mar 15, 2026
f572949
fix(embedded): viewport options breaking autolayout (#3596)
icecrasher321 Mar 15, 2026
aad620c
fix(mothership): run workflow tools (run from block, run until block)…
Sg312 Mar 15, 2026
b7b575c
fix(ui) reduce redundant rerenders (#3593)
TheodoreSpeaks Mar 15, 2026
743742d
Show rendered md by default (#3594)
TheodoreSpeaks Mar 15, 2026
7ecd377
fix(tasks-ui): update in progress to be amber, added status to dropdo…
waleedlatif1 Mar 15, 2026
ad68dc1
improvement(grain): make trigger names in line with API since resourc…
icecrasher321 Mar 15, 2026
8906439
fix(notifications): credentials connection notifs showing up in right…
icecrasher321 Mar 15, 2026
aa1f605
fix(kb): auto-refresh documents after connector sync and remove redun…
waleedlatif1 Mar 15, 2026
38c8922
improvement: landing, sidebar, globals, buttons (#3590)
emir-karabeg Mar 15, 2026
6818c51
improvement(connectors): audit and harden all 30 knowledge base conne…
waleedlatif1 Mar 15, 2026
680c9cd
improvement(ui): align all public pages with dark landing theme and i…
waleedlatif1 Mar 16, 2026
395a61d
fix(deploy): consolidate deployment detection into single source of t…
waleedlatif1 Mar 16, 2026
b0870f4
fix(subagent, streaming) fix deploy subagent and task streamnig (#3610)
TheodoreSpeaks Mar 16, 2026
738d51a
fix(ui): render block handles underneath current block content (#3611)
waleedlatif1 Mar 16, 2026
6df6512
feat(tables): upload csvs (#3607)
icecrasher321 Mar 16, 2026
36e502a
fix(workflow) fix mothership double-running workflows (#3614)
TheodoreSpeaks Mar 17, 2026
c090c82
fix(mothership): add promptForToolApproval to prevent tool hang in mo…
TheodoreSpeaks Mar 17, 2026
c867801
fix(ui) Live update resources in resource main view (#3617)
TheodoreSpeaks Mar 17, 2026
974cc66
fix(ui) add embedded workflow notifications, switch tab on workflow r…
TheodoreSpeaks Mar 17, 2026
2a7b07e
Fix row_count context (#3622)
TheodoreSpeaks Mar 17, 2026
e804ea3
fix(embedded): block layout should not be dependent on viewport (#3621)
icecrasher321 Mar 17, 2026
b930ee3
improvement(tables): tables multi-select, keyboard shortcuts, and doc…
waleedlatif1 Mar 17, 2026
b3d9e54
fix(ui) fix task switch causing duplicate text renderings (#3624)
TheodoreSpeaks Mar 17, 2026
8fa4f3f
fix(mothership): thinking and subagent text (#3613)
Sg312 Mar 17, 2026
3e3c160
fix(embedded): autolayout viewport calculation for resource view (#3629)
waleedlatif1 Mar 17, 2026
1873f2d
improvement(mothership): tool display titles, html sanitization, and …
waleedlatif1 Mar 17, 2026
101fcec
fix(mothership): stream management (#3623)
Sg312 Mar 17, 2026
70d8df5
fix(ui): add back file split view (#3632)
TheodoreSpeaks Mar 17, 2026
3bd2750
fix(ui): ensure new resource tab button is always visible (#3633)
TheodoreSpeaks Mar 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
437 changes: 437 additions & 0 deletions .claude/commands/add-connector.md

Large diffs are not rendered by default.

316 changes: 316 additions & 0 deletions .claude/commands/validate-connector.md

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions .cursor/rules/landing-seo-geo.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
description: SEO and GEO guidelines for the landing page
globs: ["apps/sim/app/(home)/**/*.tsx"]
---

# Landing Page — SEO / GEO

## SEO

- One `<h1>` per page, in Hero only — never add another.
- Strict heading hierarchy: H1 (Hero) → H2 (section titles) → H3 (feature names).
- Every section: `<section id="…" aria-labelledby="…-heading">`.
- Decorative/animated elements: `aria-hidden="true"`.
- All internal routes use Next.js `<Link>` (crawlable). External links get `rel="noopener noreferrer"`.
- Navbar is a Server Component (no `'use client'`) for immediate crawlability. Logo `<Image>` has `priority` (LCP element).
- Navbar `<nav>` carries `SiteNavigationElement` schema.org markup.
- Feature lists must stay in sync with `WebApplication.featureList` in `structured-data.tsx`.

## GEO (Generative Engine Optimisation)

- **Answer-first pattern**: each section's H2 + subtitle should directly answer a user question (e.g. "What is Sim?", "How fast can I deploy?").
- **Atomic answer blocks**: each feature / template card should be independently extractable by an AI summariser.
- **Entity consistency**: always write "Sim" by name — never "the platform" or "our tool".
- **Keyword density**: first 150 visible chars of Hero must name "Sim", "AI agents", "agentic workflows".
- **sr-only summaries**: Hero and Templates each have a `<p className="sr-only">` (~50 words) as an atomic product/catalog summary for AI citation.
- **Specific numbers**: prefer concrete figures ("1,000+ integrations", "15+ AI providers") over vague claims.
80 changes: 70 additions & 10 deletions .cursor/rules/sim-queries.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -5,62 +5,122 @@ globs: ["apps/sim/hooks/queries/**/*.ts"]

# React Query Patterns

All React Query hooks live in `hooks/queries/`.
All React Query hooks live in `hooks/queries/`. All server state must go through React Query — never use `useState` + `fetch` in components for data fetching or mutations.

## Query Key Factory

Every query file defines a keys factory:
Every query file defines a hierarchical keys factory with an `all` root key and intermediate plural keys for prefix-level invalidation:

```typescript
export const entityKeys = {
all: ['entity'] as const,
list: (workspaceId?: string) => [...entityKeys.all, 'list', workspaceId ?? ''] as const,
detail: (id?: string) => [...entityKeys.all, 'detail', id ?? ''] as const,
lists: () => [...entityKeys.all, 'list'] as const,
list: (workspaceId?: string) => [...entityKeys.lists(), workspaceId ?? ''] as const,
details: () => [...entityKeys.all, 'detail'] as const,
detail: (id?: string) => [...entityKeys.details(), id ?? ''] as const,
}
```

Never use inline query keys — always use the factory.

## File Structure

```typescript
// 1. Query keys factory
// 2. Types (if needed)
// 3. Private fetch functions
// 3. Private fetch functions (accept signal parameter)
// 4. Exported hooks
```

## Query Hook

- Every `queryFn` must destructure and forward `signal` for request cancellation
- Every query must have an explicit `staleTime`
- Use `keepPreviousData` only on variable-key queries (where params change), never on static keys

```typescript
async function fetchEntities(workspaceId: string, signal?: AbortSignal) {
const response = await fetch(`/api/entities?workspaceId=${workspaceId}`, { signal })
if (!response.ok) throw new Error('Failed to fetch entities')
return response.json()
}

export function useEntityList(workspaceId?: string, options?: { enabled?: boolean }) {
return useQuery({
queryKey: entityKeys.list(workspaceId),
queryFn: () => fetchEntities(workspaceId as string),
queryFn: ({ signal }) => fetchEntities(workspaceId as string, signal),
enabled: Boolean(workspaceId) && (options?.enabled ?? true),
staleTime: 60 * 1000,
placeholderData: keepPreviousData,
placeholderData: keepPreviousData, // OK: workspaceId varies
})
}
```

## Mutation Hook

- Use targeted invalidation (`entityKeys.lists()`) not broad (`entityKeys.all`) when possible
- Invalidation must cover all affected query key prefixes (lists, details, related views)

```typescript
export function useCreateEntity() {
const queryClient = useQueryClient()
return useMutation({
mutationFn: async (variables) => { /* fetch POST */ },
onSuccess: () => queryClient.invalidateQueries({ queryKey: entityKeys.all }),
onSuccess: () => {
queryClient.invalidateQueries({ queryKey: entityKeys.lists() })
},
})
}
```

## Optimistic Updates

For optimistic mutations, use `onSettled` (not `onSuccess`) for cache reconciliation — `onSettled` fires on both success and error, ensuring the cache is always reconciled with the server.

```typescript
export function useUpdateEntity() {
const queryClient = useQueryClient()
return useMutation({
mutationFn: async (variables) => { /* ... */ },
onMutate: async (variables) => {
await queryClient.cancelQueries({ queryKey: entityKeys.detail(variables.id) })
const previous = queryClient.getQueryData(entityKeys.detail(variables.id))
queryClient.setQueryData(entityKeys.detail(variables.id), /* optimistic value */)
return { previous }
},
onError: (_err, variables, context) => {
queryClient.setQueryData(entityKeys.detail(variables.id), context?.previous)
},
onSettled: (_data, _error, variables) => {
queryClient.invalidateQueries({ queryKey: entityKeys.lists() })
queryClient.invalidateQueries({ queryKey: entityKeys.detail(variables.id) })
},
})
}
```

For optimistic mutations syncing with Zustand, use `createOptimisticMutationHandlers` from `@/hooks/queries/utils/optimistic-mutation`.

## useCallback Dependencies

Never include mutation objects (e.g., `createEntity`) in `useCallback` dependency arrays — the mutation object is not referentially stable and changes on every state update. The `.mutate()` and `.mutateAsync()` functions are stable in TanStack Query v5.

```typescript
// ✗ Bad — causes unnecessary recreations
const handler = useCallback(() => {
createEntity.mutate(data)
}, [createEntity]) // unstable reference

// ✓ Good — omit from deps, mutate is stable
const handler = useCallback(() => {
createEntity.mutate(data)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [data])
```

## Naming

- **Keys**: `entityKeys`
- **Query hooks**: `useEntity`, `useEntityList`
- **Mutation hooks**: `useCreateEntity`, `useUpdateEntity`
- **Fetch functions**: `fetchEntity` (private)
- **Mutation hooks**: `useCreateEntity`, `useUpdateEntity`, `useDeleteEntity`
- **Fetch functions**: `fetchEntity`, `fetchEntities` (private)
Loading
Loading