fix(sonar): locale-aware sorts, linear share and redaction patterns, focus only on controls

This commit is contained in:
Maurice
2026-10-22 18:48:51 +02:00
parent e291735c95
commit c8ce36e9af
14 changed files with 290 additions and 94 deletions
@@ -329,8 +329,10 @@ export function ChangeRows({ items, folded, excluded, disabled, undone, undoable
const Group = view?.Group;
const Run = view?.Run;
const body: ReactNode[] = [];
for (let i = 0; i < run.length; i++) {
let i = 0;
while (i < run.length) {
let end = i;
let next = i + 1;
while (end < run.length && runnable(run[end] as ChangeItem, view)) end++;
if (Run && end - i >= 2) {
const taken = run.slice(i, end);
@@ -342,8 +344,9 @@ export function ChangeRows({ items, folded, excluded, disabled, undone, undoable
</CardBoundary>
);
}
i = end - 1;
next = end;
} else body.push(row(run[i] as ChangeItem));
i = next;
}
if (!Group || !first) return body;
const group = (place: 'head' | 'foot') => (
@@ -75,7 +75,7 @@ function LabelChips({ labels }: { labels: readonly CollectionCardLabel[] }) {
))}
{rest.length > 0 && (
<Tooltip label={rest.map((label) => label.name).join(', ')} placement="top">
<span tabIndex={0} className="rounded-full outline-none focus-visible:ring-2 focus-visible:ring-accent">
<span className="rounded-full">
<WhiteBadge>+{rest.length}</WhiteBadge>
</span>
</Tooltip>