Commit 5ae2a72
observatory: n-column compare-mode sidebar (RFC commit 2/3)
When the report aggregates multiple archives (compare mode), the left
sidebar is now an N-column grid with one column per archive.
- main.css: new .index-list.compare-mode rule that switches the list to
CSS grid with grid-template-columns: repeat(var(--archive-cols), 1fr).
Each archive becomes an .archive-column li with a sticky header
(.archive-column-header) showing the archive label, and an internal
ul.archive-sessions holding that archive's session-dashboard links
and grouped records (region tree or flat). Tightened item styling
inside columns (no shadows, smaller font) so two columns stay
readable on standard sidebar widths.
- 02_layout.js: renderIndex() now branches on state.data.archives.length:
- len > 1: compare-mode N-column grid; sessions filtered into their
column via _renderArchiveColumn.
- len == 1 (single archive): flat session list, identical to today's
rendering.
- sessions empty: defensive fallback (very old archives).
--archive-cols CSS var is set at render time so the grid size adjusts
to the archive count automatically.
Single-archive reports are unchanged visually; only the structure of
state.data.archives drives the layout.
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 370d69e commit 5ae2a72
2 files changed
Lines changed: 95 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
317 | 334 | | |
318 | 335 | | |
319 | 336 | | |
320 | 337 | | |
321 | 338 | | |
322 | 339 | | |
| 340 | + | |
323 | 341 | | |
324 | 342 | | |
325 | 343 | | |
326 | 344 | | |
327 | 345 | | |
| 346 | + | |
| 347 | + | |
328 | 348 | | |
329 | 349 | | |
330 | 350 | | |
331 | 351 | | |
332 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
333 | 369 | | |
334 | 370 | | |
335 | 371 | | |
| |||
0 commit comments