Skip to content

Commit 0187f81

Browse files
committed
fix type errors and regen migration?
1 parent 4b0a4c8 commit 0187f81

12 files changed

Lines changed: 16453 additions & 19 deletions

File tree

apps/sim/app/playground/page.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ import {
8585
TableHead,
8686
TableHeader,
8787
TableRow,
88-
Tag,
8988
TagInput,
9089
type TagItem,
9190
Textarea,
@@ -381,16 +380,6 @@ export default function PlaygroundPage() {
381380
/>
382381
</div>
383382
</VariantRow>
384-
<VariantRow label='tag variants'>
385-
<Tag value='valid@email.com' variant='default' />
386-
<Tag value='secondary-tag' variant='secondary' />
387-
<Tag value='invalid-email' variant='invalid' />
388-
</VariantRow>
389-
<VariantRow label='tag with remove'>
390-
<Tag value='removable@tag.com' variant='default' onRemove={() => {}} />
391-
<Tag value='secondary-removable' variant='secondary' onRemove={() => {}} />
392-
<Tag value='invalid-removable' variant='invalid' onRemove={() => {}} />
393-
</VariantRow>
394383
<VariantRow label='secondary variant'>
395384
<div className='w-80'>
396385
<TagInput

apps/sim/app/workspace/[workspaceId]/home/components/message-content/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
Asterisk,
44
Blimp,
55
Bug,
6-
Calendar,
76
Database,
87
Eye,
98
File,
@@ -20,7 +19,7 @@ import {
2019
TerminalWindow,
2120
Wrench,
2221
} from '@/components/emcn'
23-
import { Table as TableIcon } from '@/components/emcn/icons'
22+
import { Calendar, Table as TableIcon } from '@/components/emcn/icons'
2423
import { AgentIcon } from '@/components/icons'
2524

2625
export type IconComponent = ComponentType<SVGProps<SVGSVGElement>>

apps/sim/blocks/blocks/clickhouse.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getErrorMessage } from '@sim/utils/errors'
22
import { ClickHouseIcon } from '@/components/icons'
3-
import type { BlockConfig } from '@/blocks/types'
3+
import type { BlockConfig, BlockMeta } from '@/blocks/types'
44
import { IntegrationType } from '@/blocks/types'
55
import type { ClickHouseResponse } from '@/tools/clickhouse/types'
66

@@ -69,7 +69,6 @@ export const ClickHouseBlock: BlockConfig<ClickHouseResponse> = {
6969
docsLink: 'https://docs.sim.ai/tools/clickhouse',
7070
category: 'tools',
7171
integrationType: IntegrationType.Databases,
72-
tags: ['data-warehouse', 'data-analytics'],
7372
bgColor: '#f9ff69',
7473
icon: ClickHouseIcon,
7574
subBlocks: [
@@ -464,3 +463,7 @@ export const ClickHouseBlock: BlockConfig<ClickHouseResponse> = {
464463
},
465464
},
466465
}
466+
467+
export const ClickHouseBlockMeta = {
468+
tags: ['data-warehouse', 'data-analytics'],
469+
} as const satisfies BlockMeta

apps/sim/blocks/registry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { ChatTriggerBlock } from '@/blocks/blocks/chat_trigger'
2929
import { CirclebackBlock } from '@/blocks/blocks/circleback'
3030
import { ClayBlock, ClayBlockMeta } from '@/blocks/blocks/clay'
3131
import { ClerkBlock, ClerkBlockMeta } from '@/blocks/blocks/clerk'
32-
import { ClickHouseBlock } from '@/blocks/blocks/clickhouse'
32+
import { ClickHouseBlock, ClickHouseBlockMeta } from '@/blocks/blocks/clickhouse'
3333
import { CloudflareBlock, CloudflareBlockMeta } from '@/blocks/blocks/cloudflare'
3434
import { CloudFormationBlock, CloudFormationBlockMeta } from '@/blocks/blocks/cloudformation'
3535
import { CloudWatchBlock, CloudWatchBlockMeta } from '@/blocks/blocks/cloudwatch'
@@ -616,6 +616,7 @@ const BLOCK_META_REGISTRY: Record<string, BlockMeta> = {
616616
calendly: CalendlyBlockMeta,
617617
clay: ClayBlockMeta,
618618
clerk: ClerkBlockMeta,
619+
clickhouse: ClickHouseBlockMeta,
619620
cloudflare: CloudflareBlockMeta,
620621
cloudformation: CloudFormationBlockMeta,
621622
cloudwatch: CloudWatchBlockMeta,

apps/sim/components/emcn/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export * from './components'
2+
export { Calendar } from './components/calendar/calendar'
23
export {
34
Table,
45
TableBody,

apps/sim/lib/integrations/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* serialized projection of `BlockConfig` consumed by landing + workspace UIs.
55
*/
66

7+
import type { IntegrationLandingContent } from '@/app/(landing)/integrations/data/types'
78
import type { BlockConfig, IntegrationTag } from '@/blocks/types'
89

910
/** Normalized authentication mode surfaced in the catalog. */
@@ -57,4 +58,6 @@ export interface Integration {
5758
triggerCount: number
5859
/** Authentication mode inferred from `BlockConfig.subBlocks`. */
5960
authType: AuthType
61+
/** Hand-authored landing content baked in at generation time (see landing-content.ts). */
62+
landingContent?: IntegrationLandingContent
6063
}

apps/sim/lib/knowledge/documents/service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async function assertKnowledgeBaseFileUrlsOwnership(
9797
...new Set(
9898
fileUrls
9999
.map((url) => getKnowledgeBaseStorageKey(url))
100-
.filter((key): key is string => key?.startsWith('kb/'))
100+
.filter((key): key is string => typeof key === 'string' && key.startsWith('kb/'))
101101
),
102102
]
103103
if (keys.length === 0) {
@@ -1974,7 +1974,7 @@ export async function deleteDocumentStorageFiles(
19741974
...new Set(
19751975
entries
19761976
.map((entry) => entry.storageKey)
1977-
.filter((key): key is string => key?.startsWith('kb/'))
1977+
.filter((key): key is string => typeof key === 'string' && key.startsWith('kb/'))
19781978
),
19791979
]
19801980
const ownerByKey = new Map<string, string | null>()

apps/sim/lib/posthog/events.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ export interface PostHogEventMap {
493493
| 'tool'
494494
| 'trigger'
495495
| 'tool_operation'
496+
| 'connected_account'
497+
| 'integration'
496498
| 'workflow'
497499
| 'workspace'
498500
| 'task'

bun.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
DROP TABLE "form" CASCADE;--> statement-breakpoint
2+
DROP TABLE "template_creators" CASCADE;--> statement-breakpoint
3+
DROP TABLE "template_stars" CASCADE;--> statement-breakpoint
4+
DROP TABLE "templates" CASCADE;--> statement-breakpoint
5+
DROP TYPE "public"."template_creator_type";--> statement-breakpoint
6+
DROP TYPE "public"."template_status";

0 commit comments

Comments
 (0)