Commit 6e6724a
authored
[ADR-0006] Phase 5: Combined Modes, Analytics, Final Polish (#3577)
Closes out the ADR-0006 implementation (side panel span details +
tree-only mode).
Previous phases: [Phase 1
#3558](#3558), [Phase 2
#3562](#3562), [Phase 3
#3569](#3569), [Phase 4
#3576](#3576).
## What changed
### Analytics tracking (`duck.track.ts`)
Three new Redux actions are now tracked:
| Action | Category | Tracked value |
|---|---|---|
| `SET_DETAIL_PANEL_MODE` | `jaeger/ux/trace/timeline/panel-mode` | mode
string (`'inline'` / `'sidepanel'`) |
| `SET_TIMELINE_BARS_VISIBLE` |
`jaeger/ux/trace/timeline/timeline-visible` | `'true'` / `'false'` |
| `SET_SIDE_PANEL_WIDTH` | `jaeger/ux/trace/timeline/column` | width ×
1000 (integer), same pattern as `SET_SPAN_NAME_COLUMN_WIDTH` |
### Test coverage (`index.test.js`)
Added a `describe('layout combinations')` block that renders
`TraceTimelineViewerImpl` for all four `{detailPanelMode,
timelineBarsVisible}` combinations and asserts:
- Side panel container is present/absent as expected
- `VerticalResizer` is present only when `detailPanelMode='sidepanel'`
**and** `timelineBarsVisible=true`
- `VirtualizedTraceView` is always rendered
### ADR
`docs/adr/0006-side-panel-span-details.md` status updated to
**Implemented**; Phase 5 marked complete.
## Testing
```bash
npm run prettier
npm run lint
npm test
npm run build
```
All 2560 tests pass.
### Manual testing of all four layout combinations
Enable the side panel feature flag in `default-config.ts`
(`enableSidePanel: true`) or via query param, then verify each
combination:
| `detailPanelMode` | `timelineBarsVisible` | Expected |
|---|---|---|
| `inline` | `true` | Default behavior — inline expand, timeline bars
visible |
| `inline` | `false` | Tree-only — inline expand, no timeline bars |
| `sidepanel` | `true` | Side panel on right, `VerticalResizer` divider
visible |
| `sidepanel` | `false` | Side panel fills remaining width, no resizer |
To test in embedded mode, append `?uiEmbed=v0` (optionally with
`uiTimelineCollapseTitle=1`, `uiTimelineHideMinimap=1`,
`uiTimelineHideSummary=1`) to a trace URL and verify the side panel and
settings gear work normally.
## AI Usage in this PR (choose one)
See [AI Usage
Policy](https://github.com/jaegertracing/jaeger/blob/main/CONTRIBUTING_GUIDELINES.md#ai-usage-policy).
- [ ] **None**: No AI tools were used in creating this PR
- [ ] **Light**: AI provided minor assistance (formatting, simple
suggestions)
- [ ] **Moderate**: AI helped with code generation or debugging specific
parts
- [x] **Heavy**: AI generated most or all of the code changes
---------
Signed-off-by: Yuri Shkuro <github@ysh.us>1 parent dd0441e commit 6e6724a
File tree
6 files changed
+114
-16
lines changed- docs/adr
- packages/jaeger-ui/src/components/TracePage/TraceTimelineViewer
6 files changed
+114
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
546 | 565 | | |
547 | 566 | | |
548 | 567 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
176 | 197 | | |
177 | 198 | | |
178 | 199 | | |
| |||
217 | 238 | | |
218 | 239 | | |
219 | 240 | | |
| 241 | + | |
| 242 | + | |
220 | 243 | | |
| 244 | + | |
221 | 245 | | |
222 | 246 | | |
223 | 247 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| |||
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| 40 | + | |
| 41 | + | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
| |||
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
| |||
101 | 114 | | |
102 | 115 | | |
103 | 116 | | |
| 117 | + | |
| 118 | + | |
104 | 119 | | |
| 120 | + | |
105 | 121 | | |
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
| |||
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
157 | 197 | | |
158 | 198 | | |
159 | 199 | | |
| |||
0 commit comments