Skip to content

Ask Lisa UI Config#3741

Merged
Maheshkale447 merged 6 commits into
masterfrom
Feature/ChatBotUIConfig
Jun 9, 2024
Merged

Ask Lisa UI Config#3741
Maheshkale447 merged 6 commits into
masterfrom
Feature/ChatBotUIConfig

Conversation

@AmanPrasad43

@AmanPrasad43 AmanPrasad43 commented Jun 8, 2024

Copy link
Copy Markdown
Contributor

Thank you for your contribution.
Before submitting this PR, please make sure:

  • PR description and commit message should describe the changes done in this PR
  • Verify the PR is pointing to correct branch i.e. Release or Beta branch if the code fix is for specific release , else point it to master
  • Latest Code from master or specific release branch is merged to your branch
  • No unwanted\commented\junk code is included
  • No new warning upon build solution
  • Code Summary\Comments are added to my code which explains what my code is doing
  • Existing unit test cases are passed
  • New Unit tests are added for your development
  • Sanity Tests are successfully executed for New and Existing Functionality
  • Verify that changes are compatible with all relevant browsers and platforms.
  • After creating pull request there should not be any conflicts
  • Resolve all Codacy comments
  • Builds and checks are passed before PR is sent for review
  • Resolve code review comments
  • Update the Help Library document to match any feature changes

Summary by CodeRabbit

  • New Features

    • Introduced a new UI page for configuring Ask Lisa features, including ChatBot settings and advanced options.
    • Added a new menu item for "Ask Lisa Configuration" under the external configurations menu.
  • Improvements

    • Made the Chat Panel and Chatbot Icon visible by default in the main window.
  • Dependency Updates

    • Updated project dependencies to reference Ginger.ExecuterService.Contracts version 24.3.1 across multiple project files.
  • Bug Fixes

    • Corrected typos and improved configuration handling in the Ask Lisa service helper.

@coderabbitai

coderabbitai Bot commented Jun 8, 2024

Copy link
Copy Markdown
Contributor

Walkthrough

The recent changes introduce a new UI page for configuring Ask Lisa within the Ginger application, update visibility settings for chatbot elements, and modify several project files to reference the Ginger.ExecuterService.Contracts package. Additionally, the changes include updates to configuration handling and menu items for accessing Ask Lisa configurations.

Changes

File Path Change Summary
.../AskLisaConfigurationsPage.xaml Introduced a new UI page for Ask Lisa configurations, including ChatBot and advanced settings.
.../AskLisaConfigurationsPage.xaml.cs Implemented AskLisaConfigurationsPage class with methods for loading and setting configurations.
Ginger/MainWindow.xaml.cs Updated import statement for GenAIServices.
.../MenusLib/ConfigurationsMenu.cs Added a new menu item for "Ask Lisa Configuration" and method to return AskLisaConfigurationsPage.
Ginger/MainWindow.xaml Changed visibility attributes of xChatPanel and xChatbotIcon from "Collapsed" to "Visible".
Ginger/Ginger.csproj Added <PackageReference> for Ginger.ExecuterService.Contracts and removed <Reference>.
.../External/Configurations/AskLisaConfiguration.cs Introduced AskLisaConfiguration class with properties for Ask Lisa settings.
.../GenAIServices/GenAIServiceHelper.cs Updated references and corrected typos in GenAIServiceHelper class.
Ginger/GingerCore.csproj Removed reference to Ginger.ExecuterService.Contracts.
GingerCoreNETUnitTest/GingerCoreNETUnitTest.csproj Added <PackageReference> and removed <Reference> for Ginger.ExecuterService.Contracts.
GingerCoreNET/GingerCoreNET.csproj Added <PackageReference> and removed <Reference> for Ginger.ExecuterService.Contracts.
GingerRuntime/GingerRuntime.csproj Added <PackageReference> for Ginger.ExecuterService.Contracts.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant MainWindow
    participant ConfigurationsMenu
    participant AskLisaConfigurationsPage

    User ->> MainWindow: Clicks "Configurations Menu"
    MainWindow ->> ConfigurationsMenu: Displays menu
    User ->> ConfigurationsMenu: Selects "Ask Lisa Configuration"
    ConfigurationsMenu ->> AskLisaConfigurationsPage: Opens configuration page
    AskLisaConfigurationsPage ->> User: Displays Ask Lisa settings
    User ->> AskLisaConfigurationsPage: Modifies settings
    AskLisaConfigurationsPage ->> AskLisaConfigurationsPage: Saves settings
Loading

Poem

In Ginger's heart, a new page blooms,
For Lisa's chat, no more in gloom.
Settings dance with ease and grace,
Configuration finds its place.
Packages aligned, projects refined,
A brighter path, now well-defined.
🌟🐰✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Outside diff range and nitpick comments (3)
Ginger/GingerCoreNET/GenAIServices/ChatBotResponseInfo.cs (1)

Line range hint 9-13: Consider using consistent capitalization for property names to follow C# naming conventions.

- public string message { get; set; }
+ public string Message { get; set; }
Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml.cs (1)

29-103: Ensure proper separation of concerns in UI and business logic to enhance maintainability. Consider refactoring to move business logic out of the UI layer.

Ginger/GingerCoreCommon/UserCofig/UserProfile.cs (1)

698-698: Add documentation for the AskLisaConfiguration property.

It's good practice to include comments explaining the purpose and usage of new properties, especially for serialized ones. This helps maintain code clarity and ease future maintenance.

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c0343a5 and c13c9dd.

Files selected for processing (12)
  • Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml (1 hunks)
  • Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml.cs (1 hunks)
  • Ginger/Ginger/MainWindow.xaml.cs (1 hunks)
  • Ginger/Ginger/MenusLib/ConfigurationsMenu.cs (2 hunks)
  • Ginger/Ginger/UserControlsLib/ChatBot/ChatbotWindow.xaml.cs (1 hunks)
  • Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs (1 hunks)
  • Ginger/GingerCoreCommon/Repository/RepositoryItemBase.cs (1 hunks)
  • Ginger/GingerCoreCommon/UserCofig/UserProfile.cs (3 hunks)
  • Ginger/GingerCoreNET/GenAIServices/ChatBotResponseInfo.cs (1 hunks)
  • Ginger/GingerCoreNET/GenAIServices/GenAIServiceData.cs (2 hunks)
  • Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs (3 hunks)
  • Ginger/GingerCoreNET/GenAIServices/GenAIServiceSettings.cs (1 hunks)
Files skipped from review due to trivial changes (3)
  • Ginger/Ginger/MainWindow.xaml.cs
  • Ginger/Ginger/UserControlsLib/ChatBot/ChatbotWindow.xaml.cs
  • Ginger/GingerCoreCommon/Repository/RepositoryItemBase.cs
Additional comments not posted (9)
Ginger/GingerCoreNET/GenAIServices/ChatBotResponseInfo.cs (1)

7-7: Namespace updated to align with project standards.

Ginger/GingerCoreNET/GenAIServices/GenAIServiceData.cs (1)

8-8: Namespace updated to align with project standards.

Ginger/GingerCoreNET/GenAIServices/GenAIServiceSettings.cs (1)

13-13: Namespace updated to align with project standards.

Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml.cs (1)

1-17: License header is correctly formatted and included.

Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs (1)

188-188: The addition of new fields in the chat request preparation method supports extended functionality. Verify integration with the chat service to ensure these new fields are processed correctly.

Ginger/Ginger/MenusLib/ConfigurationsMenu.cs (2)

92-92: The addition of the "Ask Lisa Configuration" menu item is correctly implemented with appropriate properties and method linkage.


149-152: The method GetAskLisaConfigsPage correctly creates and returns an instance of AskLisaConfigurationsPage. Good implementation of the factory pattern.

Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml (1)

1-108: The XAML structure for "Ask Lisa Configurations Page" is well-defined with appropriate controls and styles. Ensure that all data bindings are correctly configured and tested.

Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs (1)

27-290: The AskLisaConfiguration class is well-implemented with properties correctly set up for change tracking and serialization. Verify the serialization and deserialization processes to ensure all properties are correctly handled.

Comment on lines +17 to +33
public string TemperatureLevel = "0.1";
public string MaxTokenValue = "2000";

public string DataPath { set; get; }

public string StartNewChat { set; get; }
public string StartNewChat = "AQEQABot/Lisa/StartNewChat";

public string ContinueChat { set; get; }
public string ContinueChat = "AQEQABot/Lisa/ContinueChat";

public string GetToken { get; set; }
public string Token { get; set; }

public string AuthenticationServiceURL { set; get; }
public string AuthenticationServiceURL = "https://ilrnaaqua03/identityserverms/";

public string GrantType {set; get; }
public string GrantType = "client_credentials";

public string ClientId { set; get; }
public string ClientSecret { set; get; }
public string ClientId = "BrAIn";
public string ClientSecret = "AQEBrAIn_secret";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ensure that default values are defined as constants to improve maintainability and avoid magic numbers or strings in the code.

+ private const string DefaultTemperatureLevel = "0.1";
+ private const string DefaultMaxTokenValue = "2000";
+ private const string DefaultStartNewChat = "AQEQABot/Lisa/StartNewChat";
+ private const string DefaultContinueChat = "AQEQABot/Lisa/ContinueChat";
+ private const string DefaultAuthenticationServiceURL = "https://ilrnaaqua03/identityserverms/";
+ private const string DefaultGrantType = "client_credentials";
+ private const string DefaultClientId = "BrAIn";
+ private const string DefaultClientSecret = "AQEBrAIn_secret";

- public string TemperatureLevel = "0.1";
- public string MaxTokenValue = "2000";
- public string StartNewChat = "AQEQABot/Lisa/StartNewChat";
- public string ContinueChat = "AQEQABot/Lisa/ContinueChat";
- public string AuthenticationServiceURL = "https://ilrnaaqua03/identityserverms/";
- public string GrantType = "client_credentials";
- public string ClientId = "BrAIn";
- public string ClientSecret = "AQEBrAIn_secret";
+ public string TemperatureLevel = DefaultTemperatureLevel;
+ public string MaxTokenValue = DefaultMaxTokenValue;
+ public string StartNewChat = DefaultStartNewChat;
+ public string ContinueChat = DefaultContinueChat;
+ public string AuthenticationServiceURL = DefaultAuthenticationServiceURL;
+ public string GrantType = DefaultGrantType;
+ public string ClientId = DefaultClientId;
+ public string ClientSecret = DefaultClientSecret;
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
public string TemperatureLevel = "0.1";
public string MaxTokenValue = "2000";
public string DataPath { set; get; }
public string StartNewChat { set; get; }
public string StartNewChat = "AQEQABot/Lisa/StartNewChat";
public string ContinueChat { set; get; }
public string ContinueChat = "AQEQABot/Lisa/ContinueChat";
public string GetToken { get; set; }
public string Token { get; set; }
public string AuthenticationServiceURL { set; get; }
public string AuthenticationServiceURL = "https://ilrnaaqua03/identityserverms/";
public string GrantType {set; get; }
public string GrantType = "client_credentials";
public string ClientId { set; get; }
public string ClientSecret { set; get; }
public string ClientId = "BrAIn";
public string ClientSecret = "AQEBrAIn_secret";
private const string DefaultTemperatureLevel = "0.1";
private const string DefaultMaxTokenValue = "2000";
private const string DefaultStartNewChat = "AQEQABot/Lisa/StartNewChat";
private const string DefaultContinueChat = "AQEQABot/Lisa/ContinueChat";
private const string DefaultAuthenticationServiceURL = "https://ilrnaaqua03/identityserverms/";
private const string DefaultGrantType = "client_credentials";
private const string DefaultClientId = "BrAIn";
private const string DefaultClientSecret = "AQEBrAIn_secret";
public string TemperatureLevel = DefaultTemperatureLevel;
public string MaxTokenValue = DefaultMaxTokenValue;
public string DataPath { set; get; }
public string StartNewChat = DefaultStartNewChat;
public string ContinueChat = DefaultContinueChat;
public string Token { get; set; }
public string AuthenticationServiceURL = DefaultAuthenticationServiceURL;
public string GrantType = DefaultGrantType;
public string ClientId = DefaultClientId;
public string ClientSecret = DefaultClientSecret;

new KeyValuePair<string, string>("client_secret", _settings.GenAIServiceSettingsData.ClientSecret),
};
var response = await httpClient.PostAsync(_settings.GenAIServiceSettingsData.GetToken, new FormUrlEncodedContent(data));
var response = await httpClient.PostAsync(_settings.GenAIServiceSettingsData.Token, new FormUrlEncodedContent(data));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tip

Codebase Verification

The search results confirm that the GetToken method is still present and used within the GenAIServiceHelper.cs file. The method signature and its usages have not been updated to reflect the change to Token.

  • Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs: private async Task<bool> GetToken()
  • Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs: return await GetToken();
  • Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs: return await GetToken();

These lines indicate that the method GetToken is still being used internally within the GenAIServiceHelper class. The change to use Token instead of GetToken has not been applied.

Analysis chain

The change from GetToken to Token in the token retrieval URL is noted. Ensure all references to this method are updated accordingly.

Scripts executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify all function calls to `GetToken` are updated.

# Test: Search for the function usage. Expect: Only occurrences of the new method signature.
rg --type csharp $'GetToken'

Length of output: 1897



Script:

#!/bin/bash
# Description: Extract the full method definition and its usages within GenAIServiceHelper.cs

# Extract the method definition of GetToken
ast-grep --lang csharp --pattern $'private async Task<bool> GetToken() {
  $$$
}' Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs

# Extract all usages of GetToken within the same file
rg --type csharp 'GetToken' Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs

Length of output: 364

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c13c9dd and aab3bb3.

Files selected for processing (1)
  • Ginger/Ginger/MainWindow.xaml.cs (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • Ginger/Ginger/MainWindow.xaml.cs

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between aab3bb3 and 92625b5.

Files selected for processing (7)
  • Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml (1 hunks)
  • Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml.cs (1 hunks)
  • Ginger/Ginger/MainWindow.xaml (1 hunks)
  • Ginger/Ginger/MainWindow.xaml.cs (3 hunks)
  • Ginger/Ginger/MenusLib/ConfigurationsMenu.cs (2 hunks)
  • Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs (1 hunks)
  • Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs (7 hunks)
Files skipped from review as they are similar to previous changes (3)
  • Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml
  • Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml.cs
  • Ginger/Ginger/MenusLib/ConfigurationsMenu.cs
Additional context used
GitHub Check: Codacy Static Code Analysis
Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs

[warning] 19-19: Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs#L19
Remove this commented out code.

Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs

[warning] 30-30: Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs#L30
Remove the unused event 'AskLisaConfigChanged' or invoke it.


[warning] 75-75: Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs#L75
Remove this commented out code.

Ginger/Ginger/MainWindow.xaml.cs

[warning] 187-187: Ginger/Ginger/MainWindow.xaml.cs#L187
Remove this commented out code.

Additional comments not posted (8)
Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs (4)

28-28: Ensure the base URL ends with a slash for consistent API calls.


139-139: Ensure the API endpoints in the configuration are correct.

Also applies to: 158-158


186-190: Good use of centralized configuration settings for request details.


55-67: Update the internal usage of GetToken to Token to reflect the new configuration.

- return await GetToken();
+ return token;

Likely invalid or redundant comment.

Ginger/Ginger/MainWindow.xaml (1)

312-312: Visibility change for chatbot features enhances user interaction.

Ginger/Ginger/MainWindow.xaml.cs (3)

23-23: Update the import statement to reflect the new namespace.

This change aligns with the project's restructuring and ensures that the correct namespace is used for GenAIServices.


210-222: Implement the EnableChatBot method to toggle chatbot visibility.

This method correctly handles the visibility of chatbot components based on the AskLisaConfiguration. It ensures that event handlers are added or removed appropriately, which is crucial for maintaining performance and avoiding memory leaks.


186-187: Add event handler for AskLisaConfiguration.PropertyChanged.

This addition is crucial for dynamically updating the chatbot's visibility based on the configuration changes. However, consider removing the commented-out code to maintain code cleanliness.

- //EnableChatBot();

Likely invalid or redundant comment.

Tools
GitHub Check: Codacy Static Code Analysis

[warning] 187-187: Ginger/Ginger/MainWindow.xaml.cs#L187
Remove this commented out code.

public GenAIServiceHelper()
{
_settings = new GenAIServiceSettings();
//_settings = new GenAIServiceSettings();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove the commented-out code.

- //_settings = new GenAIServiceSettings();
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
//_settings = new GenAIServiceSettings();
Tools
GitHub Check: Codacy Static Code Analysis

[warning] 19-19: Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs#L19
Remove this commented out code.

public class AskLisaConfiguration : RepositoryItemBase
{
public delegate void AskLisaConfigurationChangedEvent();
public event AskLisaConfigurationChangedEvent AskLisaConfigChanged;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove or use the unused event AskLisaConfigChanged.

- public event AskLisaConfigurationChangedEvent AskLisaConfigChanged;
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
public event AskLisaConfigurationChangedEvent AskLisaConfigChanged;
Tools
GitHub Check: Codacy Static Code Analysis

[warning] 30-30: Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs#L30
Remove the unused event 'AskLisaConfigChanged' or invoke it.

GingerCoreCommonWorkSpace.Instance.UserProfile.OnPropertyChanged(nameof(AskLisaConfiguration));
GingerCoreCommonWorkSpace.Instance.UserProfile.StartDirtyTracking();

//OnPropertyChanged(nameof(GingerCoreCommonWorkSpace.Instance.UserProfile));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove the commented-out code.

- //OnPropertyChanged(nameof(GingerCoreCommonWorkSpace.Instance.UserProfile));
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
//OnPropertyChanged(nameof(GingerCoreCommonWorkSpace.Instance.UserProfile));
Tools
GitHub Check: Codacy Static Code Analysis

[warning] 75-75: Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs#L75
Remove this commented out code.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 92625b5 and 6754c3a.

Files ignored due to path filters (3)
  • Ginger/Ginger/DLLs/Ginger.ExecuterService.Contracts.dll is excluded by !**/*.dll
  • Ginger/GingerCoreNET/DLLS/Ginger.ExecuterService.Contracts.dll is excluded by !**/*.dll
  • Ginger/GingerCoreNETUnitTest/Ginger.ExecuterService.Contracts.dll is excluded by !**/*.dll
Files selected for processing (9)
  • Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml.cs (1 hunks)
  • Ginger/Ginger/Ginger.csproj (3 hunks)
  • Ginger/Ginger/MainWindow.xaml.cs (3 hunks)
  • Ginger/GingerCore/GingerCore.csproj (1 hunks)
  • Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs (1 hunks)
  • Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs (9 hunks)
  • Ginger/GingerCoreNET/GingerCoreNET.csproj (2 hunks)
  • Ginger/GingerCoreNETUnitTest/GingerCoreNETUnitTest.csproj (2 hunks)
  • Ginger/GingerRuntime/GingerRuntime.csproj (1 hunks)
Files skipped from review due to trivial changes (1)
  • Ginger/GingerCore/GingerCore.csproj
Files skipped from review as they are similar to previous changes (4)
  • Ginger/Ginger/ExternalConfigurations/AskLisaConfigurationsPage.xaml.cs
  • Ginger/Ginger/MainWindow.xaml.cs
  • Ginger/GingerCoreCommon/External/Configurations/AskLisaConfiguration.cs
  • Ginger/GingerCoreNET/GenAIServices/GenAIServiceHelper.cs
Additional comments not posted (4)
Ginger/GingerRuntime/GingerRuntime.csproj (1)

43-43: The addition of Ginger.ExecuterService.Contracts version 24.3.1 aligns with the project's dependency management strategy.

Ginger/GingerCoreNETUnitTest/GingerCoreNETUnitTest.csproj (1)

89-89: The addition of Ginger.ExecuterService.Contracts version 24.3.1 aligns with the project's dependency management strategy.

Ginger/GingerCoreNET/GingerCoreNET.csproj (1)

260-260: The addition of the package reference Ginger.ExecuterService.Contracts version 24.3.1 is a good practice for managing dependencies more efficiently.

Ginger/Ginger/Ginger.csproj (1)

707-707: Transition to package reference for Ginger.ExecuterService.Contracts enhances dependency management.

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