Commit c23a382
fix(meeting-join): refactor auto-join logic to prevent infinite loop (#126)
* fix(meeting-join): refactor auto-join logic to prevent infinite loop
- Remove OnDestroy lifecycle and timeout cleanup
- Simplify auto-join using RxJS filter and take(1) operators
- Create fetchedJoinUrl signal for preemptive URL fetching
- Convert join buttons to use href instead of click handlers
- Add security attributes to button component links
- Fix project logo centering and sizing
LFXV2-669
Generated with [Claude Code](https://claude.ai/code)
Signed-off-by: Asitha de Silva <asithade@gmail.com>
* fix(ui): pass in link target and rel for buttons
Signed-off-by: Asitha de Silva <asithade@gmail.com>
* fix(ui): pass in link target and rel for buttons
Signed-off-by: Asitha de Silva <asithade@gmail.com>
* fix(meeting-join): add loading and error handling for join URL
LFXV2-669
- Add loading spinner while fetching join URL
- Display error messages when join URL fetch fails
- Separate authenticated and unauthenticated user flows
- Add debouncing (300ms) to form status changes to prevent rapid re-fetches
- Improve user feedback with loading states in both authenticated and form sections
- Reset error state on each fetch attempt
Signed-off-by: Asitha de Silva <asithade@gmail.com>
* refactor(meeting-join): simplify bindings and eliminate duplication
Simplified button href and disabled bindings by removing redundant canJoinMeeting() checks since fetchedJoinUrl() already returns undefined when the meeting cannot be joined.
Refactored initializeFetchedJoinUrl() to eliminate code duplication:
- Extracted common join URL fetching logic into fetchJoinUrl() method
- Removed duplicate API call handling for authenticated/unauthenticated flows
- Removed signal mutation anti-pattern (meeting.join_url assignment)
- Improved maintainability with single source of truth for fetch logic
Generated with [Claude Code](https://claude.ai/code)
Signed-off-by: Asitha de Silva <asithade@gmail.com>
---------
Signed-off-by: Asitha de Silva <asithade@gmail.com>
Signed-off-by: Mauricio Zanetti Salomao <msalomao@contractor.linuxfoundation.org>1 parent b025caf commit c23a382
File tree
5 files changed
+178
-177
lines changed- .vscode
- apps/lfx-one/src/app
- modules/meeting/meeting-join
5 files changed
+178
-177
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
Lines changed: 59 additions & 37 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 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 | + | |
231 | 258 | | |
232 | 259 | | |
233 | 260 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
247 | 264 | | |
248 | 265 | | |
249 | 266 | | |
| |||
332 | 349 | | |
333 | 350 | | |
334 | 351 | | |
335 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
336 | 356 | | |
337 | 357 | | |
338 | 358 | | |
339 | 359 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
344 | 366 | | |
345 | 367 | | |
346 | 368 | | |
| |||
0 commit comments