Commit Graph

1646 Commits

Author SHA1 Message Date
Ken-ichi
effbb01fd9 Try to ensure we send a valid URI to getPredictionsForImage() (#1724)
Closes #1715
2024-06-28 20:13:55 -07:00
Ken-ichi Ueda
41445beed6 Fix nav trap when going from ObsEdit to Suggestions and back to ObsEdit and back again 2024-06-28 13:08:48 -07: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
Amanda Bullington
cc8b610f2f Web parity for displaying top suggestion (#1721)
* Fix suggestions tests; use SectionList for suggestions

* Comment out offline test, Suggestions
2024-06-27 17:29:33 -07:00
Ken-ichi Ueda
b2ccf011c6 Prevent extra navigation after discarding changes from StandardCamera 2024-06-27 16:04:48 -07:00
Johannes Klein
e407cd609b 1502 logged out notifications (#1720)
* Add string

* Update strings.ftl

* Split up string

* Update strings.ftl

* Show different text without user in NotificationsList
2024-06-27 19:07:49 +02:00
Johannes Klein
99ad16fb96 Change Donate link, TS (#1719) 2024-06-27 19:07:33 +02:00
Johannes Klein
8d8fb991d8 1488 find sounds after an app update (#1718)
* Add function to access local sound, like photo

* Don't access new function in zustand
2024-06-27 17:21:50 +02:00
Johannes Klein
ecde900a9e Fix rotation value (#1714) 2024-06-27 10:15:15 +02: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
Ken-ichi
aa1e2552d5 Reset state before entering ObsEdit (closes #1588) (#1712) 2024-06-25 20:56:23 -07:00
Amanda Bullington
78a8dd3fe6 Allow user to delete local, unsynced observations when offline (#1711) 2024-06-25 14:55:56 -07:00
Ken-ichi Ueda
917894068d Try to handle an edge case with API errors 2024-06-25 14:19:27 -07:00
Amanda Bullington
7e6323831d Separate store for RootExplore (#1710)
* Create root explore slice; preserves root explore state when user backs out of nav

* Fix tests
2024-06-25 13:22:18 -07:00
Amanda Bullington
545a068ab9 Use loading wheel when switching selected photo; closes #1668 (#1709) 2024-06-25 10:01:44 -07:00
Amanda Bullington
d9d7a6ff06 Suggestions screen UI fixes, location toggle, and offline reloading state (#1708)
* UI changes to suggestions screen

* Update offline suggestions UI and allow refetch

* Allow user to search online suggestions with and without evidence location

* Add improve location button and refactor header

* Use loading screen correctly between location/ignore location

* Hide location permission button and code cleanup

* Fix test for suggestions changes
2024-06-24 16:26:40 -07:00
Ken-ichi Ueda
114bc01874 Really make sure exclamation never rotates in toolbar 2024-06-24 15:08:36 -07:00
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