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

deploy-preview: Change link to paris #1348

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

deploy-preview: Change link to paris #1348

wants to merge 1 commit into from

Conversation

tordans
Copy link
Collaborator

@tordans tordans commented Sep 27, 2024

This change the deploy preview link by adding ?id=n17807753 which is Paris so users don't start at the work which in my experience is never where I do mapping.
My idea is, that it is quicker and easier to review PRs when I don't have to find a node or way to see the changes, first.

We can pick any location…

[Example](https://pr-1344--ideditor-presets-preview.netlify.app/id/dist/?id=n17807753#locale=en

Another change is to make the click target bigger than the short "here".

Two changes
- make the click target a bit bigger then "here"
- add `?id=n17807753` which is Paris so users don't start at the work which in my experience is never where I do mapping
@tordans tordans requested a review from tyrasd September 27, 2024 05:26
Copy link

🍱 You can preview the tagging presets of this pull request here.

Copy link
Member

@tyrasd tyrasd left a comment

Choose a reason for hiding this comment

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

Hmm… I was originally thinking that starting from a global view is slightly better, because one cannot know which map features are interesting for a particular PR… So, one essentially has to search a matching test area anyway. Starting in an urban area would help for features that are common in cities, though 🤔 so, why not.

Regarding which location to choose: Maybe we can use London, as a nod to it being the birthplace of OSM? Or set it to the next host city for the SotM (Manila), and update it once a year…

Also, I'd not use the id parameter to set the starting location, but instead the map parameter (see below).

@@ -78,7 +78,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pullRequestNumber,
body: `${start} You can preview the tagging presets of this pull request [here](https://pr-${pullRequestNumber}--ideditor-presets-preview.netlify.app/id/dist/#locale=en).`
body: `${start} You can preview the tagging presets of this pull request [in this deploy preview](https://pr-${pullRequestNumber}--ideditor-presets-preview.netlify.app/id/dist/?id=n17807753#locale=en).`
Copy link
Member

Choose a reason for hiding this comment

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

The standalone version of iD does only look at the hash part of the url:

Suggested change
body: `${start} You can preview the tagging presets of this pull request [in this deploy preview](https://pr-${pullRequestNumber}--ideditor-presets-preview.netlify.app/id/dist/?id=n17807753#locale=en).`
body: `${start} You can preview the tagging presets of this pull request [in this deploy preview](https://pr-${pullRequestNumber}--ideditor-presets-preview.netlify.app/id/dist/#id=n17807753&locale=en).`

But for the above mentioned alternatives, using the map parameter would be more appropriate:

Suggested change
body: `${start} You can preview the tagging presets of this pull request [in this deploy preview](https://pr-${pullRequestNumber}--ideditor-presets-preview.netlify.app/id/dist/?id=n17807753#locale=en).`
body: `${start} You can preview the tagging presets of this pull request [in this deploy preview](https://pr-${pullRequestNumber}--ideditor-presets-preview.netlify.app/id/dist/#locale=en&map=17.00/14.65485/121.06466).`

@tyrasd tyrasd added the ci label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants