yiisoft / yii-dev-panel

An application that aggregates such different modules as: Debug, Inspector, Gii and Open API
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

Command management UI #74

Open xepozz opened 12 months ago

xepozz commented 12 months ago

Yii dev panel supports running project and vendor commands from UI.

One layer

Here we have 3 different type of command view:

Test view

image image

Analyse view

image image

General view

image image

So every three type of result view are used in different pages, but any commands can be ran from one layout.

It would be great to merge all of these commands into one page (Commands) and split groups on the tabs.

Result cache

Every page refresh one run another command clears the results were got from previous run. It's not convenient to use it because you can't compare commands results with the ones from history.

I'd add storing results to some client storage (local storage, session storage, indexeddb storage, memory storage) and let users manipulate the history size in MB or records number.

Async command result

When you run a command from UI it makes HTTP request to a server and uses the response to render result. But if a user changed page to another, the change cancels the HTTP request and the result won't be shown.

I'm thinking about creating a WebWorker to delegate the request and using Result cache to render the result when the user change the page back to Commands