Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Regression]: Fix modal orders #5779

Merged
merged 4 commits into from
Dec 26, 2024
Merged

[Regression]: Fix modal orders #5779

merged 4 commits into from
Dec 26, 2024

Conversation

malhotra5
Copy link
Contributor

@malhotra5 malhotra5 commented Dec 24, 2024

End-user friendly description of the problem this fixes or functionality that this introduces

  • Include this change in the Release Notes. If checked, you must provide an end-user friendly description for your change below

Give a summary of what the PR does, explaining any non-trivial design decisions

The SettingsModal was being displayed first thing even when user isn't authed or on the access list. This PR fixes this bug (request both github auth and access list permission to see the modal). This results in the following flow -

  1. Show waitlist modal first thing if user is not allowed (requires github auth to find out if user is on waitlist)
  2. If settings are out of date, the SettingsModal is displayed by frontend/src/components/features/sidebar/sidebar.tsx (only if user is allowed on access list)

Link of any specific issues this addresses


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:49e3096-nikolaik   --name openhands-app-49e3096   docker.all-hands.dev/all-hands-ai/openhands:49e3096

@malhotra5 malhotra5 marked this pull request as draft December 24, 2024 05:37
@malhotra5 malhotra5 marked this pull request as ready for review December 24, 2024 06:14
Copy link
Collaborator

@rbren rbren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it still render the modal if settings are out of date?

@malhotra5
Copy link
Contributor Author

Yes, it is handled inside sidebar.tsx

The logic here was duplicate

@malhotra5 malhotra5 requested a review from rbren December 24, 2024 17:45
@malhotra5 malhotra5 enabled auto-merge (squash) December 26, 2024 19:00
@malhotra5 malhotra5 merged commit 3bf5956 into main Dec 26, 2024
14 checks passed
@malhotra5 malhotra5 deleted the fix/modal-orders branch December 26, 2024 19:12
d-walsh pushed a commit to d-walsh/OpenHands that referenced this pull request Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants