@overdoser/react-toolkit 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -2
- package/CHANGELOG.md +108 -0
- package/README.md +2 -0
- package/components/Timeline/GanttTimeline.js +195 -186
- package/components/Timeline/HistoryTimeline.js +178 -177
- package/components/Timeline/Timeline.module.scss.js +112 -96
- package/components/Timeline/TimelineShared.d.ts +14 -4
- package/components/Timeline/TimelineShared.js +135 -95
- package/components/Timeline/TraceTimeline.d.ts +40 -9
- package/components/Timeline/TraceTimeline.js +610 -357
- package/components/Timeline/TraceTimeline.module.scss.js +154 -88
- package/components/Timeline/index.d.ts +1 -1
- package/components/Timeline/timelineCore.d.ts +12 -2
- package/components/Timeline/timelineCore.js +103 -45
- package/index.css +1 -1
- package/index.d.ts +1 -1
- package/index.layered.css +1 -1
- package/llms.txt +14 -8
- package/manifest.json +29 -8
- package/package.json +2 -1
package/AGENTS.md
CHANGED
|
@@ -101,8 +101,8 @@ For exhaustive component reference (every prop, every variant, every signature),
|
|
|
101
101
|
- Tiny inline trend (table cell, KPI tile) → `<Sparkline>`.
|
|
102
102
|
- Axis-based charts share a `config` object: `{ [dataKey]: { label, color } }`. `PieChart` uses `nameKey` + `valueKey` (+ optional `colorKey`) instead. Colors via `var(--crk-chart-1)` … `var(--crk-chart-5)`.
|
|
103
103
|
|
|
104
|
-
- **Need a timeline of events?** Three views, all fully controlled (you pass the pre-filtered event array; items without an `end` render live and keep growing until an update completes them), all with wheel-zoom / drag-pan / Fit, keyword highlighting (built-in toolbar search box by default — `showSearch={false}` to hide, `renderSearch` to inject your own element, or controlled `highlight` + `onHighlightChange` for an external box), tooltips, a click-to-open detail side panel, and an optional `showSummary` panel (dense numbered event list with a live viewport band and click-to-navigate smooth scrolling; `summaryPlacement` docks it left/right/top/bottom
|
|
105
|
-
- Request/response flow across services (one correlated "manifest"/saga/order) on a proportional UTC band → `<TraceTimeline events title services highlight />`.
|
|
104
|
+
- **Need a timeline of events?** Three views, all fully controlled (you pass the pre-filtered event array; items without an `end` render live and keep growing until an update completes them), all with wheel-zoom / drag-pan / Fit, keyword highlighting (built-in toolbar search box by default — `showSearch={false}` to hide, `renderSearch` to inject your own element, or controlled `highlight` + `onHighlightChange` for an external box), tooltips, a click-to-open detail side panel, and an optional `showSummary` panel (dense numbered event list with a live viewport band and click-to-navigate smooth scrolling; `summaryPlacement` docks it left/right/top/bottom, floats it as a draggable palette, or — `'bubble'`, the TraceTimeline default — collapses it into a pill bottom-left of the timeline that expands in place). Customize via `--crk-timeline-*` tokens, `classes`, or render-prop slots (`renderChip`/`renderCard`/`renderBar`+`renderRowLabel`, `renderTooltip`, `renderDetails`) that inject custom components while the layout algorithms keep owning geometry:
|
|
105
|
+
- Request/response flow across services (one correlated "manifest"/saga/order) on a proportional UTC band → `<TraceTimeline events title services highlight />`. Ships a right-side dock rail by default (`showDock={false}` to remove): one docked drawer at a time — *Event details* (request/response panel with payload copy buttons) or *Full log* (all events vertically with payloads + copy buttons, scroll-synced with timeline clicks both ways).
|
|
106
106
|
- One subject's life story (order, incident, candidate, deploy) as cards alternating around an axis, horizontal or vertical, equal/log/proportional spacing → `<HistoryTimeline events subjectName defaultSpacing />`.
|
|
107
107
|
- Tasks stacked by start time with duration bars (Gantt) → `<GanttTimeline tasks title onTaskSelect />`.
|
|
108
108
|
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,114 @@ All notable changes to `@overdoser/react-toolkit` are documented here.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
5
5
|
project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [0.11.0]
|
|
8
|
+
|
|
9
|
+
TraceTimeline gets the summary bubble, dock drawers and a full-log view
|
|
10
|
+
from the timeline design handoff. No breaking type changes, but three
|
|
11
|
+
defaults changed — see *Changed* if you'd rather keep the old chrome.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **Dock rail + drawers in `TraceTimeline`** (`showDock`, default `true`;
|
|
16
|
+
`defaultDock`; type `TraceTimelineDock`). A sticky icon rail on the far
|
|
17
|
+
right docks one drawer at a time: *Event details* — the request/response
|
|
18
|
+
panel, now with its own uppercase header, an empty state until an event
|
|
19
|
+
is picked, and copy buttons beside each payload's **Body** label — or
|
|
20
|
+
*Full log* — every event vertically (method/status chips, service pair,
|
|
21
|
+
clock, op, path) with REQUEST/RESPONSE payloads stacked full-width, each
|
|
22
|
+
with a copy button that doesn't select the row. Timeline and log stay in
|
|
23
|
+
sync both ways: clicking a timeline event or summary row scrolls an open
|
|
24
|
+
log to that entry and flashes it; clicking a log entry selects the event
|
|
25
|
+
and centers the timeline (centering waits for the drawer-induced resize
|
|
26
|
+
to settle). `showDock={false}` restores the previous selection-driven
|
|
27
|
+
details panel with no rail.
|
|
28
|
+
- **`'bubble'` summary placement** (all three timelines): a collapsed pill
|
|
29
|
+
anchored bottom-left of the timeline card — service-colored glyph,
|
|
30
|
+
heading, count — expanding in place into a draggable 262px panel with a
|
|
31
|
+
"Tinted rows are in the viewport" footer. Collapsing always snaps it
|
|
32
|
+
back to its home corner (the dragged position is deliberately not
|
|
33
|
+
persisted). Payload copying and panel dragging reuse the library's own
|
|
34
|
+
`CopyButton` and `Draggable`.
|
|
35
|
+
- **`minHeight` prop on `TraceTimeline`** (default `420`, the previous
|
|
36
|
+
hardcoded minimum): stretches the event band for a roomier canvas — the
|
|
37
|
+
bar band stays vertically centered — while dense traces still grow past
|
|
38
|
+
it. `maxHeight` continues to only cap the scrollable canvas.
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- **`TraceTimeline` defaults:** `showSummary` is now `true` and
|
|
43
|
+
`summaryPlacement` defaults to `'bubble'`; the dock rail is on by
|
|
44
|
+
default (`showDock`). Picking a summary row now also selects the event
|
|
45
|
+
(and opens the details drawer when nothing is docked).
|
|
46
|
+
- **Summary rows follow the handoff design** in every placement: full
|
|
47
|
+
width with visible hairline separators (no more rounded highlight
|
|
48
|
+
chips), the viewport band tints whole rows edge-to-edge, out-of-view
|
|
49
|
+
rows render in faint text, and the selected row steps clearly deeper
|
|
50
|
+
than the in-view tint.
|
|
51
|
+
- Event bars dropped the full pill radius (999px → 7px, per the handoff).
|
|
52
|
+
- `TraceTimelineClasses` gained `log` and `rail` entries.
|
|
53
|
+
|
|
54
|
+
### Fixed
|
|
55
|
+
|
|
56
|
+
- The cursor timestamp chip (and the `▸ start` event chip) no longer
|
|
57
|
+
overlaps the divider between the UTC lane and the date rail — it now
|
|
58
|
+
ends flush with it.
|
|
59
|
+
- The summary-bubble collapse button has a visible resting background
|
|
60
|
+
instead of appearing only on hover.
|
|
61
|
+
|
|
62
|
+
## [0.10.1]
|
|
63
|
+
|
|
64
|
+
Metadata-only release. No code changes.
|
|
65
|
+
|
|
66
|
+
### Added
|
|
67
|
+
|
|
68
|
+
- `homepage` in package.json and a live-demo link in the readme — the
|
|
69
|
+
Storybook demo at <https://react-toolkit.overdoser.org> now appears on
|
|
70
|
+
the npm package page.
|
|
71
|
+
|
|
72
|
+
## [0.10.0]
|
|
73
|
+
|
|
74
|
+
Timeline axis overhaul (sub-second zoom, tiered rails, deep-zoom
|
|
75
|
+
performance) plus a Modal focus-ring fix. No breaking API changes.
|
|
76
|
+
|
|
77
|
+
### Added
|
|
78
|
+
|
|
79
|
+
- **Sub-second axis ticks.** The tick table now reaches down to 1ms (was
|
|
80
|
+
1s), so a short event — e.g. a single 1.1s trace — gets a real axis with
|
|
81
|
+
millisecond labels instead of one gridline. Applies to all three Timeline
|
|
82
|
+
views.
|
|
83
|
+
- **Tiered axis rails in `TraceTimeline`**, coarse to fine: UTC badge,
|
|
84
|
+
date, time, and a milliseconds rail that appears at sub-second zooms.
|
|
85
|
+
Date and second labels render only at true day/second boundaries; sticky
|
|
86
|
+
date and (at sub-second zoom) sticky time boxes at the left edge always
|
|
87
|
+
name the current position, even when no boundary is in view.
|
|
88
|
+
- **Ruler-pattern minor ticks.** Minors sit on the step's natural units via
|
|
89
|
+
a per-step subdivision table: 5-unit steps read big/4-small/big, 10-unit
|
|
90
|
+
steps get a medium mark at the halfway unit, and clock/calendar steps
|
|
91
|
+
subdivide on their own units (quarter-hours, days into weeks, quarters
|
|
92
|
+
into years…).
|
|
93
|
+
- `--crk-modal-ring-guard` token (default `4px`) — see the Modal fix below.
|
|
94
|
+
|
|
95
|
+
### Changed
|
|
96
|
+
|
|
97
|
+
- **Axis ticks span the whole scrollable canvas**, not just the interval
|
|
98
|
+
covered by events/tasks (TraceTimeline, GanttTimeline, and
|
|
99
|
+
HistoryTimeline's proportional mode).
|
|
100
|
+
|
|
101
|
+
### Fixed
|
|
102
|
+
|
|
103
|
+
- **Deep zoom no longer freezes the page.** TraceTimeline and
|
|
104
|
+
GanttTimeline virtualize the axis: only ticks inside the scroll window
|
|
105
|
+
are materialized. Extreme zoom used to build tens of thousands of tick
|
|
106
|
+
nodes and re-render them on every mousemove, pegging the CPU.
|
|
107
|
+
- **`Modal.Body` no longer clips the top of focus rings.** The body scrolls
|
|
108
|
+
and had zero top padding, so the outward 3px focus ring of a form field
|
|
109
|
+
flush at the top lost its upper edge. The body now reserves
|
|
110
|
+
`--crk-modal-ring-guard` of top padding, and `Modal.Header` cedes the
|
|
111
|
+
same amount from its bottom padding — the header→body gap is
|
|
112
|
+
pixel-identical for existing consumers. Raise the token if you theme
|
|
113
|
+
`--crk-shadow-ring` thicker than 3px.
|
|
114
|
+
|
|
7
115
|
## [0.9.0]
|
|
8
116
|
|
|
9
117
|
Introduces the Timeline family: three timeline views built from the
|