Repository navigation
feat: make the deployment footprint panel calm and readable - #1277
Merged
Merged
Conversation
Deploying edgewatch with
|
| Latest commit: |
c19262a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://a8b801f6.edgewatch-cpd.pages.dev |
| Branch Preview URL: | https://ui-sleek-footprint.edgewatch-cpd.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
The Overview's Deployment footprint panel is redesigned. It showed six boxed tiles with tiny uppercase labels that truncated at 1280px and below ("HOST OBSERVATI…"). The two sandbox statuses ("Enforced · NET_RAW · Landlock · seccomp") were set in the large value font, so they wrapped over two to four lines and left a ragged second row.
Counters
clamp(16px, …cqi, 21px)), so an eight-digit count still fits its cell; a longer one wraps inside the cell instead of running into the next.<time>element.Process isolation
The sandboxes move out of the counter grid into their own Process isolation section, with one row per sandbox (Scanners, Notifications):
UID 65532), Landlock, and seccomp, each marked ✓ holding, ✗ unavailable, or – off. Screen readers hear "Landlock: unavailable". The kept capabilities follow as a quiet "Keeps NET_RAW".scanner.sandboxis off.";How it was designed and reviewed
internal/sandbox, responsive edge cases, and code and tests. Two skeptics checked each finding.Validation
npm run lint,npm run build,npm run test:coverage: 51 files, 565 tests; frontend coverage gates pass.src/pages/Dashboard.tsxis at 98.6% lines.src/pages/Dashboard.test.tsxandDashboard.units.test.tsxnow check:e2e/deployment-footprint.spec.ts(new) renders the panel with eight-digit counters and degraded sandboxes, and the five-counter unit view, at 320, 390, 1000, 1280 and 1440px. It requires:It fails against the previous fixed 21px no-wrap counters.
npm run test:e2e: 153 passed.npm --prefix docs run build:container-hardening.mdnow describes the Process isolation section.