Commit c6915f4
committed
Resolves #4351 ([FR-1527](https://lablup.atlassian.net/browse/FR-1527))
## Problem
Internal modals in the session detail panel keep reopening each time the panel is automatically refreshed, causing a disruptive user experience with multiple instances of the same modal appearing without user interaction.
## Solution
Restructured the SessionActionButtons component to move modals outside the wrapper component. This prevents the modals from being recreated and reopened during automatic panel refresh cycles.
### Changes Made:
- Moved modal components (AppLauncherModal, ContainerLogModal, ContainerCommitModal, TerminateSessionModal) outside the Wrapper component
- Wrapped modals in a Suspense fallback to ensure proper loading behavior
- Maintained all existing functionality while fixing the modal reopening issue
### Testing:
- ✅ Modal functionality remains intact
- ✅ Modals no longer reopen during automatic refresh
- ✅ All action buttons continue to work as expected
- ✅ Pre-commit hooks passed (linting/formatting)
## Impact
This fix resolves the bug described in FR-1527 where users experienced unexpected modal reopening during automatic session panel refreshes, improving the overall user experience when working with session details.
[FR-1527]: https://lablup.atlassian.net/browse/FR-1527?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent cf4bbab commit c6915f4
File tree
1 file changed
+113
-100
lines changed- react/src/components/ComputeSessionNodeItems
1 file changed
+113
-100
lines changedLines changed: 113 additions & 100 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
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 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
175 | 155 | | |
176 | | - | |
| 156 | + | |
177 | 157 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
189 | 178 | | |
190 | | - | |
191 | | - | |
| 179 | + | |
192 | 180 | | |
193 | 181 | | |
194 | 182 | | |
| |||
206 | 194 | | |
207 | 195 | | |
208 | 196 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 197 | + | |
220 | 198 | | |
221 | | - | |
222 | | - | |
| 199 | + | |
223 | 200 | | |
224 | 201 | | |
225 | 202 | | |
| |||
242 | 219 | | |
243 | 220 | | |
244 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
245 | 273 | | |
246 | 274 | | |
247 | 275 | | |
248 | 276 | | |
249 | 277 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
269 | 285 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | 286 | | |
274 | | - | |
275 | | - | |
276 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
277 | 290 | | |
278 | 291 | | |
279 | 292 | | |
| |||
0 commit comments