Commit Graph

4199 Commits

Author SHA1 Message Date
Ken-ichi Ueda
62d9ba000d v0.41.0 2024-08-16 11:06:35 -07:00
Ken-ichi Ueda
b970ba7acb v0.40.0+109 v0.40.0+109 2024-08-16 11:04:33 -07:00
Ken-ichi
d9dcf0a0bf Submit local ObservationSound UUID when creating observation (#1977) 2024-08-15 13:15:57 -07:00
Amanda Bullington
ff74ee919f Suggestions from ObsDetail should not crash app while offline; closes #1955 (#1978) 2024-08-15 12:57:26 -07:00
Amanda Bullington
d53036cc4b Fix useLocationPermission to avoid infinite component rerenders; closes #1961 (#1976) 2024-08-15 10:10:12 -07:00
Amanda Bullington
5945ccc525 Fixes and error handling for API throttling (#1971)
* Add new error type for 429; remove unnecessary logs

* Batch API calls for SpeciesSeenCheckmark

* Remove SpeciesSeenCheckmark test

* Revert logging errors

* Use Set for observedTaxonIds

* Add comments around logger.info statements

* Merge linting update

* More fixes from code review

* Switch to non-authenticated useQuery for fetching taxon ids seen by X user id

* Fix tests
2024-08-14 22:08:03 -07:00
Ken-ichi
1e3cd9b76b Don't re-ask for permission after limited photo access has been granted (#1973) 2024-08-14 19:55:54 -07:00
Amanda Bullington
3b9739e254 Set threshold for top offline suggestion & sort by ascending rank (#1972)
* Update pods

* Show high scoring taxon as offline top ID; closes #1963

* Leave comment about offline threshold

* Add human offline test
2024-08-14 14:39:02 -07:00
budowski
d67d0701a4 Show unsynced obs before all other obs (#1796)
* #1577 - show unsynced obs before all other obs - use a new built-in needs_sync property

* At the end of a sync, unmark the observation as needs_sync
2024-08-14 10:40:20 -07:00
Ken-ichi
e08cd83d6a Control web access (#1970)
* Convert web view components to typescript
* Basic tests for URL handling in FullPageWebView
* Allowlist of domains in FullPageWebView
* Open links in browser in most situations
* Allow FullPageWebView to handle mailto links
* Throw errors if FullPageWebView is about to leak a JWT
* Restore FullPageWebView functionality to signup screens

Closes #1803
Closes #1934
2024-08-13 14:45:37 -07:00
budowski
f0d0445d36 Update react-native-exif-reader version (#1967)
Close #1866
2024-08-13 12:21:05 -07:00
Amanda Bullington
4694184d8f Make sure realm user gets updated after sci/common name change (#1966)
* Make sure user gets updated in realm after sci/common name change; closes #1849

* Code cleanup
2024-08-12 18:35:37 -07:00
Amanda Bullington
9f2b77f4be Change text to email; closes #1962 (#1964) 2024-08-12 17:27:05 -07:00
budowski
92723821f8 Fix broken Explore pagination when sorting by date observed (#1950)
Closes #1805 - explore obs search - use correct API params when sorting by observed_on/created_at date
2024-08-12 16:51:28 -07:00
Amanda Bullington
cf70a4358a Move modules from jest setup to __mocks__ (#1949)
* Get a few mocks working in __mocks__ folder

* Move more mocks into __mocks__

* Move mocks

* Move zustand mock

* Add more mocks to __mocks__

* More mocks

* Move more files to __mocks__ and audit existing mocks

* Mock react navigation in __mocks__

* Restore test to help with imports after jest env torn down

* Add fake timer to integration test with userEvent

* Add RN paper mock
2024-08-11 11:27:52 -07:00
Amanda Bullington
860ce20fce Center logged out content in home screen; closes #1929 (#1948) 2024-08-09 19:40:40 -07:00
Amanda Bullington
2ee0f14a2d Unify global shadow styling (#1947)
* Remove shadow from bottom sheets

* Shadow fixes

* Update snapshots
2024-08-09 19:03:19 -07:00
Amanda Bullington
81a5600296 Fetch location if camera photo does't have acc enough location; closes #1924 (#1946) 2024-08-09 17:30:12 -07:00
Amanda Bullington
eca656b984 Formatting in DatePicker, ObsEdit (#1945)
* Remove seconds from datetime picker dates; make formatting closer to Figma; closes #1920

* Add DatePicker tests

* Add test for no date given
2024-08-09 16:10:37 -07:00
Ken-ichi Ueda
6b4ee07850 v0.40.0+108 v0.40.0+108 2024-08-09 14:52:22 -07:00
Ken-ichi Ueda
174928086d Move changes before build increment in Fastfile; add force option 2024-08-09 14:52:04 -07:00
Ken-ichi Ueda
9ac82fff08 v0.40.0+107 v0.40.0+107 2024-08-09 14:41:38 -07:00
Ken-ichi Ueda
b298bebd88 v0.40.0 2024-08-09 14:40:52 -07:00
Ken-ichi Ueda
f92cfdb013 v0.39.0+106 v0.39.0+106 2024-08-09 14:35:04 -07:00
Angie
6e268ec199 Removed useCurrentExploreView hook, RootExplore and Explore containers handle their own views. Pairing with Amanda (#1944) 2024-08-09 12:54:45 -07:00
Amanda Bullington
cf896a3a17 Toolbar upload status refreshes when user returns to MyObs (#1942)
* Write some failing navigation tests for MyObs navigation

* Add one more failing test to check for empty screen after all obs are deleted

* Update what happens on blur

* Changes to focus effect

* Revert "Changes to focus effect"

This reverts commit c779504cdf.

* Test: toolbar status reset when user leaves screen

* Unmock useFocusEffect in Jest; fix tests

* Minor nav mocking updates

* Fix import
2024-08-09 11:21:25 -07:00
Ken-ichi Ueda
f991bf3807 Only show TaxonDetails offline notice when actually offline; spacing fixes 2024-08-09 11:07:53 -07:00
Angie
e1dc7cd815 Offline state taxon detail (#1940) 2024-08-09 10:13:26 -07:00
Angie
b02f5d3297 Location name wrap on obs cards (#1941) 2024-08-09 09:57:04 -07:00
Angie
5644a98a96 1888 signuplogin images are too small and pixelated (#1909)
* replace signup and login images and logo

* images

* Update photos

* Updated photos to higher quality, updated launch screen photo

* deleted old images
2024-08-08 22:48:42 -07:00
Ken-ichi
bca4872def Ensure device stays awake during uploading can sleep after (#1939)
* Fix previous state in which it was never really allowed to sleep again after
  upload finished
* Rename `uploadObservations` to `startUploadObservations` to accurately
  describe what it does
* Minor improvements in ts typing
2024-08-08 14:46:18 -07:00
Ken-ichi Ueda
0403ab7784 Return to using staging for e2e tests 2024-08-08 12:58:26 -07:00
Ken-ichi
ea0afb87a9 Don't restart location fetch when view blurred (#1936)
* Don't restart location fetch when view blurred
* Removed what looked like an unnecessary callback in DisplayTaxonName
* Refactored tests
2024-08-07 17:33:22 -07:00
Ken-ichi
0d75473f02 Tried to clear out some eslint warnings (#1937) 2024-08-07 17:25:46 -07:00
Ken-ichi
62df19dc8b Bump final e2e test timeout to 20s (#1935) 2024-08-07 15:43:35 -07:00
Ken-ichi Ueda
4545d72e2f Ensure default realm instance is always unique for a single run 2024-08-07 12:18:58 -07:00
Ken-ichi
609b7c936f Select taxon button always visible from Suggestions (#1933)
* Send user back when they access a camera on a device with no camera
* Always show SELECT button on TaxonDetails when reached from Suggestions
2024-08-07 09:39:32 -07:00
Ken-ichi
349511d2a8 Fastlane production release (#1915)
* Updated to Fastlane 2.222.0
* Set up basic fastlane task to make a version in the App Store
* Remove iPad, MacOS, and Vision targeting
* Added note about metadata sync not working
* Documented fastlane prod behavior in the README
2024-08-07 09:39:06 -07:00
Amanda Bullington
e0b5d446a2 Don't overwrite description in Suggestions/TaxonSearch (#1916)
* Don't overwrite description in Suggestions/TaxonSearch; closes #1913

* Fix TS

* Remove unused code related to adding/editing comments in Suggestions/TSearch

* Remove test about showing comments on Suggestions
2024-08-06 18:41:54 -07:00
Ken-ichi
0e2b647ff3 Temporarily switch to prod for e2e_ios test (#1932) 2024-08-06 17:17:18 -07:00
Ken-ichi Ueda
48cd972afe Disable remote logging for dev builds
At this point this mostly just pollutes the log data with minor
development-related crashes.
2024-08-05 15:49:25 -07:00
Ken-ichi Ueda
4252edb51f Updated to Fastlane 2.222.0 2024-08-05 15:49:25 -07:00
Johannes Klein
c81201cffa 1843 offline taxon search (#1864)
* realm TS

* provider/contexts TS

* todo

* useIconicTaxa TS

* Refactor taxa list into component

* Use TaxaList for taxon search screen

* Refactor render decision

* Use flex 1 container instead of footer

* Show offline notice for query without results

Refetch taxa when going back online

* Update required because of useIsConnected

* Await typing in test

* Mock useIconicTaxa

* Add tests to taxon search

* emitUploadProgress TS

* createUTFPosition TS

* convertScores TS

* Add field type

* Fix imports
2024-08-03 15:13:13 +02:00
Amanda Bullington
b8c08ae2d4 Reassure tests (#1914)
* Basic performance tests for key components

* Fix MyObs integration test with fake timers and less rerendering
2024-08-02 19:07:41 -07:00
Ken-ichi Ueda
9b2f56ed1a v0.39.0+105 v0.39.0+105 2024-08-02 13:20:43 -07:00
Ken-ichi Ueda
59df964a8b v0.39.0 2024-08-02 13:19:26 -07:00
Ken-ichi Ueda
e1f381ab24 Bugfix: top suggestion threshold was at 0.78 when it should be at 78
Also

* split out human isolation into a more accurately-named helper
* ensure human isolation does not depend on production values
* add suggestion scores to debug display
2024-08-02 12:38:42 -07:00
Amanda Bullington
72f066700b Fix GroupPhotos back button when coming from PhotoSharing (#1911) 2024-08-02 12:34:17 -07:00
Amanda Bullington
dc2262511d Use different instance of MMKV to check for fresh app installs; closes #1883 (#1910) 2024-08-02 11:57:46 -07:00
Amanda Bullington
5dbf5ef9a1 Avoid back button disappearing when offline (#1908)
* Customize back button; move icon assets into our image dir

* Fix ContextHeader with updated back button

* Fix styling around back buttons

* Fix taxon details header

* Test fix

* Fix signed in e2e test
2024-08-02 09:46:54 -07:00