737 Commits

Author SHA1 Message Date
Ryan Stelly
b78be9243d lint rule & autofix for "trailing comma" (#3299)
* (lint) MOB-1063 enforce trailing commas

* autofix trailing commas

* manually fix newly introduced maxlen violations

* add trailing comma convention to i18n build
2025-12-22 20:17:13 -06:00
sepeterson
ebaf672a20 Merge branch 'main' into mob-722-pt2 2025-12-18 10:35:53 -06:00
sepeterson
722edb2928 MOB-722: toBeVisible 2025-12-18 10:34:31 -06:00
sepeterson
8839c21c3a MOB-722: photo section test fixes 2025-12-18 10:20:26 -06:00
Seth Peterson
84d4e19329 Merge pull request #3295 from inaturalist/mob-722-pt1
MOB-722 Match screen unit tests part one
2025-12-18 09:22:21 -06:00
sepeterson
eb0191f2f5 MOB-722: toBeVisible 2025-12-17 13:24:28 -06:00
sepeterson
0558de720c MOB-722: unneeded beforeAll 2025-12-15 16:03:29 -06:00
sepeterson
92240bcb70 MOB-722: unclear wording 2025-12-15 15:41:08 -06:00
sepeterson
85163958ed MOB-722: unneeded mock 2025-12-15 15:38:36 -06:00
sepeterson
42c7beab45 MOB-722: unneeded beforeall 2025-12-15 15:33:44 -06:00
sepeterson
40a7f912dd MOB-722 use a test taxon where the common name does not contain the scientific name 2025-12-15 15:26:20 -06:00
sepeterson
4f54996951 MOB-722 saved match unit tests part 2 2025-12-12 15:44:55 -06:00
Johannes Klein
741f053716 Remove mock (#3287) 2025-12-12 21:02:54 +01:00
Abbey Campbell
2c6eb6622a Merge pull request #3271 from inaturalist/mob-963-change-slideover-menu-to-be-a-static-page
Mob 963 change slideover menu to be a static page
2025-12-12 10:27:37 -08:00
Corey Farwell
c36c94a5df Remove unneeded getImageDimensions helper function. (#3200)
* Remove unneeded `getImageDimensions` helper function.

The built-in React Native function has an `async` API that we can call directly.

* Legit test failure

* Import Image from React Native

* Prefer using styledComponents.Image.getSize

* Revert "Prefer using styledComponents.Image.getSize"

This reverts commit 103ca9b3ef.
2025-12-12 10:58:42 +01:00
sepeterson
282fcf9c21 MOB-722 match unit tests part one 2025-12-11 17:11:03 -06:00
Abbey Campbell
0c07017ac6 update testID 2025-12-11 14:17:39 -08:00
Abbey Campbell
f05d79be24 remove isTest flag, override bottom-tabs animation in jest setup, add comments to detox fix 2025-12-09 18:48:17 -08:00
Abbey Campbell
caca94fb48 update more tests and snapshots 2025-12-09 18:46:40 -08:00
Abbey Campbell
b8375e0254 update tests and snapshots 2025-12-09 18:46:40 -08:00
Seth Peterson
12db53e7d6 Merge pull request #3249 from inaturalist/mob-512-implement-saved-match-screen
MOB-512 saved match screen experience
2025-12-09 09:22:10 -06:00
sepeterson
7ea31b224e Merge branch 'mob-512-implement-saved-match-screen' of https://github.com/inaturalist/iNaturalistReactNative into mob-512-implement-saved-match-screen 2025-12-08 18:11:37 -06:00
sepeterson
0d42eab08a MOB-512 edit tests to rm unnecessary code, make consistent with greater test suite, and rm out of scope test 2025-12-08 18:10:32 -06:00
Johannes Klein
2a51f5ad9c Add a unit test for when taxon is undefined 2025-12-07 21:39:00 +01:00
sepeterson
dfcf12cc73 MOB-512 merge main 2025-12-04 21:31:43 -06:00
sepeterson
998f21a121 MOB-512 add map section tests 2025-12-04 21:23:13 -06:00
sepeterson
6c839f9036 MOB-512 rm silly import 2025-12-04 20:40:17 -06:00
sepeterson
ff4537dd62 MOB-512 first pass SavedMatch integraton 2025-12-04 20:33:04 -06:00
sepeterson
4d5bbfc584 Merge branch 'main' into mob-991-firebase-record-whether-or-not-the-user-has-given-location 2025-12-04 10:27:08 -06:00
sepeterson
57d5996736 MOB-512 add component test to check for correct savedMatch or obsDetail component 2025-12-03 18:02:28 -06:00
Abbey Campbell
2ee99d6c7b fix tests 2025-12-02 13:29:00 -08:00
Abbey Campbell
5a212adf6e update snapshots 2025-12-01 14:29:50 -08:00
sepeterson
ab96a0be89 Merge branch 'main' into mob-512-implement-saved-match-screen 2025-11-25 08:11:28 -06:00
sepeterson
403be86702 MOB-991 fix perf jest mock 2025-11-25 08:05:31 -06:00
Abbey Campbell
6ed6c2b31b comment tooltip tests back in 2025-11-21 12:33:04 -08:00
sepeterson
19cb7064a6 MOB-512 minimal unit test fix and prop spreading allowed for tests 2025-11-21 10:12:59 -06:00
Abbey Campbell
8b33319935 rename test files 2025-11-20 18:05:38 -08:00
Abbey Campbell
a23597f001 add back tooltip tests 2025-11-17 18:48:31 -08:00
Abbey Campbell
578f1d5ce4 fix tooltip implementation 2025-11-17 12:48:22 -08:00
Yaron Budowski
9c2facc680 MOB-925 - new designs for add-obs button sheet 2025-11-14 14:19:05 -08:00
sepeterson
fb4a994dd0 MOB-991 add jest mock for perf 2025-11-12 16:15:36 -06:00
Ryan Stelly
e4d3bd796c switch spy to mock 2025-11-07 11:55:09 -06:00
Ryan Stelly
7086d00d42 MOB-1000 mock user to fix unit test flake 2025-11-06 12:56:39 -06:00
Johannes Klein
6b21c914bf Remove expectation towards a no longer accessible prop 2025-10-28 21:53:01 +01:00
Corey Farwell
7a9fc4e647 Shutdown Realm after tests complete to avoid Jest open connections warning. (#3161) 2025-10-28 13:24:28 +01:00
Johannes Klein
bad9c5a4d8 Add firebase dependency, and basic logging (#3127)
* Update package.json

* Update AppDelegate.mm

* Update Podfile

* Update .gitignore

* Update link-inat-model-files.sh

* Add plist file to project

* Update project.pbxproj

* Add analytics package

* Update project.pbxproj

* Update PrivacyInfo.xcprivacy

* Basic screen tracking

* Basic button press logging to firebase

* Update package-lock.json

* Update Podfile.lock

* Add Android setup

* Update .gitignore

* Add analytics mock

* Ignore rubocop warning here

* Create GoogleService-Info.example.plist

* Create google-services.example.json

* Add instructions to set up Firebase configs

* Update e2e_ios.yml

* Update e2e_android.yml

* Better plural

* Use specific XCode version in e2e CI

* Update GoogleService-Info.example.plist

* Revert "Update GoogleService-Info.example.plist"

This reverts commit 0bc0ed4862.

* We need an actual real app id or we get a crash during app start

* My bad, we do need both files for building

* Also set API key

* Add comments

* Add comment

* Update Podfile.lock

* Revert "Use specific XCode version in e2e CI"

This reverts commit cbd63d1b5d.
2025-10-16 13:15:10 +02:00
Johannes Klein
b20a99adec Show offline profile picture in header (#3142)
* Rename file without changes

* Revert "Rename file without changes"

This reverts commit a3de5e100d.

* Rename file without changes

* Refactor InlineUserBase to TS

* Update component Props

* Import as type

* Check if the user displayed is the current user and if so

also display the user image while offline.

* Update src/components/SharedComponents/InlineUser/InlineUserBase.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update InlineUser.test.js

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-16 00:19:35 +02:00
Johannes Klein
6aa195ceaf Fix: Double border on user icon in Me tab (#3135)
* Use Image with nativewind styling instead of FasterImageView

* Update UserIcon.test.js.snap

* Update unit tests
2025-10-14 21:22:24 +02:00
Kirk van Gorkom
2e08467692 Prevent WebView iframe loads from updating source (#3107)
* Prevent WebView iframe loads from updating source

* Use request type directly from the library that provides this param

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-10-09 14:26:10 +02:00
Johannes Klein
9c90c2e45f Update react-native to 0.79 (#3051)
* Upgrade helper: package.json

* Upgrade helper: gems

* Upgrade helper: Android

* Update AppDelegate

* Fix error in compiling

* Update package-lock.json

* Update Podfile.lock

* Update package-lock.json

* Update Podfile.lock

* Remove no longer needed mock

* Comment out entire test and not only the expect call

* Most other unit tests use this render helper function that

wraps the component in the entire app.

* Mock react-native exports as esModule

* Update .flowconfig

* Update Gemfile

* Revert "Comment out entire test and not only the expect call"

This reverts commit 8785f81529.
2025-10-01 22:44:14 -05:00