-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Lead the user to the AI settings when no provider is set up #18121
Lead the user to the AI settings when no provider is set up #18121
Conversation
…nto dev/pabhoj/featurellm_openai
# Conflicts: # src/cascadia/TerminalSettingsEditor/AISettingsViewModel.h # src/cascadia/TerminalSettingsEditor/AISettingsViewModel.idl # src/cascadia/TerminalSettingsEditor/Resources/en-US/Resources.resw
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
@@ -177,6 +177,14 @@ | |||
<value>Assistant</value> | |||
<comment>A string to represent the section that the chat assistant typed, presented when the user exports the chat history to a file</comment> | |||
</data> | |||
<data name="SetUpProviderDisclaimer.Text" xml:space="preserve"> | |||
<value>You have not set up an AI provider yet! Set one up in the settings</value> | |||
<comment>asfsadf</comment> |
Check failure
Code scanning / check-spelling
Unrecognized Spelling
</data> | ||
<data name="SetUpProviderButton.Text" xml:space="preserve"> | ||
<value>Set up AI provider</value> | ||
<comment>afsdf</comment> |
Check failure
Code scanning / check-spelling
Unrecognized Spelling
@@ -5730,6 +5734,9 @@ namespace winrt::TerminalApp::implementation | |||
_extensionPalette.ActiveCommandline(L""); | |||
} | |||
}); | |||
_extensionPalette.SetUpProviderInSettingsRequested([&](IInspectable const&, IInspectable const&) { | |||
OpenSettingsUI(L"AISettings_Nav"); |
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.
A little annoying to hard code this string here - we might want to eventually have an enum for each possible nav page
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.
This is very good. Thank you!
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -34,6 +34,7 @@ namespace Microsoft.Terminal.Settings.Editor | |||
[default_interface] runtimeclass MainPage : Windows.UI.Xaml.Controls.Page, IHostedInWindow | |||
{ | |||
MainPage(Microsoft.Terminal.Settings.Model.CascadiaSettings settings); | |||
String StartingPage; |
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.
There's notes scattered throughout
- Tab tearout for Settings page loses current page #18012
- Process Model v3 / Tab tear-out ship list #14957
- Saving settings moves/looses focus to Startup item #15600
of things that this might help us fix. Nice
When a user opens up Terminal Chat but does not have a provider set up, provide a button that sends them to the relevant settings page