Repository navigation
Commit a84833a
fix(web): resolve sidebar provider icons from the thread's own environment
The sidebar built its provider-instance map from primaryServerProvidersAtom
alone, so threads on non-primary environments (T3 Connect, hosted
app.t3.codes, multi-environment) either lost their provider icon and
account badge entirely (no primary set) or silently borrowed the primary
environment's entries when instance ids collide — and default instance ids
are just driver slugs, so they always collide. Build a per-environment map
from environmentServerConfigsAtom instead (with the primary backfill
CommandPalette already uses) and scope row lookups and the badge heuristic
to the thread's environmentId.
Fixes #5289
Co-Authored-By: Claude Fable 5 <[email protected]>1 parent f2d5fc9 commit a84833a
3 files changed
Lines changed: 96 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
| |||
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
| 248 | + | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
1860 | 1861 | | |
1861 | 1862 | | |
1862 | 1863 | | |
1863 | | - | |
1864 | | - | |
| 1864 | + | |
| 1865 | + | |
| 1866 | + | |
| 1867 | + | |
| 1868 | + | |
1865 | 1869 | | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
1869 | 1873 | | |
1870 | 1874 | | |
1871 | | - | |
| 1875 | + | |
1872 | 1876 | | |
1873 | 1877 | | |
1874 | 1878 | | |
| |||
1989 | 1993 | | |
1990 | 1994 | | |
1991 | 1995 | | |
1992 | | - | |
1993 | 1996 | | |
1994 | 1997 | | |
1995 | 1998 | | |
| |||
3596 | 3599 | | |
3597 | 3600 | | |
3598 | 3601 | | |
3599 | | - | |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
| 3605 | + | |
3600 | 3606 | | |
3601 | 3607 | | |
3602 | 3608 | | |
| |||
3705 | 3711 | | |
3706 | 3712 | | |
3707 | 3713 | | |
3708 | | - | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
3709 | 3718 | | |
3710 | 3719 | | |
3711 | 3720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
135 | 184 | | |
136 | 185 | | |
137 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
203 | 230 | | |
204 | 231 | | |
205 | 232 | | |
| |||
0 commit comments