make activity matrix legible
This commit is contained in:
parent
8b8f124e99
commit
dad805b019
3 changed files with 205 additions and 150 deletions
|
|
@ -78,10 +78,10 @@ const concepts: Record<MockVariant, Concept> = {
|
|||
bodyClass: "mock-alerts"
|
||||
},
|
||||
mock8: {
|
||||
title: "Activity Matrix",
|
||||
shortName: "Matrix",
|
||||
routeName: "Matrix",
|
||||
premise: "Options, packet, alert, and market context stitched into one activity map.",
|
||||
title: "Alert Lineage",
|
||||
shortName: "Lineage",
|
||||
routeName: "Signal Trace",
|
||||
premise: "Selected alert formation from raw prints through packet, confirmation, invalidation, and replay audit.",
|
||||
bodyClass: "mock-graph"
|
||||
},
|
||||
mock9: {
|
||||
|
|
@ -391,32 +391,40 @@ const alertRows = [
|
|||
]
|
||||
];
|
||||
|
||||
const graphLanes = [
|
||||
{ label: "Options", x1: "5%", x2: "31%", y: "18%", tone: "good", text: "195C sweep + 200C join" },
|
||||
{
|
||||
label: "Packet",
|
||||
x1: "35%",
|
||||
x2: "60%",
|
||||
y: "35%",
|
||||
tone: "info",
|
||||
text: "PKT-8841 ready, 5 sources"
|
||||
},
|
||||
{
|
||||
label: "Alert",
|
||||
x1: "63%",
|
||||
x2: "88%",
|
||||
y: "22%",
|
||||
tone: "accent",
|
||||
text: "SMP alert: stealth accumulation"
|
||||
},
|
||||
{
|
||||
label: "Market",
|
||||
x1: "20%",
|
||||
x2: "82%",
|
||||
y: "69%",
|
||||
tone: "watch",
|
||||
text: "QQQ confirms; semis neutral"
|
||||
}
|
||||
const lineageScope = [
|
||||
["Scope", "All symbols", "ranked formations"],
|
||||
["Focus", "AAPL SMP", "top active alert"],
|
||||
["Valid", "above 194.50", "QQQ above 458.20"],
|
||||
["Packet", "PKT-8841", "86 / 5 sources"]
|
||||
];
|
||||
|
||||
const lineageQueue = [
|
||||
["09:42:51", "AAPL", "SMP Alert", "86", "stealth accumulation", "active"],
|
||||
["09:41:58", "TSLA", "Ignition Watch", "71", "momentum ignition", "watch"],
|
||||
["09:40:34", "NVDA", "Absorption", "63", "call wall defense", "hold"],
|
||||
["09:39:22", "AMZN", "Divergence", "39", "put sweep against basket", "reject"]
|
||||
];
|
||||
|
||||
const lineageEvents = [
|
||||
["09:41:23.420", "OPRA", "17MAY 195C sweep", "$4.32M", "ask 61%", "confirming"],
|
||||
["09:41:48.018", "Equity", "dark buy cluster", "$4.87M", "off-ex 64%", "confirming"],
|
||||
["09:42:06.130", "Packet", "PKT-8841 ready", "86", "5 sources", "confirming"],
|
||||
["09:42:31.004", "Market", "QQQ confirms", "458.20 held", "semis neutral", "confirming"],
|
||||
["09:42:51.000", "Alert", "SMP fired", "high", "valid above 194.50", "active"]
|
||||
];
|
||||
|
||||
const lineageChecks = [
|
||||
["Options lead", "OPRA led stock by 72s", "confirming"],
|
||||
["Dark share", "+18 pts vs session baseline", "confirming"],
|
||||
["Market", "QQQ supportive; semis neutral", "confirming"],
|
||||
["Contra", "AMZN put sweep remains isolated", "against"],
|
||||
["Replay", "synced through alert frame", "audit"]
|
||||
];
|
||||
|
||||
const lineageInvalidations = [
|
||||
["AAPL", "194.50", "alert invalid"],
|
||||
["QQQ", "458.20", "market confirm fails"],
|
||||
["Packet", "2 source loss", "score below 70"]
|
||||
];
|
||||
|
||||
const commandMetrics = [
|
||||
|
|
@ -873,45 +881,64 @@ function AlertReasonWall() {
|
|||
|
||||
function MarketActivityGraph() {
|
||||
return (
|
||||
<section className="mock-graph-layout" aria-label="Activity matrix">
|
||||
<div className="mock-graph-canvas" aria-label="Options packet alert matrix">
|
||||
{graphLanes.map((lane) => (
|
||||
<div
|
||||
className={`mock-graph-link is-${lane.tone}`}
|
||||
key={lane.label}
|
||||
style={{ "--x1": lane.x1, "--x2": lane.x2, "--y": lane.y } as CSSProperties}
|
||||
>
|
||||
<strong>{lane.label}</strong>
|
||||
<span>{lane.text}</span>
|
||||
</div>
|
||||
))}
|
||||
<div className="mock-graph-node is-options">OPRA intake</div>
|
||||
<div className="mock-graph-node is-packet">Packet PKT-8841</div>
|
||||
<div className="mock-graph-node is-alert">SMP alert</div>
|
||||
<div className="mock-graph-node is-market">Market state</div>
|
||||
</div>
|
||||
<div className="mock-graph-routes" aria-label="Route map">
|
||||
{[
|
||||
["OPRA", "raw contract tape"],
|
||||
["Packets", "merged source stack"],
|
||||
["Alerts", "SMP read + invalidation"],
|
||||
["Replay", "frame audit"]
|
||||
].map(([route, purpose]) => (
|
||||
<div key={route}>
|
||||
<strong>{route}</strong>
|
||||
<span>{purpose}</span>
|
||||
<section className="mock-graph-layout" aria-label="Alert lineage">
|
||||
<div className="mock-lineage-scope" aria-label="Current scope">
|
||||
{lineageScope.map(([label, value, detail]) => (
|
||||
<div key={label}>
|
||||
<span>{label}</span>
|
||||
<strong>{value}</strong>
|
||||
<em>{detail}</em>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div className="mock-graph-strip" aria-label="Matrix status">
|
||||
<FactList
|
||||
items={[
|
||||
["State", "Raw -> packet -> alert"],
|
||||
["Scope", "No duplicate panes"],
|
||||
["Audit", "Alert traces to OPRA source"]
|
||||
]}
|
||||
/>
|
||||
<div className="mock-lineage-chain" role="table" aria-label="Selected alert evidence chain">
|
||||
<div className="mock-lineage-row is-head" role="row">
|
||||
{["Time", "Source", "Event", "Value", "Read", "State"].map((item) => (
|
||||
<span role="columnheader" key={item}>
|
||||
{item}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
{lineageEvents.map(([time, source, event, value, read, state]) => (
|
||||
<div className={`mock-lineage-row is-${state}`} role="row" key={`${time}-${source}`}>
|
||||
<time>{time}</time>
|
||||
<strong>{source}</strong>
|
||||
<span>{event}</span>
|
||||
<span>{value}</span>
|
||||
<span>{read}</span>
|
||||
<Badge tone={state === "active" ? "Bullish" : "Info"}>{state}</Badge>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div className="mock-lineage-queue" role="table" aria-label="All-symbol alert formations">
|
||||
<div className="mock-lineage-queue-row is-head" role="row">
|
||||
{["Time", "Sym", "Type", "Score", "Read", "State"].map((item) => (
|
||||
<span role="columnheader" key={item}>
|
||||
{item}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
{lineageQueue.map(([time, symbol, type, score, read, state]) => (
|
||||
<div className={`mock-lineage-queue-row is-${state}`} role="row" key={`${time}-${symbol}`}>
|
||||
<time>{time}</time>
|
||||
<strong>{symbol}</strong>
|
||||
<span>{type}</span>
|
||||
<span>{score}</span>
|
||||
<span>{read}</span>
|
||||
<Badge tone={state === "reject" ? "Bearish" : state === "watch" || state === "hold" ? "Watch" : "Bullish"}>
|
||||
{state}
|
||||
</Badge>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<aside className="mock-lineage-inspector" aria-label="Selected alert read">
|
||||
<h2>AAPL SMP 09:42:51</h2>
|
||||
<FactList items={lineageChecks.map(([label, value]) => [label, value])} />
|
||||
</aside>
|
||||
<aside className="mock-lineage-invalid" aria-label="Invalidation levels">
|
||||
<h2>Invalidates</h2>
|
||||
<FactList items={lineageInvalidations.map(([label, level, result]) => [label, `${level}: ${result}`])} />
|
||||
</aside>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5210,104 +5210,137 @@ h3 {
|
|||
}
|
||||
|
||||
.mock-graph-layout {
|
||||
grid-template-columns: minmax(680px, 1fr) 310px;
|
||||
grid-template-columns: minmax(720px, 1fr) 320px;
|
||||
grid-template-areas:
|
||||
"canvas routes"
|
||||
"canvas strip";
|
||||
"scope scope"
|
||||
"chain inspector"
|
||||
"queue invalid";
|
||||
}
|
||||
|
||||
.mock-graph-canvas {
|
||||
grid-area: canvas;
|
||||
position: relative;
|
||||
min-height: 620px;
|
||||
border-block: 1px solid var(--mock-line);
|
||||
overflow: hidden;
|
||||
background:
|
||||
linear-gradient(0deg, var(--mock-line) 1px, transparent 1px) 0 0 / 100% 62px,
|
||||
linear-gradient(90deg, var(--mock-line) 1px, transparent 1px) 0 0 / 82px 100%;
|
||||
}
|
||||
|
||||
.mock-graph-link {
|
||||
position: absolute;
|
||||
left: var(--x1);
|
||||
top: var(--y);
|
||||
width: calc(var(--x2) - var(--x1));
|
||||
.mock-lineage-scope {
|
||||
grid-area: scope;
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
border-top: 2px solid var(--mock-accent);
|
||||
padding-top: 8px;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
border-block: 1px solid var(--mock-line);
|
||||
}
|
||||
|
||||
.mock-graph-link.is-good {
|
||||
border-color: var(--mock-good);
|
||||
.mock-lineage-scope div {
|
||||
min-width: 0;
|
||||
min-height: 86px;
|
||||
display: grid;
|
||||
align-content: center;
|
||||
gap: 5px;
|
||||
border-right: 1px solid var(--mock-line);
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.mock-graph-link.is-info {
|
||||
border-color: var(--mock-info);
|
||||
.mock-lineage-scope div:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.mock-graph-link.is-watch {
|
||||
border-color: var(--mock-alt);
|
||||
}
|
||||
|
||||
.mock-graph-link strong {
|
||||
.mock-lineage-scope span,
|
||||
.mock-lineage-scope em,
|
||||
.mock-lineage-row time,
|
||||
.mock-lineage-row span,
|
||||
.mock-lineage-queue-row time,
|
||||
.mock-lineage-queue-row span {
|
||||
color: var(--mock-faint);
|
||||
font-family: var(--font-mono), monospace;
|
||||
font-size: 0.74rem;
|
||||
text-transform: uppercase;
|
||||
font-size: 0.68rem;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.mock-graph-link span {
|
||||
.mock-lineage-scope strong {
|
||||
color: var(--mock-ink);
|
||||
font-size: 1rem;
|
||||
line-height: 1.12;
|
||||
}
|
||||
|
||||
.mock-lineage-chain,
|
||||
.mock-lineage-queue {
|
||||
overflow-x: auto;
|
||||
border-block: 1px solid var(--mock-line);
|
||||
}
|
||||
|
||||
.mock-lineage-chain {
|
||||
grid-area: chain;
|
||||
}
|
||||
|
||||
.mock-lineage-queue {
|
||||
grid-area: queue;
|
||||
}
|
||||
|
||||
.mock-lineage-row {
|
||||
min-width: 900px;
|
||||
min-height: 44px;
|
||||
display: grid;
|
||||
grid-template-columns: 116px 86px minmax(210px, 1fr) 104px minmax(150px, 0.72fr) 106px;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--mock-line);
|
||||
padding: 0 10px;
|
||||
color: var(--mock-muted);
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
|
||||
.mock-graph-node {
|
||||
position: absolute;
|
||||
.mock-lineage-queue-row {
|
||||
min-width: 720px;
|
||||
min-height: 42px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
min-height: 46px;
|
||||
border: 1px solid var(--mock-line-strong);
|
||||
border-radius: 6px;
|
||||
padding: 9px 12px;
|
||||
background: var(--mock-surface-2);
|
||||
color: var(--mock-ink);
|
||||
grid-template-columns: 76px 66px 112px 58px minmax(170px, 1fr) 88px;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--mock-line);
|
||||
padding: 0 10px;
|
||||
color: var(--mock-muted);
|
||||
font-size: 0.76rem;
|
||||
}
|
||||
|
||||
.mock-lineage-row:last-child,
|
||||
.mock-lineage-queue-row:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.mock-lineage-row.is-head,
|
||||
.mock-lineage-queue-row.is-head {
|
||||
min-height: 30px;
|
||||
color: var(--mock-faint);
|
||||
font-family: var(--font-mono), monospace;
|
||||
font-size: 0.72rem;
|
||||
font-size: 0.62rem;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.mock-graph-node.is-options {
|
||||
left: 7%;
|
||||
top: 14%;
|
||||
}
|
||||
|
||||
.mock-graph-node.is-packet {
|
||||
left: 38%;
|
||||
top: 31%;
|
||||
}
|
||||
|
||||
.mock-graph-node.is-alert {
|
||||
right: 8%;
|
||||
top: 17%;
|
||||
}
|
||||
|
||||
.mock-graph-node.is-market {
|
||||
left: 24%;
|
||||
bottom: 19%;
|
||||
}
|
||||
|
||||
.mock-graph-routes {
|
||||
grid-area: routes;
|
||||
border-block: 1px solid var(--mock-line);
|
||||
padding-block: 8px;
|
||||
}
|
||||
|
||||
.mock-graph-routes strong {
|
||||
.mock-lineage-row.is-active,
|
||||
.mock-lineage-queue-row.is-active {
|
||||
background: var(--mock-accent-soft);
|
||||
color: var(--mock-ink);
|
||||
}
|
||||
|
||||
.mock-graph-strip {
|
||||
grid-area: strip;
|
||||
.mock-lineage-queue-row.is-reject {
|
||||
color: color-mix(in oklch, var(--mock-bad) 72%, var(--mock-muted));
|
||||
}
|
||||
|
||||
.mock-lineage-inspector,
|
||||
.mock-lineage-invalid {
|
||||
border-block: 1px solid var(--mock-line);
|
||||
padding-block: 12px;
|
||||
}
|
||||
|
||||
.mock-lineage-inspector {
|
||||
grid-area: inspector;
|
||||
}
|
||||
|
||||
.mock-lineage-invalid {
|
||||
grid-area: invalid;
|
||||
}
|
||||
|
||||
.mock-lineage-inspector h2,
|
||||
.mock-lineage-invalid h2 {
|
||||
margin: 0 0 12px;
|
||||
color: var(--mock-ink);
|
||||
font-size: 1rem;
|
||||
letter-spacing: -0.01em;
|
||||
}
|
||||
|
||||
.mock-command-layout,
|
||||
|
|
@ -5705,6 +5738,7 @@ h3 {
|
|||
|
||||
.mock-packet-chain,
|
||||
.mock-flow-ladder,
|
||||
.mock-lineage-scope,
|
||||
.mock-command-strip,
|
||||
.mock-radar-sweep,
|
||||
.mock-risk-map {
|
||||
|
|
@ -5713,6 +5747,7 @@ h3 {
|
|||
|
||||
.mock-packet-chain article,
|
||||
.mock-flow-ladder div,
|
||||
.mock-lineage-scope div,
|
||||
.mock-command-strip div,
|
||||
.mock-radar-band,
|
||||
.mock-risk-level {
|
||||
|
|
@ -5722,6 +5757,7 @@ h3 {
|
|||
|
||||
.mock-packet-chain article:last-child,
|
||||
.mock-flow-ladder div:last-child,
|
||||
.mock-lineage-scope div:last-child,
|
||||
.mock-command-strip div:last-child,
|
||||
.mock-radar-band:last-child,
|
||||
.mock-risk-level:last-child {
|
||||
|
|
@ -5778,16 +5814,7 @@ h3 {
|
|||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.mock-graph-canvas {
|
||||
min-height: 520px;
|
||||
}
|
||||
|
||||
.mock-graph-link {
|
||||
width: 42%;
|
||||
}
|
||||
|
||||
.mock-graph-node {
|
||||
max-width: 150px;
|
||||
text-align: center;
|
||||
.mock-lineage-scope strong {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue