Commit Graph

284 Commits

Author SHA1 Message Date
Amanda Bullington
bc4d0bc661 Package upgrades (#1361)
* Upgrade more packages and include new localize mock

* Update patch for vision camera
2024-04-05 15:59:35 -07:00
Amanda Bullington
408f746701 More package updates (#1360)
* Package updates, including migration to v5 for react-query

* Fix string

* Fix test: ensure markViewed only called once

* Comment out tests
2024-04-05 14:49:42 -07:00
Amanda Bullington
8d341dea17 Dev package updates (#1358)
* Update husky, glob, other dev packages

* Remove extra lint check
2024-04-05 09:59:53 -07:00
Amanda Bullington
63484b1330 Package updates (#1357)
* Package updates

* Add mocks and update snapshot
2024-04-04 20:57:09 -07:00
Amanda Bullington
c900087c4e Bump version to 0.29.1 2024-04-04 15:10:40 -07:00
Amanda Bullington
3b67db4ddb Switch versions of download package (#1351)
* Resolve security vulnerability

* Use fake string for access token

* Fix overly permissive regex

* Fix regex and find missing keys
2024-04-04 09:00:06 -07:00
Amanda Bullington
837e5fad8f Update jwt library (#1349)
* Run npm audit to fix vulnerabilities

* Fix jwt security vulnerability

* Remove jwt-io mock

* Mock jwt library

* Substring sanitization
2024-04-03 22:30:07 -07:00
Amanda Bullington
87d507c385 Upgrade Jest & other dev packages (#1348)
* Fix jest upgrade test failures

* Upgrade more dev packages

* Update engine in package.json
2024-04-02 20:25:51 -07:00
Amanda Bullington
6d51aea3c8 Update version to 0.29.0 and small bug fix 2024-03-29 11:35:52 -07:00
Johannes Klein
486ba4f30f Upgrade React Native to 0.72 (#1337) 2024-03-29 17:52:37 +01:00
Amanda Bullington
c21d28ac8e Package upgrades for minor version bumps (#1334)
* Upgrade packages and fix deprecation warning in bottom sheets

* Upgrade packages with minor version updates
2024-03-28 17:37:21 -07:00
Amanda Bullington
065ca6cd71 Store Explore query state (#1322)
* Use stored state in zustand; update navigation packages

* Split up slices; fix back button label in iOS

* Create hook for navigation params'

* Add param to ignore stored state in Explore

* Use saved state params in Explore when navigating from Explore search screens

* Downgrade datetimepicker

* Fix maximum update exceeded error

* Save test fix for later
2024-03-28 15:57:28 -07:00
Johannes Klein
16018e6998 1312 e2e experiments (#1320)
* Bump detox

* Update detox

* Disable one test for now

* Bump detox

* Increase test timeouts

* Collect more logs

* Increase run timeout

* Comment

* Increase timeout

* Replace password autofill workaround

* Move workaround after launchApp

* Upgrade github actions workflows

* Forgot one action

* Update test.yml

* Testing concurrency

* Use concurrency for e2e as well

* Remove previous concurrency code

* Testing different Slack action

* Change slack msg

* Try different msg

* Revert "Try different msg"

This reverts commit ddaad331d1.

* Revert "Change slack msg"

This reverts commit 852204b074.

* Revert "Testing different Slack action"

This reverts commit fb072e65e3.

* Testing some more notify

* Testing notification

* Revert "Testing notification"

This reverts commit 974dfcb32f.

* Revert "Testing some more notify"

This reverts commit 39b3d668e2.
2024-03-28 23:41:40 +01:00
Ken-ichi
f1f852a66b I18n source string validation and normalization (#1321)
* Added Fluent validation cmd; stubbed out normalize command
* Added source string normalization; removed numerous duplicate source strings
2024-03-28 14:56:06 -07:00
Amanda Bullington
4988f93ea7 Downgrade: new patch version causes build failure in Xcode 15 (#1332) 2024-03-28 14:19:36 -07:00
Amanda Bullington
55308a8be4 Upgrade packages with patch version bumps (#1331) 2024-03-28 13:17:19 -07:00
Amanda Bullington
39515c59a1 Update packages related to dependabot (#1329) 2024-03-28 12:52:00 -07:00
dependabot[bot]
26c26cb4a7 Bump postcss from 8.4.23 to 8.4.38 (#1327)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.23 to 8.4.38.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.23...8.4.38)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 12:51:46 -07:00
dependabot[bot]
efd4b493aa Bump sanitize-html from 2.11.0 to 2.12.1 (#1325)
Bumps [sanitize-html](https://github.com/apostrophecms/sanitize-html) from 2.11.0 to 2.12.1.
- [Changelog](https://github.com/apostrophecms/sanitize-html/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apostrophecms/sanitize-html/compare/2.11.0...2.12.1)

---
updated-dependencies:
- dependency-name: sanitize-html
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 12:28:20 -07:00
dependabot[bot]
82324623a0 Bump axios from 0.27.2 to 0.28.0 (#1323)
Bumps [axios](https://github.com/axios/axios) from 0.27.2 to 0.28.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.28.0/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.27.2...v0.28.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 12:27:58 -07:00
Johannes Klein
0e0a6560ac Vision camera v3 (#1121)
* Bump vision-camera

* Refactor patch

* Move patched orientation into patch functions file

* Update react-native-vision-camera+3.4.1.patch

* Switch to MacOS 13 runner

Vision camera requires XCode 15 to compile.

* Add step to specify XCode 15

* Higher level of logging

* Increase test timeout

* Add comment

* Remove navigation to obs without evidence for signed out user

* Patch for location permission not working on iOS

* Increase setup timeout

* Increase some more timeouts

* Revert back to less logging in CI

* Does it have to do with timeouts?

* Trace log level

* Update README.md

* Disable Homebrew’s auto update and install cleanup

* Setup ruby step

* Install pods only if not cached

* Revert "Install pods only if not cached"

This reverts commit 42a2ea02f9.

* Run simulator in headless mode, record all logs

* Increase timeouts again

* Revert "Remove navigation to obs without evidence for signed out user"

This reverts commit 2b4718f5ce.

* Add boolean to run use effect only once

* Did merge wrong code

* There is one more permission gate when entering obs edit now

* Add permission gate dismissal to signed out user test

* Add comment, rename state

* Lower action timeout

* Update react-native-vision-camera to 3.6, update Reanimated to v3 (#838)

* Bump camera and plugin

* Upgrade Reanimated and libs using it

* Update vision-camera mock

* Remove superfluous patch

* Fix type

* Add mocks for e2e tests because bottom sheet does not work on AOSP

* Update package-lock.json

* Update vision camera

* Bump vision camera

* Update vision camera patch version

* Remove superfluous patch

* Update vision camera

* Update vision-camera and plugin

* Use latest vision plugin = rebased v3

* Run npm clean-start

* No longer needed

* Duplicate prop

* Switch back to v3 code

* Upgrading Detox fixes issue with iOS tests failing

Because of previous lack of permissions.

* Update to latest detox version

* Npm i force

* Vision 3 e2e testing, (#1126)

* Remove jest detox config

* Revert e2e timeout increase

* Revert jest config timeout

* Use macos 14 runner which has XCode 15 per default

* Use latest bottom sheet

* Revert "Use latest bottom sheet"

This reverts commit c66cd09838.

* Adding comma back in

* Remove spaces

* Use latest vision-camera and plugin

* Use release version of vision-camera

* Remove force flag

* Update react-native-worklets-core

* Upgrade reanimated

* Update babel.config to allow nested worklets

* Run frame processor async

* Remove enableGpuBuffers flag

* Remove no longer needed comment

* Update comments about version

* Update vision-camera and plugin

* Code format

* Rename param

* Use latest-plugin

* Remove fps param from camera view

* Change confidenceThreshold to number

* API change for results structure

* Refactor fps to be checked inside hook

As of vision-camera 3.9.1 our camera feed is stuttering when calling the runAtTargetFps function inside the useFrameProcessor hook.
So, what I did here is to track the time and skip the frames that are received before the target fps is reached.

* Remove updates of non-camera related

* Update comment

* Code format

* Snapshot updates

* Revert changes to ios e2e

* Add a log for the average time it takes a frame to be processed

* Use release version of plugin

* Add a patch for runAsync to work in release builds

* Update react-native-worklets-core to 0.4.0

* Use latest plugin version

* Add a shift method to worklet arrays

* Use latest vision-plugin

This makes use of .shift() in worklet array and depends on the previous patch.

* Set result timestamp and show age of result in debug mode

* Fix an error with timestamp being undefined

* Remove log

* Use latest vision plugin

* Change result timestamp to pink

* Comment

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-03-27 00:47:43 +01:00
Ken-ichi Ueda
aec9375cca v0.28.0 2024-03-21 16:27:28 -07:00
Ken-ichi
9ec8448b17 Use text in iOS share dialog to add observation description (#1293) 2024-03-20 16:46:32 -07:00
Johannes Klein
b01a4f81b8 Bump version 2024-03-16 14:23:12 +01:00
Amanda Bullington
d79306ffee Cache user icon to resolve flicker (#1255)
* Use FastImage to load & cache user icon
* Fetch user icon before leaving login screen
2024-03-14 15:49:41 -07:00
Johannes Klein
8272e35ac9 Detox update (#1265)
* Use different device simulator in e2e tests

* Bump detox

* Use fixed detox instead

* Use macos 14 in CI

* Do not update CI for android
2024-03-08 11:36:29 +01:00
Ken-ichi Ueda
edb9818729 v0.26.0 2024-03-07 15:22:03 -08:00
Ken-ichi Ueda
5e54df77b6 v0.25.0 2024-03-01 18:02:07 -08:00
Ken-ichi
0bffcbdf24 Add ARDebugButton for controlling parts of the AR camera (#1243)
---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2024-03-01 15:21:27 -08:00
Johannes Klein
c5c03c33bc Update vision plugin (#1242) 2024-03-01 22:27:26 +01:00
Johannes Klein
e4d7e337e7 Consolidate vision returns (#1239)
* Use latest vision-plugin from feature branch

* Change model helper to TS

* Update prediction from image to the new return structure

* Rename variable

* Change ARCamera to new return structure

* Update all test that make use of predictions

* Update to use plugins main branch
2024-03-01 00:23:52 +01:00
budowski
02d8f16883 account settings webview
Replaces account settings with a small set of settings and a web view to show settings on the website.

Also

* Minor taxon detail fixes
* Display taxon name on observations according to the current user's
  preferences, not the observers

Closes #927

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-02-28 19:34:57 -08:00
Johannes Klein
eb853f2d7f Multi frame smoothing repair (#1235)
* Upgrade plugin

* Add frame processor fps target of 1

* Use the plugin's main branch
2024-02-28 16:36:20 +01:00
Ken-ichi Ueda
172338e05d v0.24.0 2024-02-26 12:34:11 -08:00
Johannes Klein
4877c1a369 Add Support screen (#1171)
* Update strings.ftl

* Add drawer item for Support

* Update strings.ftl

* Change key

* UI for Support screen

* Link out to websites on button presses

* Restyle screen header

* Eslint settings to get rid of an error

* Use react-native-store-review to ask for review

* Not needed use of .tsx in import

* Remove comments
2024-02-25 22:33:04 +01:00
Ken-ichi Ueda
f39cea462c v0.23.0 2024-02-23 21:33:03 -08:00
Johannes Klein
3d4a0cbad1 Vision plugin add possibility to set confidence threshold for predictions from file (#1155)
* Use latest vision-camera plugin that exposes confidenceThreshold

* Example of usage in calling predictions from file

* More suitable example

* Update vision plugin to start using versioning
2024-02-16 09:05:00 +01:00
Amanda Bullington
8e6269c8d0 Wrap realm.write in safeRealmWrite transaction (#1123)
* Add a safeRealmWrite transaction for better logging around writes; code cleanup and realm update

* Add safeRealmWrite to tests and make sure action is called synchronously

* Fix final test

* Only write to realm when useObservationsUpdates data changes; code cleanup

* Code cleanup
2024-02-09 16:16:32 -08:00
Ken-ichi Ueda
4b929a8e6f v0.22.0 2024-02-08 18:55:16 -08:00
Johannes Klein
fdca961117 Upgrade RN to 0.71.16 (#1118) 2024-02-07 16:18:50 +01:00
Johannes Klein
367dd77c60 Use latest vision-plugin
This means that on Android we are now using bilinear filter instead of nearest-neighbor for rescaling.
2024-02-07 14:07:17 +01:00
Johannes Klein
e046c7f969 Image predictions uri fix (#1110)
* Use plugin with PR for Uri fix on Android
* Android and iOS have different return types
* Remove special error case

Closes #1038
2024-02-06 16:04:33 -08:00
Johannes Klein
93061bf8de Set user-agent in global config (#1096)
* Update inatjs

* Globally set user-agent for inaturalist js usage

* Remove user-agent from announcements
2024-01-30 15:41:32 +01:00
Johannes Klein
011f9d3fdc v0.21.1 2024-01-29 13:48:30 +01:00
Johannes Klein
de7a728b78 Bump version 2024-01-26 13:25:44 +01:00
Johannes Klein
47b3525228 Announcements (#1081)
* Update iNatjs

* Add webshell dependency

* Basic announcement fetching component

* Styling

* Dismiss function

* Error handling TODO

* Add param

* React to link presses

* Missing code

* Add unit test

* Add string

* Refactor search query and dismiss to use react-query

* Activity indicator when refetching

* Add query provider to test

* Mock component in other integration tests

* Move user agent to api

* Throw error instead of logging
2024-01-24 22:22:50 +01:00
Johannes Klein
18ace3e397 Small dependency update 2024-01-16 22:38:47 +01:00
Johannes Klein
62d787dbf8 Upgrade react native patch version 2024-01-12 21:35:15 +01:00
Ken-ichi Ueda
543ac5e1d9 v0.20.0 2024-01-12 11:55:12 -08:00
Ken-ichi
b815f451ea Offline fixes (#1025)
* Changed the default React Query retry handler to be synchronous; being async
  meant it returned a promise, which React Query interpreted as true-ish,
  which meant it retried forever
* React Query retry handler should log info about its query key, which should
  make those problems a bit easier to debug given a log
* Prevent useObservationUpdates from throwing errors when network requests
  fail, which they always do while offline
* Added our own ErrorBoundary that shows a component trace
* Prevent several uses of useAuthenticatedRequest when not online
* Work around bug in vision-camera-plugin-inatvision where it can't get
  dimensions of photos in Android
* Actually throw errors when vision-camera-plugin-inatvision's predictImage
  throws unexpected errors
* Allow online suggestions while signed out using anonymous JWT
2024-01-11 17:18:04 -08:00