-
Notifications
You must be signed in to change notification settings - Fork 369
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
Unify dialog CRUD on shell action center. #2699
Comments
Dialog CRUD interfaceBy splitting dialog operation from one Current visual editor handler crud logic exist on file Add/**
Delete/**
Update/**
update(id, path, data) {} Cut/**
cut(from, to) {} Copy/**
copy(id, path) {} Paste/**
paste(id, path, data) {} |
if we keep use |
It's good to see, we can separate the dialog operation discussion from how dialog\lg\lu work together. Talking about this specific issue, i get the benefits from have a fine grained dialog API, it would help clarify the change type, perhaps also make undo\redo easier, basically when your interface is more fine-grained, you will have more controls. But like you also mentioned, it's not the only way to do that, a "json diff" is also a valid approach, and i will prefer "json diff", because of the benefits on architecture wide. A fine-grained API for dialog operations is creating a new abstraction on top of json file, that all editors will work on. Which
All i listed above are what i called "architectural cost", and this type of cost is usually huge as it may look like now. Think of if our editor and our shell is only talking through a "saveData" api (which we can expand the json to be a virtual json which joined dialog, lg, lu data). If the protocol is simple as json editing, it will be very easy to replace or add an json editor than give direct manipulation to json. I will probably start draft a design doc about how can unify all opertaion and side effects in one plain saveData api, you can continue refine the API design here to a state you feel comfortable, we can compare those two approach's pros and cons then. |
addressed part of this issue in #2718
|
No longer valid since we handle qna/lu/lg separately |
Is your feature request related to a problem? Please describe.
Part of #2312 , to support dialog-driven lg/lu resource maintains. this issue focus on dialog CRUD interface design.
Describe the solution you'd like
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: