Commit Graph

399 Commits

Author SHA1 Message Date
Ken-ichi
f4c7ee3f86 fix: don't ask for PHOTO LIBRARY permission if user can't change their mind (#2020)
* stop asking for PHOTO LIBRARY permission before import, b/c it's not
  necessary for importing
* use a forked version of react-native-cameraroll that allows us to write
  location metadata to newly-created photos, which was the really important
  thing we were using the PHOTO LIBRARY permission for

Closes #1612
2024-08-30 09:55:45 -07:00
Amanda Bullington
348e520f20 Use presentationStyle over full screen for photo library; closes #2006 (#2017) 2024-08-29 10:47:00 -07:00
Angie
190c3f3453 Make obs count text not tappable (#2009) 2024-08-28 19:04:35 -07:00
Ken-ichi Ueda
c2232382c5 v0.43.0+112 2024-08-23 16:06:49 -07:00
Ken-ichi Ueda
118d2e2cd4 Show private place guess when available 2024-08-23 15:24:47 -07:00
Ken-ichi
0b5c01c284 Fix broken Explore pagination (#1998)
Explore was not loading subsequent pages
2024-08-23 14:24:14 -07:00
budowski
b1b6e49d58 Update projects icons (#1996)
Closes #1930
2024-08-23 11:12:58 -07:00
budowski
313d8501e3 Updated react-native-exif-reader package version (nil check on iOS) (#1997)
Fixes a bug in which ObsEdit would crash when saving an obs w/ a photo but w/o location and w/o location permission.
2024-08-23 10:20:07 -07:00
budowski
b96051cb02 Internal feedback form (#1992)
Adds internal feedback form that posts to our logging infrastructure.

Also,

* Adds maxLength prop to TextInputSheet w/ UI to show characters remaining
* Adds optional description to TextInputSheet
* Adjusts TextInputSheet input height to fit area left by the keyboard

Closes #1844 

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-08-22 15:12:37 -07:00
Ken-ichi Ueda
f1a06f4a1e v0.42.0+111 2024-08-19 16:05:27 -07:00
Ken-ichi Ueda
8a31727fef v0.41.0+110 2024-08-16 11:16:32 -07:00
Ken-ichi Ueda
b970ba7acb v0.40.0+109 2024-08-16 11:04:33 -07:00
Amanda Bullington
3b9739e254 Set threshold for top offline suggestion & sort by ascending rank (#1972)
* Update pods

* Show high scoring taxon as offline top ID; closes #1963

* Leave comment about offline threshold

* Add human offline test
2024-08-14 14:39:02 -07:00
budowski
f0d0445d36 Update react-native-exif-reader version (#1967)
Close #1866
2024-08-13 12:21:05 -07:00
Ken-ichi Ueda
6b4ee07850 v0.40.0+108 2024-08-09 14:52:22 -07:00
Ken-ichi Ueda
9ac82fff08 v0.40.0+107 2024-08-09 14:41:38 -07:00
Ken-ichi Ueda
f92cfdb013 v0.39.0+106 2024-08-09 14:35:04 -07:00
Angie
5644a98a96 1888 signuplogin images are too small and pixelated (#1909)
* replace signup and login images and logo

* images

* Update photos

* Updated photos to higher quality, updated launch screen photo

* deleted old images
2024-08-08 22:48:42 -07:00
Ken-ichi Ueda
4545d72e2f Ensure default realm instance is always unique for a single run 2024-08-07 12:18:58 -07:00
Ken-ichi
349511d2a8 Fastlane production release (#1915)
* Updated to Fastlane 2.222.0
* Set up basic fastlane task to make a version in the App Store
* Remove iPad, MacOS, and Vision targeting
* Added note about metadata sync not working
* Documented fastlane prod behavior in the README
2024-08-07 09:39:06 -07:00
Ken-ichi Ueda
9b2f56ed1a v0.39.0+105 2024-08-02 13:20:43 -07:00
Amanda Bullington
9b0029cb87 Stop location fetch when navigating to location picker (#1903)
* Stop location fetch when nav to location picker; let useWatchPosition handle acc

* Update pods

* Close delete obs sheet after single deletion

* Fix for e2e test: restore isFocused check

* Revert code
2024-07-31 18:45:43 -07:00
Amanda Bullington
9a0581670f Consolidate key-value stores (#1879)
* Switch to zustand mmkv storage instead of async storage

* Update hooks using async storage

* Remove asyncstorage

* Remove LocalPreferences

* Prevent collision upserting from infinite scroll & sync remote obs
2024-07-30 09:12:26 -07:00
Ken-ichi Ueda
6f2499853b v0.38.0+104 2024-07-29 18:34:39 -07:00
Ken-ichi
899076e67a Only ask for permission to add photos from cameras (#1869)
* Patch camera roll to not ask for readwrite after addonly granted
* Only request add permission from cameras
2024-07-29 11:51:14 -07:00
Ken-ichi Ueda
5da592cbb9 v0.37.0+103 2024-07-26 12:20:14 -07:00
Johannes Klein
e7557f8a68 v0.36.1+102 2024-07-19 12:48:15 +02:00
Johannes Klein
5684130532 1811 ai button home align (#1827)
* Update flash-list

* Remove superfluous classname

* Update workaround to center empty list component

* GradientButton TS
2024-07-17 13:34:37 +02:00
Johannes Klein
e54bd2356e v0.36.0+101 2024-07-12 17:16:26 +02:00
Johannes Klein
a52996f535 Changes to the way permissions are asked for (#1793)
* Replace name in permission requests

* TakePhoto TS

* PermissionGate TS

* Type

* PermissionGateContainer TS

* Interface

* Types

* LocationGate TS

* Remove LocationPermissionGate from Camera

* Remove write only permission

* Type

* ObsPhotoSelectionList TS

* Code style

* Show the improve with location button

* Create useLocationPermission.tsx

* Use new hook on suggestions

* Doc comment

* Use new hook in camera view

* Add strings

* Refactor Explore main content

* Use permission hook on RootExplore

* Add no location permission component

* Rename function

* Prop request permissions and use with button

* Default to Nearby label

* Remove Node type

* Projects TS

* Use useLocationPermission hook in projects screen

* Add string

* Prop permission down

* Refactor list render

* Refactor tab id into enum

* Tab type

* On nearby tab if without permission show button to prompt

* Leftovers

* Remove location permission gate from ObsEdit

* Use location permission hook on evidence section

* SearchBar TS

* Do not autoFocus on search bar in location picker.

Closes #1743

* Update type

* LocationSearch TS

* Show location permission gate on location picker's mount

* Add location permission to CurrentLocationButton

* Remove unused props of Map

* Remove unused exports from useMapLocation

* Migration

* Revert "Show location permission gate on location picker's mount"

This reverts commit 30ff75698c53d54d0b14cd2bd629f7155b743bf8.

* Add callbacks to useLocationPermission hook

* Show location permission ask on Obs Edit

* Remove unused string

* Reset explore filters should set location always to worldwide

* Add helper function to show place text in Explore

* Remove unused state of filter modal

* Show place text in filters modal with helper

* Show location permission button only for Nearby explore state

* Add a placeMode state

* Do not send placeMode to API

* Also treat limited permission as yes

* useLocationPermission in ExploreLocationSearch

* Refactor to setting place mode

Instead of logic based on the translated text of the place_guess string that is stored in ExploreContext, we are switching to an enum state that signifies which mode to show on explore:
1.) Nearby: Filters explore results based on the user's location. This also has a state without location permission that does not query the API.
2.) Place: Filtering by a specific place (as retrieved by /places API).
3.) Worldwide: Retrieve worldwide results, i.e. not having a place filter set.
4.) Map area: Filtering explore results precisely to the map rectangle shown on the explore map.

* Remove import from test

* Remove export

* Use blocked title only for blocked permission asks

* Move gallery permission container to Tab navigator as are the others

* Add gallery save title

* Split location permission explanation into two

* Update strings.ftl

* Only nav to location picker if permission was not  granted

* Check permission on app being foregrounded

* The location permission part is handled by useLocationPermission

* Do not store permission result in hook

* Use hasPermission from permissions hook

* Update fetchUserLocation.e2e-mock

* Move hook one higher

* Show user location if permission is given

* PermissionGate callbacks should use useCallback

* Add permission hook to map usage

* Fix test

* Update layout to be asserted

* Add location permission hook to Explore

* Remove console.log

* Few TS fixes

* Indentation

* Remove superficial check

* Update Podfile.lock
2024-07-12 11:00:24 +02:00
Angie
b55db96db8 1723 agree button should not appear while signed out (#1792)
* Agree with id button does not show when logged out, test added

* updated pod

* Fix failing test
2024-07-11 12:38:10 -07:00
Amanda Bullington
ce39b03495 Changes to showing select taxon button & vision attribute; closes #1773 (#1790) 2024-07-10 13:18:27 -07:00
Angie
29c0f6beb7 1593 potential disagreement bottom sheet and disagreeing ids (#1749)
* Disagreeing IDs and Potential disagreement bottomsheet

* Change back to js

* Styling for withdrawn disagree text, string adjustments

* Agree taxon and disagree taxon share same state var, Reuse existing RadioButtonSheet for potential disagree, UI changes, styling for scientific name

* Remove duplicate

* Fix suggest id sheet not showing from teaxon details
2024-07-08 22:39:15 -07:00
Ken-ichi Ueda
74c65672d9 v0.35.2+100 2024-07-07 19:50:22 -07:00
Ken-ichi Ueda
8fdfe37d97 v0.35.1+99 2024-07-05 21:35:03 -07:00
Ken-ichi Ueda
5cd598587d v0.35.0+98 2024-07-05 14:19:21 -07:00
Amanda Bullington
08d06221b1 Fixes for suggestions screen (#1756)
* Remove sticky headers from Suggestions

* Changes to suggestions

* Fix offline reload
2024-07-02 20:28:35 -07:00
Johannes Klein
09f4abdf9b Revert "Vision camera update with orientation support (#1713)"
This reverts commit de36644fe8.
2024-06-29 16:01:46 +02:00
Ken-ichi
ae2f9eeddc Fix missing map tiles when taxon chosen on Explore (#1722)
* IconicTaxonChooser no longer takes a taxon or manages its own state
* Setting iconic taxon filter to Unknown is now its own action
* Unsetting a taxon can be done with the CHOOSE_TAXON action by setting taxon
  to null or undefined
* Omitted some extraneous params from tile requests
2024-06-28 10:13:51 -07:00
Ken-ichi Ueda
b2ccf011c6 Prevent extra navigation after discarding changes from StandardCamera 2024-06-27 16:04:48 -07:00
Angie
4df29cdf33 1687 tapping uploading observations should not increase the upload of observations count (#1716)
* tapping uploaded obs doesnt increase upload count

* remove comment
2024-06-26 16:54:21 -07:00
Johannes Klein
06589dd89e Revert "Upgrade to RN0.74.0 (#1471)"
This reverts commit 1b705b4495.
2024-06-26 16:29:40 +02:00
Johannes Klein
1b705b4495 Upgrade to RN0.74.0 (#1471)
* Upgrade to RN0.74 with upgrade helper

* Bump minor version

* Update lock files

* Update PrivacyInfo.xcprivacy

* Upgrade react-native-safe-area-context

* Update project.pbxproj

* Create react-native-vision-camera+4.0.3.patch

* Update react-native-vector-icons

* Update Podfile.lock

* Fix crash on LoginForm

* Minor version bump

* Delete react-native-vision-camera+4.0.3.patch

* Update metro.config.js

* Update Podfile.lock
2024-06-26 16:17:39 +02:00
Johannes Klein
de36644fe8 Vision camera update with orientation support (#1713)
* Update vision camera

* Remove no longer needed VeryBadIpadRotator

* Remove orientation prop

* Update vision plugin

* Remove frame processor patch

* Remove unused import

* Update rotation patch

* Remove unused param
2024-06-26 12:01:10 +02:00
Johannes Klein
0fa998b382 v0.34.0+97 2024-06-21 22:05:05 +02:00
Johannes Klein
ef6163df11 Upgrade CV model to 2.13 (#1694)
* Update vision plugin

* Upgrade tensorflow

* Update Podfile.lock
2024-06-19 10:23:23 +02:00
Amanda Bullington
76824636ef Human treatment in suggestions (#1693)
* Fix human suggestions

* Fix human test

* Fix tests
2024-06-18 12:39:59 -07:00
Ken-ichi Ueda
d3c02d20a2 v0.33.1+96 2024-06-14 11:27:23 -07:00
dependabot[bot]
a2672706b2 --- (#1586)
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-14 14:05:33 +02:00
Ken-ichi
091abfb952 Save photos to gallery in sequence to avoid duplicate albums (#1676)
Closes #1658
2024-06-13 16:56:08 -07:00