Commit Graph

4199 Commits

Author SHA1 Message Date
Amanda Bullington
cfb365a02f Use existing MMKV instance to check for fresh install (#2824)
* Don't check for prev crashes or sentinel files on a fresh install

* Make sure we're not accidentally creating a new legacy store on every install

* Revert
2025-04-03 15:34:10 -07:00
Kirk van Gorkom
79be7c2c7d Change label next to the toggle for advanced mode
Closes MOB-671

Temporary. Context notes in the tracking issue.
2025-04-03 14:00:23 -07:00
Amanda Bullington
ee5498e75a Code cleanup 2025-04-03 13:28:17 -07:00
Amanda Bullington
48fda88c0a Fix e2e tests 2025-04-03 13:24:09 -07:00
Amanda Bullington
9a0c9aa005 Restore location permissions code for geomodel; use fetchAccurate instead of watchPosition 2025-04-03 13:04:21 -07:00
Amanda Bullington
9fdb3d662b Changes requested; add location permission prompt back into AICamera for geomodel 2025-04-03 11:09:47 -07:00
Ken-ichi
603d137588 New Crowdin translations by GitHub Action (#2826)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-04-03 08:07:42 -07:00
Amanda Bullington
84cb088949 Fix: limit API calls in AICamera to avoid delay in advancing navigation (#2820)
* Limit iconic taxa and fetchTaxa API calls

* Add timeout to geocoder

* Revert useTaxonSearch
2025-04-03 08:07:07 -07:00
Ken-ichi
82e776f7d3 New Crowdin translations by GitHub Action (#2823)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-04-02 06:41:28 -07:00
Amanda Bullington
e22ab43196 Fix: Prevent photos with no photo_id from attempting upload (#2822)
* Prevent photos with no photo id from attempting upload

* Add same case to sounds
2025-04-02 06:41:04 -07:00
Ken-ichi
f8d86eea1c New Crowdin Translations (#2819)
* New Crowdin translations by GitHub Action

* test: handle multiple matches for localized text in Settings test

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-04-01 13:00:34 -07:00
Kirk van Gorkom
8e3e7878d9 Update default language app store metadata (#2821) 2025-04-01 10:13:57 -07:00
Ken-ichi
8e2a81d562 fix: improve accessibility labels & hints (#2818) 2025-04-01 08:39:42 -07:00
Amanda Bullington
ef36c49778 Limit 1 library photo from AICamera only (#2816) 2025-04-01 08:34:43 -07:00
Amanda Bullington
cead506766 Always show TaxonResult checkmark in Suggestions (#2817)
* Never hide Suggestions checkmarks

* Remove unused hideCheckmark boolean
2025-04-01 08:34:30 -07:00
Johannes Klein
e5a14ad887 Fix: id text on every item (#2799)
* Add context comment

* Fix when own ID text is shown

Only show explainer text if we are on the user's obs, if it is an ID of this user and the user has in total less than 10 obs (handled in HOC)
2025-03-31 19:04:14 -07:00
Amanda Bullington
5e1d7bb62f Update fetchCoarseUserLocation to also use e2e-friendly wrapper 2025-03-31 14:18:58 -07:00
Amanda Bullington
24bcc301a7 Fix e2e tests with getCurrentPosition wrapper 2025-03-31 14:03:54 -07:00
Amanda Bullington
787410876f Update AICamera icon (#2815) 2025-03-31 13:55:04 -07:00
Amanda Bullington
e5aa89815a Merge branch 'main' into mob-568-camera-location-fetching-should-happen-when-photo-taken-not-1 2025-03-31 13:14:01 -07:00
Johannes Klein
2d5fa62494 Update settings text (#2813) 2025-03-31 21:07:34 +02:00
Johannes Klein
73b7c3282b Navigate based on setting in both cameras (#2814)
* Navigate based on setting in both cameras

* Update SuggestionsWithUnsyncedObs.test.js

* Update Suggestions.test.js

* Update AICamera.test.js
2025-03-31 11:59:55 -07:00
Ken-ichi
21f3abd89b New Crowdin translations by GitHub Action (#2789)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-03-31 11:45:16 -07:00
Angie
d633799ffe Mob 596 sharing one image at a time in default mode shows outdated (#2804)
* Update query key in Match and Suggestions for sharing into app

* Remove  console logs
2025-03-31 11:44:05 -07:00
Johannes Klein
6cf0919a25 Disable fetching offline suggestions for successful but empty online results (#2810)
As discussed on the linked linear issue, we want to trust online results more than offline results. So, if the online API call was successful but resulted in zero suggestions (currently, this can happen for example if human is part of the low-confidence suggestions that are filtered out before returning).
2025-03-31 11:33:21 -07:00
Johannes Klein
dfcef0b6a8 Spread suggestion's taxon into new function return (#2808)
This is necessary because the representative_photo returned by the image similarity search from API is fleeting only (e.g. from useOnlineSuggestions -> useSuggestions -> suggestions.topSuggestion).
The key is not saved to realm with the taxon because it only is relevant to the current photo scored on the API.
Therefore when overriding the taxon info with offline data we need to keep it.
2025-03-31 11:02:23 -07:00
Amanda Bullington
915a2dd40f Fixes for e2e tests? 2025-03-31 10:48:21 -07:00
Angie
548288c283 Change explore icon to magnifying glass (#2807)
* Replace change explore icon to magnifying glass

* Update snapshot
2025-03-27 18:15:34 -07:00
Amanda Bullington
0c033a6f6b Change mocks from useWatchPosition to fetchAccurateUserLocation 2025-03-27 14:32:29 -07:00
Amanda Bullington
213dc19dd0 Fetch location when observation processed; fetch separate location for geomodel without watch 2025-03-27 13:25:09 -07:00
Johannes Klein
2437b02966 v0.59.12+155 v0.59.12+155 2025-03-27 17:55:42 +01:00
Johannes Klein
ce7d398d10 v0.59.12 2025-03-27 17:54:53 +01:00
Amanda Bullington
d782538109 Advanced settings UI updates (#2797)
* Open more options on long press

* Add tests for long press

* Rearranging Settings screen with new layout

* Add toggle for advanced settings in layout slice; fix default mode toggle

* Update settings with navigation flows

* Fix tests

* Change power mode switch for e2e test

* Fix settings test for green button toggle

* Fix advanced user toggle in e2e test (which hides pivot cards)

* Changes based on design convo; test fixes

* Fix e2e tests

* Follow user flow chart and update nav accordingly

* Rename function

* Fix test

* Can be null so check for false only

* Little less spacing between radio button rows

* Minor UI updates

* Remove check for previous setting in UI

* This is no longer used anywhere

* Update AICamera.test.js

* Update AICamera.test.js

* Update AICamera.test.js

* Update Suggestions.test.js

* Update Settings.test.js

* Update LanguageSettings.test.js

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-03-27 17:36:36 +01:00
Amanda Bullington
b957416abe Update text and UI of all pivot cards (#2803)
* Update first observation pivot card

* Update second pivot card

* Change TenObservationCard description

* Update account creation pivot card

* More updates

* Fix tests
2025-03-26 11:42:14 -07:00
Johannes Klein
a6b8a50425 Show a simple unviewed-activity-indicator for default obs list (#2801) 2025-03-26 09:05:02 +01:00
Johannes Klein
7b5da37412 Add research grade label to default obs list (#2800)
* Add string

* Add research grade label

* Prop to hide RG label

This follows the current other props for hiding metadata and obs status. However, I think a boolean to show the label makes more sense currently.

* Prop to HOC

* Prop to HOC

* Add conditions to show label

* Show label only for RG obs
2025-03-26 07:47:40 +01:00
Johannes Klein
6f64f50a99 In obs list show metadata (date, location) for a advanced user (#2798)
* In obs list show metadata (date, location) for a advanced logged-in user

* Also show date and location for logged out users
2025-03-26 07:47:22 +01:00
Amanda Bullington
7733ededfb Carousel, Permission, Match, Login, AI Camera copy edits (#2802)
* Text updates and AICamera icon update for onboarding carousel

* Update background image camera permission

* Update text for permission gates

* Update text match screen, login signup, and camera

* Fix AICamera test
2025-03-25 16:18:39 -07:00
Johannes Klein
98086035da Add pivot card for the tenth observation (#2795)
* Add string

* Add string

* Reorder strings

* Add image

* Add new pivot card to UI lib and my obs list

* String comment

* Rename component for consistency
2025-03-25 10:42:31 +01:00
Johannes Klein
322a7ce327 Change pivot card timing from on second to fifth observation (#2796)
* Replace string

* Rename component
2025-03-25 10:01:00 +01:00
Amanda Bullington
be53f87537 Add long press to AICamera gradient button in default/advanced (#2793)
* Open more options on long press

* Add tests for long press
2025-03-24 12:33:57 -07:00
Ken-ichi Ueda
f70d1724a1 fix: typo 2025-03-24 09:09:25 -07:00
Johannes Klein
1cd63968f6 Add a UI for when there is no top suggestion but other suggestions with low confidence on match screen (#2790)
* Code indentation

* Additional case of returning a UI. For when no top suggestion.

* Basic layout

* Refactor MatchHeaders fallback title to the higher components fallbacks

* Add string

* Add header for when no top suggestion (but others)

* Additional suggestions section

* Different header for additional suggestions section

* Update header padding according to designs for all match UIs

* Update padding between add suggestions header and scrollable list

* Correct margins for no suggestions UI

* Add location button also to no suggestions state

* Correct margin for location button on match with top suggestion

* Correct margins for location button in no top but other suggestions UI

* Use wrapper for additional suggestions scroll to set margin

* Correct margin left of additional suggestions scroll

* Hide button while loading

* Increase margins for text in no suggestions state

* Less margin left of scroll
2025-03-24 11:42:38 +01:00
Kirk van Gorkom
5cafd83fab v0.59.11+154 v0.59.11+154 2025-03-21 21:27:37 -07:00
Kirk van Gorkom
18cd17af34 Bump version to 0.59.11; podfile and xcodeproj font icon change 2025-03-21 21:24:35 -07:00
Amanda Bullington
4bd212813e Update ai camera icon (#2792)
* First attempt, but need to replace SVGs

* Icons

* Update aicamera across app with Figma sizing
2025-03-21 13:16:25 -07:00
Johannes Klein
974d4665f1 Re-enable e2e in CI (#2791) 2025-03-21 15:33:45 +01:00
Amanda Bullington
70ffa9112a Make MyObservationsSimple the standard UI across default/advanced mode (#2788)
* Update TypeScript

* Fix some tests with new default MyObservationsSimple

* Show upload toolbar on MyObs advanced

* Update tests for simple mode

* Fix deletions popping back up on MyObs

* Fix e2e test, which also means fixing our deletion process

* Fix useSyncObservations test

* Requested changes to better fit latest designs

* Add tests to check for hidden upload banner
2025-03-20 17:04:31 -07:00
Angie
146886fbeb Increase tappable area of back button, remove console logs (#2787)
Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-03-20 10:02:00 +01:00
Johannes Klein
de097fffe9 v0.59.10+153 v0.59.10+153 2025-03-19 15:50:21 +01:00