Commit Graph

4199 Commits

Author SHA1 Message Date
Amanda Bullington
94f75cbf13 Fix DisplayTaxon styling for long, multiname taxon; closes #984 (#1023) 2024-01-11 13:02:38 -08:00
Amanda Bullington
30a5a9fbec Use safe area insets to style tab bar padding (#1021)
* Use safe area insets to style tab bar padding; closes #945

* Update snapshot
2024-01-11 10:57:54 -08:00
Johannes Klein
5996688318 Share image into app bugfix (#1022)
* Switch the order of share manager or linking manager

* Maestro e2e test for sharing into app on iOS

* Update maestro flow

* Maestro e2e test to check if links into the app work

* Maestro e2e test android share into app
2024-01-11 18:43:52 +01:00
Angie
379a8747b2 Merge pull request #1020 from inaturalist/770-dqa-screen-shows-an-error-modal-on-navigating-there
770 dqa screen shows an error modal on navigating there
2024-01-10 19:21:25 -08:00
Angie Ta
83a558a6ff Offline bottomsheet 2024-01-10 18:10:03 -08:00
Amanda Bullington
09b225a1e6 Pause button dark mode until post-MVP (#1019)
* Pause button dark mode until post-MVP; closes #994

* Update snapshots
2024-01-10 17:07:36 -08:00
Angie Ta
75c3894531 Merge branch 'main' into 770-dqa-screen-shows-an-error-modal-on-navigating-there 2024-01-10 16:41:31 -08:00
Amanda Bullington
b735746e13 Prevent thumbnails from being clipped on long press, EvidenceList (#1018)
* Show person icon as fallback when user is offline; closes #946

* Prevent thumbnails in EvidenceList from being clipped; closes #847

* Forgot to switch back to main before new code. Revert "Show person icon as fallback when user is offline; closes #946"

This reverts commit 13b0a1a1aa.
2024-01-10 15:20:00 -08:00
Amanda Bullington
7f6a25fa9f Show person icon as fallback when user is offline; closes #946 (#1017) 2024-01-10 14:34:10 -08:00
Amanda Bullington
d0cf6751cf Render loading wheel until data is available for FlashList (#1016)
* Render loading wheel until data is available for FlashList; closes #756

* Fix: show loading wheel in Explore before data rendered

* Fix test
2024-01-10 14:33:59 -08:00
Ken-ichi
3eddba7daf Change bundle ID (#1013)
* Changed the Android package name to org.inaturalist.iNaturalistMobile
* Changed iOS bundle ID to org.inaturalist.iNaturalistMobile
* Updated fastlane; committing eslint fixes
* Updated ios/iNaturalistReactNative-ShareExtension/Info.plist with new bundle ID
2024-01-10 12:12:17 -08:00
Angie Ta
03783b9dbb DQAContainer file 2024-01-09 22:38:47 -08:00
Angie Ta
c5a0b9db64 Bug fix and cleanup code into DQAContainer, update tests 2024-01-09 22:25:33 -08:00
Amanda Bullington
07b1f88c2d Edit styling to fix cut-off text in SearchBar; closes #944 (#1014) 2024-01-09 19:47:19 -08:00
Amanda Bullington
1d23c1f1fa Make entire dropdown for notes tappable; closes #860 (#1012) 2024-01-09 18:30:29 -08:00
Ken-ichi
b18fd0408b Crash when uploading after deleting unsynced observation (#1010)
Syncing was broken when an unsynced obs was deleted

The main problem here was that MyObs state has a list of observations that
need upload, but since it was a plain array of Realm objects it crashed when
one of those objects was invalid, which happened after deletion. This fix
isn't great: it just makes it so the thing in state is a Realm.Results
object, which will update dynamically when its underlying data changes. We
could also JSONify what we have in state, but then you get into problems of
nested objects and deep JSONification.

Also
* Delete local obs if remote doesn't exist
* Bugfix: ObsDetail tried to mark non-existent remote obs as viewed
* Tried to handle react query retries better
2024-01-09 14:47:07 -08:00
Ken-ichi
ae9b2d2040 Minor style fixes for ObsDetails (#1011)
* Renamed CommunityTaxon to ObsDetailsHeader since it has more info than just the community taxon
* Made tabs stick on scroll instead of header
* Removed weird spacer element at the bottom of the activity
2024-01-09 13:45:29 -08:00
Angie
0cc8e55056 Merge pull request #1008 from inaturalist/899-notifications-screen
Crash fix notifications screen
2024-01-09 13:16:16 -08:00
Amanda Bullington
f0aac96468 Agree button: match web functionality (#1009)
* Only show agree button on first taxon displayed; show on all ranks

* Show agree button only on first taxon displayed; show agree for ranks above species; closes #566

* Fix test
2024-01-09 12:39:58 -08:00
Amanda Bullington
c7866647f8 Support copy paste in log; closes #992 (#1006) 2024-01-09 12:35:11 -08:00
Amanda Bullington
9fd47453a1 Add Photo Permission Gate (#999)
* Add permission gate for adding photos

* Add permission gate for adding photos to library

* Show permission gate first time camera loads; allow navigation on future loads

* Show PermissionGate only when checkmark tapped

* Show permission gate when checkmark tapped

* Nav to obs edit when permission granted

* Fix ARCamera tests

* Update file names; remove unused files

* Rename method from usePrepareState hook
2024-01-09 11:18:10 -08:00
Amanda Bullington
21f83d7f58 Only show current ids in IdentificationCount; closes #995 (#1007) 2024-01-09 11:15:41 -08:00
joergmlpts
4c7d01372e Bugfix: could not add photo to existing obs, upload progress did not complete
Fixes #918
2024-01-09 10:37:43 -08:00
Angie Ta
a634b83ce0 Crash fix notifications screen 2024-01-08 17:02:28 -08:00
budowski
1bc128bfcd #871 - show pop-up menu for taxon photo - share / view in browser (#980)
* #871 - show pop-up menu for taxon photo - share / view in browser

* Fixes according to feedback
2024-01-08 15:37:04 -08:00
budowski
d247039d6b Crash when dragging last of three photos to middle position
* Fixes #991
* Flow for @realm/react
2024-01-08 14:08:48 -08:00
budowski
06faa5e1c6 Switch map type button on Explore
Closes #896
2024-01-08 13:51:45 -08:00
Angie
89166ff2b1 Merge pull request #1004 from inaturalist/899-notifications-screen
899 notifications screen
2024-01-07 22:35:33 -08:00
Angie Ta
3de96e9184 Merge branch 'main' into 899-notifications-screen 2024-01-07 21:46:11 -08:00
Angie Ta
2e038abdeb Merge branch 'main' into 899-notifications-screen 2024-01-07 18:37:58 -08:00
Ken-ichi
799e0f4c4f Restore tests removed in recent suggeston fixes (#1001)
* Restored Suggestions navigation tests
* Restored SuggestionsWithSyncedObs.test.js tests
* Mocked vision-camera-plugin-inatvision instead of useOfflineSuggestions
* Removed unnecessarily complex object from navigation params

There were a lot of issues here, but the main ones (I think) were related to
rendering all the navigators and waiting for asynchronous stuff to happen
before proceeding with the test.
2024-01-05 19:48:46 -08:00
Ken-ichi
ddbdb45c8a Update CONTRIBUTING.md
More explicit message about commenting on issues.
2024-01-05 17:43:18 -08:00
Angie Ta
ee74db5f1f Notifications Screen, observation notifications, no infinite scroll or user notifications 2024-01-05 01:50:25 -08:00
budowski
d347dbfb56 #584 - don't directly call updateObservationKeys from callback function, after fetching location (#949)
* #584 - don't directly call updateObservationKeys from callback function, after fetching location
* Fixes related to E2E tests
2024-01-03 12:42:14 -08:00
joergmlpts
d857c5542a Get observation photos and sounds from correct fields in Explore; fix for issue #939 (#988)
* Get observation photos and sounds from correct fields in Explore; fix for issue #939

* Upload positional_accuracy to observation; fix for issue #973
2024-01-02 11:45:28 -08:00
Amanda Bullington
1ba0494372 Establishment means, TaxonDetails (#986)
* Add establishment means with styling for link in fluent text

* Fix tests
2023-12-19 15:28:30 -08:00
Amanda Bullington
dc19cac1f5 Rename test and component to CommunityTaxon (#985) 2023-12-19 11:16:49 -08:00
Amanda Bullington
cd18e970d7 Taxonomy component, TaxonDetails (#978)
* Style taxonomy ancestors and current taxon

* Link to TaxonDetails pages

* Add children to TaxonDetails taxonomy

* Add children taxa toggle

* Display children after button tap

* Wrap text'

* Fix italic font size in DisplayTaxonName

* Add tests to Taxonomy component

* Change Taxonomy test
2023-12-19 11:04:30 -08:00
Amanda Bullington
cad36a7253 Replace white screen with error boundary component (#983)
* Replace white screen with error boundary component; replace JS exception handler; closes #976

* Code cleanup
2023-12-18 16:34:06 -08:00
joergmlpts
e990b244cf don't show site affiliation when user doesn't have one; fix for issue #975 (#982) 2023-12-18 16:27:43 -08:00
budowski
6e944f68bb 856 reordering photos (#979)
* #856 - support for modifying and updating observation photos locally/remotely; reordering of photos fix

* ESLint fix

* Fixed tests

* Fixed tests

* Fixes related to tests
2023-12-18 15:27:27 -08:00
budowski
94ea2b6054 #874 / #870 - taxon UI changes (#981) 2023-12-18 14:33:27 -08:00
Ken-ichi Ueda
3653050d96 v0.19.0+67 v0.19.0+67 2023-12-15 21:43:39 -08:00
Ken-ichi Ueda
af038d203c v0.19.0 2023-12-15 21:28:07 -08:00
Ken-ichi Ueda
7840ba2751 Bugfix: could not add an ID using Suggestions from Explore 2023-12-15 20:50:37 -08:00
Ken-ichi
f7dc08a704 Suggestions fixes (#972)
* Bugfix: TaxonDetails was crashing if it received a null taxon
* Send lat and lng instead of latitude and longitude to the score_image
  endpoint
* Show offline suggestions when you are offline
* Show notice when viewing offline suggestions
* Moved code unique to useOnlineSuggestions into that file
* Ensure we use a medium size image to get suggestions when dealing with
  remote URLs
* More logging around React Query retries
* Use default retry logic for useAuthenticatedQuery
* Made a module-resolver shortcut for tests
* Move offline notice above top suggestion; hide when offlines exist but onlines do too
2023-12-15 19:58:12 -08:00
Amanda Bullington
b33119f5a4 Update checkboxes & fix tests (#971)
* Update checkboxes & fix tests

* Fix accessibility/tests

* Update pods
2023-12-15 09:36:40 +01:00
Amanda Bullington
ff459c35c4 Obs status align top on MyObs/Explore (#969)
* Top align ObsStatus on Explore/MyObs; closes #895

* Keep ObservationsViewBar positioned outside of scroll
2023-12-14 17:43:15 -08:00
Ken-ichi
8119a3e5ca Taxon detail media viewer (#966)
* Access MediaViewer from TaxonDetails
* Added our own presets for ActivityIndicator
* TaxonDetail should show a local taxon if one is available
* Made it a little easier to import the custom logger
* Refactored MediaViewer to accept photo-like objects instead of URIs
* Added license / attribution button to MediaViewer
* Moved delete button into MainPhotoDisplay so each photo has its own button
  and it can be laid out relative to its photo
* Add custom header to MediaViewer when accessed from TaxonDetial
* Allow DisplayTaxonName to accept custom text components as props
* Added darker bg to photo on TaxonDetail to make title more legible
2023-12-14 17:18:41 -08:00
Amanda Bullington
73d2e9944b Suggestions first looks for online, then offline predictions; fixed tests to reflect this (#968) 2023-12-14 12:42:10 -08:00