mirror of
https://github.com/monoscope-tech/monoscope.git
synced 2026-11-16 10:18:01 +00:00
Break the issue page into parts that name themselves
anomalyDetailPage was 455 lines carrying nine positional arguments through every section. Those nine become IssueView, and the sections become issueHeader_, issueEvidence_, investigationPanel_ and aiSidePanel_, over shared issueChartCard_/sideBySide_/contextCard_ pieces — five hand-copied side-by-side shells and three copies of the same context card collapse into one each. The comments keep the measurements that are load-bearing (the 56s cold-trace 504, 0.37s vs 35.9s on the +/-5min window, the ~24% of patterns with no trace id) and drop the narration around them. Two helpers move to where the rest of the app can reach them: Utils.isoT, which three modules had spelled out privately, and TimePicker's rangePairs/rangeJson/rangeQuery, which the page had inlined four times. All four are doctested. Elsewhere: one tryWithin primitive behind enriching and the two timeout-and-log ladders (log keys unchanged); issueTypeLabel and issueTypeBadge become issueTypeChip_; the three breadcrumb sources fold into extractBreadcrumbs; and issueRowAttrs/anomalyStatusIndicator match IssueSeverity constructors instead of round-tripping through display, so a renamed constructor now fails to compile rather than silently dropping a tint.
This commit is contained in:
parent
e4e8f8bc36
commit
a31d2c67de
4 changed files with 659 additions and 638 deletions
Loading…
Add table
Add a link
Reference in a new issue