Skip to content

Commit d258fc3

Browse files
committed
chore: remove section separator comments
CLAUDE.md already rules these out ("No ==== separators. No non-TSDoc comments"), but 546 of them had accumulated across 48 files. They decorate rather than explain, and they drift: a separator says "Validation" while the code beneath it moved elsewhere, as one in workflow-columns already had. Pure deletion — no source line was touched, and lines inside template literals were skipped so nothing in a generated string changed.
1 parent 5b25865 commit d258fc3

48 files changed

Lines changed: 0 additions & 587 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/sim/app/api/v1/admin/responses.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ export function errorResponse(
5151
return NextResponse.json(body, { status })
5252
}
5353

54-
// =============================================================================
5554
// Common Error Responses
56-
// =============================================================================
5755

5856
export function unauthorizedResponse(message = 'Authentication required'): NextResponse {
5957
return errorResponse('UNAUTHORIZED', message, 401)

apps/sim/app/api/v1/admin/types.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ import type { InferSelectModel } from 'drizzle-orm'
2020
import type { Edge } from 'reactflow'
2121
import type { BlockState, Loop, Parallel } from '@/stores/workflows/workflow/types'
2222

23-
// =============================================================================
2423
// Database Model Types (inferred from schema)
25-
// =============================================================================
2624

2725
export type DbUser = InferSelectModel<typeof user>
2826
export type DbWorkspace = InferSelectModel<typeof workspace>
@@ -33,9 +31,7 @@ export type DbSubscription = InferSelectModel<typeof subscription>
3331
export type DbMember = InferSelectModel<typeof member>
3432
export type DbUserStats = InferSelectModel<typeof userStats>
3533

36-
// =============================================================================
3734
// Pagination
38-
// =============================================================================
3935

4036
export interface PaginationParams {
4137
limit: number
@@ -74,9 +70,7 @@ export function createPaginationMeta(total: number, limit: number, offset: numbe
7470
}
7571
}
7672

77-
// =============================================================================
7873
// API Response Types
79-
// =============================================================================
8074

8175
export interface AdminListResponse<T> {
8276
data: T[]
@@ -95,9 +89,7 @@ export interface AdminErrorResponse {
9589
}
9690
}
9791

98-
// =============================================================================
9992
// User Types
100-
// =============================================================================
10193

10294
export interface AdminUser {
10395
id: string
@@ -121,9 +113,7 @@ export function toAdminUser(dbUser: DbUser): AdminUser {
121113
}
122114
}
123115

124-
// =============================================================================
125116
// Workspace Types
126-
// =============================================================================
127117

128118
export interface AdminWorkspace {
129119
id: string
@@ -148,9 +138,7 @@ export function toAdminWorkspace(dbWorkspace: DbWorkspace): AdminWorkspace {
148138
}
149139
}
150140

151-
// =============================================================================
152141
// Folder Types
153-
// =============================================================================
154142

155143
export interface AdminFolder {
156144
id: string
@@ -179,9 +167,7 @@ export function toAdminFolder(dbFolder: DbWorkflowFolder): AdminFolder {
179167
}
180168
}
181169

182-
// =============================================================================
183170
// Workflow Types
184-
// =============================================================================
185171

186172
export interface AdminWorkflow {
187173
id: string
@@ -233,9 +219,7 @@ export function toAdminWorkflow(dbWorkflow: AdminWorkflowSource): AdminWorkflow
233219
}
234220
}
235221

236-
// =============================================================================
237222
// Workflow Variable Types
238-
// =============================================================================
239223

240224
export type VariableType = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'plain'
241225

@@ -246,9 +230,7 @@ export interface WorkflowVariable {
246230
value: unknown
247231
}
248232

249-
// =============================================================================
250233
// Export/Import Types
251-
// =============================================================================
252234

253235
export interface WorkflowExportState {
254236
blocks: Record<string, BlockState>
@@ -296,9 +278,7 @@ export interface WorkspaceExportPayload {
296278
folders: FolderExportPayload[]
297279
}
298280

299-
// =============================================================================
300281
// Import Types
301-
// =============================================================================
302282

303283
export interface WorkflowImportRequest {
304284
workspaceId: string
@@ -328,9 +308,7 @@ export interface WorkspaceImportResponse {
328308
results: ImportResult[]
329309
}
330310

331-
// =============================================================================
332311
// Utility Functions
333-
// =============================================================================
334312

335313
/**
336314
* Extract workflow metadata from various export formats.
@@ -384,9 +362,7 @@ function getNestedString(obj: Record<string, unknown>, path: string): string | u
384362
return typeof current === 'string' ? current : undefined
385363
}
386364

387-
// =============================================================================
388365
// Organization Types
389-
// =============================================================================
390366

391367
export interface AdminOrganization {
392368
id: string
@@ -432,9 +408,7 @@ export function toAdminOrganization(dbOrg: AdminOrganizationSource): AdminOrgani
432408
}
433409
}
434410

435-
// =============================================================================
436411
// Subscription Types
437-
// =============================================================================
438412

439413
export interface AdminSubscription {
440414
id: string
@@ -470,9 +444,7 @@ export function toAdminSubscription(dbSub: DbSubscription): AdminSubscription {
470444
}
471445
}
472446

473-
// =============================================================================
474447
// Member Types
475-
// =============================================================================
476448

477449
export interface AdminMember {
478450
id: string
@@ -492,9 +464,7 @@ export interface AdminMemberDetail extends AdminMember {
492464
billingBlocked: boolean
493465
}
494466

495-
// =============================================================================
496467
// Workspace Member Types
497-
// =============================================================================
498468

499469
export interface AdminWorkspaceMember {
500470
id: string
@@ -508,9 +478,7 @@ export interface AdminWorkspaceMember {
508478
userImage: string | null
509479
}
510480

511-
// =============================================================================
512481
// User Billing Types
513-
// =============================================================================
514482

515483
interface AdminUserBilling {
516484
userId: string
@@ -539,9 +507,7 @@ export interface AdminUserBillingWithSubscription extends AdminUserBilling {
539507
}>
540508
}
541509

542-
// =============================================================================
543510
// Organization Billing Summary Types
544-
// =============================================================================
545511

546512
export interface AdminOrganizationBillingSummary {
547513
organizationId: string
@@ -587,9 +553,7 @@ export interface AdminDeploymentVersion {
587553
deployedByName: string | null
588554
}
589555

590-
// =============================================================================
591556
// Audit Log Types
592-
// =============================================================================
593557

594558
export type DbAuditLog = InferSelectModel<typeof auditLog>
595559

apps/sim/blocks/blocks/datadog.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ export const DatadogBlock: BlockConfig<DatadogResponse> = {
8181
value: () => 'datadog_submit_metrics',
8282
},
8383

84-
// ========================
8584
// Submit Metrics inputs
86-
// ========================
8785
{
8886
id: 'series',
8987
title: 'Metrics Data (JSON)',
@@ -113,9 +111,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
113111
},
114112
},
115113

116-
// ========================
117114
// Query Timeseries inputs
118-
// ========================
119115
{
120116
id: 'query',
121117
title: 'Query',
@@ -179,9 +175,7 @@ Return ONLY the numeric timestamp - no explanations, no quotes, no extra text.`,
179175
},
180176
},
181177

182-
// ========================
183178
// Create Event inputs
184-
// ========================
185179
{
186180
id: 'title',
187181
title: 'Event Title',
@@ -251,9 +245,7 @@ Return the event description text directly - no extra formatting needed.`,
251245
mode: 'advanced',
252246
},
253247

254-
// ========================
255248
// Create Monitor inputs
256-
// ========================
257249
{
258250
id: 'name',
259251
title: 'Monitor Name',
@@ -366,9 +358,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
366358
},
367359
},
368360

369-
// ========================
370361
// Get Monitor inputs
371-
// ========================
372362
{
373363
id: 'monitorId',
374364
title: 'Monitor ID',
@@ -378,9 +368,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
378368
required: true,
379369
},
380370

381-
// ========================
382371
// List Monitors inputs
383-
// ========================
384372
{
385373
id: 'listMonitorName',
386374
title: 'Filter by Name',
@@ -398,9 +386,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
398386
mode: 'advanced',
399387
},
400388

401-
// ========================
402389
// Mute Monitor inputs
403-
// ========================
404390
{
405391
id: 'muteMonitorId',
406392
title: 'Monitor ID',
@@ -439,9 +425,7 @@ Return ONLY the numeric timestamp - no explanations, no quotes, no extra text.`,
439425
},
440426
},
441427

442-
// ========================
443428
// Query Logs inputs
444-
// ========================
445429
{
446430
id: 'logQuery',
447431
title: 'Search Query',
@@ -514,9 +498,7 @@ Return ONLY the relative time string - no explanations, no quotes, no extra text
514498
mode: 'advanced',
515499
},
516500

517-
// ========================
518501
// Send Logs inputs
519-
// ========================
520502
{
521503
id: 'logs',
522504
title: 'Logs (JSON)',
@@ -547,9 +529,7 @@ Return ONLY valid JSON - no explanations, no markdown code blocks.`,
547529
},
548530
},
549531

550-
// ========================
551532
// Create Downtime inputs
552-
// ========================
553533
{
554534
id: 'downtimeScope',
555535
title: 'Scope',
@@ -626,9 +606,7 @@ Return ONLY the numeric timestamp - no explanations, no quotes, no extra text.`,
626606
mode: 'advanced',
627607
},
628608

629-
// ========================
630609
// List Downtimes inputs
631-
// ========================
632610
{
633611
id: 'currentOnly',
634612
title: 'Current Only',
@@ -637,9 +615,7 @@ Return ONLY the numeric timestamp - no explanations, no quotes, no extra text.`,
637615
mode: 'advanced',
638616
},
639617

640-
// ========================
641618
// Cancel Downtime inputs
642-
// ========================
643619
{
644620
id: 'downtimeId',
645621
title: 'Downtime ID',
@@ -649,9 +625,7 @@ Return ONLY the numeric timestamp - no explanations, no quotes, no extra text.`,
649625
required: true,
650626
},
651627

652-
// ========================
653628
// Authentication (common)
654-
// ========================
655629
{
656630
id: 'apiKey',
657631
title: 'API Key',

apps/sim/blocks/blocks/datagma.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ export const DatagmaBlock: BlockConfig<DatagmaResponse> = {
5252
value: () => 'datagma_find_email',
5353
},
5454

55-
// -------------------------------------------------------------------------
5655
// Find Email
57-
// -------------------------------------------------------------------------
5856
{
5957
id: 'fe_fullName',
6058
title: 'Full Name',
@@ -80,9 +78,7 @@ export const DatagmaBlock: BlockConfig<DatagmaResponse> = {
8078
mode: 'advanced',
8179
},
8280

83-
// -------------------------------------------------------------------------
8481
// Enrich Person
85-
// -------------------------------------------------------------------------
8682
{
8783
id: 'ep_data',
8884
title: 'Email, LinkedIn URL, or Full Name',
@@ -130,9 +126,7 @@ export const DatagmaBlock: BlockConfig<DatagmaResponse> = {
130126
mode: 'advanced',
131127
},
132128

133-
// -------------------------------------------------------------------------
134129
// Enrich Company
135-
// -------------------------------------------------------------------------
136130
{
137131
id: 'ec_data',
138132
title: 'Company Domain, Name, or SIREN',
@@ -166,9 +160,7 @@ export const DatagmaBlock: BlockConfig<DatagmaResponse> = {
166160
mode: 'advanced',
167161
},
168162

169-
// -------------------------------------------------------------------------
170163
// Find Phone
171-
// -------------------------------------------------------------------------
172164
{
173165
id: 'fp_username',
174166
title: 'LinkedIn URL',
@@ -185,9 +177,7 @@ export const DatagmaBlock: BlockConfig<DatagmaResponse> = {
185177
condition: { field: 'operation', value: 'datagma_find_phone' },
186178
},
187179

188-
// -------------------------------------------------------------------------
189180
// API Key — hidden on hosted Sim for operations with hosted-key support
190-
// -------------------------------------------------------------------------
191181
{
192182
id: 'apiKey',
193183
title: 'API Key',

apps/sim/blocks/blocks/google_maps.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ export const GoogleMapsBlock: BlockConfig = {
124124
condition: { field: 'operation', value: 'speed_limits' },
125125
},
126126

127-
// ========== Geocode ==========
128127
{
129128
id: 'address',
130129
title: 'Address',

0 commit comments

Comments
 (0)