Commit Graph

1290 Commits

Author SHA1 Message Date
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
Ken-ichi
954ee922cf Added debug mode for showing diagnostic info and debug screens (#1237) 2024-02-28 19:35:24 -08: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
Ken-ichi
23cbf7bde7 Show status bars everywhere (#1172)
* Show status bar every other than the cameras
* Attempts to match background styles of all screens

Closes #974
2024-02-28 16:16:59 -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
budowski
a338349dc5 Change app name to iNat Beta
Closes #1046

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-02-27 21:41:54 -08:00
budowski
6c8278970a GroupPhotos after sharing multiple photos
Closes #1080
2024-02-27 20:50:26 -08:00
Johannes Klein
87b1e5a917 Show Taxon detail checkmark on Taxon Details (#1220)
* MOve checkmark component to shared

* Refactor placement classes to higher level

* Show checkmark in taxon details header
2024-02-27 14:39:36 +01:00
Johannes Klein
3579070df0 Restyle Explore view modal (#1219)
* Small rename

* Add strings for modal

* Restyle explore view modal

* Add possibility to override button text

* Fix wrong structure

* Sort strings

* Only use button text prop if given

* Remove translated string
2024-02-27 14:34:02 +01:00
Johannes Klein
aff8959ca2 Remove mock of deleted component 2024-02-27 09:56:51 +01:00