Commit e44cd19
committed
fix(studio): per-run compare timestamp appears duplicated (#1044)
In the per-run compare table each row rendered two lines in the
Timestamp column:
1. `formatTimestamp(run.started_at)` → "YYYY-MM-DD HH:MM"
2. `shortenRunId(run.run_id)` → shortened run id
For the common case where a run workspace is named after its own ISO
timestamp, both lines started with the same date, so the secondary
line read as a visual duplicate. Worse, `shortenRunId` always returned
just the trailing timestamp segment, silently dropping the `experiment::`
prefix for runs stored under `runs/<experiment>/<timestamp>/` — so two
runs from different experiments at the same minute looked identical
unless you hovered the tooltip.
Replace `shortenRunId` with `runSubLabel`, which returns:
- `null` for plain-timestamp ids → secondary line is hidden entirely
- the `::`-joined prefix ("with-skills", "remote",
"remote · with-skills", …) otherwise → meaningful disambiguator
Move the full-id tooltip to the outer `<td>` so it remains available
on hover in either rendering path.
Regenerate the docs screenshot at
apps/web/src/assets/screenshots/studio-compare-per-run.png and its alt
text to reflect the fix and the filter-by-tag chip row added by #1043.1 parent 8864cd2 commit e44cd19
3 files changed
Lines changed: 26 additions & 13 deletions
File tree
- apps
- studio/src/components
- web/src
- assets/screenshots
- content/docs/docs/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
| |||
655 | 656 | | |
656 | 657 | | |
657 | 658 | | |
658 | | - | |
| 659 | + | |
659 | 660 | | |
660 | 661 | | |
661 | 662 | | |
662 | | - | |
663 | | - | |
664 | | - | |
| 663 | + | |
665 | 664 | | |
666 | 665 | | |
667 | 666 | | |
| |||
1152 | 1151 | | |
1153 | 1152 | | |
1154 | 1153 | | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
1163 | 1176 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments