Commit Graph

4199 Commits

Author SHA1 Message Date
Angie Ta
cd9f1a3135 Change to use sharedComponent Divider 2023-05-08 18:35:18 -07:00
Angie Ta
7b4aa00549 Edit strings, change icon 2023-05-04 17:33:05 -07:00
Angie Ta
ff9b86bc32 Add new strings 2023-05-04 17:05:33 -07:00
Angie Ta
6f2c399572 Remove comment 2023-05-04 16:50:21 -07:00
Angie Ta
cb911c73bd Show headerbackbutton when no image 2023-05-04 15:45:49 -07:00
Angie Ta
9c9ea9aaa8 Merge remote-tracking branch 'origin/main' into obs-detail 2023-05-04 14:59:41 -07:00
Ken-ichi Ueda
e4335aeded Updated fork of react-native-vision-camera to include commonjs build files 2023-05-04 10:32:48 -07:00
Ken-ichi Ueda
f205f941e2 Fixed camera issues and Podfile Ruby style problem
* Camera buttons on iPad should have correct spacing (definitely something
  weird going on there)
* Switched to a fork of react-native-vision-camera to pull in a patch that
  addresses lack of camera rotation in iOS

Note that there is still a bug in Android where the camera doesn't take photos
with the correct orientation. Passing a correct orientation prop to the
camera does not seem to fix it.
2023-05-04 09:30:32 -07:00
Angie Ta
7ee98dc138 Adjust margins 2023-05-04 00:16:48 -07:00
Angie Ta
04e6ef7343 Moved suggest id and add comment buttons out of activity tab, added stickybar, PhotoScroll buttons, back button 2023-05-03 23:19:02 -07:00
Ken-ichi Ueda
e7edbfab07 Added Rubocop; try to bump iOS version number correctly on build 2023-05-03 16:02:47 -07:00
Ken-ichi Ueda
27356d5b9f Restore package name to AndroidManifest.xml 2023-05-03 16:02:15 -07:00
Angie Ta
d9b430576f Moved geoprivacy to ObservationLocation, removed console logs 2023-05-02 23:20:08 -07:00
Angie Ta
580720f3c6 Fixed failing tests for ObservationLocation, dividers added for activity item 2023-05-02 22:52:52 -07:00
Angie Ta
dda6001f59 IconButton 2023-05-02 20:17:19 -07:00
Ken-ichi Ueda
54dc545718 v0.2.0+41 v0.2.0+41 2023-05-02 19:26:45 -07:00
Ken-ichi Ueda
f378a45152 Bumped minor version 2023-05-02 19:24:30 -07:00
Ken-ichi Ueda
62e6868937 Minor fixes
* Show remark in Add ID
* Lock screen orientation in StandardCamera for phones
* Stop crosshairs from blocking gestures in LocationPicker
* Changed thresholds for optimal accuracy in LocationPicker
* Tried to improve key for DisplayTaxonName
* Added stub content for Data tab on TaxonDetails
* Added delimiters and pluralization for counts on UserProfile
2023-05-02 18:34:50 -07:00
Angie Ta
454be0edb1 Data Tab renamed to Details Tab, styling to match designs, changed text strings, 2023-05-01 19:04:59 -07:00
Johannes Klein
824f5a0695 Update Podfile.lock 2023-04-28 10:27:00 +02:00
Amanda Bullington
a21abbb392 Bring TaxonDetails UI closer to Figma spec (#602)
* Bring TaxonDetails UI closer to Figma spec

* Fix test
2023-04-27 18:20:28 -07:00
Amanda Bullington
0080f910e5 Update UserProfile to make UI closer to Figma (#601) 2023-04-27 15:13:49 -07:00
Chris
689c960df2 Fix upload success animation (#600) 2023-04-27 14:36:04 -07:00
Amanda Bullington
b2232a2bab Refactor AddID and update UI to match Figma (#599) 2023-04-27 10:00:23 -07:00
Amanda Bullington
99bc981b53 Keep text input above keyboard in bottom sheets (#598)
* Use TextInput from BottomSheet instead of react-native-paper for keyboard avoiding view

* Fix styling on Android
2023-04-26 17:24:53 -07:00
Chris
80d60b78aa 590 lock screen orientation (#594)
* Lock screen to portrait mode if non-tablet

* lint

* Fix tests
2023-04-26 11:55:06 -07:00
Chris
c2ca726280 589 reset failed upload status (#596)
* Reset failed upload status

* Lint
2023-04-26 11:37:11 -07:00
Johannes Klein
1896ba558e 398 inline user component (#442)
* Use Body3 for username

* Add a11y role to user icon

* Add a11y matcher to tests

* Add snapshot test for normal state

* Fix mock user

* Rearrange test

* Update InlineUser.test.js.snap

* Update InlineUser test with i18n init

* Update UserIcon.test.js

* Replace icon components

* Update InlineUser.test.js.snap

* Different icon

* Update UserIcon.test.js

* Update snapshot tests for InlineUser

* Update InlineUser.test.js.snap
2023-04-26 11:30:52 -07:00
Amanda Bullington
59ba405abb Bug fixes for text inputs; clear using ref (#595) 2023-04-26 10:51:26 -07:00
Amanda Bullington
5ee4a433df Add location picker to ObsEdit (#593)
* Crosshairs, location accuracy warnings, text input for location picker

* Add LocationPicker tests

* UI improvements and code refactor into smaller components; get GMaps working

* Add shadows to icons/text boxes

* Use debouncing to avoid map jitter when typing in location

* Show place results & let user pick new location from web api

* Add tests for location picker with remote results

* Add gmaps api key to github actions

* Try adding manifest placeholders for env variable to work in github actions

* Add key to printf in github actions

* Try accessing GMAPS_API_KEY a different way

* Update android e2e env file step

This updates the "Create .env file" step to use printf to print the Google Maps key into a newly created .env file in the GitHub Action runner. Using the same key as in env.example.

* Fix newline

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2023-04-26 10:51:05 -07:00
Johannes Klein
1439c40c6a Upgrading the app to react-native 0.71.7 (#592)
* Changes in the unproblematic files

* Remove manually linked react-native-config

* Updates to files because of upgrade

* RN 71 and dependencies packages

* Update snapshot tests

* RN 71.1

* Fix missing jest mock

* RN 71.7

* Missing mock

* Fix errors with apisauce and axios

* Remove react-native-codegen direct dependency

* Code style
2023-04-25 17:18:24 +02:00
Johannes Klein
afffbee876 Minor dependency upgrade 2023-04-24 21:18:18 +02:00
Johannes Klein
33a09cec48 Update e2e_android.yml 2023-04-24 21:05:43 +02:00
Johannes Klein
f3f7a0e544 Upgrade babel dependencies 2023-04-24 21:04:43 +02:00
Johannes Klein
11d8b1a7b3 Update package-lock.json 2023-04-24 17:27:05 +02:00
Johannes Klein
380813011f Update Podfile.lock 2023-04-24 17:25:38 +02:00
Johannes Klein
0dea3acfee Update package.json 2023-04-24 17:25:19 +02:00
Johannes Klein
376144b750 Upgrade to Jest 28, breaking changes 2023-04-24 17:24:52 +02:00
Johannes Klein
05a24396c1 Minor version upgrade 2023-04-24 16:54:29 +02:00
Johannes Klein
0b13469a88 Fix broken package-lock.json 2023-04-24 16:53:30 +02:00
Johannes Klein
21d58048ce Add @react-spring/native dependency for react-tinder-card 2023-04-24 16:46:39 +02:00
Johannes Klein
62c164ac5f Import react-native-orientation-locker directly from github 2023-04-24 16:34:42 +02:00
Johannes Klein
bb67a8d859 Remove direct dependence on react-spring 2023-04-24 14:50:34 +02:00
Johannes Klein
637ff32d8b Upgrade eslint 2023-04-24 14:16:11 +02:00
Johannes Klein
f1d58b50b4 Bump minor dependency versions 2023-04-24 14:01:12 +02:00
Johannes Klein
11bf277200 Upgrade RNTL, breaking changes 2023-04-24 13:25:38 +02:00
Johannes Klein
6a4b31ed53 Upgrade jest to 28, detox to 20, breaking changes 2023-04-24 13:12:36 +02:00
Johannes Klein
37c9250347 Upgrade jest and co to 27, breaking changes 2023-04-24 12:07:25 +02:00
Angie
343a3ded61 472 standardcamera large screen layout (#567)
* StandardCamera for large layouts

* StandardCamera and main  merge cleanup

* Refactoring flashButton render

* Adjust margins and button spacing for large layouts

* Change conditionals to include screen size breakpoints

* Remove redundant conditionals

* Added PhotoPreview large screens landscape, styling cleanup, ios portrait mode lock on phones

* Update unit test, update snapshots

* Rotate icons in landscape and fix photolist direction in phones

* Rotate icon function adjusted

* Several fixes for orientation chages; keep camera buttons in place

Orientation was not being set correctly, but given the different definitions
and different values for orientation used by differe libraries, that's pretty
understandable. Here's I've tried to standardize around some constants and
make sure it gets set correct and variables like `isLandscapeMode` actuall
have the value the claim to hold.

Also redid the "no photos" state for the camera to be closer to spec, though
the text rotation is quite a pain.

Camera buttons should now stay in place even when the flash button appears or
disappears depending on the camera in use.

* Use isLargeScreen consistently

* Don't track orientation change when it doesn't do anything

i.e. on a phone. This was causing a crash in Android when rotating into
portrait orientation.

* Orientation change updates for StandardCamera

* go back to supporting rotation on small devices for the icons
* fixed android crash when rotating from landscape to portrait on a small
  device
* handled FACE-UP and FACE-DOWN orientations by just not changing layout in
  those scenarios

* Fix discard changes sheet in camera

---------

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
Co-authored-by: Amanda Bullington <albullington@gmail.com>
2023-04-21 14:03:39 -07:00
Johannes Klein
72ea6f4265 Revert "Upgrade apisauce major"
This reverts commit ca8700998b.
2023-04-21 12:43:58 +02:00