Commit Graph

4199 Commits

Author SHA1 Message Date
Ken-ichi
960f3e3b67 Some typescript conversions in an attempt to improve CodeQL coverage (#1904) 2024-08-01 17:55:33 -07:00
Amanda Bullington
7f2ed32d32 Use fields to limit response from search API; save taxon results in realm (#1905) 2024-08-01 14:21:26 -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
Ken-ichi
d847f65049 Explore zooms to obs bounds in WORDWIDE and PLACE modes (#1902)
Solves the problem of Explore changing the region when applying a taxon filter
on top of an existing map area or nearby filter, but also adds similar
functionality whenever the observation bounds change, e.g. for a user
filter.
2024-07-31 15:47:27 -07:00
Amanda Bullington
14f53cd47c Show vision result from AICamera in Suggestions loading screen (#1900)
* Add AICamera result to loading screen; closes #1851

* Add test for loading state with vision result
2024-07-31 14:20:45 -07:00
Amanda Bullington
283b59cb45 Keep app awake during bulk uploads (#1898)
* Keep app awake while uploading; closes #1893

* Only activate keep awake during manual sync, not automatic sync
2024-07-31 12:17:25 -07:00
Ken-ichi
1679f2f24a AI Camera gallery button (#1896)
* Add button to import photos from the gallery to the AI Camera
* Move AI Camera buttons to side rails so it's easier to add new buttons
* Got shutter button closer to spec
* Change e2e to test for element absence instead of status text

Closes #1848
2024-07-31 11:14:53 -07:00
Amanda Bullington
fc4b3caba9 Reset navigator when navigating to ObsEdit from TabStack (#1897)
* Reset navigator when navigating to ObsEdit from TabStack; closes #1890

* Code cleanup
2024-07-31 11:12:32 -07:00
Amanda Bullington
a781dca7c0 Settings: hide localization section & show internet errors (#1895)
* Hide App Language section in settings; hide locale check on app start

* Add Settings jest test
2024-07-31 10:38:37 -07:00
budowski
54bf6fca1b Notice for no top suggestion (#1870)
* Close #1806 - taxon suggestion - when the api does not provide a common ancestor and there is no species suggestion with a combined score higher than .78 - show a special message (we're not confident...)
---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-07-30 14:33:42 -07:00
budowski
8674ef7640 Deleting photos from new does not delete other new observations (#1871)
* Close #1802 - fix - deleting a photo when creating multiple observation - also deletes other observations
2024-07-30 14:07:33 -07:00
Amanda Bullington
357f020669 Fix for MyObservations; prevent fetch if no current user (#1894) 2024-07-30 13:34:41 -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
Angie
43baede3a9 Top id suggestion checkmark green (#1834) 2024-07-30 00:27:00 -07:00
Ken-ichi Ueda
6f2499853b v0.38.0+104 v0.38.0+104 2024-07-29 18:34:39 -07:00
Ken-ichi Ueda
ff038525d0 v0.38.0 2024-07-29 18:34:00 -07:00
Ken-ichi Ueda
a596048b8d Reject locations over a minute old 2024-07-29 18:27:59 -07:00
Ken-ichi Ueda
83f709c4a3 ObsEdit location test uses required acc, no desired 2024-07-29 14:21:46 -07:00
Amanda Bullington
65ea27c751 Clear user data on sign out (#1873)
* Clear documents directory & mmkv on signout

* Add code comment

* Rename userData.ts
2024-07-29 13:30:50 -07:00
Ken-ichi Ueda
c3d4de6a55 Updated fast-xml-parser 2024-07-29 12:07:16 -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
Amanda Bullington
182196a205 Change url for connectivity check (#1868)
* Change connectivity url to ping inat; remove unnecessary useIsConnected hook; closes #1770

* Ensure inaturalist.org/ping is being pinged

* Fix e2e tests by using isConnected, not isInternetReachable
2024-07-26 20:16:32 -07:00
Amanda Bullington
bfa4c61f16 Add remove button to ObsEdit taxon result; closes #1853 (#1867) 2024-07-26 17:27:04 -07:00
Amanda Bullington
4beda5691c Use DisplayTaxonName component for disagreements (#1865)
* Use DisplayTaxonName as component in Trans to show DisagreementText

* Use DisplayTaxonName for top of disagree sheet

* Use DisplayTaxonName styling in radio button labels

* Remove italic from disagree text

* Add testing for DisplayTaxonName with plain text and scientific name only
2024-07-26 16:39:06 -07:00
Ken-ichi Ueda
5da592cbb9 v0.37.0+103 v0.37.0+103 2024-07-26 12:20:14 -07:00
Ken-ichi Ueda
75216bff07 v0.37.0 2024-07-26 12:19:15 -07:00
Amanda Bullington
9b34e7e3f6 Show only scientific names when user prefers this; closes #1849 (#1863) 2024-07-25 17:47:45 -07:00
Amanda Bullington
54b3f5f716 Only show offline notice if sound url includes http; closes #1855 (#1862) 2024-07-25 16:52:05 -07:00
Amanda Bullington
a1836224ba Persist keyboard taps in bottom sheet; closes #1850 (#1861) 2024-07-25 15:32:24 -07:00
Amanda Bullington
7b5544cce2 Show iconic taxon icons from offline suggestions; closes #1845 (#1859) 2024-07-25 13:11:00 -07:00
Ken-ichi Ueda
4da51418e3 Disable nav to user profile for selected user on Explore filters 2024-07-25 11:40:44 -07:00
Amanda Bullington
b61ff38f7c Reset stack when user navigates from AddObsModal (#1858)
* Reset navigation stack when user navigates from AddObsModal; closes #1857

* Fix AddObs nav test
2024-07-25 09:58:54 -07:00
Johannes Klein
b6ea37e7e2 Add reset button to Explore searches for taxon, user, and project (#1836)
* Add reset button to set user to null

* Update type

* Update project to be null with reset button

* Reset button to set taxon to null

* Fix test for null now

* Project can also be null now
2024-07-25 15:06:22 +02:00
Amanda Bullington
5c1a5142a4 Load suggestions with location after permission granted (#1846)
* Refactor into useReducer

* Use reducer for Suggestions

* Offline working

* Progress on getting location permissions button to work as expected

* Code improvements

* Fix photo deletion test

* Fix AICamera nav test

* Ensure suggestions location permission uses location immediately

* Loading wheel fixes

* Fix photo deletion test

* Use online result to advance to obsedit in PhotoDeletion

* Fix test by using online mock
2024-07-24 22:19:05 -07:00
Ken-ichi
10bbea44c4 e2e mock for Geolocation.watchPosition to deflake tests (#1842) 2024-07-24 17:15:03 -07:00
Angie
27912676dc Loading wheel to explore filters searches (#1840) 2024-07-23 20:04:13 -07:00
Ken-ichi
2a67ec0a42 Bugfix: stop watching location when screen blurs (#1841)
This wasn't quite working as intended. Also sets isFetchingLocation correctly
when it starts to fetch location.
2024-07-23 17:04:50 -07:00
Johannes Klein
28c27e241a 1785 debug hide (#1837) 2024-07-23 12:30:04 +02:00
Amanda Bullington
fbd22f9e9d Fix location toggle on Suggestions (#1833)
* Fix Suggestions test & create test for online suggestions with location

* Fetch location according to toggle

* Update tests

* Show loading & remove prev queries when toggling location

* Fix loading test
2024-07-22 06:44:35 -07:00
Johannes Klein
b655c896cc Increase width of upload circle to 2.5 (#1835)
* Increase width of upload circle to 2.5

* Update UploadStatus.test.js.snap
2024-07-22 15:38:56 +02:00
Amanda Bullington
c3c98deeda Create new obs when backing out to AICamera (#1832)
* Write test to confirm only one obs photo added when backing out of AICamera

* Create new obs when backing out to AICamera; closes #1822
2024-07-19 09:57:16 -07:00
Amanda Bullington
59959317d7 Fix photo deletion test (#1830) 2024-07-19 07:47:59 -07:00
Johannes Klein
e7557f8a68 v0.36.1+102 v0.36.1+102 2024-07-19 12:48:15 +02:00
Johannes Klein
5871766713 v0.36.1 2024-07-19 12:45:42 +02:00
Johannes Klein
2a2983caed Update explore context with current location on permission being granted (#1831) 2024-07-19 12:21:03 +02:00
Angie Ta
00678d169f Remove RadioButtonSheet.js 2024-07-18 18:31:15 -07:00
Amanda Bullington
90a803d55b Only show select button when coming from Suggestions/Search; closes #1813 (#1829) 2024-07-18 13:55:33 -07:00
Angie
6cd952d733 1747 taxon detail spacing UI fix (#1823)
* taxondetails title ui adjustments

* update snapshot
2024-07-18 10:07:58 -07:00
Johannes Klein
860b2ae924 1820 multiple navigations camera (#1828)
* GreenCheckmark TS

* Param type

* Allow only once to navigate on checkmark press

* Update TransparentCircleButton.tsx

* Close TS

* Flash TS

* Zoom TS

* CloseButton TS

* CameraFlip TS

* TabletButtons TS

* handleCheckmarkPress is optional

* AICameraButtons TS

* Let type be inferred

* Update AICameraButtons.tsx

* Prop takingPhoto to buttons
2024-07-18 13:05:49 +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