Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. e81bb9bd7139faa95b0ef4f6b34163e7d7db001a Add human-readable wikidata explainations -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6127/files/5ac1b483f08bab249fe63f03221748a26640..e81bb9bd7139faa95b0ef4f6b34163e7d7db001a You are rec

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > + $("") +.attr("href", OSM.WIKIMEDIA_COMMONS_URL + "File:" + data.icon) +.append($("").attr({ src: OSM.WIKIMEDIA_COMMONS_URL + "Special:FilePath/" + data.icon, height: "32" })) +.addClass("float-end mb-1 ms-2") +.appe

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > + $("") +.attr("href", OSM.WIKIMEDIA_COMMONS_URL + "File:" + data.icon) +.append($("").attr({ src: OSM.WIKIMEDIA_COMMONS_URL + "Special:FilePath/" + data.icon, height: "32" })) +.addClass("float-end mb-1 ms-2") +.appen

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > + $("") +.attr("href", OSM.WIKIMEDIA_COMMONS_URL + "File:" + encodeURIComponent(data.icon)) +.append($("").attr({ src, height: "32" })) +.addClass("float-end mb-1 ms-2") +.appendTo(cell); +} +if (data.label) {

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > + $("") +.attr("href", OSM.WIKIMEDIA_COMMONS_URL + "File:" + data.icon) +.append($("").attr({ src: OSM.WIKIMEDIA_COMMONS_URL + "Special:FilePath/" + data.icon, height: "32" })) +.addClass("float-end mb-1 ms-2") +.appe

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > + $("") +.attr("href", OSM.WIKIMEDIA_COMMONS_URL + "File:" + encodeURIComponent(data.icon)) +.append($("").attr({ src, height: "32" })) +.addClass("float-end mb-1 ms-2") +.appendTo(cell); +} +if (data.label) {

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > @@ -1,10 +1,16 @@ (function () { + let abortController = null; + const langs = [...new Set([...OSM.preferred_languages.map(l => l.toLowerCase()), "mul", "en"])]; + const wikis = [...new Set(langs.map(l => l.split("-")[0] + "wiki"))]; Wikimedia wiki c

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > + $("") +.attr("href", OSM.WIKIMEDIA_COMMONS_URL + "File:" + data.icon) +.append($("").attr({ src: OSM.WIKIMEDIA_COMMONS_URL + "Special:FilePath/" + data.icon, height: "32" })) +.addClass("float-end mb-1 ms-2") +.appe

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > +.append($("").attr({ src: OSM.WIKIMEDIA_COMMONS_URL + > "Special:FilePath/" + data.icon, height: "32" })) +.addClass("float-end mb-1 ms-2") +.appendTo(cell); +} +if (data.label) { + $btn +.siblings(`a[href*="

Re: [openstreetmap/openstreetmap-website] Stop GitHub form cancelling related workflows early (PR #6151)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#6151) Why should we cancel successfully run steps like [this one](https://github.com/hlfan/openstreetmap-website/actions/runs/16058832401/job/45319779765#step:13:16)? -- Reply to this email directly or view it on GitHub: https://github.c

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. 5ac1b483f08bab249fe63f03221748a26640 Add human-readable wikidata explainations -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6127/files/d47b9f2e8a32e9ff5c92a19ab6b2b458c8d01105..5ac1b483f08bab249fe63f03221748a26640 You are rec

Re: [openstreetmap/openstreetmap-website] Support configurable coordinate format (lat, lon vs lon, lat) when displaying addresses (Issue #6165)

2025-07-03 Thread Minh Nguyễn via rails-dev
1ec5 left a comment (openstreetmap/openstreetmap-website#6165) > This would make copying coordinates into development tools and code snippets > much more convenient and reduce confusion or errors. If one of the internal result’s labels is just regurgitating what the user entered into the search

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > + icon: ["P8972", "P154", "P14"].reduce((out, prop) => out ?? > entity.claims[prop]?.[0]?.mainsnak?.datavalue?.value, null), + description: localizedProperty("descriptions", langs)?.value, + article: localizedProperty("sitelinks", wikis) +

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > + $("") +.attr("href", OSM.WIKIMEDIA_COMMONS_URL + "File:" + data.icon) +.append($("").attr({ src: OSM.WIKIMEDIA_COMMONS_URL + "Special:FilePath/" + data.icon, height: "32" })) +.addClass("float-end mb-1 ms-2") +.appen

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#6127) @Firefishy Did Wikimedia ever reacted to how we use their images in iD, or was it just in wiki? Or are they already rate-limiting us in iD too but it's not very noticeabe because images are small? -- Reply to this email dire

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#6127) > How does OSM TagPreview > (https://github.com/openstreetmap/openstreetmap-website) look to you? I think there shouldn't be a space in `OSM TagPreview`. https://httpwg.org/specs/rfc9110.html#field.user-agent -- Reply to th

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#6127) Human-readable wikidata addon also limits image sizes (`?width=128`) which may result in transfers for raster images (https://www.openstreetmap.org/node/689097130 Starbucks logo: 19.40 kB in the addon vs 54.21 kB in this PR),

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#6127) > we should add an Api-User-Agent header to the fetch in this PR How does `OSM TagPreview (https://github.com/openstreetmap/openstreetmap-website)` look to you? Any other details I'm missing? -- Reply to this email directly or vi

Re: [openstreetmap/openstreetmap-website] Fix message reuse for Terms of Use link in signup form (PR #6166)

2025-07-03 Thread Tom Hughes via rails-dev
Merged #6166 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6166#event-18457465626 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Fix message reuse for Terms of Use link in signup form (PR #6166)

2025-07-03 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#6166) Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6166#issuecomment-3033098045 You are receiving this because you are subscribed to this t

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#6127) Hotlinking to images on Commons: I'm not sure if it's allowed according to [their policy](https://commons.wikimedia.org/w/index.php?title=Commons:HOTLINK), but we're already doing it in iD. -- Reply to this email directly o

Re: [openstreetmap/openstreetmap-website] Fix message reuse for Terms of Use link in signup form (PR #6166)

2025-07-03 Thread Pikse via rails-dev
@Pikse pushed 1 commit. da0e2e4306274363ba1079dfd3f28648c068add6 Fix message reuse for Terms of Use link in signup form -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/6166/files/0ec6286129f73c516b775df5fd45c99642497599..da0e2e4306274363ba1079dfd3f28648c068add

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#6127) We're using two Wikimedia services her, Wikidata and Commons. Wikidata usage should be ok except for [user agent header](https://www.mediawiki.org/wiki/API:Etiquette#The_User-Agent_header): > It is best practice to set a desc

Re: [openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)

2025-07-03 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#6127) > Are WikiData ok with us doing this? Will they rate limit us like they do on > wiki.osm.org with WikiCommons? Are they rate-limiting users who click the currently available Qn wikidata links? -- Reply to this email dir

Re: [openstreetmap/openstreetmap-website] Allow to agree to new terms if already agreed to old terms (PR #5706)

2025-07-03 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#5706) > Just to confirm, does this PR result in actively presenting pre-2019 users > with some sort of notice about the new terms, without having to visit the > account settings first? No it doesn't. There's no point in *actively p

Re: [openstreetmap/openstreetmap-website] Allow to agree to new terms if already agreed to old terms (PR #5706)

2025-07-03 Thread Minh Nguyễn via rails-dev
@1ec5 approved this pull request. The logic looks correct to me. Just to confirm, does this PR result in actively presenting pre-2019 users with some sort of notice about the new terms, without having to visit the account settings first? If not, we still need to do that as tail work based on th

Re: [openstreetmap/openstreetmap-website] Support configurable coordinate format (lat, lon vs lon, lat) when displaying addresses (Issue #6165)

2025-07-03 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#6165) Maybe we have space inside *Internal* to show both, like: ~~~ - lat, lon: lon, lat: 60.0, 30.030.0, 60.0 - lat, lon: lon, lat: 30.0, 60.060.0, 30.0 ~~~ with only one result if lat is outsid

[openstreetmap/openstreetmap-website] Fix message reuse for Terms of Use link in signup form (PR #6166)

2025-07-03 Thread Pikse via rails-dev
Currently `layouts.tou` message (link label) is reused in two different sentences, i.e. in messages `accounts.terms.show.tou explain html` and `users.new.by_signing_up.html`. In some languages however the link label needs different declension in these sentences. Here `users.new.by_signing_up.to

Re: [openstreetmap/openstreetmap-website] Allow to agree to new terms if already agreed to old terms (PR #5706)

2025-07-03 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > not_agreed_with_pd: "You haven't declared that you consider your > edits to be in the Public Domain." -pd_link_text: "declare" +review: "Review the Terms" +review_and_accept: "Review and accept the Terms" +c

Re: [openstreetmap/openstreetmap-website] Support configurable coordinate format (lat, lon vs lon, lat) when displaying addresses (Issue #6165)

2025-07-03 Thread Anton Khorev via rails-dev
AntonKhorev left a comment (openstreetmap/openstreetmap-website#6165) [Geo URI](https://en.wikipedia.org/wiki/Geo_URI_scheme) uses lat,lon for example. > and mapping libraries such as [...] Leaflet [Are you sure about that?](https://leafletjs.com/reference.html#latlng) -- Reply to this email

Re: [openstreetmap/openstreetmap-website] Allow to agree to new terms if already agreed to old terms (PR #5706)

2025-07-03 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. cab7a34e965130aeda493cd67d072965bbaaccc4 Show terms acceptance dates and link to terms on account page -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5706/files/1c1753819257faefbf694ba5edb715c9fc9f9d19..cab7a34e965130aeda493cd67d

Re: [openstreetmap/openstreetmap-website] Support configurable coordinate format (lat, lon vs lon, lat) when displaying addresses (Issue #6165)

2025-07-03 Thread Tom Hughes via rails-dev
tomhughes left a comment (openstreetmap/openstreetmap-website#6165) Firstly there is basically agreement at all on order and it's a complete toss up whether any given tool/format puts latitude or longitude first. Secondly I believe that the specific example you've shown (and it's not clear if t

Re: [openstreetmap/openstreetmap-website] Allow to agree to new terms if already agreed to old terms (PR #5706)

2025-07-03 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > not_agreed_with_pd: "You haven't declared that you consider your > edits to be in the Public Domain." -pd_link_text: "declare" +review: "Review the Terms" +review_and_accept: "Review and accept the Terms" +consider

[openstreetmap/openstreetmap-website] Support configurable coordinate format (lat,lon vs lon,lat) when displaying addresses (Issue #6165)

2025-07-03 Thread 袁立诚 via rails-dev
daishu created an issue (openstreetmap/openstreetmap-website#6165) ![Image](https://github.com/user-attachments/assets/9a113c04-68a5-4b16-8800-252207a2e460) Currently, OpenStreetMap displays coordinates in the latitude, longitude (lat,lon) format. While this works well for most users, many d

Re: [openstreetmap/openstreetmap-website] Switch to inline colourable markers (PR #5854)

2025-07-03 Thread Marwin Hochfelsner via rails-dev
hlfan left a comment (openstreetmap/openstreetmap-website#5854) Should I split up the "Update and inline markers" commit into three parts and temporarily make `OSM.getMarker` use a dict so I can update the options separately? Would that make this PR easier to digest? -- Reply to this email dir

Re: [openstreetmap/openstreetmap-website] Add OpenMapTiles vector map (PR #4042)

2025-07-03 Thread Jachym Cepicky via rails-dev
jachym left a comment (openstreetmap/openstreetmap-website#4042) > I think the only thing is that somebody suggested (and I can't remember where > I saw it) that the layer included additional buildings that weren't from OSM > data but I haven't had a chance to investigate that claim yet. This s