- Dark theme page background is #5a5e60; text on it is lifted to zinc-200 / primary-100 and TallStackUI's dark labels, hints and checkbox labels are lightened so everything stays at 4.5:1. - Shared HexColor picks white or black text by the higher WCAG contrast; a native-dialog colour picker and a large work dialog component. - Customers get a header colour (customers.header_color), set on the customer page. - New job status Jatkuvat / Kausi (ongoing): open, never late, billed monthly like running jobs. - Kanban model: board columns and views, urgent threshold, per-user board preferences (density, column colours and sort), card positions, tasks of continuing jobs pinned to the board, MoveBoardCard and board queries with logged hours from TimeTracking. Co-Authored-By: Claude Opus 5.5 <[email protected]>
31 lines
1.1 KiB
PHP
31 lines
1.1 KiB
PHP
{{--
|
|
A bar chart of one series for a report, drawn by TallStackUI's server
|
|
side SVG chart. The chart is one image named by its title and summary;
|
|
the same figures are in the report's table, which the caption points to.
|
|
No legend or tooltip: their controls would sit inside the image.
|
|
--}}
|
|
@props(['title', 'summary', 'labels' => [], 'values' => [], 'formatter' => null])
|
|
|
|
<figure {{ $attributes->class('space-y-2') }}>
|
|
<figcaption class="text-base font-semibold">
|
|
{{ $title }}
|
|
<span class="block text-sm font-normal text-zinc-600 dark:text-zinc-200">{{ __('reports.chart_note') }}</span>
|
|
</figcaption>
|
|
|
|
@if ($values === [] || max(array_map('abs', $values)) == 0)
|
|
<p class="text-sm">{{ __('reports.chart_empty') }}</p>
|
|
@else
|
|
<div role="img" aria-label="{{ $title }}: {{ $summary }}" class="max-w-4xl">
|
|
<x-chart
|
|
bar
|
|
grid
|
|
fit="thin"
|
|
:labels="$labels"
|
|
:series="$values"
|
|
:formatter="$formatter"
|
|
height="220"
|
|
/>
|
|
</div>
|
|
@endif
|
|
</figure>
|