Closed dencoded closed 4 years ago
Great work! Since the UI is designed to work for tablets/phones, I think it can be a little more compact.
Power Off.. simply use an icon for each respect action, when a confirmation dialog before taking the action itself so that the user verifies the operation. Use tooltip if user hovers (not available in mobile devices, but at least they get confirmation). Use the same standard icon theme we utilize.
Agent Mode. Again, needs to be simple with tooltips explaining what each option means. The INDIHUB Network Agent Control itself could be the link to indihub.space.. i.e. no need to mention it explicitly below. Alternatively, you can add an icon with the help symbol and upon clicking it would take you there.
@knro please take another look
I think it looks more compact and cleaner now.
Poweroff/Reboot buttons and new layout for INDIHUB Agent control with help-icon link at the top:
Tooltips over buttons:
Confirmation modal dialog before poweroff or reboot:
Tooltips over agent modes
Smaller screens:
This PR includes new API-endpoints and WEB-UI changes to control indihub-agent process.
The
indihub-agent
is an optional process which can be run on the side of theindiserver
process and can be stopped at any moment without affectingindiserver
process.However, if
indiserver
process is stopped this will lead to beindihub-agent
process stopped as well as indihub-agent needs INDI-server to keep running.New API endpoints:
GET /api/indihub/status
- to get indihub-agent statusPOST /api/indihub/mode/<mode>
- to change indihub-agent running mode with supported values for<mode>
param asoff
,solo
,share
,robotic
Web-UI flow changes:
INDI-Server is Off, it is not possible to run indihub-agent without INDI-Server
INDI-Server is running but indihub-agent is switched off (not running)
Run indihub-agent in some mode (i.e.
share
-mode) when INDI-Server is runningStop indihub-agent (switch to
off
-mode) while keep INDI-Server running