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

Save Plugins opened #33

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Save Plugins opened #33

merged 1 commit into from
Feb 7, 2024

Conversation

xbotter
Copy link
Owner

@xbotter xbotter commented Feb 7, 2024

The most significant changes include the addition of a new class PluginCloseMessage to handle the closing of a plugin, the creation of a ProfileService class to manage user profiles, and the modification of PluginViewModel.cs to include a new method RemovePlugin and CanRemovePlugin. Additionally, the PluginsViewModel class was updated to handle PluginCloseMessage messages and use the ProfileService to manage the list of opened plugins. Lastly, changes were made to the user interface, including the addition of a new button in PluginsView.axaml to remove a plugin.

  1. A new class PluginCloseMessage was added to PluginOpenMessage.cs in the PromptPlayground.ViewModels namespace. This class extends FileOrFolderOpenMessage and is used to handle the closing of a plugin.
  2. A new ProfileService class was added to ProfileService.cs. This class is used to manage user profiles. It includes methods for getting the profile path, getting the profile, and saving the profile.
  3. The PromptService class in PromptService.cs was modified. The changes appear to be mostly formatting, with no significant changes to the functionality of the class.
  4. In ConfigViewModel.cs, the ConfigAttribute.AzureDeployment attribute was added to the RequiredAttributes array.
  5. The GenerateResult class in GenerateResult.cs was modified. The changes appear to be mostly formatting, with no significant changes to the functionality of the class.
  6. In PluginViewModel.cs, a new method RemovePlugin was added, which sends a PluginCloseMessage if the plugin's folder exists. The CanRemovePlugin method was also added to check if the plugin's folder exists. The DefaultName constant and DefaultNamePattern regex were also updated.
  7. The PluginsViewModel class in PluginsViewModel.cs was modified to handle PluginCloseMessage messages. It now uses the ProfileService to save and load the list of opened plugins. The DefaultPlugin constant was also added.
  8. The SemanticFunctionViewModel class in SemanticFunctionViewModel.cs was modified. The changes appear to be mostly formatting, with no significant changes to the functionality of the class.
  9. In EditorView.axaml, the DocumentTextBindingBehavior was modified to be more readable by splitting the properties onto separate lines.
  10. In MainView.axaml.cs, the default function name was changed from "[New Function]" to "[Unsaved]".
  11. In PluginsView.axaml, a new button was added to remove a plugin. This button is only visible when the plugin can be removed.

…ginCloseMessage` to handle the closing of a plugin, the creation of a `ProfileService` class to manage user profiles, and the modification of `PluginViewModel.cs` to include a new method `RemovePlugin` and `CanRemovePlugin`. Additionally, the `PluginsViewModel` class was updated to handle `PluginCloseMessage` messages and use the `ProfileService` to manage the list of opened plugins. Lastly, changes were made to the user interface, including the addition of a new button in `PluginsView.axaml` to remove a plugin.

1. A new class `PluginCloseMessage` was added to `PluginOpenMessage.cs` in the `PromptPlayground.ViewModels` namespace. This class extends `FileOrFolderOpenMessage` and is used to handle the closing of a plugin.
2. A new `ProfileService` class was added to `ProfileService.cs`. This class is used to manage user profiles. It includes methods for getting the profile path, getting the profile, and saving the profile.
3. The `PromptService` class in `PromptService.cs` was modified. The changes appear to be mostly formatting, with no significant changes to the functionality of the class.
4. In `ConfigViewModel.cs`, the `ConfigAttribute.AzureDeployment` attribute was added to the `RequiredAttributes` array.
5. The `GenerateResult` class in `GenerateResult.cs` was modified. The changes appear to be mostly formatting, with no significant changes to the functionality of the class.
6. In `PluginViewModel.cs`, a new method `RemovePlugin` was added, which sends a `PluginCloseMessage` if the plugin's folder exists. The `CanRemovePlugin` method was also added to check if the plugin's folder exists. The `DefaultName` constant and `DefaultNamePattern` regex were also updated.
7. The `PluginsViewModel` class in `PluginsViewModel.cs` was modified to handle `PluginCloseMessage` messages. It now uses the `ProfileService` to save and load the list of opened plugins. The `DefaultPlugin` constant was also added.
8. The `SemanticFunctionViewModel` class in `SemanticFunctionViewModel.cs` was modified. The changes appear to be mostly formatting, with no significant changes to the functionality of the class.
9. In `EditorView.axaml`, the `DocumentTextBindingBehavior` was modified to be more readable by splitting the properties onto separate lines.
10. In `MainView.axaml.cs`, the default function name was changed from "[New Function]" to "[Unsaved]".
11. In `PluginsView.axaml`, a new button was added to remove a plugin. This button is only visible when the plugin can be removed.
@xbotter xbotter merged commit 182e8a2 into main Feb 7, 2024
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.

1 participant