mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
* Redo cron ui to use a data table * Add component for form header * Add next run column * add cron jobs page * Load jobs from url, add runs footer, link to logs * Type issue * Fix height of tab area * Use nuqs with history * improve pgcron logs, add severity filters * Check for v1.5 to see if seconds are supported * fix cron jobs logs table name * Add type to the table * Move expression warning to own function * Fit to new layout * Types * Fix long code blocks * Revert some of the changes. * Use job name as a tab name. Other minor fixes. * Use Infinite query for the cron runs. * Revert some extra changes. Will be added to another PR. * Rename pg functions --------- Co-authored-by: Terry Sutton <saltcod@gmail.com> Co-authored-by: Jordi Enric <jordi.err@gmail.com>
15 lines
573 B
TypeScript
15 lines
573 B
TypeScript
export default function CronJobsEmptyState({ page }: { page: string }) {
|
|
return (
|
|
<div className=" text-center h-full w-full items-center justify-center rounded-md px-4 py-12 ">
|
|
<p className="text-sm text-foreground">
|
|
{page === 'jobs' ? 'No cron jobs created yet' : 'No runs for this cron job yet'}
|
|
</p>
|
|
<p className="text-sm text-foreground-lighter">
|
|
{page === 'jobs'
|
|
? 'Create one by clicking "Create a new cron job"'
|
|
: 'Check the schedule of your cron jobs to see when they run'}
|
|
</p>
|
|
</div>
|
|
)
|
|
}
|