Commit Graph

4199 Commits

Author SHA1 Message Date
Johannes Klein
b888e7fe25 Create addObservationWithoutData.e2e.js 2022-12-03 02:19:40 +01:00
Johannes Klein
3daaf2ec3f Add testIDs 2022-12-03 02:18:45 +01:00
Johannes Klein
9a815d7f96 Add detox configs 2022-12-03 02:18:22 +01:00
Johannes Klein
439f1dc994 Add detox and jest-circus 2022-12-03 02:16:57 +01:00
Johannes Klein
1e6cb70125 Remove fake timers for all tests, await components in ObsEdit test
I enabled jest.useFakeTimers() for all tests in the jest test setup files. I have since learned that it is better to enable it on a test-by-test basis. I have now enabled it globally and fixed the resulting error in the ObsEdit test.
2022-12-02 23:17:48 +01:00
Johannes Klein
33df5a4eb0 Add react-native-gesture-handler test setup file 2022-12-02 23:13:41 +01:00
Johannes Klein
b6ca6444f6 Change order of babel plugins 2022-12-02 14:08:05 +01:00
Amanda Bullington
bb67cf0eeb Fix Android crash on text string in Button component (#249)
* Remove TranslatedText component from Button and pass in translation strings via props
* Fix rendering of bottom sheets
2022-11-30 14:15:51 -08:00
Amanda Bullington
e57ed1fdee Move notes input field above keyboard on focus (#252)
* Move optional notes text field above keyboard on focus
* Fix test with keyboard-aware mock
2022-11-30 14:14:26 -08:00
budowski
36ccd2b29b 178 photo gallery android fetch (#246)
* Changes to support iOS (RCT-Folly related changes)
* #178 - Photo gallery screen - On Android, same page of results is shown again and again while scrolling

Closes #178
2022-11-30 09:29:18 -08:00
Angie
c1e845c620 198 usertext component (#237)
* UserText component. Closes #198.
* Replaced ActivityItem comment body with UserText. Wrote tests for UserText.

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-11-29 21:49:36 -08:00
Ken-ichi Ueda
5a8e4e3b91 Clean more stuff before building with Fastlane; back to Play Store draft builds for our draft app 2022-11-29 12:56:24 -08:00
Ken-ichi Ueda
f5ab99e37e Redo of workaround for https://github.com/lawnstarter/react-native-picker-select/issues/487 2022-11-29 12:55:40 -08:00
Ken-ichi Ueda
9efe9c3901 v0.1.1+32 v0.1.1+32 2022-11-28 21:05:23 -08:00
budowski
4e5481a607 144 import photo exif (#168)
* #144 - when creating new observation, import first photo EXIF data for location + date
* #144 - usePhotoExif - read partial file data; added testing for usePhotoExif hook
* #144 - import photo exif - use our own react-native-exif-reader library + other fixes (not to automatically fetch location, save original uri)
* Do not save original photo URI in DB, only pass it along to obs edit screen for EXIF parsing
* Upgraded testing library version to support renderHook

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-11-28 20:58:34 -08:00
Amanda Bullington
cc32d5d785 Test: checkmark is shown when photos are selected (#245)
* Started using the FlatList extraData prop to rerender the list.
* Added an integration test for photo selection state
* More fully-formed default mock for camera-roll; removed other test

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-11-23 16:46:22 -08:00
Amanda Bullington
c6361b022c Skeleton UI and server results for adding a comment in ObsDetail (#247)
* Show skeleton UI for comment and update with real comment from server
* Update styling in ActivityItem to use tailwind; fix code combining id and comment arrays
* Use tailwind styling in ObsDetails
* Styling updates; remove unneeded code from ObsDetails test
* Show loading wheel when comment submitted; clear comment box when backdrop tapped
* Remove console log
2022-11-23 16:08:22 -08:00
Amanda Bullington
a96e379b09 Standardize headers with react navigation (#243)
* Use react navigation header for photo gallery / album picker
* Use react navigation for group photos header
* Use react nav header for Add ID
* Use react navigation header for ObsEdit
* Fix tests by mocking navigation setOptions
* Show all buttons in camera options modal; remove header from StandardCamera
* Only show obs edit header when observations have loaded

Closes #226
2022-11-23 14:09:17 -08:00
Johannes Klein
47e9916a05 Enable hermes for iOS (#241) 2022-11-14 16:25:09 -08:00
Ken-ichi Ueda
d29800de73 Try not pushing draft releases to Play Store
Also raises exception if changelog missing when uploading to TestFlight.
2022-11-14 15:22:44 -08:00
Ken-ichi Ueda
0c461d1081 Updated fastlane 2022-11-14 15:04:28 -08:00
Ken-ichi Ueda
7a0e091b9c v0.1.1+31 v0.1.1+31 2022-11-14 14:43:40 -08:00
Ken-ichi Ueda
47c0d198cf Yet another device orientation 2022-11-14 14:43:00 -08:00
Ken-ichi Ueda
31c3f6e27a v0.1.1+30 v0.1.1+30 2022-11-14 14:20:51 -08:00
Ken-ichi Ueda
5770ff4705 Updates for uploading iPad builds
* Made sure xcode knows about all icon sizes
* Support all orientations (apparently a requirement for iPad)
* Ensure footer width survives device rotation
2022-11-14 14:13:27 -08:00
Ken-ichi Ueda
aaedd884b2 v0.1.1+29 v0.1.1+29 2022-11-14 12:12:33 -08:00
Angie
5809ac5823 Support for tablets. Closes #200. (#234)
* Support for tablets. Closes #200
2022-11-09 10:57:10 -08:00
Amanda Bullington
76fae15faa Make caret next to album selector pressable (#235)
* Fixed padding around caret & moved to Icon prop within PickerSelect
* Fix picker text color on Android. Closes #227
2022-11-08 17:43:59 -08:00
Amanda Bullington
733e246367 Make caret next to album selector pressable (#235)
* Fixed padding around caret & moved to Icon prop within PickerSelect
* Fix picker text color on Android. Closes #227
2022-11-08 17:37:27 -08:00
Amanda Bullington
7a72cfc3db Fix infinite loop in ObsDetail for local observations (#236)
* Fix infinite loop when setting ids; return error from api so useQuery doesn't produce an undefined error
* Add throw option to fetchRemoteObservation so error is thrown when uuid doesn't exist
2022-11-08 17:08:26 -08:00
Amanda Bullington
3fbf6cff7c Fix obs detail comment input (#228)
* Separate AddCommentModal into its own component
* Use defaultValue instead of setting TextInput with value from state; styling fixes
* Fix for android build in build.gradle
* Styling fixes for text inputs
* Update bottom sheet mock to get tests passing
* Restore notes to same code as in main branch
2022-11-08 16:52:32 -08:00
Amanda Bullington
b700573327 Fixes for ObsEdit & adding evidence to an existing observation (#220)
* Fix for chosen photos persisting after cancelling new obs, closes #204
* Clear observations when a user backs out of ObsEdit screen
* Add android back handler condition to make sure a user can't back out of ObsEdit & see old observations
* Make sure local observations are properly updated in ObsEdit
* Create subcomponents for ObsEditHeader and AddEvidenceModal
* Fix add evidence functionality; separate ObsEdit into smaller components; rename UploadProvider
* Add disabled check for gallery photos previously selected; fix number of imports in add evidence
* Move fetch location into relevant component; ideally this makes ObsEdit stop rerendering every second
* Fix for android build in build.gradle
* Styling fix for photo gallery grid of images
* Renaming obs to observation, bulk uploader to photo importer, upload provider back to obs edit provider
* Update pods and rename test directory to PhotoImporter

Also closes #218
2022-11-08 12:16:23 -08:00
Angie
33433f6ab5 201 restore profile pic and obs count to the my obs header (#211)
* Restored obs count and profile pic to the My Obs header.
* Padding adjustments for profile icon and obs details. Closes #201.
* Guard against icon_url being null or blank
2022-11-08 11:49:23 -08:00
Johannes Klein
99d306cd24 Realm 11 (#208)
This also upgrades us to React Native 0.70.4 and adds a number of files that get us ready for the New Architecture.

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-11-07 14:13:13 -08:00
Ken-ichi Ueda
66bfd7fdc3 Removed explicit reset of iOS deployment target for pods (doing more harm than good) 2022-11-07 13:51:40 -08:00
Amanda Bullington
f897baf459 Fix for android build in build.gradle (#229) 2022-11-04 18:25:11 -07:00
Johannes Klein
26f845b0a5 Replace react-native-localize with mock given by library (#225) 2022-11-04 18:03:24 -07:00
Angie
e93a29062e Parse HTML for comments and id in ObsDetails. Closes #197. (#212) 2022-11-04 17:57:13 -07:00
Ken-ichi Ueda
1e4fff96cf Upgraded actions in test workflow 2022-11-02 16:14:30 -07:00
Ken-ichi Ueda
6c009bbdb6 Make eslint allow console statements 2022-11-02 16:09:13 -07:00
Ken-ichi Ueda
531c0e02e7 Address some test problems with mocks 2022-11-02 16:06:55 -07:00
Amanda Bullington
a36fe7c92d Separate Logout component from login; stop setting username state on Login screen to close #202 (#210)
Closes #202
2022-11-01 18:37:23 -07:00
Amanda Bullington
0240e94a8f Clear old observations when creating a new observation (#207)
* Fix for chosen photos persisting after cancelling new obs, #204
* Clear observations when a user backs out of ObsEdit screen
* Add android back handler condition to make sure a user can't back out of ObsEdit & see old observations
* Make sure local observations are properly updated in ObsEdit

Closes #204
2022-11-01 18:19:29 -07:00
Ken-ichi Ueda
9420a875d3 Workarounds for fastlane / Apple upload / build problems 2022-11-01 18:11:17 -07:00
Ken-ichi Ueda
36a0597284 v0.1.1+28 v0.1.1+28 2022-11-01 09:32:05 -07:00
Amanda Bullington
4d213bd4c6 Create / update / delete requests with useMutation (#206)
* Use authenticated query for search results
* Use search API for fetching places from Settings
* Use authenticated query for authorized applications
* Use authenticated query to fetch user.me
* Move fetch/search api calls into react query format, out of hooks
* Update with react query instead of hooks
* Fetch list of blocked and muted users with authenticated query
* Added Podfile postinstall block to get app running in a Simulator
* Use auth query in identify
* Upgrade @realm/react library to 0.4.0; fixes initialization error on android due to importing realm
* Use authquery for explore provider
* Use mutations for blocking/muting users, invalidating queries, and refetching settings data
* Add react mutation to create/update/delete api calls
* Use mutation for creating identification on identity/obs detail screens
* Use mutations to update and delete relationships
* Use mutation to revoke authorized apps
* Use mutation for updating user settings
* Fix ids on activity tab; fix safe area view; fix mark viewed
* Limit fields for remote observation api call

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-10-31 20:39:38 -07:00
Angie
a9ca4ff02b Replacing styles/colors.js with tailwind theme colors. Closes #196. (#209)
* Replacing styles/colors.js with tailwind theme colors. Closes #196.
* Added tailwind colors alias into babel module resolver extension, changed tailwind-colors.js to tailwindColors.js.
2022-10-31 20:38:06 -07:00
Angie Ta
ef4be3b0b4 Updated the README with updated setup instructions. 2022-10-26 14:39:15 -07:00
Angie Ta
3177715142 Updated the README to include updated setup instructions. 2022-10-26 14:31:45 -07:00
Ken-ichi Ueda
575ab9391e v0.1.1+27 v0.1.1+27 2022-10-21 12:36:03 -07:00