columns() — supabase Function Reference
Architecture documentation for the columns() function in PreviousRunsTab.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Integrations/CronJobs/PreviousRunsTab.tsx lines 105–147
const columns = cronJobColumns.map((col) => {
const result: Column<CronJobRun> = {
key: col.id,
name: col.name,
resizable: true,
minWidth: col.minWidth ?? 120,
headerCellClass: undefined,
renderHeaderCell: () => {
return (
<div
className={cn(
'flex items-center justify-between font-normal text-xs w-full',
col.id === 'runid' && 'ml-8'
)}
>
<p className="!text-foreground">{col.name}</p>
</div>
)
},
renderCell: (props) => {
const value = col.value(props.row)
if (['start_time', 'end_time'].includes(col.id)) {
const rawValue = (props.row as any)[(col as any).id]
if (rawValue) {
const formattedValue = dayjs(rawValue).valueOf()
return (
<div className="flex items-center">
<TimestampInfo
utcTimestamp={formattedValue}
labelFormat="DD MMM YYYY HH:mm:ss (ZZ)"
className="text-xs"
/>
</div>
)
}
}
return value
},
}
return result
})
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free