-
Notifications
You must be signed in to change notification settings - Fork 617
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
refactor: Component hierarchy and code cleanup #1319
Conversation
this is huge! digging in. |
875834f
to
c652123
Compare
@@ -0,0 +1,9 @@ | |||
# Goosey |
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.
wait how does this work?
@@ -101,18 +177,42 @@ export default function App() { | |||
isSubmitting={isInstalling} | |||
/> | |||
)} | |||
<ModelProvider> | |||
<ActiveKeysProvider> |
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.
I think removing ActiveKeysProvider
and ModelProvider
will break how we track configured providers and currently set model
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.
maybe this got moved somewhere and im just not seeing it
<ErrorBoundary> | ||
<App /> | ||
</ErrorBoundary> | ||
<ModelProvider> |
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.
nvm re earlier comments i found it! nice
c652123
to
0f3066c
Compare
0f3066c
to
520fad0
Compare
A major refactor of component hierarchy and code cleanup
renderer.tsx > App.tsx -> ___View.tsx
renderer.tsx
only includes top level context providers/error boundary/etcApp.tsx
is now the top level component which manages theview/setView
stateSomethingView.tsx
and these are rendered conditionally based on the value ofview
inApp.tsx