mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-28 11:46:02 +08:00
Quality of life tweaks (#604)
This commit is contained in:
parent
b921fef6dd
commit
1c262945f3
6 changed files with 14 additions and 6 deletions
|
@ -20,7 +20,7 @@ export default class EventPostJob extends Job {
|
|||
|
||||
options = {
|
||||
delay: 0,
|
||||
attempts: 1,
|
||||
attempts: 2,
|
||||
}
|
||||
|
||||
static from(data: EventPostTrigger): EventPostJob {
|
||||
|
|
|
@ -135,6 +135,7 @@
|
|||
"external_id": "External ID",
|
||||
"failed": "Failed",
|
||||
"file": "File",
|
||||
"filter": "Filter",
|
||||
"finished": "Finished",
|
||||
"first_name": "First Name",
|
||||
"fonts": "Fonts",
|
||||
|
|
|
@ -135,6 +135,7 @@
|
|||
"external_id": "ID externo",
|
||||
"failed": "Fracasado",
|
||||
"file": "Archivo",
|
||||
"filter": "Filtro",
|
||||
"finished": "Completo",
|
||||
"first_name": "Nombre",
|
||||
"fonts": "Fuentes",
|
||||
|
|
|
@ -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')}
|
||||
/>,
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue