Skip to content

Commit db7a14d

Browse files
committed
Add waders+seabird message + improve in migration equipement
1 parent c0591bb commit db7a14d

3 files changed

Lines changed: 50 additions & 23 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "geocollab-form",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"private": true,
55
"type": "module",
66
"scripts": {

src/components/GeoCollabWizard.vue

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,7 @@ function hasPositiveNumber(value) {
8585
8686
function stepOneValid() {
8787
return (
88-
contextReadConfirmed.value &&
89-
contextAlignConfirmed.value &&
90-
recaptureFeasibilityConfirmed.value
88+
contextReadConfirmed.value && contextAlignConfirmed.value && recaptureFeasibilityConfirmed.value
9189
);
9290
}
9391
@@ -162,9 +160,7 @@ function isStepValid(stepIndex) {
162160
const canContinueCurrentStep = computed(() => isStepValid(step.value));
163161
const canSubmitFinalStep = computed(
164162
() =>
165-
canContinueCurrentStep.value &&
166-
privacyStatementConfirmed.value &&
167-
hasGoogleSheetsWebhook.value,
163+
canContinueCurrentStep.value && privacyStatementConfirmed.value && hasGoogleSheetsWebhook.value,
168164
);
169165
170166
function goBack() {
@@ -571,7 +567,9 @@ if (typeof window !== "undefined" && import.meta.env.DEV) {
571567
regions.
572568
</li>
573569
<li>This is done by building standardized, reproducible, and reusable datasets.</li>
574-
<li>It supports both species-specific studies and large-scale comparative analyses.</li>
570+
<li>
571+
It supports both species-specific studies and large-scale comparative analyses.
572+
</li>
575573
</ul>
576574
</section>
577575
@@ -644,8 +642,9 @@ if (typeof window !== "undefined" && import.meta.env.DEV) {
644642
</div>
645643
<ul class="collab-list">
646644
<li>
647-
Suitable projects involve individuals that can be recaptured in a subsequent
648-
year at breeding or non-breeding locations. Migrating birds are not suitable.
645+
Suitable projects involve individuals that can be recaptured in a subsequent year
646+
at breeding or non-breeding locations. Equipping birds during active migration is
647+
typically not suitable.
649648
</li>
650649
<li>Target poorly known species or regions, as outlined in the following steps.</li>
651650
<li>Fill key gaps in migration knowledge.</li>
@@ -684,12 +683,21 @@ if (typeof window !== "undefined" && import.meta.env.DEV) {
684683
685684
<section v-show="step === 2" data-testid="step-2">
686685
<h2 class="step-title">2. Species</h2>
686+
<v-alert
687+
icon="mdi-close-circle"
688+
variant="outlined"
689+
density="compact"
690+
class="mb-4 species-scope-alert"
691+
style="border: 1px solid var(--gc-color-border, #d7dfda)"
692+
>
693+
Seabirds and waders are not supported as exposure to sea salt is likely to damage the
694+
sensors.
695+
<div class="mt-1 species-scope-alert__note">
696+
Species supported are limited to the following orders: Passeriformes, Apodiformes,
697+
Caprimulgiformes, Coraciiformes, Piciformes, Strigiformes, and Bucerotiformes.
698+
</div>
699+
</v-alert>
687700
<p class="step-description">Select your focal species to assess feasibility.</p>
688-
<p class="step-description species-scope-note">
689-
<v-icon icon="mdi-information-outline" size="14" class="species-scope-note-icon" />
690-
Included species are limited to the following orders: Passeriformes, Apodiformes,
691-
Caprimulgiformes, Coraciiformes, Piciformes, Strigiformes, and Bucerotiformes.
692-
</p>
693701
694702
<v-autocomplete
695703
v-model="draft.species.avibase_id"
@@ -787,8 +795,8 @@ if (typeof window !== "undefined" && import.meta.env.DEV) {
787795
<section v-show="step === 3" data-testid="step-3">
788796
<h2 class="step-title">3. Location</h2>
789797
<p class="step-description">
790-
Click on the map to indicate the main deployment location. Change the radius to show
791-
the size of the study area.
798+
Click on the map to indicate the main deployment location. Change the radius to show the
799+
size of the study area.
792800
</p>
793801
794802
<MapboxLocationPicker
@@ -1093,23 +1101,40 @@ if (typeof window !== "undefined" && import.meta.env.DEV) {
10931101
</footer>
10941102
</v-sheet>
10951103
<footer class="page-legal-footer">
1096-
<p class="legal-note"><a
1104+
<p class="legal-note">
1105+
<a
10971106
href="https://www.vogelwarte.ch/en/projects/geocollab/"
10981107
target="_blank"
10991108
rel="noopener noreferrer"
11001109
>GeoCollab project</a
1101-
><span class="legal-note__separator">|</span><a
1110+
><span class="legal-note__separator">|</span
1111+
><a
11021112
href="https://www.vogelwarte.ch/en/privacy-statement/"
11031113
target="_blank"
11041114
rel="noopener noreferrer"
11051115
>Privacy statement</a
1106-
><span class="legal-note__separator">|</span><a
1116+
><span class="legal-note__separator">|</span
1117+
><a
11071118
href="https://www.vogelwarte.ch/modx/en/vogelwarte/impressum"
11081119
target="_blank"
11091120
rel="noopener noreferrer"
11101121
>Legal notice</a
11111122
><span class="legal-note__separator">|</span><span>Version {{ APP_VERSION }}</span
1112-
><span class="legal-note__separator">|</span><span>&copy; 2026 GeoCollab</span></p>
1123+
><span class="legal-note__separator">|</span><span>&copy; 2026 GeoCollab</span>
1124+
</p>
11131125
</footer>
11141126
</v-container>
11151127
</template>
1128+
1129+
<style scoped>
1130+
.species-scope-alert :deep(.v-alert__prepend),
1131+
.species-scope-alert :deep(.v-icon) {
1132+
color: rgb(var(--v-theme-error));
1133+
}
1134+
1135+
.species-scope-alert__note {
1136+
color: rgba(var(--v-theme-on-surface), 0.62);
1137+
font-size: 0.78rem;
1138+
line-height: 1.35;
1139+
}
1140+
</style>

src/lib/species.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function assessSpeciesMass(bodyMassG) {
3535
if (bodyMassG > 100) {
3636
return {
3737
tone: "warning",
38-
label: "Species is likely too heavy for this collaboration setup.",
38+
label: "Species is likely too heavy for this collaboration setup. Satellite tracking is likely a better option and does not require recapture.",
3939
hardFail: false,
4040
points: 0,
4141
};
@@ -109,7 +109,9 @@ export function buildSpeciesFeedback(species) {
109109
text: mass.label,
110110
tone: mass.tone,
111111
emphasis: {
112-
weight: Number.isFinite(species.body_mass_g) ? `${species.body_mass_g.toFixed(1)} g` : "No data",
112+
weight: Number.isFinite(species.body_mass_g)
113+
? `${species.body_mass_g > 100 ? species.body_mass_g.toFixed(0) : species.body_mass_g.toFixed(1)} g`
114+
: "No data",
113115
loggerPct: Number.isFinite(species.body_mass_g) ? `${loggerPct.toFixed(1)}%` : "NA",
114116
caption: `of body mass (${loggerMassG.toFixed(1)} g logger)`,
115117
},

0 commit comments

Comments
 (0)