Commit Graph

4199 Commits

Author SHA1 Message Date
Angie Ta
d2ce36423c v 0.32.4 2024-05-24 11:32:40 -07:00
Johannes Klein
476dc7d560 1569 ai camera zoom (#1607)
* Add null check

* Update CameraWithDevice.tsx

* Refactor TS hook

* Reset zoom on navigation events
2024-05-24 12:33:00 +02:00
Ken-ichi
3d2550ffee Stop upload button (#1605)
Uses an altered version of inaturalistjs to pass in an AbortController signal
that will be passed through to fetch requests and can be used to cancel those
requests.
2024-05-23 16:24:01 -07:00
Johannes Klein
b2858dd6bb Refactor some unsubscribes in useEffects (#1603)
* Refactor navigation unsubscribes

* Some more refactors

* Do not return arrow function
2024-05-23 10:44:20 +02:00
Amanda Bullington
2d74c72e37 Fetch remotely deleted observations automatically (#1602)
* Start automatically syncing remotely deleted observations

* Fix query invalidation in ObsDetails

* Fix deletion process

* Call deletions once every time a user lands on MyObs

* Fix deletion tests

* Fix tests
2024-05-22 20:34:57 -07:00
Ken-ichi
84c3b3c96d Track number of failed uploads (#1601) 2024-05-22 17:40:06 -07:00
Ken-ichi
e31858ebbe Ensure Group Photos sticky toolbar appears above floating action bar (#1600) 2024-05-22 13:31:31 -07:00
Ken-ichi
1e22d51f82 Stick the MyObs toolbar until user scrolls to the very top (#1599)
This also has the welcome effect of not showing jitter while the user is
uploading and the hidable part of the header is partially visible (#1426).
2024-05-22 12:43:25 -07:00
budowski
137f9f1b03 Display taxon name according to user settings (#1496)
* display taxon name according to user settings
* Cleaned up Taxonomy style a bit

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-05-21 20:45:34 -07:00
Angie Ta
372dbc2493 Merge branch 'main' of github.com:inaturalist/iNaturalistReactNative 2024-05-21 19:33:19 -07:00
Angie Ta
6474fcdc18 Add safeareaview to explore filters modal 2024-05-21 19:32:08 -07:00
Amanda Bullington
c021b88591 Fix add evidence navigation (#1598)
* Fix navigation for AddEvidenceSheet; closes #1571

* Update pods
2024-05-21 17:19:33 -07:00
Amanda Bullington
799d83f286 Hide keyboard in location picker on tap (#1597)
* Add keyboard dismissable component to ViewWrapper; closes #1567

* Show region in Location Picker when current location tapped

* Fix tests with accessibility label

* Update strings
2024-05-21 17:02:49 -07:00
Angie
7388f5a076 Obsdetails to taxondetails to explore to obs details and back goes back to explore. (#1596) 2024-05-21 15:56:16 -07:00
Amanda Bullington
e17045ca45 Show correct view in Explore when tapping species count (#1587)
* Show correct view in Explore when tapping species count; closes #1573

* Fix test
2024-05-21 15:35:52 -07:00
budowski
fac15eb1e6 Use latest react-native-exif-reader package version; use writeLocation instead of writeExif (#1268)
* Use latest react-native-exif-reader package version; use writeLocation instead of writeExif
* Use react-native-exif-reader v0.4.0
2024-05-21 13:58:42 -07:00
Ken-ichi
9dc8e3b82a UserProfile and TaxonDetails UI fixes (#1591)
* Adjust spacing between description and dates on UserProfile
* Move child taxon arrows down a bit
* Fix padding in title area
* Moved carousel dots above title
* Made touches in the title area work on the carousel
2024-05-20 20:49:46 -07:00
budowski
f72b4422e2 Change iNat Beta to iNat Next (#1590)
* Close #1460 - change iNat Beta to iNat Next

* One more name change

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2024-05-20 20:49:01 -07:00
Amanda Bullington
f5ebc2f4f5 Skip remote taxon fetches when user is offline; closes #1539 (#1583) 2024-05-20 15:31:00 -07:00
dependabot[bot]
d98c442a2f Bump rexml from 3.2.6 to 3.2.8 (#1561)
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.6 to 3.2.8.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.6...v3.2.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 15:23:20 -07:00
Ken-ichi Ueda
63e9f47512 Stop logging INatApiErrors that might be handled; log JSON parse issues separately 2024-05-20 10:46:48 -07:00
Angie
8c40d23570 1065 explore filters full screen experience should be a modal (#1562)
* Make Modal for ExploreFilters

* Show bottomsheets in modal

* TaxonSearch now a modal in explore fliters

* taxon search modal now clickable from explore page header

* more explore search modals. WIP nearby and worldwide buttons

* Adding explore user, location and project search modal files

* Nearby and worldwide buttons explore location modal

* Fix undefined place in useMapLocation

* Fix undefined place
2024-05-20 10:24:43 -07:00
Amanda Bullington
fc1bead3bf Fix open/close AddEvidenceSheet; closes #1498 (#1560) 2024-05-15 17:18:18 -07:00
Ken-ichi Ueda
3f499e41af v0.32.3+91 v0.32.3+91 2024-05-15 17:15:23 -07:00
Ken-ichi Ueda
4f85c9f05f v0.32.3 2024-05-15 17:14:35 -07:00
Ken-ichi Ueda
9e4e652070 Bugfix: useClearSyncedPhotosForUpload should keep all unsynced obs photos
I.e. not just the first for an observation.
2024-05-15 17:13:32 -07:00
Amanda Bullington
b841d0018d Autofocus search bar by default; closes #1532 (#1559) 2024-05-15 15:35:29 -07:00
Amanda Bullington
86054225d2 Grow pressable area in TaxonResult (#1557)
* Grow pressable area in TaxonResult; closes #1545

* Update snapshot
2024-05-15 14:06:39 -07:00
Amanda Bullington
edef4d90ae Handle taps while keyboard open; closes #1533 (#1558) 2024-05-15 13:54:00 -07:00
Ken-ichi
059c4ab8c4 Return to ObsEdit after taking additional photo (#1555)
* Renamed parseExif test
* Bugfix: could not import photo w/o exif from ObsEdit for new obs
* Ensure Camera screen is pushed onto stack from ObsEdit
2024-05-15 13:22:48 -07:00
Amanda Bullington
1ffe10aa53 Prevent map from resetting place map on initial render; closes #1541 (#1554) 2024-05-15 09:49:48 -07:00
Amanda Bullington
1328734c1e Nav back to ObsList from unsynced ObsEdit; closes #1536 (#1553) 2024-05-15 09:16:33 -07:00
Amanda Bullington
3cc5359c8c Limit nav access on TaxonDetails from AICamera, Suggestions, TaxonSearch; closes #1549 (#1551) 2024-05-14 21:24:25 -07:00
Amanda Bullington
38ecbd7f84 Fix crash from changing explore params (#1550) 2024-05-14 16:09:24 -07:00
Ken-ichi Ueda
7ca96536c2 Wrap react-native-sensitive-info methods with retry
Errors from this library with a message like "Protected data not available
yet" are the most-logged error from the app, even if the user doesn't see
them, so this will hopefully stop them from polluting our logs so much.
2024-05-14 14:49:52 -07: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
Ken-ichi Ueda
5e5bddf403 Revert "Bump nokogiri from 1.15.6 to 1.16.5 (#1548)"
This reverts commit e6fb4020a2.

This caused numerous dependency problems, and I don't think the security
threat is real since we don't use nokogiri in the actual application.
2024-05-13 18:27:14 -07:00
dependabot[bot]
e6fb4020a2 Bump nokogiri from 1.15.6 to 1.16.5 (#1548)
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.15.6 to 1.16.5.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.15.6...v1.16.5)

---
updated-dependencies:
- dependency-name: nokogiri
  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-05-13 18:16:45 -07:00
Amanda Bullington
b69aa4b570 Fix group photos title (#1543) 2024-05-13 15:31:19 -07:00
Amanda Bullington
995d6b67a3 Open local observation to edit, not remote observation; closes #1509 (#1531) 2024-05-13 14:58:43 -07:00
Amanda Bullington
36806b1bec Clear uploaded sounds to reduce app document size (#1530)
* Clear uploaded sounds to reduce app document size

* Code cleanup
2024-05-13 11:23:54 -07:00
Amanda Bullington
b12057cbc3 Clear synced photoUploads paths (#1527)
* Clear synced photoUploads paths

* Add mock for useQuery
2024-05-10 16:30:49 -07:00
Ken-ichi Ueda
bc64076c78 v0.32.2+90 v0.32.2+90 2024-05-10 13:55:07 -07:00
Ken-ichi Ueda
c15b024ba4 v0.32.2 2024-05-10 13:53:22 -07:00
Johannes Klein
8841076d59 Use Photo.accessLocalPhoto for photo upload (#1526) 2024-05-10 20:29:56 +02:00
Amanda Bullington
12ea2c0927 Remove temporary gallery photos (#1523)
* Move gallery photos out of tmp directory for easy deletion after obs edit flow

* Rename gallery photos in debug
2024-05-10 09:57:53 -07:00
Johannes Klein
4d0165c89b Replace Explore header taxon display (#1525) 2024-05-10 13:42:18 +02:00
Johannes Klein
6d444a06ca 1441 dropdown text style change (#1524)
* Change string

* Add KebabMenu Item component

* Replace menu item

* Add missing flow types
2024-05-10 12:28:44 +02:00
Amanda Bullington
e7c4fdbe5e Store original rotated photos temporarily during Camera -> ObsEdit flow (#1522)
* Check for CV directory

* Save original, rotated photos for processing; clear directory when user lands on MyObs

* Reset evidenceToAdd when user lands on StandardCamera

* Disable photo taking while loading so one photo doesn't overwrite another
2024-05-09 22:24:45 -07:00
Ken-ichi
0a1069fce9 Show notifications obs photos for remote obs (#1519)
---------

Co-authored-by: Angie Ta <angie@inaturalist.org>
2024-05-09 20:31:04 -07:00