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

feat: wip on ConfigProvider and integration in settings_v2 #1395

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

alexhancock
Copy link
Collaborator

  • Iteration on a ConfigProvider which can contain an in memory copy of the current state of config.yaml + functions accessible via a useConfig hook to take action on the config via API (upsert value, add/remove extension, etc).
  • Uses the ConfigProvider to wrap settings_v2/SettingsView so all child components can use the hook.
  • Moves extensions parts of the new settings UI to a separate component

@alexhancock alexhancock requested a review from lily-de February 26, 2025 17:21
return (
<div className="h-screen w-full">
<div className="relative flex items-center h-[36px] w-full bg-bgSubtle"></div>
<ConfigProvider>
Copy link
Collaborator

Choose a reason for hiding this comment

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

So nice! Will we expand this out over more of the app so we can have state-controlled UI components anywhere we need?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm,we could wrap the whole app in it if you think that'd be helpful! I just thought all interactions with it might be from here but hard to say.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ideas for things that might need to appear in chat window (some of which are currently provided through context provider or local storage):

  • model switch shortcut / model shortlist (bottom RH corner)
  • current model (shown in bottom RH corner)
  • tokens / cost
  • idk if this will be something users will want to configure on-the-fly in the chat window, but thinking time for the latest claude model

@alexhancock alexhancock force-pushed the alexhancock/settings-v2-integration branch from 06d2a23 to 58f18e5 Compare February 26, 2025 20:44
@alexhancock alexhancock force-pushed the alexhancock/settings-v2-integration branch from 58f18e5 to 3ac8a15 Compare February 26, 2025 20:50
@alexhancock
Copy link
Collaborator Author

Feedback addressed!

@alexhancock alexhancock merged commit 1919cbf into main Feb 26, 2025
6 checks passed
@alexhancock alexhancock deleted the alexhancock/settings-v2-integration branch February 26, 2025 22:28
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.

2 participants