Skip to content

feat: UI/UX for regions #7283

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

Merged
merged 54 commits into from
Apr 28, 2023
Merged

feat: UI/UX for regions #7283

merged 54 commits into from
Apr 28, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Apr 25, 2023

What this does

When you select a workspace proxy, that proxy will be used for links on the workspace dashboard. App links change based on the selected proxy. The terminal changes what websocket url it uses based on the proxy.

Removed getting application host from other parts in the codebase. Using a context instead.

Missing funcationality

Right now the terminal does not work with a workspace proxy because of the CSP policy. The error is:

rminalPage-b4b695c0.js:7 Refused to connect to ... because it violates the following Content Security Policy directive: "connect-src 'self' wss://localhost:3000 ws://localhost:3000".

This is known and not fixed in this PR. If you remove that CSP policy, it does work. We setup CORs to work, but the CSP requires more refactoring. This will happen in another PR. See #7308

Testing

Must have moons experiment enabled!

Not done

If the selected proxy becomes unhealthy, the links will still direct to it.

Styling TBD

All of this is feature flagged. We can make things prettier before we release. Just getting a functional UI in.

Screenshot from 2023-04-25 14-50-35

Without experiment on

If moons experiment is not enabled, no UI changes happen.

Screenshot from 2023-04-25 14-53-58

@bpmct
Copy link
Member

bpmct commented Apr 26, 2023

So an admin can set an icon for each workspace proxy?

@Emyrk
Copy link
Member Author

Emyrk commented Apr 26, 2023

So an admin can set an icon for each workspace proxy?

Yes. Figured that kinda our pattern for other resources and icons are fun

@Emyrk
Copy link
Member Author

Emyrk commented Apr 27, 2023

I'm seeing this panic in the server logs when I run your branch. I haven't seen it on main (although maybe I missed it?):

Fixed, good catch. We added a route that was gated by the feature flag. We changed the endpoint to always be accessible, and forgot to update the code to reflect that.

I fixed this.

@Kira-Pilot
Copy link
Member

Throughout this PR, seems like we're using 'proxy' and 'region' interchangeably. Can we pick one and be consistent?

Copy link
Member

@Kira-Pilot Kira-Pilot left a comment

Choose a reason for hiding this comment

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

Nice work here!

@Emyrk Emyrk merged commit 4a9d1c1 into main Apr 28, 2023
@Emyrk Emyrk deleted the stevenmasley/regions branch April 28, 2023 21:04
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants