Commit Graph

4199 Commits

Author SHA1 Message Date
Johannes Klein
93491e5805 Upgrade babel-plugin-module-resolver major version 2023-04-21 11:38:31 +02:00
Johannes Klein
ca8700998b Upgrade apisauce major 2023-04-21 11:18:10 +02:00
Johannes Klein
0158086ff1 Remove node modules cache string 2023-04-21 09:19:41 +02:00
Amanda Bullington
fa94ab5b42 ObsEdit - bottom sheets (#570)
* Add KebabMenu to shared components index

* Separate EvidenceList from PhotoCarousel component

* Remove unneeded props from PhotoCarousel

* Create notes bottom sheet

* Fix tests for delete obs sheet

* Add wild status sheet

* Show date from observations uploaded via website

* Move media viewer modal into evidence section

* Fix mock

* Move location fetching into its own hook

* Refactor ObsEdit header; move code into Header component

* Add discard changes sheet

* Styling updates and save changes button

* Add classes to buttons based on evidence/id missing

* Add imprecise location sheet

* Add jest.fn from provider to ObsEdit tests

* Remove fakeTimers from ObsEditWithoutProvider.test.js; minor cleanup

* Show discard obs sheet anytime a user tries to navigate back

* Fixes to bottom sheet backdrop, evidence, add discard changes sheet

* Switch to paper radio buttons instead of checkmarks

* Fix bottom sheet backdrop in android by wrapping with GestureHandlerRootView

* Update bottom sheet for add comment & notes

* Fix test

* Remove fake timer from ObsEdit test to get tests passing

* Force update github actions cache

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2023-04-20 17:02:19 -07:00
Johannes Klein
ff4251aa36 Revert "Remove react-native-codegen dependency"
This reverts commit 248deaa759.
2023-04-20 22:49:49 +02:00
Johannes Klein
19a5c820ad Upgrade react-native-image-picker major version 2023-04-20 22:27:38 +02:00
Johannes Klein
c8a4de0fdd Upgrading date packages 2023-04-20 22:09:26 +02:00
Johannes Klein
248deaa759 Remove react-native-codegen dependency 2023-04-20 21:56:04 +02:00
Johannes Klein
524e5a8298 Upgrade use-debounce major version 2023-04-20 21:29:43 +02:00
Johannes Klein
cf349bb1ad Upgrade react-native-modal-datetime-picker major version 2023-04-20 19:46:59 +02:00
Johannes Klein
34a78cde41 Upgrade react-query minor version 2023-04-20 19:25:58 +02:00
Johannes Klein
15b0fac720 SVG snapshot test changes 2023-04-20 19:20:23 +02:00
Johannes Klein
b02c9236d8 Upgrade react-native-svg major version 2023-04-20 18:51:10 +02:00
Johannes Klein
48d9ee26e4 Update package-lock.json 2023-04-20 18:09:59 +02:00
Johannes Klein
cf9694b1ee Update package.json 2023-04-20 18:06:23 +02:00
Johannes Klein
bd71dea323 Upgrade react-native-device-info major version 2023-04-20 18:05:57 +02:00
Johannes Klein
3a0ff42a0e Dependency upgrades, breaking changes 2023-04-20 17:24:46 +02:00
Johannes Klein
cbb0737613 Upgrade some dependencies 2023-04-20 14:42:06 +02:00
Johannes Klein
1825169c69 Upgrading bunch of dependencies minor version 2023-04-20 14:10:12 +02:00
Johannes Klein
ec671154c1 Upgrade async-storage 2023-04-20 13:37:07 +02:00
Johannes Klein
8ca456e25b Bump i18n cli dependencies minor version 2023-04-20 13:08:05 +02:00
Johannes Klein
e7ec66ea6d Move metro-config to devDependencies 2023-04-20 12:57:32 +02:00
Johannes Klein
9ac151048a Upgrade nock 2023-04-20 12:45:10 +02:00
Johannes Klein
e23c0197bb Upgrade metro-react-native-babel-preset 2023-04-20 12:39:37 +02:00
Johannes Klein
09389ed161 Bump husky 2023-04-20 12:16:34 +02:00
Johannes Klein
4f9144077d Upgrade factoria/faker, breaking changes 2023-04-20 12:07:33 +02:00
Johannes Klein
31a195c289 Bump testing library dependencies 2023-04-20 11:27:09 +02:00
Johannes Klein
9c2b2e1176 Upgrade eslint-plugin, change function usage as requested 2023-04-20 11:19:47 +02:00
Johannes Klein
a8717c5c4d Upgrade eslint-plugins major versions 2023-04-20 10:42:27 +02:00
Johannes Klein
ca994e9e86 Bump minor eslint-plugin versions 2023-04-20 10:36:46 +02:00
Angie Ta
67a8fdb2e2 PhotoScrool styling and header styling 2023-04-19 17:36:33 -07:00
Ken-ichi
5747d4d1d9 Several minor UI fixes (#572)
* use `shrink` tailwind class instead of hard-coded max widths to control
  overflow in a few situations
* fixed some spacing issues with the Toolbar during upload
* center text in buttons by default
* export KebabMenu from SharedComponents (how was it working without this?)
* added some extra colors for debugging purposes
2023-04-17 15:50:39 -07:00
Johannes Klein
b6a27227cd Bump RN minor version, fixes build issues with XCode 2023-04-14 13:55:25 +02:00
Angie
8ef2fbb89c 440 activityitem component (#564)
* ActivityItem component main styling, ActivityHeader added Body4

* ActivityItem component, onAgree icon

* Remove console logs

* onAgree prop

* Changes requested, text wrap, styling to match figma

* Add ActivityItem to UILibrary

* onAgree button shows conditionally

* onAgree button shows conditionally

---------

Co-authored-by: Amanda Bullington <albullington@gmail.com>
2023-04-06 13:09:32 -07:00
Angie
ae8e85098f 474 adjust photopreview sizes in standardcamera for different breakpoints (#559)
* Adjust PhotoPreview sizes for StandardCamera for different breakpoints

* PhotoCarousel tests

* Merge main into branch

* PhotoPreview styling after merge

* Update PhotoCarousel snapshots

* Moved getBreakpoint into Sharedhelper, changes requested.

* PhotoPreview for large layouts

* Remove testing color

* Update snapshots

---------

Co-authored-by: Amanda Bullington <albullington@gmail.com>
2023-04-06 13:09:17 -07:00
Ken-ichi Ueda
f0581cfa48 Updated fastlane 2023-04-04 13:11:34 -07:00
Amanda Bullington
7c234221cf Fix add evidence modal duplicate row 2023-04-04 12:31:02 -07:00
Chris
98a6663fe1 561 fix hidden bottom sheet (#563)
* Show bottom sheet over tab bar

* use present method

* Ensure bottom sheet works elsewhere

* Ensure bottom sheet works elsewhere

* Add provider to test

* lint

* Fix tests

* Merge fixes

---------

Co-authored-by: Amanda Bullington <35536439+albullington@users.noreply.github.com>
Co-authored-by: Amanda Bullington <albullington@gmail.com>
2023-04-04 12:30:07 -07:00
Amanda Bullington
bf2aa516c3 UI updates for Obs Edit (#565)
* Styling updates to ObsEdit screen

* Fix padding/margins and font style in TextInput

* Styling updates for identification section

* UI changes; add checkmarks for evidence

* Only show arrows for multiple observations
2023-04-04 11:37:05 -07:00
Ken-ichi Ueda
6386f8d397 v0.1.1+40 v0.1.1+40 2023-03-31 18:55:01 -07:00
Ken-ichi Ueda
04d5b83444 Minor fixes to Header and Tab Bar spacing 2023-03-31 18:38:21 -07:00
Ken-ichi Ueda
4a621c2fb5 Wrap useTranslation to catch java.lang.NoClassDefFoundError in Android
This error seems to happen on the first few attempts to use i18next.translate
on Android when there are numerical interpolations, e.g. plurals. This
extends a bandaid fix by @Chrischuck in
https://github.com/inaturalist/iNaturalistReactNative/pull/515 to handle all
uses of translation.
2023-03-31 18:38:21 -07:00
Ken-ichi Ueda
bccfa3cfc6 Updated i18next and react-i18next 2023-03-31 18:38:21 -07:00
Amanda Bullington
be6f024339 Build fix for iOS with XCode 14.3 RC 2023-03-31 13:29:15 -07:00
Amanda Bullington
c623c02272 Refactor DiscardChangesSheet and show only when leaving screen (#562)
* Only render bottom sheet when needed; refactor; fixes #556

* Fix test: add useFocusEffect to mocked nav
2023-03-31 10:26:23 -07:00
Amanda Bullington
20bd896d20 Fix orientation of thumbnails and checkmark; closes #475 (#557) 2023-03-30 13:52:34 -07:00
Chris
978bf26f81 Remove conditional around setAllObsToUpload (#558)
* Remove conditional around setAllObsToUpload

* Add spread

* Fix duplicate key bug
2023-03-30 13:48:14 -07:00
Angie
18dcccc705 Snapshot and unit tests, and default color for QualityGradeStatus (#512) 2023-03-30 11:18:53 -07:00
Ken-ichi Ueda
38311ea3c7 Consistent grid item spacing on MyObservations 2023-03-29 16:20:44 -07:00
Amanda Bullington
295eaee88a Navigation fixes / remove stack navigator (#554)
Remove stack navigator; move everything into tab nav and hide footer when needed
2023-03-29 16:19:31 -07:00