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

Lead the user to the AI settings when no provider is set up #18121

Merged
merged 128 commits into from
Oct 29, 2024

Conversation

PankajBhojwani
Copy link
Contributor

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

PankajBhojwani and others added 12 commits October 25, 2024 10:13
# 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

[asfsadf](#security-tab) is not a recognized word. \(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

[afsdf](#security-tab) is not a recognized word. \(unrecognized-spelling\)
@@ -5730,6 +5734,9 @@ namespace winrt::TerminalApp::implementation
_extensionPalette.ActiveCommandline(L"");
}
});
_extensionPalette.SetUpProviderInSettingsRequested([&](IInspectable const&, IInspectable const&) {
OpenSettingsUI(L"AISettings_Nav");
Copy link
Contributor Author

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

Copy link
Member

@DHowett DHowett left a 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!

Base automatically changed from dev/pabhoj/featurellm_registry_enable to feature/llm October 29, 2024 01:41
@DHowett
Copy link
Member

DHowett commented Oct 29, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@DHowett DHowett enabled auto-merge (squash) October 29, 2024 15:29
@DHowett DHowett changed the title Provide a button that leads the user to the Settings AI page when no provider is set up Lead the user to the AI settings when no provider is set up Oct 29, 2024
@@ -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;
Copy link
Member

Choose a reason for hiding this comment

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

@DHowett DHowett merged commit 5881ab5 into feature/llm Oct 29, 2024
20 checks passed
@DHowett DHowett deleted the dev/pabhoj/featurellm_deeplink_settings branch October 29, 2024 16:20
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.

3 participants