Quality of life tweaks (#604)

This commit is contained in:
Chris Anderson 2025-01-04 15:35:38 -06:00 committed by GitHub
parent b921fef6dd
commit 1c262945f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 14 additions and 6 deletions

View file

@ -20,7 +20,7 @@ export default class EventPostJob extends Job {
options = {
delay: 0,
attempts: 1,
attempts: 2,
}
static from(data: EventPostTrigger): EventPostJob {

View file

@ -135,6 +135,7 @@
"external_id": "External ID",
"failed": "Failed",
"file": "File",
"filter": "Filter",
"finished": "Finished",
"first_name": "First Name",
"fonts": "Fonts",

View file

@ -135,6 +135,7 @@
"external_id": "ID externo",
"failed": "Fracasado",
"file": "Archivo",
"filter": "Filtro",
"finished": "Completo",
"first_name": "Nombre",
"fonts": "Fuentes",

View file

@ -156,7 +156,7 @@ export function SearchTable<T extends Record<string, any>>({
entity={tagEntity}
value={params.tag ?? []}
onChange={tag => setParams({ ...params, tag })}
placeholder="Filter By Tag..."
placeholder={t('filter')}
/>,
)
}

View file

@ -4,6 +4,10 @@
border-radius: var(--border-radius);
}
.recharts-cartesian-axis-ticks {
padding-top: 10px;
}
.recharts-cartesian-grid-horizontal line {
stroke: var(--color-grey);
}

View file

@ -28,10 +28,12 @@ const Chart = ({ series }: { series: Series[] }) => {
}}
>
<XAxis dataKey="date"
tickFormatter={date => format(date, 'HH:mm aa')}
tickFormatter={date => format(date, 'h:mm aa')}
type="number"
domain = {['auto', 'auto']}
tick={{ fontSize: 12 }} />
domain = {['dataMin', 'dataMax']}
tick={{ fontSize: 12 }}
tickCount={15}
tickMargin={8} />
<YAxis tick={{ fontSize: 12 }} tickFormatter={count => count.toLocaleString() } />
<CartesianGrid vertical={false} />
<Tooltip
@ -152,7 +154,7 @@ export default function Performance() {
{jobMetrics && <Chart series={jobMetrics} />}
{failed.length && <>
<Heading size="h4" title="Failed" />
<Heading size="h4" title="Failed Jobs" />
<div className="failed">
<DataTable items={failed} columns={[
{ key: 'id', title: 'ID' },