diff --git a/.forgejo/workflows/deploy_hosted.yml b/.forgejo/workflows/deploy_hosted.yml
index e999c0440..ec949998b 100644
--- a/.forgejo/workflows/deploy_hosted.yml
+++ b/.forgejo/workflows/deploy_hosted.yml
@@ -62,5 +62,17 @@ jobs:
- name: unzipping remote file
run: ssh hetzner "cd /root/staging && rm -rf ${{ github.ref_name }} && unzip ${{ github.ref_name }}.zip && rm -rf /root/public/${{ github.ref_name }} && mv /root/staging/${{ github.ref_name }}/ /root/public/ && rm ${{ github.ref_name }}.zip"
+ - name: Extract PR number
+ run: echo "PR_NUMBER=$(echo $FORGEJO_REF_NAME | cut -d'/' -f3)" >> $FORGEJO_ENV
+
+ - name: add comment to PR
+ if: env.PR_NUMBER != ''
+ run: |
+ curl -X POST "https://source.mapcomplete.org/api/v1/repos/${FORGEJO_REPOSITORY}/issues/${PR_NUMBER}/comments" \
+ -H "Content-Type: application/json" \
+ -H "Authorization: token $FORGEJO_TOKEN" \
+ -d '{"body": "This PR has been deployed and is (temporarily) available on https://builds.mapcomplete.org/${PR_NUMBER}"}'
+ env:
+ FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
diff --git a/assets/layers/icons/icons.json b/assets/layers/icons/icons.json
index 36784b3a6..504e4afac 100644
--- a/assets/layers/icons/icons.json
+++ b/assets/layers/icons/icons.json
@@ -18,7 +18,13 @@
"defaults",
"in_favourite"
],
- "render": "
",
+ "render": {
+ "special": {
+ "type": "link",
+ "href": "https://wikipedia.org/wiki/{wikipedia}",
+ "text": "
"
+ }
+ },
"condition": {
"or": [
"wikipedia~*",
@@ -29,7 +35,14 @@
{
"#": "ignore-image-in-then",
"if": "wikipedia=",
- "then": "
"
+ "then": {
+ "special": {
+ "type": "link",
+ "class": "h-8",
+ "href": "https://www.wikidata.org/wiki/{wikidata}",
+ "text": "
"
+ }
+ }
}
]
},
diff --git a/src/UI/Popup/AddNewPoint/AddNewPoint.svelte b/src/UI/Popup/AddNewPoint/AddNewPoint.svelte
index 7a97cad9a..8d7e36cd9 100644
--- a/src/UI/Popup/AddNewPoint/AddNewPoint.svelte
+++ b/src/UI/Popup/AddNewPoint/AddNewPoint.svelte
@@ -78,7 +78,7 @@
const isLoading = state.dataIsLoading
let preciseCoordinate: UIEventSource<{ lon: number; lat: number }> = new UIEventSource(undefined)
- let snappedToObject: UIEventSource = new UIEventSource(undefined)
+ let snappedToObject: UIEventSource = new UIEventSource(undefined)
// Small helper variable: if the map is tapped, we should let the 'Next'-button grab some attention as users have to click _that_ to continue, not the map
let preciseInputIsTapped = false
@@ -172,11 +172,13 @@
{:else if $isLoading}
+
{:else if selectedPreset === undefined}
t.presetInfo.Subs({ tags })}
- {state}
tags={new And(selectedPreset.preset.tags)}
/>