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

Keep a list of recently used plugins in app state #1171

Closed
jacobwod opened this issue Sep 13, 2022 · 3 comments · Fixed by #1180
Closed

Keep a list of recently used plugins in app state #1171

jacobwod opened this issue Sep 13, 2022 · 3 comments · Fixed by #1180
Assignees
Labels
module:client/core Core functionality (not a plugin) new feature Request for adding/changing functionality
Milestone

Comments

@jacobwod
Copy link
Member

jacobwod commented Sep 13, 2022

This is an idea I got: using Hajk on small screens usually means a lot of multi-tasking between the different tools (Layerswitcher->Turn on some layers->Close->Open Measure->Do some measuring->Realise you need another layer->Close Measure->Open LayerSwitcher->etc etc…)

I think it would be really useful to have some kind of UI element with the 3-4 most recently used plugins easily available somewhere on screen.

Before we do that, we need a mechanism that tracks and keeps a history of recently activated plugins.

This is what this feature is about.


Edit: I've expanded this feature to also include the UI part. Here's a video of the work-in-progress.

Skarminspelning.2022-09-16.kl.08.59.13.mov
@jacobwod jacobwod self-assigned this Sep 14, 2022
@jacobwod jacobwod added module:client/core Core functionality (not a plugin) new feature Request for adding/changing functionality labels Sep 14, 2022
@jacobwod jacobwod added this to the 3.x milestone Sep 14, 2022
jacobwod added a commit that referenced this issue Sep 14, 2022
…e issue to also include the UI part soon.
@jacobwod
Copy link
Member Author

Taking this a bit further, I'm about to implement a SpeedDial component that will keep track of 4-5 most recently used plugins and allow easy access to them.

A quick and rough illustration (don't mind the colors/icons/placement etc):
Skärmavbild 2022-09-15 kl  12 54 03

@jacobwod jacobwod linked a pull request Sep 19, 2022 that will close this issue
@jacobwod
Copy link
Member Author

I guess we have to rethink the UI for small viewports…

Skärmavbild 2022-09-28 kl  07 56 06

@jacobwod
Copy link
Member Author

Given the problem above, what about this: we invoke the same logic for plugins rendered as control buttons, as we do for plugins rendered as widget buttons. I.e. on small viewports, we ignore target: "control" (just as we ignore target: "left"|"right") and put those plugins in Drawer (as if they had target: "toolbar", basically). What do you think @Hallbergs, @jesade-vbg?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:client/core Core functionality (not a plugin) new feature Request for adding/changing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant