Ma77Ball opened a new pull request, #5311: URL: https://github.com/apache/texera/pull/5311
### What changes were proposed in this PR? - Add an `attemptRegister` flag to `DashboardComponent.forumLogin` so a Flarum registration is attempted at most once, breaking the infinite `auth -> register -> auth` cycle that occurred when `auth()` kept failing with a non-404/500 status. - After registering, the recursive call now passes `forumLogin(false)`; if auth still fails on that pass it falls through to `displayForum = false` instead of looping. - Add an error handler to the `register()` subscription so a failed registration hides the forum rather than being silently dropped. ### Any related issues, documentation, or discussions? Closes: #5310 ### How was this PR tested? - Ran `yarn format:fix` (clean, no files changed). - Manually traced the control flow: auth fail (non-404/500) now does auth, register, auth, then stop, instead of recursing without bound. ### Was this PR authored or co-authored using generative AI tooling? Co-authored with Claude Opus 4.8 in compliance with ASF -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
