Skip to content
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

Small UI bug fixes to MSUI/MSCOlab UI #1759

Merged
merged 1 commit into from
Apr 28, 2023
Merged

Small UI bug fixes to MSUI/MSCOlab UI #1759

merged 1 commit into from
Apr 28, 2023

Conversation

joernu76
Copy link
Member

  • Only one flighttrack/operation/inactive operation can be selected.
  • "Activate operation" is now disablked by default
  • Only one flighttrack/operation can be displayed in bold

Fix #1756, #1755, #1752

* Only one flighttrack/operation/inactive operation can be selected.
* "Activate operation" is now disablked by default
* Only one flighttrack/operation can be displayed in bold

Fix #1756, #1755, #1752
@joernu76 joernu76 requested a review from ReimarBauer April 27, 2023 15:47
@joernu76
Copy link
Member Author

Seems to work, but this is pretty brittle.

The "selection" is also fully useless in operations as the Menu always operates on the "bolded"/active_op_id, not the selected one.
I would classify that as a bug as well. The menu should operate on the selected one (blue bar, if any) while the bolded one is the one used in the views.
I couldn't test the proper enabling/disabling of inactive operations as I have none on the server. Simply for testing an "archive operatiopn" action would be useful.

I propose quick fixes for stable and a proper refactorization for develop...?

@ReimarBauer
Copy link
Member

show_unarchive

@ReimarBauer
Copy link
Member

ReimarBauer commented Apr 27, 2023

Seems to work, but this is pretty brittle.

The "selection" is also fully useless in operations as the Menu always operates on the "bolded"/active_op_id, not the selected one.

Well that was copied behaviour of Flight Track. In both lists selection have not any functions. And I doubt that it can be used without accessing the data. We use the bold font to indicate what was activated by double click. This can be seen when something else gets pointless selected.
But why don't we activate by selecting? Why was the double click introduced?

Ok the difference to Flight Track is one can close one by selection which doesn't have been activated. And in Operations one can only delete the activated one. When the activated OP is deleted there is a misbehaviour, the controls of the waypoints should become disabled until another OP or Flighttrack becomes selected.
(The Operations in this case use as fall back the stub data from the configuration)
At the moment we have archive for Operations, this is quite close to Close of a Flighttrack.

I would classify that as a bug as well. The menu should operate on the selected one (blue bar, if any) while the bolded >one is the one used in the views.

This did not work, we need to get access to the data from the server when we want to change that data. e.g. we could not delete an OP when we don't have logged in to that OP.
We could maybe replace double click by selection.

I couldn't test the proper enabling/disabling of inactive operations as I have none on >the server. Simply for testing an "archive operatiopn" action would be useful.

yes, we need an archive menu and a cli command.

I propose quick fixes for stable and a proper refactorization for develop...?

I would not touch selection and double click in 8, I think we can remove double click and selection is enough.

Copy link
Member

@ReimarBauer ReimarBauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, see my answers :)

@ReimarBauer
Copy link
Member

ReimarBauer commented Apr 27, 2023

Hmm, Not sure if that is wanted bahavior. The selection is now only in the inactive operation and on open views, before it was also on the bold marked operation or flight track.

before

before

after

after

When we move inactive Operations to its own widget, I think selecting and keeping what is selected can replace double click

On the Open views we have a similar problem. There can be a view selected which is not the one I see.

@joernu76
Copy link
Member Author

Yes, the whole UI is not fully consistent. The selection in views is also fully useless, but I couldn't remove it.

Having multiple selections makes it difficult for the user to find out on which selection the menu action operates. At least only one flight track/operation can be selected now, which makes it a tad simpler to know beforehand what will happen...

AFAIK MSS must have an active flighttrack/operation. E.g., this is why you cannot delete the active flight track. I would have assumed the same holds true for operations...? This is another bug provoking a crash. I will file an issue.

We may need a full redesign in 9, but this goes beyond a UI bug fix.
Your description of MSCOlab limitations seem to make this difficult/impossible to achieve.

@joernu76 joernu76 merged commit 657d0f7 into stable Apr 28, 2023
@joernu76 joernu76 deleted the issue1752 branch June 13, 2023 10:46
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