Commit Graph

4199 Commits

Author SHA1 Message Date
Johannes Klein
5a2e61da4a Rename workflow steps 2022-12-11 22:25:41 +01:00
Ken-ichi Ueda
f442603e7a Disable unnecessary API requests on My Obs when signed out
Also added a signOut test helper... and maybe have introduced some problems
with parallel test execution as a result, as parallel jest runs don't seem to
totally separate with regards to the in-memory realm db. Something to think
about.
2022-12-09 19:39:13 -08:00
Amanda Bullington
8d738d9d8c Delete observations from ObsEdit (#277)
* Remove delete option for observations not in realm
* Add mutation for delete observation
* Hide delete option for observations not persisted to realm
* Close kebab menu when item pressed; this allows dialog to respond to first user
   press

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-12-09 17:36:47 -08:00
Amanda Bullington
0e0822c88d Change navigation if obs is unsynced; closes #282 (#288) 2022-12-09 16:56:48 -08:00
Angie
c8b5804735 203 add placeholder images on my obs and obs detail when no media (#265)
* Add placeholder images on MyObs and ObsDetail when no media. Closes #203.
* Add placeholder image for GridItem when no media
2022-12-09 16:15:34 -08:00
Amanda Bullington
0d69fe1568 Fetch user locale from server and change language (#255)
* Fetch user from server, set locale in realm and change language with i18next
* Added some Spanish translations so I can see localization working
* config QueryClient with `cacheTime: Infinity` to deal with "Jest did not
  exit" errors

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-12-09 15:51:17 -08:00
Amanda Bullington
8a92fca2e8 Update obs list to use React Query, fetch observations via id_below (#273)
* Rewrite remote observation & update fetching using useQuery in ObsList
* Fix ObsList test by adding query provider
* Add padding to infinite scroll view indicator
* Only set next uuid for obslist if not still loading results from last api call
* Improve how ObsList works when observations don't fill screen
* Remove explore, explore provider, dropdown menu, and related screens; fix tests
* Move setIdBelow function into onEndReached
2022-12-09 12:17:26 -08:00
Amanda Bullington
fb4bf79878 Increase pressable area for organisms on Add ID (#285)
* Tailwind styling

* Create pressable area around taxon image and names
2022-12-09 10:59:15 -08:00
Amanda Bullington
84ba28114b Hide flash button if device doesn't have flash; use colors instead of useTheme for styling (#276) 2022-12-08 14:42:15 -08:00
Angie
defea9d2cc Text overflow in AddID results. Closes #232. (#269) 2022-12-07 16:15:53 -08:00
Angie
4b824983be 216 remove excess space below the tab bar (#257)
* Remove excess space below tab bar. Closes #216.
* Customize footer classname by OS
2022-12-07 15:32:39 -08:00
Ken-ichi Ueda
53b4bd1dca Updated app icon 2022-12-07 12:11:12 -08:00
Angie
21a49aa903 Dont fetch location for existing observations (#256)
* Tests for fetch location for existing observations ObsEdit. Closes #199.
* Fixed a bug fetching location for existing obs that weren't synced

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-12-06 23:36:08 -08:00
Angie Ta
a0ea8b17ee Installed legacy peer deps for picker-select for ObsEdit to work on main. 2022-12-06 14:53:42 -08:00
Johannes Klein
3b08b6a0ca Enable CI testing 2022-12-06 12:09:33 +01:00
Johannes Klein
66e890e198 Cache ci node modules (#261) 2022-12-05 18:58:12 -08:00
Amanda Bullington
fcbe56cc35 Show input fields above keyboard on Login Screen (#251)
* Remove TranslatedText component from Button and pass in translation strings via props
* Fix rendering of bottom sheets
* Move inputs and login button above keyboard on focus
* Fix styling for scrollbar
2022-12-05 17:35:04 -08:00
Amanda Bullington
8b7c98d04b Fully delete photos from ObsEditContext when adding evidence (#248)
* Remove photos from all relevant contexts when adding evidence and then deleting photos
* Update permissions library to fix iOS build errors:
* Use RN modal to gain access to context; move delete functionality into ObsEditProvider
2022-12-05 17:13:31 -08:00
Johannes Klein
5174c75bc7 Update test matcher to accommodate possible splash screen in future 2022-12-05 18:09:06 +01:00
Johannes Klein
4617d5fb3d Update e2e.md 2022-12-05 17:53:31 +01:00
Johannes Klein
eb1badd233 Update README.md 2022-12-05 17:17:04 +01:00
Johannes Klein
8e75f9327a Update README.md 2022-12-05 16:14:37 +01:00
Johannes Klein
8c005c47dc Comment out CI workflow 2022-12-05 16:11:53 +01:00
Johannes Klein
8909f6c1c3 Only use CI on pull requests 2022-12-05 16:07:52 +01:00
Johannes Klein
8dc25ff18d Update e2e.yml 2022-12-05 15:12:41 +01:00
Johannes Klein
528138bb0a Update README.md 2022-12-05 15:05:21 +01:00
Johannes Klein
46fdcece25 Update e2e.yml 2022-12-05 14:41:49 +01:00
Johannes Klein
a2ae2c4b27 Update e2e.yml 2022-12-05 14:21:04 +01:00
Johannes Klein
29a72f9c64 Update e2e.yml 2022-12-05 14:13:37 +01:00
Johannes Klein
c0ae9ae6f1 Update e2e.yml 2022-12-05 14:12:00 +01:00
Johannes Klein
3ddd519693 Test on push 2022-12-05 14:06:46 +01:00
Johannes Klein
6b7352f21f Testing e2e on GitHub Actions 2022-12-05 14:06:10 +01:00
Johannes Klein
8f57c5d1bf Add config for debug build 2022-12-05 14:05:32 +01:00
Johannes Klein
8575d7fdc1 Rename scripts 2022-12-05 14:05:05 +01:00
Johannes Klein
74c91c853f Merge branch '250-e2e-init' of https://github.com/inaturalist/iNaturalistReactNative into 250-e2e-init 2022-12-04 18:58:05 +01:00
Johannes Klein
0aab6108d9 Merge pull request #260 from inaturalist/e2e-init
E2e init
2022-12-04 18:57:42 +01:00
Johannes Klein
57142e0fa8 Remove Android configuration, not working 2022-12-04 18:55:36 +01:00
Johannes Klein
7898c826d9 Switch to Release variant for testing 2022-12-04 18:52:39 +01:00
Johannes Klein
29580bba59 Add scripts 2022-12-04 18:51:49 +01:00
Amanda Bullington
b88030eab2 Allow existing id to be edited in ObsEdit (#242)
* Allow editing of existing id; remove unused id buttons; closes #230 and closes #231
* Remove unused text component & update IdentificationSection to tailwind css
* Remove unused obsEdit styles; convert styles to tailwind
* Remove unused bottom modal component and obsedit stylesheet
* Add comments to useEffect for opening local observation; convert realm object to JSON
* ObsEdit loads obs from db only when required
* Use observation update API call for observations already on the server
* Change wasSynced to instance method; only upload unsynced evidence
* Move keyboard aware scroll mock to jest.setup
* Await uploading evidence instead of returning a different response

Co-authored-by: Ken-ichi Ueda <kenichi.ueda@gmail.com>
2022-12-03 15:32:44 -08:00
Johannes Klein
d783a6a4d4 Revert to jasmine2 test-runner for not e2e 2022-12-03 13:33:46 +01:00
Johannes Klein
5bcbf9d505 Create addObservationWithoutData.e2e.js 2022-12-03 13:16:29 +01:00
Johannes Klein
4eecab46d5 Add testIDs 2022-12-03 13:16:23 +01:00
Johannes Klein
8ae7f7199b Add detox configs 2022-12-03 13:16:16 +01:00
Johannes Klein
005bbe8f01 Add detox and jest-circus 2022-12-03 13:16:08 +01:00
Johannes Klein
60e9653767 Update Readme 2022-12-03 13:14:46 +01:00
Johannes Klein
c815f3399c Revert "Create addObservationWithoutData.e2e.js"
This reverts commit b888e7fe25.
2022-12-03 13:14:09 +01:00
Johannes Klein
f5cc15b5de Revert "Add testIDs"
This reverts commit 3daaf2ec3f.
2022-12-03 13:14:06 +01:00
Johannes Klein
01ef8608eb Revert "Add detox configs"
This reverts commit 9a815d7f96.
2022-12-03 13:14:04 +01:00
Johannes Klein
2533f94e08 Revert "Add detox and jest-circus"
This reverts commit 439f1dc994.
2022-12-03 13:13:59 +01:00