Commit Graph

4199 Commits

Author SHA1 Message Date
Ken-ichi
091abfb952 Save photos to gallery in sequence to avoid duplicate albums (#1676)
Closes #1658
2024-06-13 16:56:08 -07:00
Ken-ichi
7fc8b8c4bc ObsDetail tab sticky only within session (#1675)
* ObsDetail tab sticky only within session (closes #1451)
* Removed redundant cleanup, hopefully deflakeing tests a bit
* Change CI image tomacos-13
2024-06-13 15:51:52 -07:00
Ken-ichi Ueda
15029631f3 Removed redundant cleanup, hopefully deflakeing tests a bit 2024-06-13 10:43:46 -07:00
Ken-ichi
f3bcec2d2e Continuous location fetch in the cameras (#1673)
* Fetch location continuously in cameras until accuracy falls below threshold
* Unit test for useUserLocation
* Added untilAcc option to useUserLocation
* Bugfix: ObsEdit was not always fetching location for new camera photos

Closes #1340
2024-06-12 11:18:12 -07:00
Johannes Klein
f893a8383f Upgrade Vision Camera plugin (#1672)
* Upgrade Vision Camera plugin

* Update vision camera dependencies
2024-06-11 16:15:39 +02:00
Angie
40ee1785dd Remove extra padding on bottom (#1671) 2024-06-10 18:07:29 -07:00
Angie
0a55d84336 settings and project ui fixes (#1659) 2024-06-10 16:41:13 -07:00
Angie
c08de004be Taxon detail map UI fixes (#1660) 2024-06-10 16:40:30 -07:00
Ken-ichi Ueda
28aded4031 Package update 2024-06-10 15:38:09 -07:00
Ken-ichi Ueda
33d93439a5 Some defense around some common errors 2024-06-10 14:55:47 -07:00
Ken-ichi Ueda
7bfa485139 v0.33.0+95 v0.33.0+95 2024-06-07 13:33:25 -07:00
Ken-ichi Ueda
fe6c7d016c v0.33.0 2024-06-07 13:26:45 -07:00
Ken-ichi Ueda
4f01c08ca8 Upload fixes
* Rename numObservationsInQueue to initialNumObservationsInQueue for clarity
* Change upload timeout to 5 minutes (from 15 seconds)
* Mint a new abortController at the beginning of an upload queue, not for each
  observation
2024-06-07 12:57:18 -07:00
Amanda Bullington
614b52526e Add position attribute to observation_photos create; closes #1506 (#1657) 2024-06-06 12:46:51 -07:00
Ken-ichi
bbc6a4a6ca Don't put error in Alert; globalize error message (#1656) 2024-06-06 12:22:38 -07:00
Ken-ichi
4f46cf5dfd Explore nearby and map area (#1655)
* Bugfix: map area search was broken after Nearby filter set
* Made EXPLORE_ACTION.SET_MAP_BOUNDARIES remove lat, lng, and radius
  attributes so we don't end up applying both kinds of geographic filters at
  the same time
* Renamed setExploreLocation to defaultExploreLocation because it doesn't set
  anything
* Added a unit test fot the Explore reducer
* Bugfix: zoom Explore to nearby after granting permission
2024-06-05 17:10:49 -07:00
Amanda Bullington
29ef611e03 Refresh unuploaded observation count (#1653)
* Refresh pending upload count when realm tracks changes; closes #1631

* Reset number unuploaded after Toolbar timeout
2024-06-05 15:53:03 -07:00
Ken-ichi
5c6e88cbc1 Typescrpt path aliases (#1648)
* Typescrpt path aliases;
* Tried to resolve all ts errors in one file
2024-06-05 14:35:49 -07:00
Amanda Bullington
3b35e072b1 Default to first photo in Suggestions (#1649)
* Default to first photo in Suggestions; closes

* Fix tests for default selection on Suggestions
2024-06-05 12:12:14 -07:00
Amanda Bullington
7aeca11bd8 Hide all empty text & button when top suggestion exists; closes #1490 (#1652) 2024-06-05 12:11:23 -07:00
Ken-ichi
8dbbca04d9 Fail upload when network request failed (#1651)
* Fixed cancel upload button
* Uploads will timeout after 15s
* Moved MyObs tests unrelated to unsynced into the synced block
2024-06-04 18:23:59 -07:00
Amanda Bullington
806f786b2f Limit suggestions displayed when human suggestion is in suggestions list (#1650)
* Filter suggestions when human is a result; closes #1505

* Fix tests
2024-06-04 16:30:01 -07:00
Amanda Bullington
829fa70f34 Make explore view sticky; default to species view (#1647)
* Remove tab bar when sharing photos into app; closes #1645

* Make explore view sticky with species as default view; closes #1614

* Fix Explore integration test; use default species view
2024-06-04 15:07:15 -07:00
budowski
716efc1a78 Change language from Settings while offline (#1423)
* Closes #83 - fetch and cache available locales for app; allow user to change app language
* Use different language chooser picker
2024-06-04 14:57:21 -07:00
Amanda Bullington
9c6093e987 Remove tab bar when sharing photos into app; closes #1645 (#1646) 2024-06-04 12:29:11 -07:00
Angie
8b892ba8f9 Add back taxondetail photo gradient (#1644) 2024-06-03 19:43:32 -07:00
Amanda Bullington
dcf69e8db6 Format ID on ObsEdit consistently with AICamera, Suggestions; include default icon; closes #1617 (#1643) 2024-06-03 19:08:35 -07:00
Amanda Bullington
a91d7e8226 Hide DQA voting if no current user (#1640)
* Hide DQA voting if no current user; closes

* Fix DQA tests
2024-06-03 17:47:10 -07:00
Amanda Bullington
2fdd80fd62 Notifications initial loading wheel (#1642)
* Upload least recently created observations first; closes #1629

* Show loading wheel on notifications initial render
2024-06-03 16:30:14 -07:00
Amanda Bullington
ce9f600247 Upload least recently created observations first; closes #1629 (#1641) 2024-06-03 15:51:13 -07:00
Amanda Bullington
36240dafa2 Fix reposition evidence through drag and drop (#1632) 2024-06-03 14:10:47 -07:00
Amanda Bullington
34f18dc6bc Handle modified but remotely deleted obs in upload process (#1628)
* Map realm observations to smaller objects for displaying in MyObservations

* Handle obs remotely deleted in upload UI and process; closes #1579

* Multiple modified and remotely deleted observations handled in upload process

* Revert to using full Realm objects in FlashList
2024-05-31 18:16:23 -07:00
Angie Ta
dacaec4bbd v0.32.6+94 v0.32.6+94 2024-05-31 12:07:13 -07:00
Angie Ta
c5f96e7a54 v0.32.6 2024-05-31 11:43:47 -07:00
Angie
9f6e258ba7 1566 error when adding id after sharing photo into the app (#1625)
* sharing photos and tapping add an id no longer crashes

* change var name
2024-05-31 10:39:32 -07:00
Amanda Bullington
7e228e8223 Fully delete observation photos from media viewer (#1624)
* Refactor upload code into hook and zustand slice

* Create a single source of truth for toolbar and individual progress

* Fix unit tests

* Fix more tests

* Continue trying to simplify upload progress and status code

* Continued overhaul of upload code

* Fix exclamation point in Toolbar

* Fix total toolbar progress

* Fix tests

* Update snapshots

* Code cleanup

* Update MyObs test

* Fix most tests by not deleting realm

* Keep attempting to make toolbar text clear in subsequent tests

* Delete photos from observation; allow upload once photos deleted; closes #1575

* Only pass photo uri into evidence list; fix test

* Fix merge
2024-05-30 22:05:07 -07:00
Amanda Bullington
aa167c669d Refactor upload functionality into hook/zustand (#1606)
* Refactor upload code into hook and zustand slice

* Create a single source of truth for toolbar and individual progress

* Fix unit tests

* Fix more tests

* Continue trying to simplify upload progress and status code

* Continued overhaul of upload code

* Fix exclamation point in Toolbar

* Fix total toolbar progress

* Fix tests

* Update snapshots

* Code cleanup

* Update MyObs test

* Fix most tests by not deleting realm

* Keep attempting to make toolbar text clear in subsequent tests

* Mock Zustand and reset state after all tests

In theory this should make testing with Zustand simpler. The real kicker is
that resetting state will fail if we're not careful about manually replacing
nested objects in Zustand state updates.

* Bugfix: removeAllFilesFromDirectory works with File objects, not raw paths

* Update status text when uploads canceled

* Only show red exclamation rotating icon after all uploads attempted

* Fix progress bar with zustand nested object

* Fix toolbar progress

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-05-30 20:36:50 -07:00
Ken-ichi Ueda
1aed88b9f9 Several attempts at error handling
* Catch 401 errors when we try to fetch remotely deleted obs for signed out
  users
* Skip the check to see if a user is a friend on UserProfile when signed out
* Replace uses of RNFS.unlink() with a wrapper that ignores errors about files
  not existing
* Tried to get safeRealmWrite to preserve error type before re-throwing
2024-05-29 17:32:43 -07:00
Ken-ichi Ueda
f4fb538a51 Increase rnsi timeout 2024-05-29 15:49:40 -07:00
Ken-ichi Ueda
b7a6693125 Minor logging cleanup
* Log the actual message we intended for JSON parsing errors
* Always use the configured tile URL instead of hard-coding it
* Use tiles.inaturalist.org whenever possible
2024-05-28 12:15:57 -07:00
Ken-ichi Ueda
2c2a3db5a7 v0.32.5+93 v0.32.5+93 2024-05-25 23:08:44 -07:00
Ken-ichi Ueda
d05e48b855 v0.32.5 2024-05-25 23:07:29 -07:00
Ken-ichi Ueda
0e6d5d3d1f Test fix: integration tests with unique realms must pass that realm to signIn 2024-05-25 23:00:02 -07:00
Ken-ichi Ueda
a03d0ec83b Bugfixes: signed out ObsDetails crash; unique key warning on TaxonDetails 2024-05-25 22:28:47 -07:00
Ken-ichi Ueda
4d2dee1168 Bugfix: sub-kingdom predictions were not being used 2024-05-25 22:28:47 -07:00
Ken-ichi
1c1c4e5112 Update README.md
Added signed out tasks to manual testing script.
2024-05-25 22:26:50 -07:00
Ken-ichi
7ea60f7b9b Add X-Installation-ID logging (#1608)
* Add X-Installation-ID logging
* Allow logged out logging
* Log whether user has enabled advanced add obs btn
2024-05-24 21:06:20 -07:00
Ken-ichi Ueda
eb732fd3dc Make sure deletion checks don't happen while signed out 2024-05-24 20:59:40 -07:00
Ken-ichi Ueda
c795e25488 Restricted KeyboardDismissibleView to LocationPicker to preserve scrolling on other screens 2024-05-24 20:48:16 -07:00
Angie Ta
62c721193c v0.32.4+92 v0.32.4+92 2024-05-24 12:30:09 -07:00