Commit Graph

607 Commits

Author SHA1 Message Date
Amanda Bullington
5d45b21570 Performance testing with Reassure (#867)
* Performance test with reassure, danger/CI integration set up

* Remove log

* Fix script location in github actions test

* Run performance tests before regular tests

* Move script

* Make script findable and executable

* Find scripts directory

* Find scripts directory

* Find scripts directory

* Give permission

* Comment out performance test CI

* Remove danger/CI and update naming

* Remove danger from package.json
2023-11-09 09:50:22 -08:00
budowski
3c6f453bf3 Native image picker (#828)
Uses a fork of
https://github.com/react-native-image-picker/react-native-image-picker that
forces an old-style Android native photo picker to ensure we get all the
photo metadata we need. Closes #431 and closes #569

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2023-11-06 19:41:09 -05:00
Amanda Bullington
1d9adb0f51 More performance improvements (#845)
* Remove console statements in production build

* Move uploadReducer into separate file

* Create reducer for creating obs; combine reducers

* Fixes with createObsReducer

* Move album, passes test states out of global context

* Bug fixes for ObsEdit flow

* Create photo gallery container

* Set accessibility test todo for PhotoGallery

* Improve FlashList performance MyObs

* Prevent flicker on modal close

* Create less rerenders in MyObservations

* Memoize drawer items for less rerendering

* Memoize custom tab bar

* Remove unused libraries and update snapshot

* Fix and prune dependencies

* Add AddObsModal tests

* Fix e2e test android by making comment confirm button visible

* Use callbacks and memoization to cause less rerenders

* Fix tests

* Remove unused code

* Remove log

* Minimize calls to check whether internet is reachable

* Remove unused code
2023-11-06 12:24:31 -08:00
Ken-ichi Ueda
5dfae51248 v0.15.0 2023-11-03 17:34:11 -04:00
Amanda Bullington
5913fb511e Energy usage / performance improvements (#844)
* Remove console statements in production build

* Move uploadReducer into separate file

* Create reducer for creating obs; combine reducers

* Fixes with createObsReducer

* Move album, passes test states out of global context

* Bug fixes for ObsEdit flow

* Create photo gallery container

* Set accessibility test todo for PhotoGallery

* Improve FlashList performance MyObs

* Prevent flicker on modal close

* Create less rerenders in MyObservations

* Memoize drawer items for less rerendering

* Memoize custom tab bar

* Remove unused libraries and update snapshot

* Fix and prune dependencies

* Add AddObsModal tests

* Fix e2e test android by making comment confirm button visible
2023-11-02 11:03:48 -07:00
Amanda Bullington
726ebc2750 Remove script from package.json 2023-10-30 11:13:36 -07:00
Ken-ichi
dacd8788ec Permission gate layouts (#743)
Primarily adds designed layouts for permission gates (also referred to as permissions priming).

* moved permission gate business logic into a container
* use react-native-permissions exclusively
* Show PermissionGate as a modal
* Basic unit tests for PermissionGate
* Consistent content width on tablet, other minor style changes
* Allow PermissionGate to be used outside of nav hierarchy
* Use user location on Explore after getting permission
* Remove redundant 'always' location perm in ios
* Isolate current location button in the Map component, which uses location fetching functionality from react-native-maps instead of our own
* Updated cocoapods; matched INatIcon.ttf to sha1 hashes
2023-10-18 16:47:12 -07:00
Johannes Klein
a583487d30 v0.14.0 2023-10-16 22:25:57 +02:00
Johannes Klein
7e166bb3df Use fixed camera version 2023-10-16 15:35:18 +02:00
Amanda Bullington
43a9edc0ef Upgrade SVG libraries (#822) 2023-10-13 16:57:46 -07:00
Amanda Bullington
7d20f6aa81 Suggestions (using server data) (#821)
* UI overhaul for Suggestions

* Updates to suggestions

* Update permissions library and Podfile

* Get tests passing

* Add tests for suggestions

* Update snapshot

* Add comment prompt & box to TaxonSearch

* Add empty state

* Nav and loading fixes

* Add more tests to Suggestions flow

* Fix tests

* Fix tests
2023-10-13 14:46:05 -07:00
Johannes Klein
2baac4f9f8 Vision camera v3 (#819)
* Update vision camera

* Breaking change: camera device hook

* Breaking change: replace reanimated function calls

* Update vision plugin

* New take photo options

* Use changed props

* Remove undocumented prop

* Update test mocks for vision camera libraries

* Replace vision camera device orientation strings

* Add explanations to a central file for patches needed with the vision camera

* Some more patches
2023-10-12 11:38:17 +02:00
Amanda Bullington
47c5d8e2fd Drag and drop photos (#813)
* Use drag and drop to let a user change photo positions

* Fix tests

* Add test for EvidenceList

* Fix tests

* Fix state for no evidence / no observation photos

* Add unit tests for empty list and displaying obs photos
2023-10-11 13:55:27 -07:00
Angie
1487e5f421 Accuracy circle and obscuration cell for obsdetail map (#744)
* Obscuration cell and accuracy circle on ObsDetail map
* DetailsMap view
* Copy and share location from DetailsMap
* Patched react-native-maps to address bug with showsUserLocation

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2023-10-09 12:41:22 -07:00
Ken-ichi Ueda
565d304ed1 v0.13.2 2023-10-05 15:05:25 -07:00
Johannes Klein
e12fd7c58d Bump version 2023-09-22 17:04:31 +02:00
Johannes Klein
8b2f936a6b Version bump 2023-09-22 16:11:20 +02:00
Johannes Klein
59b159ae64 Dependency updates 230918 (#784)
* Update some dependencies with minor version change

* Update some dependencies

* Fix some dependencies because of incompatibilities

* Update package-lock.json

* Testing dependencies updated

* Fix RN permissions

An upgrade broke the import of it's mock in our tests.

* Bump some more minor dependencies

* Small package dump

* Upgrade to Realm v12

* Upgrade i18n dependencies

* Update AuthenticationService.js

* Revert "Upgrade to Realm v12"

This reverts commit ce463fe246.
2023-09-20 11:33:14 +02:00
Ken-ichi Ueda
9713ec50d2 v0.12.0 2023-09-19 16:08:52 -07:00
Johannes Klein
6ee572c356 Add start script for release mode ios 2023-09-13 14:43:14 +02:00
Johannes Klein
ba0016365f Crud e2e (#696)
* Update comment

* Scaffold for e2e test

* Upload observation

* Update the observation by adding a comment

* Checking that comment appears

* Delete the observation

* Check that the comment is added succesfully

* Do not invalidate searchObservations query cache after observation deletion

* Update test IDs

* Script to check if e2e test user has observations

* Log out api response

* Increase default test timeout
2023-09-13 13:48:50 +02:00
Ken-ichi Ueda
c695d3a3e7 v0.11.0 2023-08-28 17:16:14 -07:00
Amanda Bullington
bc350c77b9 Nested navigators (#741)
* Move login and camera screens into stack navigators

* Navigation fixes

* Create ObservationsStackNavigator

* Move drawer items into drawer nav

* Navigator fixes and improvements

* Nav improvements

* Fix navigation from ObsEdit

* Fix test

* Fix test

* Redo bottom tab nav with Explore as part of ObservationsStack

* Use ObsEdit and AddID in two stacks

* Move identify into ObservationsStack and fix headers

* Fix ObsEdit bottom button issue by using fixed positioning for tab bar

That required a few other changes to places where we were explicitly
compensating for the height of the tab bar. Also fixed some other minor
layout issues.

* Typo

* Add LocationPicker to ObservationsStackNavigator

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2023-08-23 22:07:07 -07:00
Ken-ichi Ueda
bd4e6b077d v0.10.0 2023-08-21 17:19:03 -07:00
Ken-ichi Ueda
b0bbebdc6f v0.9.1 2023-08-09 18:22:53 -07:00
Ken-ichi Ueda
f950ee9b62 v0.9.0 2023-08-09 18:06:05 -07:00
Amanda Bullington
20d8308e5f Explore UI (#731)
* Start building explore screen

* Header for Explore screen

* Fix button build

* Move ObsFlashList to shared components for use in Explore

* Fix background transparency on SegmentedButtons

* Use reusable components for map and ObservationLocation

* Use search observations API to show results in explore views

* Add infinite scroll hook to species, observers, and identifiers views

* Update snapshots and create ExploreFlashList for consistent header animation

* Float segmented buttons above observation lists in explore

* Use queryparams for API calls; add loading state to each view
2023-08-08 12:29:17 -07:00
Johannes Klein
2494774ad5 Use latest vision-plugin 2023-08-02 13:39:23 +02:00
Johannes Klein
548528ecc1 Replace vision camera with different fork
This fixes some orientation issues on iPhones
2023-08-02 12:44:32 +02:00
Johannes Klein
f78af257fc Upgrade RN patch version 2023-08-02 12:16:53 +02:00
Ken-ichi Ueda
a6202bc08f v0.8.1 2023-07-31 17:26:33 -07:00
Ken-ichi Ueda
f7267d3a37 v0.8.0 2023-07-31 13:33:28 -07:00
Amanda Bullington
333ae489cd AR Camera UI (#705)
* Refactor camera buttons into their own components

* Standardize camera buttons & make TaxonResult a reusable component

* Fix button styling in tablet landscape; create confidence interval

* Create camera container with shared functionality for both cameras; fix tests

* Connect results & loading status from native predictions; standardize results on iOS/Android

* Fix Camera test by mocking CameraView and FrameProcessor components
2023-07-19 10:14:30 -07:00
Johannes Klein
f87f27a53a Rename model 2023-07-18 20:18:13 +02:00
Johannes Klein
5f81c49f85 ARCamera MVP: Basic screen with full screen camera and prediction labels (#684) 2023-07-15 07:53:18 +02:00
Ken-ichi Ueda
4fe30f92cf 0.7.0 2023-07-13 16:28:39 -07:00
Angie Ta
efdbf0cc03 Merge branch 'main' into obs-detail 2023-07-10 21:55:24 -07:00
Angie Ta
a582eca80c Agree with Id bottomsheet, AddCommentModal design changes, View in browser, photoscroll pagination, Obsdetail double comment bugfix 2023-07-10 21:26:24 -07:00
Ken-ichi Ueda
5f89db7c20 0.6.1 2023-06-29 16:09:52 -07:00
Amanda Bullington
53521804f2 Update package; closes #660 (#672) 2023-06-22 16:27:50 -07:00
Ken-ichi Ueda
4259a586a2 0.6.0; updated Fastlane 2023-06-09 18:27:53 -07:00
Ken-ichi Ueda
e687b34d4f v0.5.1 2023-06-02 13:17:15 -07:00
Ken-ichi Ueda
259755195d 0.5.0 2023-05-26 18:10:31 -07:00
Amanda Bullington
cc78f06b04 Add activity indicator to fetch location (#639)
* Add activity indicator to fetch location

* Add e2e location mock (#643)

Adds a mock for fetchUserLocation intended to be used with e2e tests. `MOCK_MODE=e2e` must be in the ENV for this to work.

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2023-05-25 17:13:31 -07:00
Ken-ichi Ueda
3ca1714220 0.4.0 2023-05-19 13:49:05 -07:00
Amanda Bullington
245f9f1cee Forgot password UI (#614)
* Update UI for forgot password screen

* Update formData; add comment about 404 error from reset password

* Change API_HOST back to using staging / env config

* Hide sheet when nav back to login

* Restore prev version of react-native-mail
2023-05-19 10:54:22 -07:00
Ken-ichi
d336c0e1fe Fix Android camera rotation (#613)
Fixes problem in which the StandardCamera did not render previews in the correct orientation in Android.

* useDeviceOrientation hook in StandardCamera
* Bugfix: useDeviceOrientation was not setting the initial device orientation
  correctly
* Bugfix: deal with idiosyncracies in iOS vs Android orientation values when
  making our own copies of photos
* Convenience scripts for running OS-specific e2e build and test
2023-05-18 15:58:06 -07:00
budowski
58de692298 364 sharing photos to inat (#568)
Allows user to share photos from gallery apps to our app as new observations via react-native-share-menu. Also added patch-package and patched react-native-share-menu for Android prod builds. Patch addresses https://github.com/meedan/react-native-share-menu/issues/216

Closes #364

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2023-05-17 13:24:38 -07:00
Ken-ichi Ueda
14474f0f71 Version 0.3.0 2023-05-11 18:26:40 -07:00
Johannes Klein
1450377add Upgrade react-native patch version 2023-05-10 21:10:36 +02:00