Commit Graph

1658 Commits

Author SHA1 Message Date
Ken-ichi
591d6dc0e5 DQA voting status (#1757)
* Readability / cleanup updates for DQA
* Moved from unnecessary use of useMutation to useQuery for fetching metrics
* Log API errors
* Avoid warnings in tests about updates outside of act
* Update header in DQA after vote changes quality grade

Closes #1504
2024-07-03 10:08:47 -07:00
Amanda Bullington
d6f8dfa453 Fix: filter realm objects within listener to show correct num unsynced obs (#1762) 2024-07-03 09:59:51 -07:00
Johannes Klein
230646e2ae 1684 explore map null (#1760) 2024-07-03 16:33:08 +02:00
Amanda Bullington
f95e73c27f Default to iconic taxon image in TaxonResult (#1759)
* Show iconic taxon instead of loading wheel in TaxonResult

* Fix tests; closes #1739
2024-07-03 06:54:05 -07:00
Johannes Klein
317a144ec9 Navigate to login on register authenticate fail (#1761) 2024-07-03 15:46:09 +02: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
Ken-ichi
2b8bbf9ffa Explore search taxon details (#1758)
* Close ExploreTaxonSearchModal before navigating to TaxonDetails
* Replace showInfoButton w/ hideInfoButton in TaxonResult
* Hide TaxonResult info btn in TaxonSearch from Explore filters

Closes #1705
2024-07-02 19:13:20 -07:00
budowski
2dad02238e Align location & date icons with text on ObsListItem
Closes #1446
2024-07-01 17:31:38 -07:00
budowski
473456b3b3 Show unsynced observations above others on MyObs
Closes #1577
2024-07-01 17:29:09 -07:00
Amanda Bullington
fca249c655 Show bottom sheet before confirming suggested ID in ObsDetails -> Suggestions flow (#1728)
* Allow user to open add comment sheet from another modal

* Code cleanup

* Add suggest ID bottom sheet to test

* Change names of test IDs in signed in e2e test for TextInputSheet
2024-07-01 16:05:56 -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
Johannes Klein
103db8b99a Revert "Fix rotation value (#1714)"
This reverts commit ecde900a9e.
2024-06-29 16:01:26 +02:00
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