First time visitor closing AuthScreen renders WelcomeScreen
Issue
Spinning this off of #1930 per discussion with @RodriSanchez1:
When a new user to the site visits the root path (/), the WelcomeScreen component is rendered.
#1930 aims to make the AuthScreen (/login-signup) Close (X) button send the user to / if they do not have any browsing history on the app. In this case, closing the AuthScreen via this button renders WelcomeScreen because isFirstVisit && !isLogged is true, when sending the user to /board/root makes more sense:
https://github.com/cboard-org/cboard/blob/1a7e0a97a963ad42636242cb1ced58d2c83a6a5a/src/components/App/App.component.js#L84-L90
Steps to reproduce from AuthScreen:
- Visit
/login-signup - Run localStorage.removeItem('persist:root') from console
- Reload page
- Click X button in top left
Expected Behavior
User is redirected to the root board, similarly to if selecting "Skip for now" from WelcomeScreen.
Actual Behavior
User is shown WelcomeScreen, which is redundant.
https://github.com/user-attachments/assets/62e290a8-bbbb-415e-baf1-fb017b4a2e41
Assign This issue To me ,, I can fix this .
@Harshitraaaj Hi! Welcome to the Cboard project. I just assigned the issue to you! Thanks
@RodriSanchez1 Bro look at my pull req.