Commit Graph

2773 Commits

Author SHA1 Message Date
Johannes Klein
81744eef3d Move broken tests 2025-08-05 17:20:31 +02:00
Johannes Klein
f4eb13f2bc Remove duplicate file 2025-08-05 16:33:45 +02:00
Johannes Klein
8df93b6f3b Move broken test 2025-08-05 16:31:54 +02:00
Johannes Klein
3c97931526 Move broken tests 2025-08-05 16:29:24 +02:00
Johannes Klein
1a60468454 Move broken tests 2025-08-05 16:26:40 +02:00
Johannes Klein
e9d0c5d818 Move broken tests 2025-08-05 16:21:30 +02:00
Johannes Klein
e1326877fa Move broken tests 2025-08-05 16:19:52 +02:00
Johannes Klein
bf5796a67d Move broken tests 2025-08-05 16:13:28 +02:00
Johannes Klein
cd6013df31 Remove duplicate file 2025-08-05 16:09:12 +02:00
Johannes Klein
c498fc8a34 Move broken test 2025-08-05 16:03:13 +02:00
Johannes Klein
45148dc366 Move broken test 2025-08-05 15:54:59 +02:00
Johannes Klein
00701fdd76 Move broken test 2025-08-05 15:53:00 +02:00
Johannes Klein
4b35763ac9 Disable broken snapshot test 2025-08-05 15:32:10 +02:00
Johannes Klein
66d4d484cc Comment out accessibility tests 2025-08-05 15:26:05 +02:00
Johannes Klein
a356af6f1b Remove react-native-accessibility-engine dependency
This is currently not maintained and not compatible with RN 0.78
2025-08-05 15:07:17 +02:00
Johannes Klein
cd97da83c7 Merge branch 'main' into update-react-native-0.78 2025-08-05 13:47:54 +02:00
Johannes Klein
a618b6e870 Update react-native-testing-library to latest (#3044)
* Update package.json

* Update package-lock.json

* Update

* Update to v13

* Update package-lock.json

* Breaking change: remove extend-expect

* Latest version

* Update package-lock.json

* Breaking change: Removed Accessibility matcher

* Update Suggestions.test.js

* Update DisplayTaxonName.test.js

* Testing the same but differently phrased

* Not really needed to test this

And since not.toHaveTextContent stopped working I just remove it.

* Update useTaxonSearch.test.js

* Move broken tests into folders that are not run

* Only move single tests that are failing

* This does work after all

* Remove only single tests that are broken

* Only move failed tests

* Only move failed tests

* Only move failed tests

* Does not pass on CI only
2025-08-05 13:44:49 +02:00
Johannes Klein
70576f8302 Update TaxonSearch.tsx 2025-08-01 17:20:38 +02:00
Johannes Klein
cefda2c4bc Use types-react-codemod 2025-08-01 17:17:38 +02:00
Johannes Klein
427f4de5b8 Wrong install 2025-08-01 16:54:56 +02:00
Johannes Klein
5a9bc2dd37 Update package-lock.json 2025-08-01 16:49:41 +02:00
Johannes Klein
b02180b54c Add react-dom types 2025-08-01 16:49:00 +02:00
Johannes Klein
724f147bcf Update Podfile.lock 2025-08-01 15:53:11 +02:00
Johannes Klein
8653a72bd9 Update package-lock.json 2025-08-01 15:43:50 +02:00
Johannes Klein
6f0a1ad515 Update .flowconfig 2025-08-01 15:32:47 +02:00
Johannes Klein
b38be95cff Updates for native files with upgrade-helpers 2025-08-01 15:32:07 +02:00
Johannes Klein
3200c28bc4 Update package.json 2025-08-01 15:31:21 +02:00
Johannes Klein
3600de9053 Update package.json 2025-08-01 15:30:56 +02:00
Johannes Klein
eb92895b78 Update to zustand 4.5.7 (#3041)
* Update package.json

* Update package.json

* Update package-lock.json
2025-08-01 15:14:58 +02:00
Johannes Klein
f334dbf191 Update @tanstack/react query (#3042)
* Update package.json

* Update package.json

* Update package.json

* Update package.json

* Update package-lock.json
2025-08-01 14:54:56 +02:00
Johannes Klein
3023eb33ca Update Podfile.lock 2025-08-01 13:42:43 +02:00
Johannes Klein
f10188250c Some Flow to Typescript migrations, in simple components (#3034)
* Update Attribution.tsx

* Update FollowButton.tsx

* Update LoginSheet.tsx

* Update UnfollowSheet.tsx

* Update UnfollowSheet.tsx

* Update EstablishmentMeans.tsx

* Update TaxonDetailsTitle.tsx

* Update Taxonomy.tsx

* Update TaxonMapPreview.tsx

* Update FullScreenActivityIndicator.tsx

* Update ActivityIndicator.tsx

* Update SpeciesSeenCheckmark.tsx

* Update Mortal.tsx

* Update HideView.tsx

* Update ConfidenceInterval.tsx

* Update ViewWrapper.tsx

* Update ScrollViewWrapper.tsx

* Update SimpleObservationLocation.tsx

* Update Divider.tsx

* Update DateTimePicker.tsx

* Update MediaNavButtons.tsx

* Update MediaNavButtons.tsx

* Update MediaNavButtons.tsx

* Update DisplayTaxon.tsx

* Update InputField.tsx

* Update InputField.tsx

* Update ObservationLocation.tsx

* Update WarningText.tsx

* Update LoadingIndicator.tsx

* Update CrosshairCircle.tsx

* Update CoordinatesCopiedNotification.tsx

* Update PhotoSharing.tsx

* Update TaxonDetailsMediaViewerHeader.tsx

* Update EvidenceButton.tsx

* Update TextSheet.tsx

* Update Wikipedia.tsx

* Update About.tsx

* Update About.tsx

* Update imports

* Code style
2025-08-01 12:25:46 +02:00
Johannes Klein
672dc268a7 chore: update inaturalistjs (#3029) 2025-08-01 12:11:44 +02:00
Johannes Klein
6e696cb524 Update to react-native 0.77 (#3026)
* Upgrade helper changes JS side

* Upgrade helper Android

* Upgrade helper iOS side

* Update project.pbxproj

* Create react-native-modal+14.0.0-rc.1.patch

* BackHandler.removeEventListener is deprecated

* Update react-native-modal

* Update .flowconfig

* Update package-lock.json

* Update Podfile.lock

* Update Podfile.lock from main

* Replace toBeVisible with toBeOnTheScreen

This is not recommended by react-navigation, because even though toBeOnTheScreen makes sure the components are in the tree it does not mean they are visible to the user. For example, in terms of navigation a previous screen is still i the tree but not visible to the user in the app.
I spent around a day trying to figure out why the isVisible check stopped working, and still have no clear answer.
Testing in the actual app shows that all of those flows are still working as expected, so it is a test-environment-only problem.
My suggestion would be to re-visit this problem after we have updated RN to latest, and testing related libraries to latest versions.
2025-08-01 12:11:13 +02:00
Angie
15d72cc7fb Remove suggestions screens when navigating back after choosing a taxon (#3020)
* Remove suggestions screens when navigating back after choosing a taxon

* Rewrite to use StackActions

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-07-31 14:31:01 -07:00
Johannes Klein
5eb425bab8 Update uuid (#3039)
* Update package.json

* Update package-lock.json

* Update package-lock.json
2025-07-31 16:27:36 +02:00
Johannes Klein
f17a346f23 Repair ObsWheel tooltip (#3022)
* Refactor Tooltip into AddObsModal

* Update AddObsModal.tsx

* Remove unintentionally hardcoded condition

* Disallow close modal while tooltip is visible

While the tooltip is visible the modal should not be dismissed

* Reinstate logged-in triggers

* Disable tooltip for users that just signed up

Because of a bug in showing the "Account creation" pivot card the trigger here is not always set to true and so the correct behaviour of showing the tooltip is currently not possible.

* Remove buggy check for button press

* Re-position modal

* Make sure we have numbers of observations by the user

We need it to make a decision on wether to show the tooltip. If we don't have it don't show it.

* Show the modal when tooltip should be shown

With a timeout because we have a lot of overlapping modals here.

* Remove react-native-walkthrough-tooltip dependency

* Add triangle under bubble

* Update snapshot tests
2025-07-31 10:15:53 +02:00
Johannes Klein
4d8013bae7 Use node v22 in crowdin CI action (#3038) 2025-07-30 17:12:17 +02:00
Johannes Klein
f857ecd234 Use node v22 in CI tests (#3037) 2025-07-30 15:44:54 +02:00
Johannes Klein
85832d8464 Use node v22 also when building for e2e in CI (#3036)
* Use node v22 also in CI

We want to test the app under the same build conditions as a release build would be made with.

* Update e2e_android.yml
2025-07-30 14:30:04 +02:00
Johannes Klein
4765e49fd0 v1.0.8+174 v1.0.8+174 2025-07-30 11:48:31 +02:00
Johannes Klein
5e251f68b0 Update version to 1.0.8 2025-07-30 11:47:33 +02:00
Johannes Klein
8d3dece317 Update @react-native-community/geolocation to latest (#3014)
* Update package.json

* Update package-lock.json

* Update Podfile.lock
2025-07-30 11:19:03 +02:00
budowski
bb54de0540 MOB-827 - crash fix in SuggestionsResult when trying to access invalidated Realm object of the taxon (#3033) 2025-07-29 15:02:10 +02:00
Ken-ichi
521d37b518 New Crowdin translations by GitHub Action (#3024)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-07-29 11:40:21 +02:00
budowski
6dc1c8d097 MOB-870 - fix - account creation pivot card not showing up immediately, if no observations were made (#3030) 2025-07-28 23:05:31 +02:00
Johannes Klein
506aedf3a5 v1.0.7+173 v1.0.7+173 2025-07-22 23:41:38 +02:00
Johannes Klein
019693c08c Update version to 1.0.7 2025-07-22 23:39:58 +02:00
Johannes Klein
71fd691ec3 Update react-native-screens to latest (#3003)
* Update package.json

* Update package-lock.json

* Update Podfile.lock

* Fix package.lock broken by merge
2025-07-18 10:41:56 +02:00
Johannes Klein
9c0fcf1d60 Recovery from observations not uploading (#3015)
* Log app version on start

This is helpful for log files sent in from users, to see what version of he code they were actually running while errors happened.

* Add some types

* Import as types

* Remove unused param

* Update types

* Add string

* Update strings.ftl

* Add explanatory text to login screen if logging in again

* Add TODO

* Define new error class

* Throw a RecoverableError if trying to upload without token

* Do not make a new Error if caught. Instead re-throw the one caught.

This preserves the RecoverableError type if thrown.

* Update string

* Add to return info of function that handles errors

* Recover from an error that login again might fix

By sending the user to the login screen. In case of a multi-observation upload we stop the current queue because subsequent observations will also error out (and send one navigation event each).

* Update errorHandling.test.js

* Revert "Add TODO"

This reverts commit 57437f1ece.

* Add unit tests for recovery options
2025-07-18 07:58:42 +02:00