Skip to content

[Pull Request] Dev=UI separate si#3

Open
StardustSeemsInk wants to merge 11 commits into
mainfrom
dev=UI-separate-SI
Open

[Pull Request] Dev=UI separate si#3
StardustSeemsInk wants to merge 11 commits into
mainfrom
dev=UI-separate-SI

Conversation

@StardustSeemsInk

Copy link
Copy Markdown
Member

What does this PR do?

将Dashboard的后端逻辑分离为Core项目(和Core.Contract项目),并添加了Workflow相关的功能(包括BlockScript与蓝图,它们的互译与编译运行/debug模式运行,前端编辑器窗口与工作流库管理界面)。

This pull request includes significant refactoring and feature enhancements for the C#, WPF, and WinForms test plugins, along with project configuration updates and the addition of a GitHub Actions workflow for repository mirroring. The main themes are modernization of project structure, improved plugin metadata and function definitions, enhanced command handling, and better UI integration for WPF. Below are the most important changes grouped by theme:

C# Plugin Refactoring and Metadata Improvements:

  • Refactored IdentityInterface and Controller in TestPlugin.CSharp to use the new PluginInfo structure, centralizing all plugin metadata (name, version, display names, descriptions, author, etc.) and functions in a single object. The SayHello function is now fully described and implemented, and all legacy metadata methods are removed. (TestPlugin.CSharp/IdentityInterface.cs, TestPlugin.CSharp/Controller.cs) [1] [2] [3] [4]
  • Updated namespaces and imports to use the new KitX.Shared.CSharp structure for better consistency and future compatibility. (TestPlugin.CSharp/Controller.cs, TestPlugin.Winform.Core/Controller.cs, TestPlugin.WPF.Core/Controller.cs, TestPlugin.WPF.Core/MainWindow.xaml.cs) [1] [2] [3] [4]

Command Handling and Functionality:

  • Enhanced command execution in Controller classes: now supports request/response via Request objects, including serialization with options, and adds proper response handling for the SayHello function in the C# plugin. (TestPlugin.CSharp/Controller.cs, TestPlugin.Winform.Core/Controller.cs) [1] [2]
  • In the WPF plugin, moved function implementations to a new Functions class with attribute-based metadata, supporting localization and parameter descriptions. The controller now supports functions like HelloKitX, HelloAnything, and GetInput, with proper UI integration for input and trigger handling. (TestPlugin.WPF.Core/Functions.cs, TestPlugin.WPF.Core/Controller.cs, TestPlugin.WPF.Core/MainWindow.xaml, TestPlugin.WPF.Core/MainWindow.xaml.cs) [1] [2] [3] [4] [5]

Project and Build System Modernization:

  • Updated all project files to target .NET 10.0 (was .NET 8.0), set output type to Library for plugins, and added analyzer references for code generation. (TestPlugin.CSharp/TestPlugin.CSharp.csproj, TestPlugin.WPF.Core/TestPlugin.WPF.Core.csproj) [1] [2] [3]

UI and Plugin Structure Enhancements (WPF):

  • Improved the WPF plugin UI by adding a trigger test section with a text box and button to fire triggers, and exposed methods for retrieving input text and handling trigger events in code-behind. (TestPlugin.WPF.Core/MainWindow.xaml, TestPlugin.WPF.Core/MainWindow.xaml.cs) [1] [2]
  • Updated PluginStruct.json for WPF plugin to match new metadata and remove outdated fields. (TestPlugin.WPF.Core/PluginStruct.json)

CI/CD and Maintenance:

  • Added a GitHub Actions workflow (mirror.yml) to automatically mirror the repository to Gitee on push or manual dispatch, supporting cross-platform code distribution. (.github/workflows/mirror.yml)

These changes collectively modernize the plugin architecture, improve maintainability, and enhance the developer and user experience across the test plugins.


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