Commit Graph

4199 Commits

Author SHA1 Message Date
Johannes Klein
620eee7711 v0.59.10 2025-03-19 15:47:20 +01:00
Ken-ichi
1834246b64 New Crowdin translations by GitHub Action (#2784)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-03-19 14:30:38 +01:00
Johannes Klein
1516681515 Only show no match UI without add suggestions (#2786)
So, in a case of having no top suggestion but low confidence additional suggestions we show all UI available for the match screen, so that a user can potentially also improve them by giving location permission.
2025-03-19 14:19:31 +01:00
Amanda Bullington
d2da84edf7 Upgrade realm and realm react (#2770)
* Upgrade realm and realm react

* Update Podfile.lock

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-03-19 14:18:46 +01:00
Sylvain Morin
1795cfd817 MOB-562 Common names are not translated until signup (#2785)
* MOB-562 Use device language for not logged user when requesting suggestions

* MOB-562 Use device language for not logged user when requesting suggestions

* MOB-562 Use device language for not logged user when requesting suggestions

* MOB-562 Use device language for not logged user when requesting suggestions

* Add locale checks for Explore ObsDetails and TaxonDetails

---------

Co-authored-by: Amanda Bullington <albullington@gmail.com>
2025-03-18 17:02:48 -07:00
Amanda Bullington
3aa40e1b27 Better error handling for missing or invalid jwt errors (#2783)
* Make sure we're awaiting JWT in error handler

* More JWT fetching, better error handling, add JWT where we're not using react query
2025-03-17 18:29:56 -07:00
Amanda Bullington
b3d7368b21 Add error handling for 429 to React Query, including mutations (#2781)
* More error handling for 429 errors, including for mutations

* Handle 429 errors with react query; handle for mutations; include context

* Implement progressive backoff for retries
2025-03-17 16:18:54 -07:00
Johannes Klein
647aaf5457 Hide subscribe button from kebab menu when logged out (#2780)
* KebabMenu TS

* Hide subscribe button from kebab menu when logged out

Closes MOB-591

* Update import
2025-03-17 22:30:18 +01:00
Amanda Bullington
46c9b3de61 Show FloatingActionButtons on ObsDetails default for correct conditions (#2779) 2025-03-17 12:32:31 -07:00
Johannes Klein
c878715e58 v0.59.9+152 v0.59.9+152 2025-03-17 15:44:33 +01:00
Johannes Klein
ad794d043e Update Podfile.lock 2025-03-17 15:42:48 +01:00
Johannes Klein
a998c52582 v0.59.9 2025-03-17 15:41:54 +01:00
Johannes Klein
081de1be1b Wrong offline notice when no suggestions (#2778)
* Type fixes

* Update types

* Do not show offline notice when empty suggestions

Because this can mean that online had zero suggestions, which started offline which also had zero suggestions. It does not mean the app itself is offline.
2025-03-17 14:03:59 +01:00
Johannes Klein
e36e0b1d80 Wrong offline state local taxa (#2777)
* Update types

* Add another check
2025-03-17 13:05:41 +01:00
Angie
4a2feb926c fix location accuracy and using evidence location in match (#2764)
* use useWatchPosition for location fetch

* Fix latitude check, add shouldFetchObservationLocation to check for evidence

* Update Podfile.lock

* Update MatchContainer.js

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-03-17 11:32:33 +01:00
Johannes Klein
584f5c22d5 Change camera format used (#2773)
* Use inferred return type

* Default to a camera format that is full-screen for ai camera

And 3/4 for standard camera.

* Measure container and prioritize format aspect ratio accordingly

* Do not measure container layout

* Add debug button to cycle through camera formats
2025-03-15 11:02:59 +01:00
Johannes Klein
57dc1d226e Revert "Add a plus icon button to add all observation types to default mode header (#2734)" (#2754)
This reverts commit 37a9f6d58b.
2025-03-15 10:18:40 +01:00
Amanda Bullington
55cfb64d76 Styling fixes to keep long notes on screen in ObsEdit (#2775) 2025-03-14 18:25:35 -07:00
Amanda Bullington
bcec8fc73c Store local taxon name preferences & update when online (#2762)
* Use work queue to store local taxon name preferences & update when user goes online

* Do less updating on Settings screen

* Add logging to make sure taxon names are set correctly

* Test for TaxonNamesSettings
2025-03-14 18:09:52 -07:00
Amanda Bullington
6f5d24df66 Zoom map in further when tapping current location button (#2774) 2025-03-14 17:14:17 -07:00
Angie
136847d089 Hide "no suggestions" UI state when MatchScreen loading (#2772) 2025-03-14 14:38:53 -07:00
Johannes Klein
ae6b3f4065 Bundle update fastlane 2025-03-14 21:20:23 +01:00
Amanda Bullington
703971356d Improve native error handling; attempt to store crash data in zustand storage then log in servers (#2771) 2025-03-14 12:38:09 -07:00
Amanda Bullington
7f784ce006 Remove height/width styling around additional match results to bring border styling back (#2769) 2025-03-14 10:44:19 -07:00
Johannes Klein
c72344d3b5 v0.59.8+151 v0.59.8+151 2025-03-14 17:47:18 +01:00
Johannes Klein
7f9f6ea42d v0.59.8 2025-03-14 17:46:17 +01:00
Johannes Klein
bbe02dd4c4 Sharing one photo routes to Match (#2768) 2025-03-14 17:41:57 +01:00
Ken-ichi
acc878f94a New Crowdin translations by GitHub Action (#2752)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-03-14 17:38:04 +01:00
Johannes Klein
e4e6baee1d Override show suggestions screen to always get there from AI camera (#2767)
* Override show suggestions screen to always get there from AI camera

* Update AICamera.test.js
2025-03-14 13:03:07 +01:00
Johannes Klein
5ca2dc9123 Make sign up forms accessible (#2766) 2025-03-14 11:20:48 +01:00
Johannes Klein
611c01a666 Online suggestions also need a skipped state (#2765)
* Undo a change I made in an earlier branch

* Add online skipped state

Integration test of UnsyncedObservations is checking the onlineSuggestions hook with setting NetInfo's isConnected to fasle. The assumption there is that the score_image API is not even hit in such an instance.
So, we also need a skip state for online suggestions.
2025-03-14 09:17:00 +01:00
Amanda Bullington
2be121d1a8 Fade out MyObs checkmark without fading into ObsStatus (#2763)
* Don't fade into ObsStatus in MyObservations

* Update snapshot
2025-03-13 18:33:17 -07:00
Johannes Klein
7504d46241 Update welcome back pivot card trigger conditions (#2761)
* Only show welcome back pivot card immediately after successful login

* Reorder hooks

* Use zustand state instead of navigation param

* Set a state to zustand that we just logged in while in default mode

* Fix wrong commit
2025-03-13 23:05:07 +01:00
Amanda Bullington
73ea2c9180 Fix for common name display for previously seen organisms on Match (#2760) 2025-03-13 14:07:03 -07:00
Johannes Klein
e0cee641d1 v0.59.7+150 v0.59.7+150 2025-03-13 17:28:17 +01:00
Johannes Klein
69441b2323 v0.59.7 2025-03-13 17:26:58 +01:00
Johannes Klein
1712713682 Show iconic taxa icons if no taxon photo on no-suggestions match screen (#2759)
* The actual name of this taxon is iconic

* Does not apply here
2025-03-13 16:13:38 +01:00
Johannes Klein
b4fb10bd04 Decide banner styling based on same status as text (#2758) 2025-03-13 15:28:38 +01:00
Johannes Klein
170bf8017d Add an offline suggestions loading state (#2757)
* Define const in other component

* Separate out online and offline loading state

* Add type

* Add debug data

* Also call fetchError when netInfo says we are offline
2025-03-13 14:36:06 +01:00
Johannes Klein
b35952481f Make any CustomFlashList scrollable with Voice Over (#2756)
* Do not make FlashList wrapper accessible

Because it takes away a11y from the single items, and makes the list unscrollable with a11y commands.

* Remove a11y label

This was read without the actual param passed in so made no sense. Removing it for now. In that way at least the actual ID text is read.

* Make bottom sheet container not accesible
2025-03-13 11:26:46 +01:00
Johannes Klein
b59bb3f38c Remove wrapper around login from accessibility (#2755) 2025-03-13 10:31:16 +01:00
Johannes Klein
69ada0812a Make app default to the suggestions-first mode (#2753)
* Move button to top

* Defaults to use suggestions as first screen

* Update tests
2025-03-13 09:40:45 +01:00
Amanda Bullington
cef619a009 Save photo to device when first permission granted (#2751) 2025-03-13 08:47:56 +01:00
Johannes Klein
e5bbd6b873 Do not upload observations that have missing location or date when in default mode (#2750)
* Prop number in from direct and single HOC

* Prop num in from even higher

* Calculate number of unuploaded obs with missing basics

* Only show upload indicators when number of obs without missing basics is positive

* Send obs uuids with missing basics to button press handler

* Instead of reacting in useEffect call syncManually explicitly

* Accept array of uuids to skip and pass on to startUploadObservations

* If param given do not include some uuids when building upload queue

* Remove test

* Change param interface to options object

* Destructure only if param given
2025-03-12 16:18:37 -07:00
Amanda Bullington
d4d29b3aa8 Fix icons for dropdown carets in ObsEdit (#2748)
* Add icon

* Add icon

* Add icon

* Fix triangle dropdowns on ObsEdit other data section

* Update snapshots
2025-03-12 14:53:45 -07:00
Amanda Bullington
d6856b52ee Remove unnecessary taxon fetches in Match screen & replace with simple realm lookup (#2749) 2025-03-12 14:53:31 -07:00
Angie
87f2ac9312 Add species counts to default mode logged out and logged in (#2727)
* adds species counts to default mode logged out and logged in

* Add gradient to species grid image, remove log statements

* fix indent

* Remove realm species count

* Indent

* Remove indent

* Update test ID

* Change interface

* Update type to no longer reference removed interface

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-03-12 10:09:14 -07:00
Johannes Klein
7a85e375c1 v0.59.6+149 v0.59.6+149 2025-03-12 16:50:00 +01:00
Johannes Klein
ee11bceebc v0.59.6 2025-03-12 16:48:55 +01:00
Johannes Klein
01580e9e86 Replace with pencil icon (#2747) 2025-03-12 13:46:11 +01:00