Repository navigation
Description
Part of #450. Depends on #451 (tokens) and #452 (shared components). The layout of this page is the pattern for the other detail pages (9/9).
Problem
The Runtime Container detail page (/runtime-containers/{instanceId}/{containerId}, Components/Pages/RuntimeContainerDetail.razor) starts with a generic page title (Runtime Container Detail) and a description; the container's name follows one level lower, inside a section. The facts about the container are spread over up to seven summary cards in a two-column grid, each with its own border and shadow, so the most important ones — is it running, is there an update — have no more weight than the digest. The usage charts are 280 px high each and push the tag candidates and the findings far down.
Target
[Runtime Container detail](https://github.com/LarsLaskowski/DockerUpdateGuard/blob/eab5ae13e974c4dbca43daa187fdf603886868de/docs/ui-concept/flat-refresh/preview-runtime-container-detail.png?raw=true)
Sample data. The mockup leaves out the sections Update findings and Scan history; they stay on the page and are specified below. The header navigation is part of #454.
Scope
1. Page header
PageHeader (#452) with:
- Breadcrumb:
Runtime Containersas a link to/runtime-containersin--dug-link, a slash, and the container name as text; 13 px. - Title: the container name.
- Next to the title: the runtime status as a
StatusChip(tone per [UI] Flat refresh 2/9: shared components for status, severity, page header, panel and tables #452) and the update state as aStatusChipin its tone, with the available version after a middle dot when there is one (Update available · v3.2.0). - Description line:
{instance name} · observed {date and time}; the instance name links to/docker-instances/{id}.
The generic title Runtime Container Detail and its description are removed from the page; the browser tab title is unchanged.
2. Two columns
A wrapping row with a 24 px gap: the main column (takes the remaining width, at least 560 px) and the Details column (320 px basis, top-aligned). When the row wraps, Details comes first, directly after the header.
3. Details column
One SectionPanel with the title Details holding a definition list. Each entry has a label (13 px, muted), a value (semibold) and optional further lines (13 px, muted); entries are separated by --dug-border-inner. It replaces the summary cards and shows what they show today:
| Entry | Content |
|---|---|
| Runtime image | The image reference (breaks anywhere). When the tag is an alias: {tag} · {resolved version}. The short digest as @sha256:… in a monospace font, with the full digest as title. |
| Compose project and service | {project, else stack, else Standalone} · {service, else No service label} — only when one of the three is known, as today. |
| Observed own image | The linked own image as a link to /observed-images/{id}, or No linked own image. |
| Update assessment | {state} and, after a middle dot, the available version. Below it the update message when there is one. |
| Base runtime | Only when there is a base runtime alert: a StatusChip Runtime warning (warning tone, container runs an own image) or Runtime hint (info tone), the summary and the details. |
| Vulnerabilities | Everything VulnerabilityAssessmentCard shows today (status, summary, remediation hint with its details toggle, time of the last check) and, on the right, the rescan as a secondary button Rescan with its progress state and error message. |
| Base image vulnerabilities | Only when base images have active findings: a StatusChip Findings detected in the warning tone and the summary. |
4. Main column
SectionPanels in this order. Which of them are shown follows today's conditions.
Resource usage
- Title
Resource usage, meta textCurrent value and the last 24 hours. - Three cells side by side, separated by hairlines, wrapping below 220 px each:
CPU,Memory,Network. Each has the label (13 px, muted), the current value (24 px, semibold,--dug-font-display; network as12.4 kB/s ↓ / 8.1 kB/s ↑) and under it the history of up to the 48 most recent samples of the last 24 hours. - The history is a chart of 72 px height over the full cell width without axes: CPU and memory as a line (1.5 px, constant stroke width) over an area fill (
--dug-chart-cpu/--dug-chart-cpu-fill,--dug-chart-memory/--dug-chart-memory-fill), network as two lines (--dug-chart-net-rx,--dug-chart-net-tx). Each chart hasrole="img"and anaria-label(CPU history, last 24 hours). - The chart is a shared component in
Components/Common(the Docker Instances page uses it in 8/9). Without samples the cell shows the value, orn/a, and no chart.
Available tag candidates
- Title
Available tag candidates. Under it one muted line:Manual tag preference: none.orManual tag preference: {tag}., followed bySelecting a tag stores a preference; it does not change or redeploy the container.With a stored preference a secondary buttonClear selectionsits at the right of the panel header. The separate section Manual tag preference is merged into this panel. - Table:
Tag(semibold; aStatusChipSelectedin the info tone on the stored preference),Digest(short, monospace, 13 px, muted, full digest astitle),Reason,Published(date, muted;—when unknown),Action(a secondary buttonSelect, at least 44 px high). - Select and Clear selection behave as today: disabled with progress while saving, the page reloads afterwards, an error is shown as a message on the page.
Update findings — title Update findings; the table with Type, Summary, Recommended, Tag candidates in the table style of #452; its content is unchanged.
Vulnerability findings — title Vulnerability findings, meta text {n} active · checked {date and time}; VulnerabilityFindingsTable with its filter and its toggle for resolved findings, flush in the panel.
Base image chain — title Base image chain; table Depth, Base image, Source, Vulnerabilities (a StatusChip in the tone of the vulnerability status).
Scan history — title Scan history; table Status (ScanStatusIndicator), Trigger, Started, Error; the scans of the 20 most recent snapshots, as today.
The descriptions under the section titles are removed.
5. Narrow screens and loading
- Below 960 px tables are cards ([UI] Flat refresh 2/9: shared components for status, severity, page header, panel and tables #452); the three usage cells stack.
- While loading, the page shows a header skeleton and panel skeletons in the two-column shape.
6. Cleanup
The page no longer has its own color helpers (GetScanStatusColor, GetUpdateStateColor, GetBaseRuntimeAlertColor).
Behavior that must not change
- What the page shows and how the values are computed (Web UI, Pages and routes; Update detection).
- The actions Select, Clear selection and Rescan, their error prefixes and logged actions.
- The number of samples, snapshots and scans shown.
- Persistent component state of the page.
- A route with an unknown identifier keeps its present behavior; the missing not-found state is tracked in F-036 (P5) — Detail pages conflate loading and not-found state (perpetual spinner for a missing resource) #40.
Out of scope
- Container actions through Portainer ([Feature] Trigger Portainer container actions from the runtime container page and record them as action runs #280) and a change of what a manual tag selection means ([Feature] Manual tag selection pins the update target of a runtime container #291). If one of them lands first, its controls and texts keep their meaning and take the styles of this design; the sentence about the preference is adapted to the behavior that then holds.
- The other detail pages (9/9).
Affected files
src/DockerUpdateGuard/Components/Pages/RuntimeContainerDetail.razor(.cs)- New shared chart component in
src/DockerUpdateGuard/Components/Common src/DockerUpdateGuard/wwwroot/app.css(.dug-chart,.details-grid,.summary-carduse on this page)docs/areas/web-ui.md: the Runtime Container detail row of Pages and routes
Tests
- Existing tests that follow:
RuntimeContainerDetailRenderTests(asserts the classdug-chart),RuntimeContainerDetailTests, the persistent-state tests of the page,VulnerabilityAssessmentCardTestsif the card's markup changes. - New: header with breadcrumb, both chips and the description line; each details entry including the conditional ones (compose line, base runtime, base image vulnerabilities); the usage cells with and without samples and the chart's label; the candidates panel without and with a stored preference (
Selectedchip,Clear selection); the order of the panels; the scan history with the status indicator; bUnit tests of the chart component.
Proposed acceptance criteria
- The page title is the container name with the runtime status chip and the update chip; the breadcrumb leads back to the list.
- All facts of today's summary cards appear in the Details panel, with the conditional entries shown under today's conditions.
- Resource usage shows three cells with the current value and a 72 px history chart each, colored with the chart tokens, and no chart without samples.
- The tag candidates panel shows the stored preference, marks it in the table and offers Select and Clear selection with today's behavior.
- Update findings, Vulnerability findings, Base image chain and Scan history are shown under today's conditions in the new table style, the scan status as an indicator.
- When the two columns wrap, Details comes before the other panels; the page has no horizontal overflow at 390, 768 and 1280 px.
- The chart is a shared component with tests.
docs/areas/web-ui.mddescribes the page as implemented.
Open questions for the spec
- The mockup draws the histories without axes; today's charts have axes. Proposal: small charts as drawn, plus one muted line under each with the minimum and maximum of the period, so that the scale stays readable.
- The mockup marks one candidate as
Recommended. Can the page tell which candidate the update assessment recommends (the available update version)? If yes, mark it with aStatusChipin the success tone; if not, leave the mark out. - Should the instance name in the description line link to the instance's page? Proposal: yes.
Activity
LarsLaskowski commentedon Nov 30, 2026
Squad working record
Verification matrix of feature-456-runtime-container-detail on
4c961acPageHeaderDescriptionContentRendersFragment;PageHeaderAllPartsRendersDescriptionActionsBreadcrumbAndTitleContent(kept: plain text)4c961ac: src/Tests/DockerUpdateGuard.Tests/PageHeaderTests.csRuntimeContainerDetailWithoutDetailShowsGenericHeader(DataRow: not found, load failure)4c961ac: src/Tests/DockerUpdateGuard.Tests/RuntimeContainerDetailTests.csVulnerabilityAssessmentCardEmbeddedRendersWithoutFrameAndLabel4c961ac: src/Tests/DockerUpdateGuard.Tests/VulnerabilityAssessmentCardTests.csVulnerabilityRescanControlWithButtonTextRendersLabelledTextButton;VulnerabilityRescanControlWithoutCheckedAtTextShowsNoCheckedLine4c961ac: src/Tests/DockerUpdateGuard.Tests/VulnerabilityRescanControlTests.csResourceHistoryChartShowsRangeLine(DataRow per kind);ResourceHistoryChartDrawsSamplesOldestFirst4c961ac: src/Tests/DockerUpdateGuard.Tests/ResourceHistoryChartTests.csAppStylesheetHistoryChartIs72PixelsHighInChartTokens4c961ac: src/Tests/DockerUpdateGuard.Tests/AppStylesheetRuntimeContainerDetailTests.csRuntimeContainerDetailCandidatesWithoutPreferenceShowNoneLine;RuntimeContainerDetailCandidatesWithPreferenceShowSelectedChipAndClearButton;RuntimeContainerDetailCandidatesMarkRecommendedCandidate; the existing save/clear tests (adapted)4c961ac: src/Tests/DockerUpdateGuard.Tests/RuntimeContainerDetailRenderTests.csRuntimeContainerDetailScanHistoryShowsStatusIndicatorAsync(replaces…ScanHistoryChipShowsStatusColorAsync)4c961ac: src/Tests/DockerUpdateGuard.Tests/RuntimeContainerDetailTests.csAppStylesheetDetailLayoutPlacesDetailsRightFrom960Pixels4c961ac: src/Tests/DockerUpdateGuard.Tests/AppStylesheetRuntimeContainerDetailTests.csREADME.md), step 7 Manual test; plusDetailPageSkeletonRendersHeaderAndTwoColumns(DetailPageSkeletonTests.cs) andAppStylesheetUsageCellsStackBelow960Pixels(AppStylesheetRuntimeContainerDetailTests.cs)DetailPageSkeletonRendersHeaderAndTwoColumns,AppStylesheetUsageCellsStackBelow960Pixels)ApplicationViewServiceRuntimeContainerDetailCarriesImageVersionIdAsync4c961ac: src/Tests/DockerUpdateGuard.Tests/ApplicationViewServiceTests.csdocs/areas/detail-pages.md,web-ui.mdandvulnerabilities.mdwith the built page in step 8aad39e6; two wording findings were fixedPlan (tier standard)
Plan: Runtime Container detail with a details column
Source: Issue #456 | spec.md
Tier: standard — a UI behavior change (new layout, a rescan on a new page, shared chart and tone mapping) that creates, changes or removes no security control
Security areas touched: Container actions (
Components/Pages/RuntimeContainerDetail.razor: the section is moved and restyled; offered actions, confirmation, execution and recorded runs unchanged)Problem / root cause
See spec.md, Problem.
Verified facts
IsRecommended(tag equals the evaluation's recommended tag); the available update version derives from itUI/ApplicationViewService.cs:1127,Images/RuntimeContainerScanOrchestrator.cs:1307,UI/TagCandidateViewHelper.cs:122VulnerabilityRescanControlrescans byImageVersionId, logsVulnerabilityRescan, prefixVulnerability rescan failed, invokesOnRescannedinside itstryRuntimeContainerDetail.razor;VulnerabilityRescanControl.razor.cs:87-125Checked …orNever scanneditself and has only an icon buttonVulnerabilityRescanControl.razor,.razor.cs:77RuntimeContainerDetailViewDatahas no image version id;ContainerSnapshot.ImageVersionIdexistsUI/RuntimeContainerDetailViewData.cs;DockerUpdateGuard.Data/Entities/ContainerSnapshot.cs:23GetScanStatusColorhelper (issue)GetUpdateStateColor,GetActionStatusColor,GetBaseRuntimeAlertColor(RuntimeContainerDetail.razor.cs:153-196); scan chips use the sharedScanStatusDisplayFormatter(.razor:485), which other pages keepRequested; the action history shows it orange todayUI/StatusToneFormatter.cs:22-44;RuntimeContainerDetailTests.cs:743BuildSparklinePathdraws one value at mid-height over the full width and equal values at the bottom (range 1); it scales each series alone; history arrives newest firstRuntimeContainers.razor.cs:204-270;ApplicationViewService.cs:1053PageHeader.Descriptionis plain text onlyComponents/Common/PageHeader.razor(.cs)ApplicationViewService.cs:55,1054.dug-chart(280 px) stays in use on Docker InstancesDockerInstances.razor:82-109,app.css:525docs/areas/web-ui.mdholds 4977 words; released record 0060 (v1.3.11) links its anchor#container-actions-sectiongit tag --contains 856667aapp.css:1172, page paddingapp.css:323ImageVersionIdis not client-editableImageVersionIdthe same way)Tests per criterion
RuntimeContainerDetailHeaderShowsBreadcrumbChipsAndInstanceLink;RuntimeContainerDetailHeaderWithoutVersionShowsStateOnly(DataRow:Not evaluated/Exitedneutral)RuntimeContainerDetailRenderTests.csPageHeaderDescriptionContentRendersFragment;PageHeaderAllPartsRendersDescriptionActionsBreadcrumbAndTitleContent(kept: plain text)PageHeaderTests.csRuntimeContainerDetailWithoutDetailShowsGenericHeader(DataRow: not found, load failure)RuntimeContainerDetailTests.csRuntimeContainerDetailDetailsPanelListsEntriesInOrder;RuntimeContainerDetailDetailsPanelHidesConditionalEntries;RuntimeContainerDetailBaseRuntimeEntryChipTone(DataRow linked/unlinked)RuntimeContainerDetailRenderTests.csVulnerabilityAssessmentCardEmbeddedRendersWithoutFrameAndLabelVulnerabilityAssessmentCardTests.csRuntimeContainerDetailRescanRefreshesImageVersionAndReloadsAsync;RuntimeContainerDetailFailedRescanShowsFixedReasonAndLogsAsync;RuntimeContainerDetailRescanErrorIsNotShownAfterRouteChangeAsyncRuntimeContainerDetailTests.csVulnerabilityRescanControlWithButtonTextRendersLabelledTextButton;VulnerabilityRescanControlWithoutCheckedAtTextShowsNoCheckedLineVulnerabilityRescanControlTests.csRuntimeContainerDetailUsageCellsShowValuesAndCharts;RuntimeContainerDetailUsageWithoutSamplesShowsNoChartAndEmptyTextRuntimeContainerDetailRenderTests.csResourceHistoryChartShowsRangeLine(DataRow per kind);ResourceHistoryChartDrawsSamplesOldestFirstResourceHistoryChartTests.csResourceHistoryChartLineKindRendersLabelledImageWithLineAndArea;ResourceHistoryChartNetworkDrawsTwoLinesOnOneScale;ResourceHistoryChartWithoutSamplesRendersNothingResourceHistoryChartTests.csSparklinePathBuilderSingleValueDrawsMidHeightLine;SparklinePathBuilderEqualValuesDrawMidHeightLine;SparklinePathBuilderUsesFrameScale;SparklinePathBuilderAreaPathClosesToBottom;SparklinePathBuilderEmptyValuesReturnEmptyPath;SparklinePathBuilderMultipleValuesUseCubicSegmentsSparklinePathBuilderTests.csAppStylesheetHistoryChartIs72PixelsHighInChartTokensAppStylesheetRuntimeContainerDetailTests.csRuntimeContainerDetailCandidatesWithoutPreferenceShowNoneLine;RuntimeContainerDetailCandidatesWithPreferenceShowSelectedChipAndClearButton;RuntimeContainerDetailCandidatesMarkRecommendedCandidate; the existing save/clear tests (adapted)RuntimeContainerDetailRenderTests.cs,RuntimeContainerDetailTests.csRuntimeContainerDetailMainColumnShowsPanelsInOrder(DataRow with/without actions);RuntimeContainerDetailVulnerabilityFindingsMetaText(DataRow checked/never)RuntimeContainerDetailRenderTests.csRuntimeContainerDetailScanHistoryShowsStatusIndicatorAsync(replaces…ScanHistoryChipShowsStatusColorAsync)RuntimeContainerDetailTests.csRuntimeContainerDetailDetailsPanelPrecedesMainColumnRuntimeContainerDetailRenderTests.csAppStylesheetDetailLayoutPlacesDetailsRightFrom960PixelsAppStylesheetRuntimeContainerDetailTests.csREADME.md), step 7 Manual test; plusDetailPageSkeletonRendersHeaderAndTwoColumns(DetailPageSkeletonTests.cs) andAppStylesheetUsageCellsStackBelow960Pixels(AppStylesheetRuntimeContainerDetailTests.cs)StatusToneFormatterGetStatusToneKnownValueReturnsTone(DataRowRequested→ Warning added)StatusToneFormatterTests.csRuntimeContainerDetailActionHistoryShowsStatusChipInItsToneAsync(replaces…InItsColorAsync, same five DataRows as tone classes)RuntimeContainerDetailTests.csRuntimeContainerDetailRestoredStateCarriesImageVersionIdRuntimeContainerDetailPersistentStateTests.csApplicationViewServiceRuntimeContainerDetailCarriesImageVersionIdAsyncApplicationViewServiceTests.csdocs/areas/detail-pages.md,web-ui.mdandvulnerabilities.mdwith the built page in step 8Approach
Early draft PR: no
Layout (from the spec; the Tester decides nothing):
PageHeader(breadcrumb, title, chips inTitleContent, description via the newDescriptionContent), the page error alert, thendiv.dug-detailholdingaside.dug-detail__aside(the DetailsSectionPanel, first in markup) anddiv.dug-detail__main(panels in S7 order). CSS: one column below 960 px; from 960 px a gridminmax(560px, 1fr) 320pxwith a 24 px gap, aside in column 2, both in row 1, aside top-aligned. Details is a<dl>: each entry adiv.dug-detail-list__entrywithdt(13 px, muted),ddvalue (semibold) and muted lines, separated by--dug-border-inner. Text of the update chip and the Update assessment value comes from one private staticFormatUpdateState(status, version)of the page ({status} · {version}or{status}).Shared pieces
SparklinePathBuilder(UI/) takes over the list's path code (cubic smoothing, invariant coordinates): one value → full-width line at mid-height;Minimum == Maximum→ every point at mid-height; scale from aSparklineFrame(width, height, padding, minimum, maximum;SparklineFrame.ForValuesscales to the given values).BuildAreaPathcloses the line to the bottom edge. The list calls it withForValues(100, 26, 2, series)per series; its privateBuildSparklinePathandFormatSvgCoordinatego.ResourceHistoryChart(Components/Common): parametersHistoryandKind; orders the samples oldest first; renders nothing for no samples orKindNotSet; elsediv.dug-history-chartwith ansvg(role="img",aria-label{CPU|Memory|Network} history, last 24 hours,viewBox="0 0 100 72",preserveAspectRatio="none", every pathvector-effect="non-scaling-stroke"): CPU/memory an area path (--filltoken) plus a line path; network two line paths (rx, tx) on one frame over both series. Below itspan.dug-history-chart__range:Min {FormatCpuPercent} · max {…},Min {FormatBytes} · max {…}(memory used),Max {FormatBytesPerSecond(rx)} ↓ / {…(tx)} ↑.DetailPageSkeleton(Components/Common): a header skeleton (breadcrumb, title, description lines) and thedug-detailgrid with one aside panel and two main panels ofMudSkeletons; the page shows it instead ofTableSkeleton.PageHeader.DescriptionContentwins overDescriptionwhen set, in the samep.dug-page-header__description.VulnerabilityRescanControl:ButtonTextset → an outlined default-colorMudButtonwith that text andaria-label="Rescan vulnerabilities"instead of the icon button (no tooltip);ShowCheckedAtfalse → no checked text and noNever scanned. Defaults keep the list pages unchanged.VulnerabilityAssessmentCard.Embedded→ the same content without thesummary-cardpaper and its label.StatusToneFormatter:["Requested"] = StatusTone.Warning.RuntimeContainerDetailViewData.ImageVersionIdfromlatestSnapshot.ImageVersionIdinCreateRuntimeContainerDetail.Page. Vulnerabilities entry: card
EmbeddedwithShowCheckedAtand, at its right,<VulnerabilityRescanControl @key="RouteKey" ImageVersionId=… ButtonText="Rescan" ShowCheckedAt="false" OnRescanned="HandleRescannedAsync" />; the@keygives every route a fresh control, so an earlier route's error never shows (E7);HandleRescannedAsyncawaitsLoadAsync(a failing reload reaches the control's catch: the rescan's prefix, as for Select). Chips:StatusChipwithStatusToneFormatter.GetStatusToneeverywhere (runtime, update, action run, base image chain with its severity summary); base runtime tone inline (LinkedObservedImageId.HasValue ? Warning : Info);RecommendedSuccess,SelectedInfo. Scan history:ScanStatusIndicator. Container actions: aSectionPanelwith the description asp.dug-panel__lead(muted), everything else as today. Candidates:HeaderContent=Clear selectionwith a stored preference; lead line, then the fixable chip (today's condition,StatusChipInfo), then the table;PublishedTimestampFormatter.FormatOptionalor—. Vulnerability findingsSectionPanel Flush. Empty states keep today's texts. Not found / failed load:PageHeader Title="Runtime Container Detail"with the breadcrumb link only. Usage cells:div.dug-usagegridrepeat(auto-fit, minmax(220px, 1fr)), hairlines between cells, one column below 960 px; value 24 px semibold--dug-font-display.The Dev runs the Image build check (
.razorandapp.csschange) before the review.Options considered
web-ui.md(past 5000 words) or moving its Container actions section (released record 0060 links that anchor) — lost to a new area Detail pages that the other detail pages (9/9) join.Affected projects and types
Components/Pages/RuntimeContainerDetail.razor(.cs)FormatUpdateState,HandleRescannedAsyncaddedComponents/Pages/RuntimeContainers.razor.csSparklinePathBuilderComponents/Common/ResourceHistoryChart.razor(.cs),DetailPageSkeleton.razor(.cs)Components/Common/PageHeader,VulnerabilityRescanControl,VulnerabilityAssessmentCard(.razorand.razor.cs)UI/SparklinePathBuilder.cs,UI/SparklineFrame.cs,UI/ResourceHistoryChartKind.csUI/StatusToneFormatter.cs,UI/RuntimeContainerDetailViewData.cs,UI/ApplicationViewService.csRequested;ImageVersionIdwwwroot/app.cssdug-detail*,dug-detail-list*,dug-usage*,dug-history-chart*,dug-panel__leadSignatures (for the Dev's skeleton)
public Guid ImageVersionId { get; set; }onRuntimeContainerDetailViewData[Parameter] public RenderFragment? DescriptionContent { get; set; }onPageHeader[Parameter] public string? ButtonText { get; set; }and[Parameter] public bool ShowCheckedAt { get; set; } = true;onVulnerabilityRescanControl[Parameter] public bool Embedded { get; set; }onVulnerabilityAssessmentCardpublic enum ResourceHistoryChartKind { NotSet = 0, Cpu, Memory, Network }inDockerUpdateGuard.UI, each value documentedpublic partial class ResourceHistoryChartinDockerUpdateGuard.Components.Commonwith[Parameter, EditorRequired] public IReadOnlyList<ResourceUsagePointViewData> History { get; set; } = [];and[Parameter] public ResourceHistoryChartKind Kind { get; set; }public partial class DetailPageSkeletoninDockerUpdateGuard.Components.Common, no parametersinternal sealed class SparklineFrameinDockerUpdateGuard.UIwithpublic double Width { get; init; },public double Height { get; init; },public double Padding { get; init; },public double Minimum { get; init; },public double Maximum { get; init; }andinternal static SparklineFrame ForValues(double width, double height, double padding, IEnumerable<double> values)internal static class SparklinePathBuilderinDockerUpdateGuard.UIwithinternal static string BuildLinePath(IReadOnlyList<double> values, SparklineFrame frame)andinternal static string BuildAreaPath(IReadOnlyList<double> values, SparklineFrame frame)Deleted: RuntimeContainers.BuildSparklinePath and RuntimeContainers.FormatSvgCoordinate; RuntimeContainerDetail.GetUpdateStateColor, GetActionStatusColor and GetBaseRuntimeAlertColor are removed.
The page's two private helpers are described in Approach. All names were checked against Writing code: no nested type,
no forbidden enum suffix, at most four parameters, no keyword names.
Test files
RuntimeContainerDetailRenderTests.cs,RuntimeContainerDetailTests.cs,RuntimeContainerDetailPersistentStateTests.cs,ResourceHistoryChartTests.cs(new),SparklinePathBuilderTests.cs(new),DetailPageSkeletonTests.cs(new),AppStylesheetRuntimeContainerDetailTests.cs(new),PageHeaderTests.cs,VulnerabilityRescanControlTests.cs,VulnerabilityAssessmentCardTests.cs,StatusToneFormatterTests.cs,ApplicationViewServiceTests.cs— all insrc/Tests/DockerUpdateGuard.Tests/.Existing test code to adapt (Tester):
RuntimeContainerDetailRenderTests.RuntimeContainerDetailWithHistoryRendersResponsiveChartsAndUsageCards(assertsdug-chart,summary-value) and…WithSelectionAndScanHistoryRendersUtcTimestampsAsync(preference line); inRuntimeContainerDetailTestsFindActionSection(.section-paper+h5→.dug-panel+h2), the action and scan history chip tests (above), and every selector on.section-paper/.summary-card; the three reflection tests ofRuntimeContainersTestsand its_buildSparklinePathMethodmove toSparklinePathBuilderTests.ScanStatusChipAssertandDetailPageAssertstay as they are (other pages use them). A list test with equal sparkline values, if any, now expects mid-height.Files no unit test can cover: none.
Areas
docs/areas/detail-pages.md (+450 words): scope "Layout and contents of the detail pages: header, details column, panels in order, resource history charts"; not here: routes, actions table, shared display, errors (Web UI), how values are computed (feature areas). Index row indocs/areas/README.md.docs/areas/web-ui.md (-30 words);docs/areas/vulnerabilities.md (+5 words).Documentation updates
All by the Dev, once green:
docs/areas/detail-pages.md(new, from_template.md): the Runtime Container detail as built — header, two columns and their order, the Details entries and conditions, the main panels in order with their meta texts, the usage cells, the chart (no axes, 72 px, tokens, mid-height flat line, range line), skeleton; related decision 0083. Index row indocs/areas/README.md.docs/areas/web-ui.md: Pages and routes row of the detail → one sentence linking Detail pages; ActionsRescan (per image)Where adds "Runtime Container detail (text buttonRescan, without its own last-check line)"; General scan status chip list drops "runtime container"; Shared display orange list addsRequested; Container actions section "directly after the container summary" → "as the first panel of the main column (Detail pages)", heading → panel title with the description as a muted line; Related decisions adds 0083; Not here adds Detail pages.docs/areas/vulnerabilities.md:47: the manual rescan also from the runtime container detail page.docs/ARCHITECTURE.md§9 Components\Common: add the resource history chart and the detail page skeleton, linking record 0083.Architecture check
No guarantee of
.squad/project.mdordocs/ARCHITECTURE.mdchanges: the page still reads onlyIApplicationViewService, container actions keep their service, confirmation and interactive-only availability check, and the rescan uses the existing scoped enrichment call.Security considerations
Vulnerability rescan failed: {fixed reason}(FailureReason.FromException); select/clear/actions unchanged. Never the exception text.ImageVersionIdof the shown container, as the list page does (fact 13).Decision records
docs/decisions/0083-resource-histories-are-drawn-as-svg-sparklines-from-one-shared-path-builder.md(Proposed)Out of scope / follow-ups
ResourceHistoryChartand droppingResourceUsageChartBuilderand.dug-chart(8/9); the other detail pages into Detail pages (9/9).Challenge notes
Plan challenge (mode
plan) for specs/feature-456-runtime-container-detail: /home/user/DockerUpdateGuard/specs/feature-456-runtime-container-detail/plan.mdThe plan holds up. I checked its factual claims and they are correct:
RuntimeContainerDetail.razor.cs:153-196has the helpers it lists, andGetScanStatusColordoes not exist.StatusToneFormatter.cshas noRequestedentry.BuildSparklinePath(RuntimeContainers.razor.cs:216-260) uses 100/26/2, draws a single value asM 0,13 L 100,13, and uses range 1 when all values are equal.CreateRuntimeContainerDetail(ApplicationViewService.cs:1851) haslatestSnapshotin scope.PageHeader.razorrendersDescriptionas plain text only.TagCandidateViewData.IsRecommendedexists.Temporary, so the 912 px content at 960 px stands.Tier
standardwith Security's plan review is right under Tiers. There are no major objections, only five minor ones for the Dev and Tester.Minor objections (for the plan's Challenge notes):
Minor — the Base image vulnerabilities chip tone. Give the Details entry's
Findings detectedchip a fixedStatusTone.Warning, as S3 and today's markup (RuntimeContainerDetail.razor:114,Color.Warning) say. Do not take it fromStatusToneFormatter.GetStatusTone. Evidence: the Approach says "StatusChipwithStatusToneFormatter.GetStatusToneeverywhere". But forFindings detectedwithout a severity summary,GetStatusTonereturnsStatusTone.Low(StatusToneFormatter.csGetHighestSeverityTone, theseveritySummary is nullbranch), and the view data has no summary for this entry (RuntimeContainerDetailViewData.cs:118,123). The AC3 render test should assert the warning tone class on this chip. Why minor: one chip gets the wrong tone, and the plan does not need to change.Minor — single-sample network chart on a shared frame. In
SparklinePathBuilder, draw at mid-height when the frame'sMinimum == Maximum. A single value on a frame with a non-zero range should use the frame's scale. Otherwise one network sample with rx ≠ tx draws both lines on top of each other at mid-height, which breaks "two lines on one scale" (S4, N3). The per-series callers are unaffected:ForValuesover one value gives a zero range, so the list and CPU/memory still draw mid-height for one sample (E3), and today's single-value test (RuntimeContainersTests.cs:42-49,M 0,13 L 100,13) still holds. Add a test that a single value on a frame with a non-zero range is drawn at its scaled height. Why minor: it only affects the one-sample network case.Minor — where the rescan error appears (E6). Put the embedded
VulnerabilityAssessmentCardinto the control's existingLeadingContent, withShowCheckedAt="false"on the control. Do not place the card beside a separate control. The control's split layout (VulnerabilityRescanControl.razor, theLeadingContent is not nullbranch) already renders the leading content, then the error, then the button in its own column on the right. That putsVulnerability rescan failed: …"below the Vulnerabilities entry", as E6 asks. In the plain layout the plan uses, the error<span>comes after the button'sdiv, so it lands in the button's column at the right.ShowCheckedAtmust hideCheckedTextin both branches. Why minor: the layout changes, the API does not.Minor — overflow inside the detail grid (N1/AC10). Give
.dug-detail__mainand.dug-detail__asidemin-width: 0, and assert it inAppStylesheetDetailLayoutPlacesDetailsRightFrom960Pixels. Grid items default tomin-width: auto, so a wide table row or a long unbroken value can push a cell past its track and overflow the page. Above 960 px the tables are real tables (Breakpoint.Md,RuntimeContainerDetail.razor:175,212,360,424,476) inside a main column that can be as narrow as 560 px. I have not rendered this, so it states the intent rather than a measured overflow. Why minor: it is one CSS rule, and the manual AC10 check would also catch it.Minor —
—for an unknown publish date has no test.TimestampFormatter.FormatOptionalreturnsstring.Emptyfor null (TimestampFormatter.cs:47-52), not—. The page must map null to—explicitly, and an AC7 render test should assert—in thePublishedcell for a candidate withoutPublishedAtUtc. Why minor: it is one missing assertion and one explicit branch.Log
Log: Feature 456 - Runtime Container detail with a details column
One line per pipeline step: date and time of day (UTC), step, member, result. Lead decisions and escalations
are quoted in full.
| 2026-11-30 22:47 | 12 Lessons | Orchestrator | #608 #609 |
Squad lessons
Squad run metrics
Template: LarsLaskowski/Squad-Spec-Repository-Template v2026.11.16 (commit 6faa7e3391bd)
Tokens per kind and their weighted figure (every token at its list price, in tokens of Sonnet input:
.squad/tools/session-usage.py):Session usage
Tokens per model (the session and all its subagents; Claude Code's own background calls are not in the transcripts, so this is a lower bound):
Subagents:
Orchestrator (this session without its subagents): 2,595,100 weighted, 22 % of the total, on claude-sonnet-5-5.
Orchestrator context: 107 turns, 96,318 tokens at the first, 260,863 at the last.
Weighted: every token at its list price, in tokens of Sonnet input (
PRICESin.squad/tools/session-usage.py); a model of no listed family has none (–).Generated by Claude Code