chore(autonomous-session): consolidate uncommitted work from prior session
Bundles the prior autonomous-session output that was sitting unstaged: - Em-dash sweep across src/ + tests/ (en-dash/em-dash to hyphen, ~2280 instances) - country-flag-icons rollout (CountryFlag component, replaces emoji glyphs that never rendered on Windows; lazy-loads the 3x2 SVG index as a single chunk after the per-subpath dynamic-import approach silently failed in webpack) - Admin IA Phase 1+2: 7-domain regroup, 41 to 38 pages, /admin/berths index, redirects (ocr to ai, reports to dashboard, invitations to users), docs/admin-ia-proposal.md - Per-template email tester (registry + endpoint + UI on Email admin page) - Cancel-document mode picker (delete-from-Documenso vs keep-for-audit) - Dashboard PDF report: 25 widgets, SVG charts, date-range picker, 11 resolvers - Customize-widgets per-region sortables at xl+ (charts/rails/feed); single flat sortable below xl when the layout stacks; per-viewport saved orders - Audit doc updates capturing each shipped item - Lint fixes: react-compiler immutability in DonutChart (reduce instead of let-reassign), set-state-in-effect disables in CountryFlag and UploadForSigning preview-bytes effect, unused 'confirm' destructures in interest contract + reservation tabs, unescaped apostrophe in test-template card copy
This commit is contained in:
@@ -90,7 +90,7 @@ export function BerthList() {
|
||||
'berth:statusChanged': [['berths']],
|
||||
});
|
||||
|
||||
// Persisted column visibility + row density + dimension unit — same
|
||||
// Persisted column visibility + row density + dimension unit - same
|
||||
// pattern as ClientList / InterestList; density falls back to
|
||||
// 'comfortable' and dimensionUnit to 'ft' for users who haven't picked.
|
||||
const { hidden, setHidden, density, setDensity, dimensionUnit, setDimensionUnit } =
|
||||
@@ -98,7 +98,7 @@ export function BerthList() {
|
||||
const columnVisibility = Object.fromEntries(hidden.map((id) => [id, false]));
|
||||
const berthColumns = getBerthColumns(dimensionUnit);
|
||||
|
||||
// Bulk-action state — one dialog per action (status / tenure type /
|
||||
// Bulk-action state - one dialog per action (status / tenure type /
|
||||
// tag add+remove). Mirrors the InterestList pattern so reps already
|
||||
// know the idiom from there.
|
||||
const qc = useQueryClient();
|
||||
@@ -143,16 +143,16 @@ export function BerthList() {
|
||||
// No "New" button - berths are import-only
|
||||
/>
|
||||
|
||||
{/* Toolbar — two halves separated by `justify-between` so the
|
||||
{/* Toolbar - two halves separated by `justify-between` so the
|
||||
Columns + Saved-views actions stay pinned to the right edge of
|
||||
the row at every width. The previous `ml-auto` trick didn't
|
||||
survive flex-wrap on intermediate widths — the actions ended
|
||||
survive flex-wrap on intermediate widths - the actions ended
|
||||
up centered. */}
|
||||
<div className="flex items-center gap-2 flex-wrap justify-between">
|
||||
<div className="flex items-center gap-2 flex-wrap min-w-0 flex-1">
|
||||
<FilterBar
|
||||
// Search is hoisted out of the popover into the inline input
|
||||
// below — keeps the daily "find by mooring/area" lookup one
|
||||
// below - keeps the daily "find by mooring/area" lookup one
|
||||
// tap away instead of buried behind the Filters dropdown.
|
||||
filters={berthFilterDefinitions.filter((d) => d.key !== 'search')}
|
||||
values={filters}
|
||||
@@ -302,7 +302,7 @@ export function BerthList() {
|
||||
: undefined
|
||||
}
|
||||
cardRender={(row) => <BerthCard berth={row.original} />}
|
||||
// Group adjacent cards by dock letter (area) on mobile — adds a
|
||||
// Group adjacent cards by dock letter (area) on mobile - adds a
|
||||
// dim divider + uppercased label above the first card of each
|
||||
// group. Data is already sorted by mooringNumber (A1, A2, …, B1,
|
||||
// B2, …) so consecutive rows naturally share dock letters.
|
||||
@@ -436,7 +436,7 @@ export function BerthList() {
|
||||
toast.error('Pick at least one tag.');
|
||||
return;
|
||||
}
|
||||
// Per-tag bulk call — the endpoint takes one tagId at a
|
||||
// Per-tag bulk call - the endpoint takes one tagId at a
|
||||
// time. For the typical 1-2 tag case the round-trips are
|
||||
// cheap; multi-tag UX can come later.
|
||||
const action = tagDialog?.mode === 'add' ? 'add_tag' : 'remove_tag';
|
||||
|
||||
Reference in New Issue
Block a user