Skip to content

Dev=workflow si - #38

Closed
StardustSeemsInk wants to merge 3 commits into
dev=mainfrom
dev=workflow-SI
Closed

Dev=workflow si#38
StardustSeemsInk wants to merge 3 commits into
dev=mainfrom
dev=workflow-SI

Conversation

@StardustSeemsInk

Copy link
Copy Markdown
Member

What does this PR do?

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

This pull request introduces a comprehensive architectural plan and several code changes to support the separation of KitX Dashboard into distinct front-end and back-end components. The main focus is on decoupling business logic from UI, introducing new service providers, updating project dependencies, and laying out detailed documentation and migration strategies for the refactor.

Key changes:

Architectural Documentation & Planning

  • Added a detailed technical analysis report (Detiled-Plan.md) outlining the current monolithic issues, what logic should be moved to the new backend (Core), what remains in the frontend, and a phased migration and refactor plan. This includes explicit file and class migration mapping, interface design, DI setup, and API/SignalR communication patterns.
  • Added a high-level architecture separation plan (Separation-Plan.md) describing the new system structure, responsibilities of each part, migration steps, and new directory layout for both Core and Dashboard projects.

Backend/Frontend Code Separation

  • Introduced PluginServiceProvider, a new class that acts as a bridge between the Dashboard and the plugin parser, providing methods to find plugins/connectors, send requests, and subscribe to plugin responses. This class encapsulates communication logic and error handling for plugin operations.
  • Enhanced PluginConnector to include a static event OnPluginResponse for handling asynchronous plugin responses, and updated the command dispatch logic to trigger this event when a response with a RequestId tag is received. [1] [2]

Project & Model Updates

  • Updated the project file to target .NET 10.0 and added a reference to the Kscript.CSharp.Parser project, preparing the solution for future backend integration and scripting support. [1] [2]
  • Extended the WorkflowCase model with a new ScriptPath property to support referencing external script files for workflows.

These changes provide a solid foundation for the planned front-end/back-end separation and enable scalable, maintainable growth of the KitX Dashboard platform.


@StardustSeemsInk

Copy link
Copy Markdown
Member Author

Wrong branch.

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