Repository navigation
Adopt idlerthing's table layout and make headers sortable - #19
Conversation
Bring the tables in line with idlerthing's server inventory. - Every row is one line at a fixed height (30px, 25px in compact). Cells no longer wrap; long comments, event details and tags clip with an ellipsis and keep the full text in the title. The free-text column takes whatever width is left over. - The hosts table shows the DNS name inline after an override instead of on a second line. - Table links are plain text colour, and turn blue and underlined on hover. MAC addresses are muted. - Headers are a smaller, bolder uppercase strip on their own shade. - The up/total bar sits inline after the numbers and is green. - Table text is 13px (12px in compact), up from 12px and 11px. - Headers sort on click, with an arrow on the active column. IP and CIDR columns sort by a server-built key so they order numerically, time columns sort newest-first on the first click, and empty values stay at the bottom. The choice is kept per table for the browser session so saving a row edit doesn't reset it. - Exclude the browser script from Sonar coverage, as the sibling repos do; it has no test harness. - Keep "logout" on the first nav row at phone width. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d4f9089630
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
fred review:
Static review only. Codex is pending. The new browser sorting code is outside Sonar coverage due to the added exclusion. |
Review findings on PR #19. - ipSortKey now leads with the address family. As16 alone places IPv4 at ::ffff:a.b.c.d, in the middle of IPv6 space, so ::1 and ::/0 sorted before every IPv4 address and ::ffff:10.0.0.1 collided with 10.0.0.1. The ordering test gains low-valued and IPv4-mapped IPv6 cases. - A table cell whose text is actually cut off becomes a toggle: click, Enter or Space wraps the full text in place. Reading clipped comments and event details no longer depends on a hover tooltip, which keyboard and touch users cannot reach. Cells that fit get no tab stop, and the cell keeps its table role so screen readers still read it in column. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
claude: both fred findings on d4f9089 are addressed in 8b8ab44.
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
fred review: Mixed-family sort is fixed and regression-tested. The normal clipped-cell path now supports click, Enter, and Space. One remaining P3 in Static review only. Current-head Codex and CI were pending during review; Codex Security covered the previous head. |
Review finding on PR #19: clip detection ran only at DOM ready and on window resize. The embedded font uses font-display: swap, so a swap after first paint could leave a newly cut-off cell without its keyboard toggle. Re-measure when document.fonts settles and whenever a clip cell changes size (ResizeObserver). Also re-measure after clicks and typing: a row entering edit mode swaps the cell's text for an input without changing the cell's size, which left a stale tab stop on the cell being edited. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
claude: the remaining fred P3 on 8b8ab44 (clip detection missing a late font swap) is addressed in b42bc1f.
Checked in headless Chromium with the font files held back until after first paint, and with a row entering edit mode. In the held-font run the same cells were cut off before and after the swap, so that run confirms the re-measure executes without errors but does not show a state change. @codex review |
|
fred review: The late-font clipping issue is addressed: clip measurement now runs after fonts settle, with resize observation and rechecks after click and input. No additional actionable findings in the static review. Codex review is pending. No local execution. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
SonarCloud failed the gate on b42bc1f: the fonts line tested a Promise for truthiness and left it without a rejection handler (two bug-level findings, reliability rating C). - Check document.fonts, not the promise, and end the chain with .catch. - Clear the smaller findings in the same code: hoist the helpers that capture nothing (sortValue, isClipToggle), replace nested ternaries with compareExact, sortArrow and nextSortDir, use Number.parseFloat, Number.isNaN and Array.find, and write the test's ordering check as a >= b. No behaviour change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
claude: 652c479 fixes the SonarCloud gate failure on b42bc1f. The fonts line tested a Promise for truthiness and had no rejection handler (two bug-level findings); it now checks @codex review |
|
fred review: No additional actionable findings in the static review. The fonts readiness promise now has a rejection handler without testing the promise itself for truthiness. Helper extraction preserves the numeric and mixed-family key ordering, sort direction and empty-last behavior. The prior accessibility fixes remain in place. Current-head Codex code review pending. No local execution. |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|



Brings the tables in line with idlerthing's server inventory, and adds click-to-sort headers.
What changed
title. The free-text column takes whatever width is left over.aria-sorton the active column.ipKeytemplate helper), so.9comes before.10and IPv4 before IPv6.sessionStorage, so saving a row edit doesn't reset it.Worth knowing
sonar-project.propertiesgains a coverage exclusion forinternal/web/static/**, the same one ircthing, idlerthing and pmss-fleet-manager carry. The script is still analysed for bugs and smells.Testing
make vet,make license-check,make notices-checkandgo test ./...pass locally. New tests cover the IP sort key's ordering and the sort markup on a rendered page.🤖 Generated with Claude Code