Skip to content

Commit

Permalink
Quality of life tweaks (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
pushchris authored Jan 4, 2025
1 parent b921fef commit 1c26294
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/platform/src/client/EventPostJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class EventPostJob extends Job {

options = {
delay: 0,
attempts: 1,
attempts: 2,
}

static from(data: EventPostTrigger): EventPostJob {
Expand Down
1 change: 1 addition & 0 deletions apps/ui/public/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
"external_id": "External ID",
"failed": "Failed",
"file": "File",
"filter": "Filter",
"finished": "Finished",
"first_name": "First Name",
"fonts": "Fonts",
Expand Down
1 change: 1 addition & 0 deletions apps/ui/public/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
"external_id": "ID externo",
"failed": "Fracasado",
"file": "Archivo",
"filter": "Filtro",
"finished": "Completo",
"first_name": "Nombre",
"fonts": "Fuentes",
Expand Down
2 changes: 1 addition & 1 deletion apps/ui/src/ui/SearchTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')}
/>,
)
}
Expand Down
4 changes: 4 additions & 0 deletions apps/ui/src/views/organization/Performance.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
10 changes: 6 additions & 4 deletions apps/ui/src/views/organization/Performance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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' },
Expand Down

0 comments on commit 1c26294

Please sign in to comment.