Improvements to Authentication, BASE URL, supporting multiple environments, and pool query. #7668
Closed
nadr0
announced in
Milestones
Replies: 2 comments 2 replies
-
I've got some designs in Figma here ready for your feedback. Here are some thoughts:
|
Beta Was this translation helpful? Give feedback.
2 replies
-
First implementation has been merged! #7714 Maybe there will be a round two! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Milestone for issue tracking: https://github.com/KittyCAD/modeling-app/milestone/18
Bodies of work
Environments
Environment variables
I want to support these environment variables
^ the following values except for
VITE_KC_CONNECTION_TIMEOUT_MS
will need to be cached on DISK.GUI
Logos

Status Bar
Pool (only present if pool is present)
Sign out

Sign out of developement
Sign out
Sign out of Production US
Sign in

Display domain input field
Pool

Display pool input for specific engine
Disable GUI
URL base domain clean up
urls like https://zoo.dev/blog are floating around the codebase and https://zoo.dev/account
We have
VITE_KC_BASE_URL
,VITE_KC_SITE_BASE_URL
, andVITE_KC_API_WS_MODELING_URL
as starting points. I want to make sure these are used in all the locations.@src/env
SITE_BASE_URL
, implement a helper function?@src/env
API_BASE_URL
, implement a helper function?@src/env
WS_MODELING_URL
, implement a helper function?process.env.BASE_URL ??= viteEnv.VITE_KC_API_BASE_URL
Web
Sign in to each environment at the same time
Desktop
/envs/<subdomain>.json
e.g/envs/dev.zoo.dev.json
environment.txt
to say what was the last selected environmentWeb
window.localStorage
for token should be purgedwindow.localStorage
requirement for the token, we already write it to disk. Always read it during application boot. This removes the secret stored in the browser/electron.Live swapping of environment
Development
XYZ
you should be able to swap to another environment assuming that/envs/dev.zoo.dev.json
is present and validGUI
Engine caching
/envs/dev.zoo.dev.json
PRs
Any PRs opened from this body of work
Beta Was this translation helpful? Give feedback.
All reactions