Commit Graph

4199 Commits

Author SHA1 Message Date
Ken-ichi
a9652bc1ed Login KeyboardAvoidingView (#825)
* Use KeyboardAvoidingView on login form
* Use react-navigation header in login screens
* Handle some style and Android issues w/ Login
2023-11-02 17:59:56 -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
60a7124405 Show tiles on ObsDetails map & map modal; add tests; closes #816 (#843) 2023-10-31 13:36:44 -07:00
Amanda Bullington
31b8ae161e Show taxon photo in AR camera (#842)
* Show taxon from realm in AR camera; closes #804

* Add tests for AR camera display

* Add AR camera test for photo display
2023-10-30 17:17:28 -07:00
Johannes Klein
92eda66cc9 Add a patch to rotate camera view on iPad (#841) 2023-10-30 22:44:38 +01:00
Amanda Bullington
523194a9d8 Swap landscape/portrait photo preview position on tablet (#836) 2023-10-30 11:27:52 -07:00
Amanda Bullington
a99cf212ba Update e2e workflows 2023-10-30 11:16:57 -07:00
Amanda Bullington
726ebc2750 Remove script from package.json 2023-10-30 11:13:36 -07:00
Amanda Bullington
72136cf180 Remove e2e script checking observations for test user 2023-10-30 11:01:43 -07:00
Amanda Bullington
8df67b8992 Add comment sheet for deleting comments; closes #792 (#835) 2023-10-25 16:21:54 -07:00
Amanda Bullington
62662e286b Show login sheet when user logged out & tries to upload; closes #827 (#832) 2023-10-25 12:29:14 -07:00
Ken-ichi
e3eb739388 Suggestions nav fix (#833)
* Bugfix: navigation was broken when choosing a taxon on Suggestions
* Test for Suggestions navigation

The thorny part here was isolating the test Realm db. We should really have a
generalized strategy for this, but this works for this task.
2023-10-25 08:34:39 -07:00
Amanda Bullington
0cde40ce18 Remove minZoomLevel for LocationPicker; closes #824 (#831) 2023-10-24 16:30:26 -07:00
Amanda Bullington
0878242c20 Bottom tab icon (#829)
* Write tests for bottom tab bar

* Show people icon when low connectivity; closes #765
2023-10-24 15:44:20 -07:00
Amanda Bullington
d38720f9b2 Tests & fix for upload progress (#826)
* Add unit tests for Toolbar upload progress

* Tests and improvements to upload progress bars

* Fix tests

* Update type for showsExploreIcon

* Fix tests

* Clear realm before MyObs tests
2023-10-20 16:01:48 -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
d15f0bd6ee v0.14.0+60 v0.14.0+60 2023-10-16 22:27:55 +02:00
Johannes Klein
a583487d30 v0.14.0 2023-10-16 22:25:57 +02:00
Johannes Klein
defe991dd1 Add a patch to get correct orientation for Android for frame processor 2023-10-16 22:17:53 +02:00
Johannes Klein
9c562f4838 Merge branch 'main' of https://github.com/inaturalist/iNaturalistReactNative 2023-10-16 21:56:17 +02:00
Amanda Bullington
b991632fcf Ignore dark mode on id button; closes #768 (#823) 2023-10-16 12:49:59 -07:00
Johannes Klein
f5aa254eb0 Patch to ignore native crash in camera library 2023-10-16 15:36:32 +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
f29b2b566c Do not use frame processor after photo has been taken 2023-10-12 14:07:55 +02:00
Johannes Klein
c5d0b1e2ec Fix regression in UI in StandardCamera 2023-10-12 13:34:57 +02: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
Ken-ichi Ueda
d421c46342 Added Info.plist desc for NSAppleMusicUsageDescription, which we may need for MediaLibrary access 2023-10-09 13:03:57 -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
a2aad8aed7 Not sure why this version keeps bouncing back and forth 2023-10-05 16:43:17 -07:00
Ken-ichi Ueda
5b009e06de v0.13.2+59 v0.13.2+59 2023-10-05 15:06:36 -07:00
Ken-ichi Ueda
565d304ed1 v0.13.2 2023-10-05 15:05:25 -07:00
Ken-ichi
f166131fe5 ObsGridItem layout fixes (#815)
* Fixed layout changes for ObsGriditem
* Added noevidence icon when no photos
* Added a few tests
* Minor cleanup
2023-10-05 11:22:03 -07:00
Ken-ichi
b7bf5fd950 Minor changes to e2e testing (#814)
* Removed sign in test since the obs creation test already signs in
* Renamed two remaining test files to signedIn and signedOut to reflect the
  different conditions that they test
* Add a check to wait for comments count component after uploading an observation

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2023-10-05 10:18:39 -07:00
Ken-ichi Ueda
2dd7f7b002 Forgot to add snapshot for tabs style change 2023-10-04 15:45:55 -07:00
Ken-ichi Ueda
beb58fe29f Minor change to tab padding on ObsDetail 2023-10-04 12:56:23 -07:00
Ken-ichi Ueda
100a32a602 Removed permissions parts of Podfile that prevent build 2023-10-04 11:17:04 -07:00
Ken-ichi Ueda
572c9e0061 Reduce e2e flakiness with a different matcher
The substantive bit here is using a test ID instead of a string to match an
element on My Observations. Rotating INatIconButton isn't necessary but it
seemed reusable to me and could easily be mocked if it becomes a problem due
to infinite animation.
2023-09-29 11:48:18 -07:00
Ken-ichi
373fbf4dc4 Stop AddEvidenceSheet from appearing on StandardCamera (#809)
Try to ensure navigation from AddEvidenceSheet happens after the sheet is closed

---------

Co-authored-by: Yaron Budowski <budowski@gmail.com>
2023-09-29 10:20:54 -07:00
Amanda Bullington
1be3cb94d2 Show iconic taxon icon in ObsImagePreview (#810)
* Add iconic taxon icon to ObsImagePreview; closes #805

* Show iconic taxon image instead of gradient

* Fix test
2023-09-27 17:41:46 -07:00
Amanda Bullington
0476a97ed7 Fix back button position; make group for screens in multiple navigators; closes #808 (#812) 2023-09-27 16:15:02 -07:00
Ken-ichi
b51d2983f9 Don't retry queries if the servers return 503 codes (#794) 2023-09-27 15:00:01 -07:00
Ken-ichi Ueda
368a0b1ab4 Show coords same size as place_guess if no place_guess on ObsEdit 2023-09-25 18:01:18 -07:00
Ken-ichi Ueda
231227577f Bugfix: MyObs observations were not displaying in order of created_at descending 2023-09-25 17:42:46 -07:00
Ken-ichi Ueda
952d9490ae Renamed props in AddID and TaxonSearch
TaxonSearch presumably searches for taxa so `createId` seemed like an
overly-specific name. Also "query" seems more specific than "search" to me.
2023-09-25 15:49:14 -07:00
Amanda Bullington
01b3d3905f Update Fastlane file to check for extraneous assets (#798)
* Update Fastlane file to check for extraneous assets; closes #793

* Move assets checks to android build lane
2023-09-25 15:41:42 -07:00
Johannes Klein
2027d77ac7 772 zoom button (#796)
* Refactor prop name

* Use Text component with Whitney Medium for zoom text

* Use multiplication sign in zoom button

* Update snapshots to new prop handling

* Refactor device and other props into a container component

* Use neutral zoom position as starting point

* Show zoom button not for single lens devices

* Cycle through neutralZoom maxZoom and minZoom

* when the device has only one physical lens it should start in the min zoom
2023-09-25 21:00:47 +02:00
Amanda Bullington
4fde8932ea ObsDetail tab bar sticks to top of screen (#795)
* Create StickyView component for MyObs

* Tab bar sticks to top of screen; closes #779
2023-09-25 11:46:56 -07:00