app: list every model in the reset tooltip
agent-review agent review: pass

The tooltip showed five models and folded the rest into a count, and no
other view shows a past instance's models. D12 asks for tokens and API value
by model for every instance, so the tooltip now lists all of them.

Refs #14
This commit is contained in:
Florian Schmidt
2026-10-18 11:04:57 +02:00
parent 5da543eba8
commit 058c2b5324
4 changed files with 51 additions and 2 deletions
+12
View File
@@ -128,6 +128,18 @@ internal sealed record ResetFixture(HistoryStore Store, Snapshot Snapshot, DateT
public static ResetFixture RunningOnly() => Create([]);
public static ResetFixture OnTimeOnly() => Create([7, 7]);
public static ResetFixture Overlapping() => Create([1, 1, 1, 1, 1]);
public static ResetFixture ManyModels()
{
var fixture = OnTimeOnly();
var start = fixture.History.Resets[0].Instances[1].Start;
string[] models = ["gpt-6-sol", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-5.4-mini"];
for (var i = 0; i < models.Length; i++)
{
var count = 2_000_123 - i * 200_001;
fixture.Store.Add(new(Provider.Codex, start.AddHours(2), models[i], "Fixture", new(Input: count, Total: count), "extra" + i));
}
return fixture with { History = PanelViewModel.QueryHistory(fixture.Store, fixture.Snapshot, HistoryRange.All, null, fixture.Now) };
}
private static ResetFixture Create(int[] durations)
{
var start = new DateTimeOffset(2026, 9, 12, 6, 0, 0, TimeSpan.Zero);