Commit Graph

4199 Commits

Author SHA1 Message Date
Johannes Klein
4e32f10659 Evidence sheet UI (#1288)
* Replace header

* Update evidence modal

* Update padding and margin
2024-03-18 14:27:22 +01:00
Johannes Klein
19d5705988 Only show species checkmark for species or lower (#1287) 2024-03-18 13:43:05 +01:00
Johannes Klein
3430406476 In app browser (#1286)
* Link to in-app full page webview on About

* Add full page webview to login stack as well

* Link to webview from sign-up page

* Add strings

* Link to webview for Donate buttons

* Add strings

* Use in app browser on help page

* Skip a step that errors out for websites that link out directly after load or have an iframe
2024-03-18 12:11:54 +01:00
Ken-ichi
a9348f1ed1 New iOS icons (#1284) 2024-03-17 14:40:36 -07:00
Johannes Klein
4e9ee4c429 v0.27.0+76 v0.27.0+76 2024-03-16 14:28:16 +01:00
Johannes Klein
b01a4f81b8 Bump version 2024-03-16 14:23:12 +01:00
Amanda Bullington
46748bac97 Add alerts and loading screen to photo sharing functionality (#1261)
* Add alerts and loading screen to photo sharing; closes #1203
* Prevent getting stuck on PhotoSharing when you back out of ObsEdit

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-03-14 17:51:26 -07:00
Ken-ichi Ueda
33a5ab2f39 Trivial Wikipedia URL for all taxa 2024-03-14 17:13:47 -07:00
budowski
1671ce20a1 Improve algorithm for detecting nearby points when tapping on Explore map
Closes #1214
2024-03-14 16:46:45 -07:00
Amanda Bullington
60c2e730ff Fix navigation to Projects; fix ProjectDetails crash when no description; closes #1114 (#1262) 2024-03-14 16:38:32 -07: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
Angie Ta
9588c577aa Removed old font files and replaced with updated 2024-03-13 14:38:10 -07:00
Johannes Klein
8f1b3a70df Remove superfluous delete call (#1282) 2024-03-13 08:09:41 +01:00
Ken-ichi Ueda
f0812a0a83 Log unhandled promise rejections in release builds 2024-03-12 21:34:01 -07:00
Ken-ichi Ueda
570b91f87d Higher contrast notifications icon indicator 2024-03-12 15:20:11 -07:00
Johannes Klein
e1ad366883 Explore header count update fixes (#1275)
* Add 0 check to infinite explore query

Otherwise, it never stops showing loading state because 0 is falsey.

* More precise null check for loading indicator
2024-03-12 10:46:32 +01:00
Johannes Klein
84644bdfd6 Set casual filter automatically when captive is chosen (#1272)
* Comment

* Also set casual to true when setting captive

* Disable checkbox built in state

* Update snapshots
2024-03-12 09:31:51 +01:00
Ken-ichi Ueda
1ec54994ae Extra logging and messaging when upload fails due to network problem 2024-03-11 14:53:25 -07:00
Angie
4f7552b97c Closes #1199. Fixes upload button uploading when logged out (#1270)
* Closes #1199. Fixes upload button uploading when logged out

* Add back currentUser check
2024-03-10 22:50:49 -07:00
Angie
66cefdaf6b 1209 font styling fixes (#1269)
* Added font files for Book and Semibold, Added MediumText component.

* Update snaopshots for font changes

* Body1 and Body3 changed to Whitney Medium, changes to italic fonts weights on ObsListItem, seperate component for ScientificName
2024-03-10 19:50:09 -07:00
Angie
248e51e011 1209 font styling fixes (#1257)
* Added font files for Book and Semibold, Added MediumText component.

* Update snapshots for font changes
2024-03-08 10:31:26 -08:00
Johannes Klein
0b73cef457 Update counting of increments on uploading / also count sounds (#1263)
* Only emit progress on finished upload

* Set one initial progress increment on upload start

* Comments

* Send only half step increment on evidence upload

Because this function gets called twice per evidence.

* Update comment

* Also calculate sounds as increments towards progress bar

* Wrong order

* Only emit progress on finished upload

* Set one initial progress increment on upload start

* Comments

* Send only half step increment on evidence upload

Because this function gets called twice per evidence.

* Update comment

* Also calculate sounds as increments towards progress bar

* Wrong order

* Remove the initial progress being set as totalProgressIncrement

* Show an initial toolbar progress even if no progress made yet

* Fix for completion of no media obs upload

* Add comment
2024-03-08 16:37:58 +01: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
b3fbbd799d Minor UI fixes for TaxonDetails explore btn & establishment means 2024-03-07 17:18:25 -08:00
Ken-ichi Ueda
902086483d Fix SpeciesSeenCheckmark on Android 2024-03-07 17:18:25 -08:00
Ken-ichi
83bc3f95cb Try to test server availability before trying e2e tests (#1264) 2024-03-07 17:10:30 -08:00
budowski
2b996ccd67 Sound recorder UI fixes
* Gray BG for cancel button
* Rounded ends for sound visualization bars
* Fixed typo

Closes #1189

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-03-07 17:09:46 -08:00
Ken-ichi Ueda
841233ef4c v0.26.0+75 v0.26.0+75 2024-03-07 15:22:45 -08:00
Ken-ichi Ueda
edb9818729 v0.26.0 2024-03-07 15:22:03 -08:00
Ken-ichi Ueda
8e77cabedb Forgot updated snapshots 2024-03-07 14:30:06 -08:00
Ken-ichi Ueda
7af223d96a Mnor fixes for ObsImage & DisplayTaxon
* ObsImage should not show an iconic taxon icon behind a translucent photo
* ObsImage w/o a photo should fade out the iconic taxon for an obs that needs
  upload
* Fixed type-related crash in useTaxon
* Fixed overflowing taxon name in obs list and obs detail
2024-03-07 12:34:44 -08:00
Johannes Klein
8777cff62e Use actual var in for the anonymous secret in e2e tests (#1260) 2024-03-07 09:30:36 +01:00
Johannes Klein
48fcea1526 359 post logs to internal logging (#1256)
* Made react-native-logs post to API log endpoint

* Try to build a slightly more informative user agent

* Made react-native-logs post to API log endpoint

* Try to build a slightly more informative user agent

* Remove unused const

* Replace other usages of exported user agent

* Revert "Remove unused const"

This reverts commit 02389c8390.

* Revert removal of axios instance

* Strange order

* Remove device name from user agent

* Copy logstash transporter to new file and change to post

* Update import

* Remove comma

* Get the user jwt token as authorization for the log request

* Use anonymous token as app token

* Mock away logs config file because it now has a dependency on authentication

* Code style

* Typo

* Add timestamp field to form data, to show client_timestamp on the logs

* Add TODO

* Add a developer button to force a js-side error

* Add comments

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-03-07 00:04:29 +01:00
Amanda Bullington
aba5de9b51 Show DQA when taxon is unknown (#1251)
* Show DQA when taxon unknown; closes #1212

* Show DQA when taxon is unknown
2024-03-06 12:13:44 +11:00
Ken-ichi
6fdf3d2faf Taxon result updates (#1254)
* Only requests remote taxon if local is missing or hasn't been synced in a
  week
* Returns a localized version of the remote taxon immediately without waiting
  to get a newly-created record from realm
* Expands tests to use a unique realm, integrate more of our code, and check
  to ensure the API gets called
* Show indicator while loading taxon on ARCamera
* Show iconic taxon found in model results if we can't load a remote taxon
* Show iconic taxon as backdrop for ObsImage whenever possible
2024-03-05 16:54:42 -08:00
Ken-ichi
7ad0cdb701 Ensure location permission requested after add photos permission denied (#1250) 2024-03-05 16:53:20 -08:00
Ken-ichi Ueda
96f8967652 Basic error state for Notifications 2024-03-04 16:05:21 -08:00
Amanda Bullington
0b57ce898b Use API call for species seen checkmark (#1249)
* Show species seen checkmark from API call, not realm; closes #1197

* Fix tests
2024-03-05 10:08:48 +11:00
Amanda Bullington
fe688de7ea Show multiple common names consistently (#1248)
* Use taxa.search API call instead of generic search to fetch multiple common names

* Fix tests

* Fix one more test

* Clean logs

* Rename query key
2024-03-05 06:13:38 +11:00
Amanda Bullington
8139b643b8 Prevent global count from loading when permissions granted, Explore (#1247)
* Create useInfiniteExploreScroll and use this to fetch count

* Fetch less data from fields in Explore observations

* Show header count when count is loaded

* Added loading wheel for slow fetching of header counts in Explore
2024-03-04 20:33:46 +11:00
Amanda Bullington
df769a44da Update community taxon when new id suggested (#1244)
* Refetch remote observation if ID added; closes #1187

* Fix suggestions test
2024-03-03 20:38:48 +11:00
Ken-ichi Ueda
7a924b8fdd v0.25.0+74 v0.25.0+74 2024-03-01 18:03:03 -08:00
Ken-ichi Ueda
5e54df77b6 v0.25.0 2024-03-01 18:02:07 -08:00
Ken-ichi Ueda
fe883ddfe0 Bugfix: iconic taxon on ObsEdit was looking off 2024-03-01 17:32:37 -08:00
Ken-ichi Ueda
04ecbb284e Bugfix: DQA was crashing for an obs w/o sounds 2024-03-01 15:45:48 -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
Ken-ichi
0f67a10fe4 Obs grid view updates (#1241)
* Adjust iconic icon size, dark gradient size and breaks for ObsGridItem, hide noevidence when photos
* Layout consistency for upload status
2024-03-01 09:45:10 -08:00
Ken-ichi
71a154b432 Bugfix: undead observations arose if sync happened too soon after death (#1240)
* Wait to fetch until at least 10s after deletion finished
* Bottom sheet warning and immediate departure when landing on ObsDetails for
  an obs that was deleted
2024-03-01 09:40:55 -08: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