Commit Graph

15 Commits

Author SHA1 Message Date
Amanda Bullington
645be6256d Add toggle button for RTL/LTR on debug screen (#2143)
* Add toggle in Debug mode to either force RTL or LTR

* Reverse back button arrow in RTL mode
2024-09-23 11:18:23 -07:00
Ken-ichi Ueda
bef2a96262 fix: log 429 errors before they get screwed up by failed JSON parsing 2024-09-17 14:42:50 -07:00
Ken-ichi Ueda
34e8679cb5 Try to ensure white bg of SpeciesSeenCheckmark does not bleed 2024-08-26 16:06:08 -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
Johannes Klein
28c27e241a 1785 debug hide (#1837) 2024-07-23 12:30:04 +02:00
Ken-ichi
08c04ad1ab Improved error reporting for logstash (#1529)
When an Error object is passed to logger.error() as the last arg, this change

* extracts error_type and backtrace
* reports a shorter message that should be searchable

Also:
* Avoid double logging errors; ErrorBoundary should log errors in a way we can parse
* Added restart button to default ErrorBoundary; globalized text
2024-05-13 18:28:56 -07:00
Amanda Bullington
917f9da7be Clear cached photos for computervision/score_image (#1518)
* Refactor image-resizer into helper function for easy logging

* Create a folder for computerVisionSuggestions

* Display iNat app directories in Debug

* Delete old images from computerVisionSuggestions/ when navigating away from Suggestions

* Fix online suggestions API call

* Fix tests

* Clear computer vision directory when landing on Suggestions screen
2024-05-09 13:32:52 -07:00
Ken-ichi
a7a2e1c10f Show up-to-date metadata for observations immediately after upload (#1497)
This fetches a remote copy of each observation after upload to make sure the
client has the freshest copy of the data immediately.
2024-05-06 17:50:46 -07:00
Amanda Bullington
cb1440b8b9 Display file names and sizes in Debug menu (#1483)
* Report on app size via logging

* Add app size checks

* Report file sizes in debug log

* Display red for large items in directory; sort by largest first

* Display all file contents and sizes in Debug menu; closes #1182
2024-04-30 17:36:25 -07:00
Amanda Bullington
2f94987b4c Whitney -> Lato font (#1407)
* Replace Whitney fonts with Lato

* Escape font family names so Lato works on iOS

* Update custom fonts

* Typography file cleanup

* Rename constants to appConstants

* Fix margins in AddObsModal
2024-04-17 11:30:55 -07: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
Ken-ichi
954ee922cf Added debug mode for showing diagnostic info and debug screens (#1237) 2024-02-28 19:35:24 -08:00
Johannes Klein
e4c86a6de7 Add About screen (#1178) 2024-02-26 16:43:50 +01:00
Johannes Klein
ef8497b582 My creation (#1159)
* Move identify screen to DeveloperStack

* Remove Identify link from drawer

* Activity animation using all of flexbox

* Adding a list of observations to Identify and show animation on loading

* Remark is not needed

* Refactor import

* Update Podfile.lock

* Refactor iconic taxon to be inside Confetti component

* Remove some comments

* This View is not really required I think

* Change comment
2024-02-20 14:32:28 +01:00
Ken-ichi Ueda
7e7773eff3 Moved developer-focused content into a developer stack navigator
* New Developer stack navigator and screen
* New logs screen
* Moved log reading and sharing into a hook
* Commented out drawer items that take you to placeholder screens
* Fixed back button placement on some screens
2023-11-09 17:12:53 -05:00