| ... | @@ -1157,7 +1157,13 @@ function WorkGroupToggleTimelineRow({ | ... | @@ -1157,7 +1157,13 @@ function WorkGroupToggleTimelineRow({ |
| 1157 | row: Extract<TimelineRow, { kind: "work-toggle" }>; | 1157 | row: Extract<TimelineRow, { kind: "work-toggle" }>; |
| 1158 | }) { | 1158 | }) { |
| 1159 | const ctx = use(TimelineRowCtx); | 1159 | const ctx = use(TimelineRowCtx); |
| 1160 | const labelNoun = row.onlyToolEntries ? "tool call" : "log entry"; | 1160 | const labelNoun = row.onlyToolEntries |
| | 1161 | ? row.hiddenCount === 1 |
| | 1162 | ? "tool call" |
| | 1163 | : "tool calls" |
| | 1164 | : row.hiddenCount === 1 |
| | 1165 | ? "log entry" |
| | 1166 | : "log entries"; |
| 1161 | | 1167 | |
| 1162 | return ( | 1168 | return ( |
| 1163 | <button | 1169 | <button |
| ... | @@ -1185,7 +1191,6 @@ function WorkGroupToggleTimelineRow({ | ... | @@ -1185,7 +1191,6 @@ function WorkGroupToggleTimelineRow({ |
| 1185 | ) : ( | 1191 | ) : ( |
| 1186 | <span className="font-medium text-foreground/82"> | 1192 | <span className="font-medium text-foreground/82"> |
| 1187 | +{row.hiddenCount} previous {labelNoun} | 1193 | +{row.hiddenCount} previous {labelNoun} |
| 1188 | {row.hiddenCount === 1 ? "" : "s"} | | |
| 1189 | </span> | 1194 | </span> |
| 1190 | )} | 1195 | )} |
| 1191 | </button> | 1196 | </button> |