Commit Graph

4199 Commits

Author SHA1 Message Date
Johannes Klein
252cc251fb Rename prop back to photos (#2746) 2025-03-12 13:35:33 +01:00
Johannes Klein
f71ea218d8 Simple obs detail is also for logged in users (#2745) 2025-03-12 13:08:17 +01:00
Ken-ichi
1c31681b39 New Crowdin translations by GitHub Action (#2744)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-03-12 12:54:31 +01:00
Johannes Klein
52e29648c0 Also use new useScrollToOffset hook in advanced obs details (#2743)
* Also use new useScrollToOffset hook in advanced obs details

* Remove erroneously introduced View

* Code style

* Fix wrong merge
2025-03-12 11:05:16 +01:00
Amanda Bullington
9b1275a6eb Use fixed header in ObsDetails advanced mode (#2741)
* Use fixed header on ObsDetails advanced mode

* Remove test for removed component - using react navigation header instead

* Remove tests related to ObsDetails header icon; using react navigation

* Add testID to react navigation level back button and fix e2e

* Terminate app after every e2e test and maybe help flakiness

* Rework termination of app

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-03-12 10:38:35 +01:00
Amanda Bullington
1347ca3488 Retain user mode (advanced/default) after login (#2742)
* Retain user mode (advanced/default) after login

* Switch to power mode before login & hide announcements e2e

* Remove repetitive signin test from e2e
2025-03-12 10:22:39 +01:00
Johannes Klein
8ca3664ba9 Temporarily disable e2e tests on pull requests 2025-03-12 10:04:33 +01:00
Ken-ichi
7e21c19c59 New Crowdin translations by GitHub Action (#2694)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
2025-03-11 12:08:31 -07:00
Johannes Klein
5f2c6cd81f v0.59.5+148 v0.59.5+148 2025-03-11 17:53:15 +01:00
Johannes Klein
e39dc03078 Bump version 2025-03-11 17:52:24 +01:00
Johannes Klein
194926aae8 v0.59.4+147 v0.59.4+147 2025-03-11 17:30:56 +01:00
Johannes Klein
7fb865c3e0 Merge pull request #2740 from inaturalist/538-optional-access-of-obscured
Optional access of optional property
2025-03-11 12:16:46 +01:00
Johannes Klein
027e08d90e Optional access of optional property 2025-03-11 10:31:04 +01:00
Johannes Klein
7bf26278e5 Merge pull request #2739 from inaturalist/mob-539-sharing-multiple-photos-shows-former-suggestions-screen
Fix: reset store when sharing photos into the app
2025-03-11 10:13:54 +01:00
Amanda Bullington
8464145e01 Remember to actually reset the observation store when sharing photos into app 2025-03-10 17:11:33 -07:00
Johannes Klein
eec7cf727b Hide obs status with boolean prop (#2738)
* Hide obs status with boolean prop

* Update ObsGridItem.test.js.snap

* Grid item not supposed to show obs status at all
2025-03-10 15:16:37 +01:00
Johannes Klein
dd0bdd01f1 Center icon, add margin right (#2735) 2025-03-10 15:16:11 +01:00
Johannes Klein
eaed9ada59 Only add zoom options if camera device has the actual physical devices (#2737)
* Only add zoom options if camera device has the actual physical devices

* Fix mock

* Add mocks to unit test

* Revert "Add mocks to unit test"

This reverts commit 0738d2b115.

* Optional chaining
2025-03-10 14:04:58 +01:00
Johannes Klein
3e14a78a45 Max lines of 1 for all headers (#2736) 2025-03-10 12:26:43 +01:00
Johannes Klein
37a9f6d58b Add a plus icon button to add all observation types to default mode header (#2734)
* AddObsButton TS

* Add simple plus icon version of the AddObsButton to my obs list header

* Update imports
2025-03-10 11:52:00 +01:00
Johannes Klein
15c1946b71 Use default mode from first app install (#2733)
* Default mode used on app install

* Update integration tests
2025-03-10 09:47:47 +01:00
Johannes Klein
1cdf491ed1 Make obs list header a React component 2025-03-09 20:51:26 +01:00
Johannes Klein
58bd263c23 Update vision-plugin to prepare for cv model v2.20 (#2732)
* Update vision-camera-plugin-inatvision

* Update Podfile.lock
2025-03-09 17:59:02 +01:00
Johannes Klein
08eced93e9 Adding some more info to errors thrown from camera (#2731)
* Use entire error as param outside of CameraView

* Pass error through to helpers

* Log entire error object to logstash and Alert
2025-03-08 00:30:27 +01:00
Amanda Bullington
fc737b1481 Crash fix and use offline notice for species tab of MyObs (#2730) 2025-03-07 14:04:04 -08:00
Amanda Bullington
d764e37f5c Reset zoom when tapping a different photo in media viewer (#2729) 2025-03-07 13:12:35 -08:00
Amanda Bullington
9ae17dce14 Hide floating buttons in ObsDetailsDefaultMode if observation is unsynced (#2723) 2025-03-07 10:47:48 -08:00
Amanda Bullington
8c0cfe1c47 Fuss a lot with invisible layout to make sure all suggestions are the same height (#2726) 2025-03-07 10:46:19 -08:00
Johannes Klein
d1398a4d29 Add UI for match screen not identifying (#2728)
* Alternative return for match screen in absence of suggestion

* Add lower part text elements

* Add margin at bottom

* Copy code to make a new suggestions scrll for iconic taxa

* Removing not needed properties of the copied code

* Remove log

* Remove width constraints

* Add a state to track selected iconic taxon

* Comment and code style

* Pass prop down to taxa scroll

* Use new props in iconic taxa scroll

* Color border according to selected state

* Use iconic taxon as top ID if none given

* Remove testing code

* Update Match.test.js
2025-03-07 19:42:38 +01:00
Johannes Klein
626fbfd94f Full screen loading state on match screen (#2717)
* Build UI for loading state between AI->Match

* Make designs for AI loading screen match Figma

* Selective changes from bf872e2d4f

* Selective changes from 9ed81f99c7

* Selective changes from 4bc7c3474f

* Selective changes from 4916cf70fb

* Replace loading state from store with props

* Add some types

* Make component agnostic of what skipping does

* Remove debug info

* Add more debug data

* Elongate loading state if online errors out and offline is still loading in sequence

* Remove underline

This classname had no effect as far as I can tell.

* Hide skip button when it has no function

* Remove a comment that slipped through partial cherry-picking

* Split apart online and offline fetch status

Weird but even though they start in sequence it happened to me that online error was received after offline was fetched successfully. So, Let's split apart online and offline loading state.

---------

Co-authored-by: Amanda Bullington <albullington@gmail.com>
2025-03-07 11:50:49 +01:00
Kirk van Gorkom
2ac737e9ad v0.59.4+146 v0.59.4+146 2025-03-06 22:27:23 -08:00
Kirk van Gorkom
6624acf65f Bump version to 0.59.4 2025-03-06 22:22:31 -08:00
Kirk van Gorkom
007fee6fea Merge pull request #2722 from inaturalist/524-remove-default-mode-announcements
Remove Announcements from default mode
2025-03-06 20:07:38 -08:00
Amanda Bullington
04b8212d78 Fix agree button placement in both ObsDetails screens (#2725) 2025-03-06 17:39:18 -08:00
Amanda Bullington
fd7bf54818 Move empty observations header under iOS safe area with flex (#2724) 2025-03-06 17:39:06 -08:00
Amanda Bullington
fd6cd0148d Filter out hidden content from ObsDetails advanced/default activity feeds (#2721)
* Hide comments and ids that are supposed to be hidden on remote/local observations

* Add and fix tests related to hiding content
2025-03-06 15:33:02 -08:00
Johannes Klein
455031587d Comment out Announcements 2025-03-06 23:50:09 +01:00
Johannes Klein
2557936364 Also scroll to top when location permission is granted (#2720) 2025-03-06 21:05:51 +01:00
Johannes Klein
9d0538c026 Add bottom card UI when not in simple mode (#2719) 2025-03-06 21:00:13 +01:00
Johannes Klein
310f65a515 Fix: pivot cards not closing with X button (#2718)
* Fix typo

* Move button higher in z Axis.
2025-03-06 20:59:45 +01:00
Kirk van Gorkom
c203b6c8d9 v0.59.3+145 v0.59.3+145 2025-03-06 10:52:37 -08:00
Kirk van Gorkom
672e1913ef Bump version to 0.59.3 2025-03-06 10:48:44 -08:00
Johannes Klein
ba8315ab9f Remove initial block function from location permission gate (#2713)
This was introduced to a misunderstanding of requirements in a previous ticket. Now the permission gate behaves again the same on all screens.
2025-03-06 09:29:31 +01:00
Kirk van Gorkom
6ee44787c4 Merge pull request #2714 from inaturalist/mob-512-implement-simple-unuploaded-logged-out-obsdetail
Implement simple un-uploaded logged-out mode for ObsDetail
2025-03-05 15:36:41 -08:00
Johannes Klein
50b4689a0f Passing props through to child component
We are not sure if this screen will stay like this so this seems to me to be a better way. We are just expanding the interface to allow a customization that is already possible to pass through. Instead of adding a new "largeText" mode.
2025-03-05 23:56:45 +01:00
Kirk van Gorkom
9d767204ff Add simple mode to ObsDetailsDefaultMode 2025-03-04 16:54:35 -08:00
Kirk van Gorkom
d0879ac6e6 Adjust map height to 200px
Matches Figma for default mode
2025-03-04 16:32:06 -08:00
Johannes Klein
6b269192ff v0.59.2+144 v0.59.2+144 2025-03-04 18:08:58 +01:00
Johannes Klein
c1257d610b Update Podfile.lock 2025-03-04 17:58:44 +01:00
Johannes Klein
bd4723c2d2 Bump version 2025-03-04 17:57:45 +01:00