Commit Graph

1626 Commits

Author SHA1 Message Date
Johannes Klein
f44297a731 Disable shutter sound 2024-06-24 14:23:07 +02:00
Ken-ichi
0a32ffbb9e Location fixes no threshold (#1703)
* Bandaid when state obs index gets out of sync with the actual obs in state
* Keep fetching coordinates from cameras forever; fetch from ObsEdit when acc not good enough (#1688)
2024-06-21 16:07:02 -07:00
Johannes Klein
6c4fe84578 bundle update fastlane 2024-06-22 00:09:50 +02:00
Johannes Klein
0fa998b382 v0.34.0+97 v0.34.0+97 2024-06-21 22:05:05 +02:00
Johannes Klein
e3c1dc6a1a v0.34.0 2024-06-21 22:03:15 +02:00
Angie
048dea9377 1431 cant filter explore for observations w no taxon (#1701)
* Filter by no taxon explore filters

* remove comment

* remove console logs
2024-06-21 00:59:09 -07:00
Johannes Klein
081cc6e3f8 1689 signout designs (#1698)
* Add and remove strings

* Drawer TS

* INatIcon TS

* Fix import

* INatIcon TS

* ActivityIndicator TS

* Button TS

* Optional param

* Add ViewStyle prop back in

* WarningSheet TS

* Add string

* Update Logout.js

* Add types

* Change log out label to not navigate but set state

* Imports

* Show warning sheet on log out press

* Actually sign out user from warning sheet

* Remove sign out fct from Logout screen

* Change logger context

* Remove Logout

* Use Heading4 instead of local style

* Use Icon instead of Button

* Pixel pushing

* Prop testID down

* Remove unused login state

* Login TS

* Update type
2024-06-21 09:12:25 +02:00
Amanda Bullington
c01c7cd239 Push suggestions screen when navigating (#1700)
* Push suggestions screen when navigating; updates offline suggestions; closes #1663

* Push suggestions from group photos screen
2024-06-20 13:55:01 -07:00
Amanda Bullington
d599b6f9cc Nav user back to Suggestions from ObsEdit (#1699) 2024-06-20 12:26:04 -07:00
Johannes Klein
4793b716ff 1520 explore offline notice (#1697)
* OfflineNotice TS

* Show OfflineNotice on Explore
2024-06-20 16:06:48 +02:00
Johannes Klein
68f026d76c Changes to email confirmation screen. (#1695)
* Add bottom padding to Login text

* Body2 TS

* Checkbox TS

* Add bottom padding

* Add transparent mode to Checkbox

* Use transparent Checkbox in License form

* Update string

* Bit more padding

* Update SignUpConfirmation.js

* Navigate to home screen for text

* Error TS

* Authenticate user immediately after registration

* Update List2.tsx

* Update Checkbox.test.js.snap

* If authentication fails after reigstration only log an error but proceed

* Add loading state to register button
2024-06-20 12:15:05 +02:00
Johannes Klein
b981e16b75 1636 icon alignment (#1696)
* Texts TS

* Tabs TS

* Push location icon to be centered in the height of the Body3 label next to ti

* Update EvidenceSection.js
2024-06-20 10:41:15 +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
771e5c810b Changes to syncing process (#1670)
* Refactor syncing code and add preUploadProgress checks

* Progress on sync button functionality

* Fix deletions progress and toolbar test

* Time out deletion complete if no uploads

* Delete and then upload from sync button

* Test cleanup

* try to fix tests

* Improvements to automatic and button sync logging

* Code cleanup

* Renaming and rewriting sync functionality

* Restore MyObs test

* Add tests for useSyncObservations

* Code cleanup

* Use unique realm instance in useSyncObservations test

* Fixes for e2e crash

* Fix deletions, tests, and deletion errors

* Show and clear deletions on toolbar

* Sleep longer before resetting toolbar

* Remove sleep to pass e2e test
2024-06-18 19:04:28 -07: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
835b3ecb1f Location fixes (#1691)
* Try to avoid stale coordinates when fetching from cameras by removing the location in state when the screen blurs... I think. This might not be working. The other approach I tried was to wrap the Camera in Mortal, but that led to test problems. Might be worth revisiting if this approach doesn't work
* Bugfix: shared photos w/o coords were fetching current location
* Restored relative path to get fetchUserLocation.e2e-mock working again
2024-06-18 11:40:30 -07:00
budowski
abd47be708 #1429 - properly delete observation photo (#1495)
* #1429 - properly delete observation photo
* Further fixes for remote observation photo deletion
* Fixes related to tests failing
2024-06-18 11:05:47 -07:00
Johannes Klein
58a45fd058 Update package-lock.json (#1692) 2024-06-18 15:03:11 +02:00
budowski
662365a834 how observation date when missing time (#1681) 2024-06-17 23:28:34 -07:00
Ken-ichi Ueda
bc44cf61e9 Try to log around bug uploading photos 2024-06-17 16:29:52 -07:00
Yaron Budowski
abe31aba06 Close #1620 - observation photo count - support for double digits 2024-06-17 17:30:47 +02:00
Ken-ichi Ueda
d3c02d20a2 v0.33.1+96 v0.33.1+96 2024-06-14 11:27:23 -07:00
Ken-ichi Ueda
1db0b00e51 v0.33.1 2024-06-14 11:25:50 -07:00
Ken-ichi Ueda
6788601751 Bugfix: first photo was not getting saved to gallery from StandardCamera 2024-06-14 10:44:15 -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
Johannes Klein
7c91bdf950 Obsedit add photo with StandardCamera, two fixes (#1677)
* Reorder hooks dependencies

* Return uri from take photo hook

* Keep state of photos added in this instance of the camera

* List2 TS

* INatIconButton TS

* Refactor useBackPress to show discard modal only if photos taken during this instance of the camera

* Remove newPhotoCount var

* TS refactors

* fetchUserLocation TS

* Increase timeout

* Fix error

* Hoist deletePhotoByUri

* Delete photos on discard

* Reorder code

* Set saving photo on checkmark press

Closes #1556

* Update snapshots

* Remove delete test

* Create StandardCamera.test.js

* Check if image is there before deletion

* Update react-native-share-menu+6.0.0.patch

* Update e2e_ios.yml

* Update some types
2024-06-14 14:04:24 +02:00
Ken-ichi
6d553daa0b Made status text in Toolbar clickable to start upload (#1678)
Also refactored layout code to be a bit more rational and added Toolbar to the
UI library to help visualize its many states.

Closes #1453
2024-06-13 18:36:24 -07: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
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