| ... | ... | @@ -1157,7 +1157,13 @@ function WorkGroupToggleTimelineRow({ |
| 1157 | 1157 | row: Extract<TimelineRow, { kind: "work-toggle" }>; |
| 1158 | 1158 | }) { |
| 1159 | 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 | 1168 | return ( |
| 1163 | 1169 | <button |
| ... | ... | @@ -1185,7 +1191,6 @@ function WorkGroupToggleTimelineRow({ |
| 1185 | 1191 | ) : ( |
| 1186 | 1192 | <span className="font-medium text-foreground/82"> |
| 1187 | 1193 | +{row.hiddenCount} previous {labelNoun} |
| 1188 | | {row.hiddenCount === 1 ? "" : "s"} |
| 1189 | 1194 | </span> |
| 1190 | 1195 | )} |
| 1191 | 1196 | </button> |