Commit e3e6a78
authored
ENG-1575 Hide left sidebar settings tabs when feature flag is off (#1084)
* ENG-1575 Hide left sidebar settings tabs when feature flag is off
Hide the Personal and Global "Left sidebar" tabs in the Settings dialog
when the "Enable left sidebar" feature flag is disabled, using the same
hidden prop pattern as the Admin tab.
* ENG-1575 Sync left sidebar tab visibility with flag changes live
Subscribe to the leftSidebarFlag setting change so the Left sidebar
tabs hide/show immediately when the flag is toggled in the open
settings dialog, matching the live sidebar mount/unmount in index.ts,
instead of waiting for a tab switch or refresh.
* ENG-1575 Fall back to Home when a hidden left sidebar tab is selected
When the flag is off, derive the displayed tab so a left-sidebar tab
that ends up selected (e.g. via a deep link from the command palette)
falls back to the Home tab instead of being rendered as a hidden
selection.
* Extract settings tab ids into named constants1 parent 92d3c56 commit e3e6a78
1 file changed
Lines changed: 30 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
89 | | - | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
93 | 108 | | |
94 | 109 | | |
95 | 110 | | |
96 | 111 | | |
97 | 112 | | |
98 | 113 | | |
99 | | - | |
| 114 | + | |
100 | 115 | | |
101 | 116 | | |
102 | 117 | | |
| |||
114 | 129 | | |
115 | 130 | | |
116 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
117 | 139 | | |
118 | 140 | | |
119 | 141 | | |
| |||
161 | 183 | | |
162 | 184 | | |
163 | 185 | | |
164 | | - | |
| 186 | + | |
165 | 187 | | |
166 | 188 | | |
167 | 189 | | |
168 | 190 | | |
169 | 191 | | |
170 | 192 | | |
171 | 193 | | |
172 | | - | |
| 194 | + | |
173 | 195 | | |
174 | 196 | | |
175 | 197 | | |
| |||
201 | 223 | | |
202 | 224 | | |
203 | 225 | | |
204 | | - | |
| 226 | + | |
| 227 | + | |
205 | 228 | | |
206 | 229 | | |
207 | 230 | | |
| |||
234 | 257 | | |
235 | 258 | | |
236 | 259 | | |
237 | | - | |
| 260 | + | |
| 261 | + | |
238 | 262 | | |
239 | 263 | | |
240 | 264 | | |
| |||
0 commit comments