Add row selection, bulk delete, row numbers and page size picker to tables; redesign person profile header

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-05 20:00:21 +03:30
co-authored by Cursor
parent 71b3a7255a
commit 48de552f36
15 changed files with 565 additions and 79 deletions
+4
View File
@@ -132,6 +132,10 @@ function syncLabels(el: HTMLElement, key: string) {
if (!(el instanceof HTMLTableElement)) return;
el.dataset.tc = key;
const labels = readHeaderLabels(el);
const wantsRowNum = !labels.includes('#') && !el.hasAttribute('data-no-rownum');
if (wantsRowNum !== el.hasAttribute('data-rownum')) {
el.toggleAttribute('data-rownum', wantsRowNum);
}
const prev = labelsByTable[key];
if (!prev || prev.length !== labels.length || prev.some((v, i) => v !== labels[i])) {
labelsByTable[key] = labels;