-
Notifications
You must be signed in to change notification settings - Fork 886
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
feat: UI/UX for regions #7283
Conversation
So an admin can set an icon for each workspace proxy? |
Yes. Figured that kinda our pattern for other resources and icons are fun |
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. |
Throughout this PR, seems like we're using 'proxy' and 'region' interchangeably. Can we pick one and be consistent? |
Delete extra hook Renames regions -> proxies
site/src/pages/UserSettingsPage/WorkspaceProxyPage/WorkspaceProxyRow.tsx
Outdated
Show resolved
Hide resolved
site/src/pages/UserSettingsPage/WorkspaceProxyPage/WorkspaceProxyRow.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work here!
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:
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.
Without experiment on
If
moons
experiment is not enabled, no UI changes happen.