mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2026-08-08 10:12:34 +00:00
Chart builder: intent front door, Heatmap mark, role-aware guidance
This commit is contained in:
@@ -58,6 +58,79 @@
|
||||
gap: var(--space-3);
|
||||
}
|
||||
|
||||
/* ── Intent front door (spec §06 → Intent) ───────────────────────────────
|
||||
A persistent "what do you want to show?" strip under the dataset picker. A
|
||||
quiet accent-soft wash marks it as the guided on-ramp without competing with
|
||||
the primary Create action (--accent stays reserved for primary actions). */
|
||||
.intentStrip {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
padding: var(--space-4);
|
||||
border: var(--border-width) solid var(--border);
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
.intentQ {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.intentSub {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.intentChips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2);
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
.intentChip {
|
||||
appearance: none;
|
||||
height: var(--control-height);
|
||||
border: var(--border-width) solid var(--border-strong);
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
padding: 0 var(--space-3);
|
||||
cursor: pointer;
|
||||
transition:
|
||||
background var(--dur-fast) var(--ease),
|
||||
box-shadow var(--dur-fast) var(--ease);
|
||||
}
|
||||
|
||||
.intentChip:hover {
|
||||
background: var(--field);
|
||||
}
|
||||
|
||||
/* The chip whose layout the live chart matches (council-reserved: selection uses an
|
||||
accent ring, never an accent fill — fill stays the primary-action signal). */
|
||||
.intentChip[aria-pressed='true'] {
|
||||
border-color: var(--accent);
|
||||
box-shadow: inset 0 0 0 1px var(--accent);
|
||||
}
|
||||
|
||||
/* Disabled = the dataset can't satisfy this intent: perceivable but inert (the chip's
|
||||
accessible name carries the reason). */
|
||||
.intentChip[aria-disabled='true'] {
|
||||
color: var(--text-placeholder);
|
||||
border-color: var(--border);
|
||||
background: var(--bg);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.intentChip:focus-visible {
|
||||
outline: 2px solid var(--focus);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
|
||||
/* ── Data section: filters, calculated fields, row preview (spec §06 → Data) ──── */
|
||||
|
||||
.dataSection {
|
||||
@@ -346,6 +419,18 @@
|
||||
gap: var(--space-2);
|
||||
}
|
||||
|
||||
/* The mark picker carries six segments — too many for one 320–360px row. Override the
|
||||
SegmentedControl's fixed single-row height so it wraps; each option keeps the control
|
||||
height so the two rows read as even segments inside the shared border. */
|
||||
.markPicker {
|
||||
flex-wrap: wrap;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.markPickerOption {
|
||||
min-height: var(--control-height);
|
||||
}
|
||||
|
||||
.fieldLabel {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
|
||||
Reference in New Issue
Block a user