mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
fix(sonar): locale-aware sorts, linear share and redaction patterns, focus only on controls
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user