Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/sim/app/(landing)/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { getBaseUrl } from '@/lib/core/utils/urls'
import { BackLink } from '@/app/(landing)/blog/[slug]/back-link'
import { ShareButton } from '@/app/(landing)/blog/[slug]/share-button'

export const dynamicParams = false

export async function generateStaticParams() {
const posts = await getAllPostMeta()
return posts.map((p) => ({ slug: p.slug }))
Expand Down
2 changes: 2 additions & 0 deletions apps/sim/app/(landing)/integrations/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const baseUrl = SITE_URL
const bySlug = new Map(allIntegrations.map((i) => [i.slug, i]))
const byType = new Map(allIntegrations.map((i) => [i.type, i]))

export const dynamicParams = false

/**
* Returns up to `limit` related integration slugs.
*
Expand Down
2 changes: 2 additions & 0 deletions apps/sim/app/(landing)/models/[provider]/[model]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import {

const baseUrl = SITE_URL

export const dynamicParams = false

export async function generateStaticParams() {
return ALL_CATALOG_MODELS.map((model) => ({
provider: model.providerSlug,
Expand Down
2 changes: 2 additions & 0 deletions apps/sim/app/(landing)/models/[provider]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import {

const baseUrl = SITE_URL

export const dynamicParams = false

export async function generateStaticParams() {
return MODEL_PROVIDERS_WITH_CATALOGS.map((provider) => ({
provider: provider.slug,
Expand Down
8 changes: 8 additions & 0 deletions apps/sim/app/workspace/[workspaceId]/home/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,14 @@ export function Home({ chatId }: HomeProps = {}) {
void stopGeneration().catch(() => {})
}, [stopGeneration, workspaceId])

const handleStopGeneration = useCallback(() => {
captureEvent(posthogRef.current, 'task_generation_aborted', {
workspace_id: workspaceId,
view: 'mothership',
})
stopGeneration()
}, [stopGeneration, workspaceId])
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated
Comment thread
waleedlatif1 marked this conversation as resolved.
Outdated

const handleSubmit = useCallback(
(text: string, fileAttachments?: FileAttachmentForApi[], contexts?: ChatContext[]) => {
const trimmed = text.trim()
Expand Down
Loading