-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Refactor Share & Download UI for better usability #1454
Conversation
@jschleic this is something we should better document but the source of svg icons are in It would (hopefully) avoid such a big diff. |
Thanks for your PR!
I wonder if a dedicated URL, like we did for the full (umap) backup and as you suggested, would be pertinent for your use-case to be able to make your own custom buttons. In the meantime, I appreciate that 4-buttons version! Both are possible though and could be part of a two-step PRocess. |
cc @Aurelie-Jallut could you have a look ? 👍 @jschleic Thanks a lot for this :) Indeed, this dialog needs a refactor. Would you mind doing a first separate PR with the technical part and things unrelated to the new UI proposal ? So we can merge it quickly and concentrate then on the UI/UX part. Also, what do you think of moving this panel to a dedicated class as we did recently for browser and importer ? I really like your proposal, but I'd like Aurélie (the UX of the team) to have a look to! So I'd say lets first focus on non UI/UX changes, so we can then focus on a smaller diff. What do you think ? |
Thanks for the quick response! I've separated out the headline / title / svg stuff which is about consistency of all dialogs (also UI). |
06ce5b4
to
63c14fe
Compare
Thanks! One related issue I've been reported recently: when no SHORT_URL is set, then there is not "simple" share link: only the iframe and the link that includes all the query string. I'll mention this pull to @Aurelie-Jallut. We need her review to proceed, I'd say. |
Hi @jschleic In relation to your proposal, I think we should still group Share a link and integrate an iframe with the card settings functions. But if we add a tab system, we'll be able to see the download links in different formats more directly. For the Download section, we can directly add the links with the Download title, which still directs the user to the area. (At a later stage, we could also look at the contents of the setting box ;) ) |
Like it!
Thoughts ? |
Only active layers will be downloaded => doesn't this concern Full backup? If the parameters also concern the basic map link, it seems important to me to display it, doesn't it? |
Nope. Full backup means everything. While download will only download what's actually on the map (i.e. visible layers).
That would indeed make sense, but the basic/short link is without parameters. Like currently in OSM fr server (URL courte VS lien): |
Even better! :) |
This new interface might be a good candidate to pursue the experimentation of #1461 😇 |
* ordering is now short URL - download - backup - embed ordered by easier use cases for everyone to complex iframe code for web experts * show available formats as buttons instead of hiding them in a dropdown * add explaining labels * change the dark options fieldset to light gray
download() and format() functions as well as dialog itself and IFrameExporter helper moved into new file umap.share.js
file icon CC0 from https://www.iconfinder.com/icons/9110902/file_download_icon arrow down drawn in inkscape
according to suggestion by @Aurelie-Jallut in umap-project#1454 (comment)
63c14fe
to
3f6c705
Compare
Very nice! If you don't want to deal with the tabs, you can just put one box below the other as a first step. And we'll see later, if you have more time/energy, or one of us. Anyway thanks already for this work :) |
One small suggestion: instead of repeating "data" for each format, add it in the help label "Only visible layers' data" or something like this ? |
* "data" moved to helptext * drop css introduced in previous draft * prettier.js
9fd23c4
to
dbf0179
Compare
Great! So let's leave it as single page without tabs for the moment. |
I'm about to merge but one question/suggestion: what about putting the copy button in the same line of the related input here ? I think using flex should work, and allow translations of the word "copy" to be longer/shorter without troubles. Otherwise an icon may do the trick. I can also merge like this and do this enhancement in a later step! |
I'll take it! Thanks for your work @jschleic :) |
Is your feature request related to a problem? Please describe.
Users of our map often complain they didn't find the gpx download option. We embed a umap on our club website. But having to click the share button to download, then scroll down and find the
geojson
dropdown to selectgpx
seems to be not really intuitive.Describe the solution you'd like
We'd like to have an intuitive, easy-to-use download option of gpx files.
Describe alternatives you've considered
While working at the PR I've further unified the different other dialogs.
This PR proposes: