Commit 5ff6e30
committed
Address C10: scope BenchmarkDashboardView models section to visible categories
The Models section was gated by `!availableModels.isEmpty` while its
rows were gated by `selectedCategories`, so an empty section could
render when those sets didn't overlap. Additionally, the All/None
header actions mutated hidden categories via the view model's
selectAllModels/deselectAllModels helpers.
Compute a single `visibleModelCategories` list that intersects
`selectedCategories` with non-empty `availableModels` entries, and use
it for both the section guard, the ForEach iteration, and the All/None
actions (which now collect IDs from visible categories only and mutate
via Set formUnion/subtract).1 parent d707a0d commit 5ff6e30
1 file changed
Lines changed: 18 additions & 4 deletions
File tree
- examples/ios/RunAnywhereAI/RunAnywhereAI/Features/Benchmarks/Views
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
67 | 71 | | |
68 | | - | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
97 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
98 | 107 | | |
99 | 108 | | |
100 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
101 | 115 | | |
102 | 116 | | |
103 | 117 | | |
| |||
0 commit comments