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

[#1417] Plug-in editor: Runtime tab should show selected package #1418

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ruspl-afed
Copy link
Contributor

@ruspl-afed ruspl-afed commented Sep 26, 2024

The simplest solution would be to use the section description

image

Fixes #1417

Copy link

github-actions bot commented Sep 26, 2024

Test Results

   285 files  +  6     285 suites  +6   50m 20s ⏱️ + 1m 51s
 3 586 tests ±  0   3 510 ✅ +  2   76 💤  -  1  0 ❌  - 1 
10 950 runs  +194  10 719 ✅ +167  231 💤 +28  0 ❌  - 1 

Results for commit 050b5af. ± Comparison against base commit f3ba023.

♻️ This comment has been updated with latest results.

@HannesWell
Copy link
Member

@ruspl-afed for the build-failure see #1419.

@ruspl-afed
Copy link
Contributor Author

Thanks @HannesWell ! After rebasing, everything turns green.
I'm going to merge it if there's no objection.

Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

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

Thanks @HannesWell ! After rebasing, everything turns green.

Better thank @akurtakov for his work on resolving this. :)

About this change: Can't one see the packages from the selection in the list?

grafik

On the other hand one can start scrolling and lose it, so it can be helpful to name the selected package(s) explicitly.

But I think we should keep (and fix) the introducing sentence and just append the actually selected packages. But when we are on this it should be adjusted depending on if one or multiple packages are selected:
Either The selected package is <selected-package> or The selected packages are: <selected-package-list>.
Or to read it more like a sentence with the following radio choice:

The package <selected-package> is: or The packages <selected-package-list> are:

@ruspl-afed
Copy link
Contributor Author

On the other hand one can start scrolling and lose it

Yes, this is exactly the case, see #1417

Either The selected package is or The selected packages are: .

I tried this approach in the very beginning and found that we have very limited horizontal space and it is better to avoid all the words except package name itself. And also, section doesn't support \n in description, so I cannot enumerate packages in the readable form of the vertical list

Please advice how to proceed better.

@laeubi
Copy link
Contributor

laeubi commented Sep 30, 2024

It took me some time to figure whats changed, as I would have expected the information of selected packages (if we want to duplicate that information) would be shown somewhere at the section list on the left.

Beside that I'm not sure if it is a good think, just in your example select all packages and it will become very crowded... I also wonder what is the underlying use case to select some packages and then scroll them out of view to afterwards show them on a different place.

In any case I would probably for artificially use-case more go like this:

  1. If there is only one package selected, show a text like The package <package> is (to further read the check boxes "public API" or "provisional API")
  2. If there are more than one, show a text like The packages are (to further read the check boxes "public API" or "provisional API") where packages is a link that shows a tooltip text with all selected packages, clicking on the link can bring up a dialog with a checkbox list where I can view and probably change the selection.

@ruspl-afed
Copy link
Contributor Author

Thank you for your comment @laeubi , it turns me back to the question how I came to this artificial use case.
Here is the scenario:

  1. There is a bundle with many packages. Well not so many, but more than 10 is enough for my setup.
  2. Another package added to the bundle, with a name that puts it to the end of the list.
  3. Then one decides to export this new package and opens the MANIFEST.MF editor on Runtime tab
  4. With "Add..." button the "new" package is added and selected, but the list is not scrolled to make it visible (may be this is the real issue!)

@HannesWell
Copy link
Member

Thanks Christoph for your suggestion. I wanted to suggest basically the same but got distracted and forgot to answer. Sorry for that.

2. If there are _more than one_, show a text like `The packages are` (to further read the check boxes "public API" or "provisional API") where `packages` is a link that shows a tooltip text with all selected packages, clicking on the link can bring up a dialog with a checkbox list where I can view and probably change the selection.

I fully support suggestion 1, but in suggestion two, opening a dialog that changes the selection is too much. I would simply stick with an (enhanced) simple label in case multiple packages are selected: The selected packages are.
Tbh. before this issue I wasn't really aware that one can even select multiple packages so I think this is a special case. And for a single package the situation would still be improved.

…ackage

The simplest solution would be to use the section description
@ruspl-afed
Copy link
Contributor Author

Is that what you meant? @HannesWell @laeubi

Single selection:
image

Multiple selection:
image

@laeubi
Copy link
Contributor

laeubi commented Nov 7, 2024

@ruspl-afed single selection looks fine for me, multi selection should be something like "the selected packages are" where you probabbly set a tooltip text to show the actual list because otherwise if you select say 10 or more package I fear it would somehow explode the available space.

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.

Plug-in editor: Runtime tab should show information about selected package
3 participants