Commit Graph

4199 Commits

Author SHA1 Message Date
Amanda Bullington
077cd507cb Change fragment to view with testID 2023-01-12 17:06:50 -08:00
Amanda Bullington
9b1e6d7c11 Merge from main 2023-01-11 10:33:14 -08:00
Amanda Bullington
bf1910a94b Remove optional chaining; update expected return value from hook 2023-01-11 10:29:22 -08:00
Johannes Klein
fbeedb2f2b Merge pull request #327 from inaturalist/314-no-evidence-icon-not-navigating
314 no evidence icon not navigating
2023-01-11 11:34:13 +01:00
Ken-ichi Ueda
87bc63eaeb Updated README to include info about contributing 2023-01-10 19:19:45 -08:00
Amanda Bullington
af2e771f74 Show localized error description from /oauth/token (#341)
* Show localized error description from /oauth/token; closes #326
* Submit locale via FormData for oauth/token
2023-01-10 18:38:16 -08:00
Chris
8c13f0ba1c Fix ObsListBottomSheet subsequent upload bug (#344)
Closes #323

Also,

* Move upload status under the useUploadObservations hook for a single source
  of truth
* Move useUploadObservations hook to ObsListBottomSheet component so children
  can be simpler components
* Create a start upload function rather than relying on component mounting to
  trigger uploads
* Add necessary cleanup: cleanup state in useUploadObservations and pull
  ObsListBottomSheet from the DOM to release and saved state/references
2023-01-10 17:59:32 -08:00
Ken-ichi Ueda
65664dc03f Add forgotten l10n files and ensure they automatically get added in future 2023-01-10 17:01:42 -08:00
Ken-ichi Ueda
bc7e708bfe Bugfix: AddID was not requesting enough taxon attributes for Realm
This tries to make sure that it requests the basic set of fields, and tests to
make sure AddID returns an object that can be saved to Realm.

Also fixed a bug in which the user seemed to be required in DisplayTaxonName.
2023-01-10 16:44:42 -08:00
Amanda Bullington
e7a4cb876f Merge from main 2023-01-10 16:09:02 -08:00
Amanda Bullington
e70d657c6d Merge from main 2023-01-10 16:00:58 -08:00
Chris
3a4ea2d283 Fix unclickable observations bug (#298) (#343)
Moves header back into flatlist.

Closes #298
Closes #339
2023-01-10 15:36:44 -08:00
Ken-ichi
aa0eabcc59 Fix crash on Android after login (#347)
The problem has something to do with the unicode capitalization code that got
ported from the web. It seems like the JS engine in Android has a problem
with calling toUpperCase() on some unicode characters, and this gets around
that particular bug, plus one problem with a null check on a Realm
collection.
2023-01-10 15:35:59 -08:00
Amanda Bullington
9a48bb5ef4 Fix failing test 2023-01-10 14:59:02 -08:00
Amanda Bullington
bf2ac05925 Rename startUpload function in UploadPrompt 2023-01-10 14:55:14 -08:00
Amanda Bullington
8f444e3a88 Split numUnuploadedObs into separate hook which returns number, not array 2023-01-10 14:53:35 -08:00
Amanda Bullington
28099b5922 Add test for checking locale changes from remote (#294)
Add test for checking locale changes from remote; closes #287

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2023-01-09 09:30:07 -08:00
Chris Chuck
9def47c1cb Reset all state on handle close 2023-01-08 21:56:23 -06:00
Chris Chuck
48e57212c3 Fix lint 2023-01-08 21:47:52 -06:00
Johannes Klein
441efd5383 Change Android e2e to run on push to main 2023-01-07 22:54:44 +01:00
Johannes Klein
87cbf91fd8 Add permission string for iOS location 2023-01-07 11:06:53 +01:00
Johannes Klein
0ea4e1b06c Changed Android e2e to run on release publish only 2023-01-07 10:54:18 +01:00
Amanda Bullington
c64f79fb6d Fix styling for AddObsModal buttons on phone & tablet; closes #338 (#340) 2023-01-06 14:32:04 -08:00
Chris
516b1a487d Create more robust taxon display name component - #320 (#334)
* Add missing dependency

* Fix display taxon name

* Lint

* Add unit tests

* Lint

* Add test file

* Fix bad commits

* Add unit tests

* Lint

* Fix lint

* Lint

* Fix tests

* Fix tests

* Remove console log

* Fix most comments and add test case for subspecies

* Fix lint

* Add common name capitalization

* Fix broken tests

* Fix test
2023-01-06 10:39:38 -08:00
Chris
0a426a4279 Allow keyboard click propagation - #322 (#336)
* Prevent keyboard from blocking click propagation
2023-01-05 15:56:48 -08:00
Amanda Bullington
1857115669 v0.1.1+36; Automate fastlane rollout to internal testers on iOS and Android (#335)
* Add different env files to gitignore; update react-native-config

* Set different staging and production .env files in Android

* Add different envfiles to podfile

* Use podfile to check for .env.production and .env.staging files

* Update README

* Update fastfile to automate distribution/rollout for iOS and Android

* v0.1.1+34

* Tweaks to try to get Android to use production API via Fastlane

* v0.1.1+35

* Point production to .env instead of .env.production

* v0.1.1+36
2023-01-05 10:27:33 -08:00
Amanda Bullington
236904e0a1 Use different .env files for staging and production (#332)
* Add different env files to gitignore; update react-native-config

* Set different staging and production .env files in Android

* Add different envfiles to podfile

* Use podfile to check for .env.production and .env.staging files

* Update README

* Point production to .env instead of .env.production
2023-01-05 10:26:17 -08:00
Johannes Klein
705152a9ca Merge pull request #337 from inaturalist/e2e-android-wo-cleanup
Android e2e CI tests without cleanup flag
2023-01-05 11:21:16 +01:00
Johannes Klein
e55fdb3005 Try android e2e CI tests without cleanup flag 2023-01-05 10:20:48 +01:00
Amanda Bullington
360a5b2d17 v0.1.1+33 (#330) 2023-01-04 12:04:59 -08:00
Amanda Bullington
d16828365c Abort 'fastlane tag' if release notes exceed 500 char limit; closes #146 (#331) 2023-01-04 10:30:04 -08:00
Johannes Klein
2e95c21a87 Use describe and before and after structure 2023-01-03 10:41:39 +01:00
Johannes Klein
75f47e097a Add a11y label
Closes #314
2023-01-02 23:05:22 +01:00
Johannes Klein
3673d27a34 Add unit test for observation with no evidence 2023-01-02 23:02:18 +01:00
Johannes Klein
d318d0facb Add testID and accessibilityLabel to fallback image 2023-01-02 23:01:12 +01:00
Johannes Klein
3ee256dbe2 Fix crash in ObsDetail when no photos or sounds are in observation (= "No evidence")) 2023-01-02 21:29:48 +01:00
Johannes Klein
1a886575f4 Merge pull request #262 from inaturalist/250-e2e-init
250 e2e init
v0.1.1+33
2023-01-02 20:40:57 +01:00
Johannes Klein
feefb162bb Import order 2023-01-02 20:09:06 +01:00
Johannes Klein
463765609e Remove cache check for build step 2023-01-02 20:08:19 +01:00
Johannes Klein
6ac6f88662 Merge branch 'main' into 250-e2e-init 2023-01-02 19:25:58 +01:00
Ken-ichi
c76be140b5 Fixes bug preventing photo uploads (#324)
Primary bug was that requests to POST /v2/observation_photos were using the
obs serial ID instead of the obs UUID.

Another major problem was that uploads always quit before the last observation
when there were multiple observations to upload, which I address by changing
the way we set `allObsToUpload` in `useLocalObservations`.
2022-12-31 09:46:50 -08:00
budowski
30e89b9387 When taking camera photo on Android do extra rotation if orientation flag is 90/180/270 (#321)
Closes #219
2022-12-31 09:46:22 -08:00
Johannes Klein
65279cb072 Remove caching of build folder on iOS 2022-12-31 12:06:06 +01:00
Amanda Bullington
310d2e743d Add eslint rules for React Query (#319)
* Use eslint rules to clean up useQuery code

* Code cleanup for useAuthenticatedMutation

* Add realm deletion and clear mock before each test in DeleteObservationDialog
2022-12-30 13:30:07 -08:00
Amanda Bullington
d51685b488 Fix: don't make API call for deleting local observations (#318)
* Check synced status before deleting observation remotely; closes #315

* Add tests for deleting observation from dialog

* Add jest settings for vscode; fix failing test from App.js

* Ignore vscode settings files

* Remove cached version of vscode settings file from git

* Update gitignore

* Add a test for canceling deletion
2022-12-30 08:34:32 -08:00
Amanda Bullington
2412b8dde0 Ensure observed_on_string is actually a string for upload (#316)
* Format exif date as string for upload; remove unused code for handling evidence upload errors; closes #311

* Fix tests; add a new test to check for string formatting
2022-12-29 13:03:02 -08:00
Amanda Bullington
ec0a686df6 Eslint: disallow console logs (#312)
* Remove console.logs; remote useLoggedIn hook and instead use useCurrentUser; closes #310

* Comment out locale test
2022-12-29 10:56:50 -08:00
Johannes Klein
7214896479 Add comment 2022-12-23 17:30:50 +01:00
Amanda Bullington
0c4b9a5158 Fixes for API calls, useCurrentUser hook, api token not being fetched (#309)
* Random code cleanup

* Simplify useCurrentUser hook; only fetch messages if current user; closes #272

* Fix padding around login prompt button

* Code cleanup

* Fix projects; display search and tabs separately

* Remove log
2022-12-21 13:35:41 -08:00
Amanda Bullington
38f7dbd75b Add sync button functionality, ObsList (#307)
* Add sync functionality: sync button uploads and downloads observations

* Add loading wheel; code cleanup; closes #278
2022-12-21 12:04:01 -08:00