Commit Graph
222 Commits
Author SHA1 Message Date
Seth Peterson bfec7984df MOB-1347: tests 2026-08-26 17:32:52 -05:00
Ryan Stelly 979cdec00d MOB-1713 disable android font padding for glyphs (#3985) 2026-08-26 17:21:08 -05:00
Ryan StellyandJohannes Klein 63da9cbcfb upgrade to nativewind@4 (#3826)
* nativewind 4 spike

* themed and cssInterop fixes

* clearify comment on inline Animated.View styles

* remaining style fixes and supplementary agent docs

* fix pill button on media screens

---------

Co-authored-by: Johannes Klein <17345891+jtklein@users.noreply.github.com>
2026-08-24 20:23:03 -05:00
Johannes Klein 1d79d581f5 Update snapshot test to have a primary action 2026-08-21 13:17:53 +02:00
Johannes Klein 98ec9a6760 Update TaxonResult.test.js 2026-08-21 11:23:54 +02:00
Johannes Klein 8d75d6282b Update TaxonResult.test.js.snap 2026-08-21 11:20:59 +02:00
Abbey Campbell 6a13ce2f60 update snapshots resulting from new icons 2026-08-06 23:21:40 -07:00
sepeterson eb16373985 MOB-1595: colocate regionFromBounds with getMapRegion 2026-08-04 12:05:53 -05:00
sepeterson e37bb30cf2 MOB-1595: merge main 2026-08-03 17:14:12 -05:00
sepeterson 67ed9c875c MOB-1595: redo search tests 2026-08-03 17:08:38 -05:00
Abbey Campbell bda96b9437 snapshot updates due to icon change 2026-07-29 21:44:21 -07:00
Seth Peterson 699d2bff16 Merge pull request #3820 from inaturalist/mob-1341-defaults
MOB-1341: ExploreV2 Location Defaults
2026-07-16 10:15:59 -05:00
sepeterson 995b370435 MOB-1341: new globe icon 2026-07-15 14:36:13 -05:00
Johannes Klein e9081f9345 Update ProjectListContainer.test.js 2026-07-10 20:30:11 +02:00
Johannes Klein 4417af4b62 Update ProjectListContainer.test.js 2026-07-10 13:44:34 +02:00
Seth Peterson 713d6cec0c Merge pull request #3794 from inaturalist/mob-1332-tab-changes
Mob 1332 tab changes
2026-07-06 09:43:32 -05:00
sepeterson 01c5ac77b2 MOB-1332: lil wrappers to dedupe translation 2026-07-02 15:25:59 -05:00
sepeterson 6bb3bf60f5 MOB-1332: allow a per-item render function in tabs 2026-07-02 14:54:28 -05:00
Johannes Klein c850beec5a Update icon snapshots 2026-07-01 15:51:34 +02:00
Johannes Klein 228059e6a9 Merge pull request #3761 from inaturalist/mob-1501-tpod-b1-obsedit-projects-row
ObsEdit projects row
2026-06-27 16:28:56 +02:00
Johannes Klein 06927bd9a8 Update icon snapshots 2026-06-25 19:04:06 +02:00
Johannes Klein 01813ef582 Update ProjectListContainer with new fields query key 2026-06-25 14:22:33 +02:00
sepeterson 64f05fa87d MOB-1338: test changes 2026-06-11 23:41:45 -05:00
sepeterson 43ec16302e MOB-1338: ContainedSquareButton test 2026-06-09 10:57:08 -05:00
Johannes Klein fab478db7a Add some radio button sheet unit tests 2026-05-21 17:28:07 +02:00
Johannes Klein 372326dbb0 Update radio values mock as to current prop structure 2026-05-21 17:14:49 +02:00
sepeterson 1c48dfe403 MOB-1224: flesh out unit test 2026-03-20 10:40:07 -05:00
sepeterson d6964b0e86 MOB-1224: first pass 2026-03-18 16:53:17 -05:00
Abbey Campbell a7f262d9d6 add mock for worklets and update snapshots 2026-03-11 13:06:09 -07:00
Abbey Campbell 6aeb7ca87b update snapshots 2026-03-09 19:46:40 -07:00
sepeterson 98845b0598 Merge branch 'main' into mob-968-add-edit-icon-to-top-right-of-match-screen-2 2026-02-04 10:30:04 -06:00
Abbey Campbell 409f0edace update snapshots 2026-01-15 13:32:06 -08:00
sepeterson cf5ab3abe2 MOB-968: test fix 2026-01-12 12:17:42 -06:00
sepeterson 20fd3559bb MOB-968: don't make user discard match for automatic obs updates 2026-01-12 11:55:29 -06:00
sepeterson 7bb9831198 MOB-1077: navigate back from obs edit discard changes for match flow 2026-01-05 10:20:29 -06:00
sepeterson 964451ae33 MOB-1077 better component name 2026-01-01 18:40:14 -06:00
sepeterson 02cbf91aa1 MOB-1077: rm SavedMatchHeaderRight and add unit tests 2025-12-29 14:03:00 -06:00
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
Abbey Campbell 5a212adf6e update snapshots 2025-12-01 14:29:50 -08:00
Johannes KleinandCopilot 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
Corey FarwellandJohannes Klein a43446909c Remove the need to specify TypeScript file extensions in imports (#3094)
* Don't require TS extensions in imports

* Resolve all import extension errors

* Remove file extension from import paths used in mocks

* Remove .d of type definition file paths

* Remove .d of type definition file and import as type

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-09-07 23:41:42 +02:00
Johannes Klein 49091f8fc4 Enable React Compiler (#3082)
* Update package.json

* Update package-lock.json

* Enable plugin

* Update package.json

* Update package-lock.json

* Update .eslintrc.js

* Create a new object instead of mutating the existing one

* Update SoundRecorder.js

* Do not mutate prop directly

* Do not mutate store value directly

* Disable compiler for zoom hook

Because it uses reanimated logic, and previous work laid out we should specifically disregard a rule of react here, unsure what to do here for now.

* Move array for tracking results into component

* Disable compiler for StandardCamera

* Do not mutate store value directly

* Disable compiler for FullPageWebView

* Do not mutate route param

* Remove unnecessary check if state is true before setting it to false

* Fix: user might be undefined

* Update reanimated usage with new compiler compliant API

* Fix: taxon might be undefined

* Fix: taxon might be undefined

* Fix: common pitfall of trying to render text outside of Text component

* Update interface

* Add package override

* Update package-lock.json

* Refactor updating of user preferences into User model

* Remove no memo directive from zoom

* Update file imports

* Migrate safeRealmWrite to TS

* Update interface and import path

* Update interface

* Refactor useLocaalObservation hook to not mutate return value of a function that should not be mutated

* Update tests to new return structure

* Remove useSafeRoute hook

We get the same information from error contexts and surrounding documents, and this hook was violating the rules of react by conditionally calling another hook.

* Use optional chaining

* Update TaxonNamesSetting.test.js

* Fix: use optional chaining

* Extend on RNTLs renderHook instead of re-implementing

* Remove unnecessary mock

* Remove unnecessary mock

* Remove unecessary mock

* Remove trailing spaces
2025-09-01 17:06:51 +02:00
Johannes Klein b4516b7b25 Update react native to v0.78.x (#3043)
* Update package.json

* Update package.json

* Updates for native files with upgrade-helpers

* Update .flowconfig

* Update package-lock.json

* Update Podfile.lock

* Add react-dom types

* Update package-lock.json

* Wrong install

* Use types-react-codemod

* Update TaxonSearch.tsx

* Remove react-native-accessibility-engine dependency

This is currently not maintained and not compatible with RN 0.78

* Comment out accessibility tests

* Disable broken snapshot test

* Move broken test

* Move broken test

* Move broken test

* Remove duplicate file

* Move broken tests

* Move broken tests

* Move broken tests

* Move broken tests

* Move broken tests

* Move broken test

* Remove duplicate file

* Move broken tests
2025-08-09 13:47:46 +02:00
Johannes Klein a618b6e870 Update react-native-testing-library to latest (#3044)
* Update package.json

* Update package-lock.json

* Update

* Update to v13

* Update package-lock.json

* Breaking change: remove extend-expect

* Latest version

* Update package-lock.json

* Breaking change: Removed Accessibility matcher

* Update Suggestions.test.js

* Update DisplayTaxonName.test.js

* Testing the same but differently phrased

* Not really needed to test this

And since not.toHaveTextContent stopped working I just remove it.

* Update useTaxonSearch.test.js

* Move broken tests into folders that are not run

* Only move single tests that are failing

* This does work after all

* Remove only single tests that are broken

* Only move failed tests

* Only move failed tests

* Only move failed tests

* Does not pass on CI only
2025-08-05 13:44:49 +02:00
Johannes Klein f10188250c Some Flow to Typescript migrations, in simple components (#3034)
* Update Attribution.tsx

* Update FollowButton.tsx

* Update LoginSheet.tsx

* Update UnfollowSheet.tsx

* Update UnfollowSheet.tsx

* Update EstablishmentMeans.tsx

* Update TaxonDetailsTitle.tsx

* Update Taxonomy.tsx

* Update TaxonMapPreview.tsx

* Update FullScreenActivityIndicator.tsx

* Update ActivityIndicator.tsx

* Update SpeciesSeenCheckmark.tsx

* Update Mortal.tsx

* Update HideView.tsx

* Update ConfidenceInterval.tsx

* Update ViewWrapper.tsx

* Update ScrollViewWrapper.tsx

* Update SimpleObservationLocation.tsx

* Update Divider.tsx

* Update DateTimePicker.tsx

* Update MediaNavButtons.tsx

* Update MediaNavButtons.tsx

* Update MediaNavButtons.tsx

* Update DisplayTaxon.tsx

* Update InputField.tsx

* Update InputField.tsx

* Update ObservationLocation.tsx

* Update WarningText.tsx

* Update LoadingIndicator.tsx

* Update CrosshairCircle.tsx

* Update CoordinatesCopiedNotification.tsx

* Update PhotoSharing.tsx

* Update TaxonDetailsMediaViewerHeader.tsx

* Update EvidenceButton.tsx

* Update TextSheet.tsx

* Update Wikipedia.tsx

* Update About.tsx

* Update About.tsx

* Update imports

* Code style
2025-08-01 12:25:46 +02:00
Johannes Klein f2145dc86d Update react-native-reanimated (#2987)
* Update package.json

* Update package-lock.json

* Update Podfile.lock

* Reactivate snapshot tests

* Update Podfile.lock
2025-06-27 15:29:21 -07:00
Johannes Klein 1f0300db57 Update react native to 0.76.9 (#2974)
* Changes according to the RN upgrade helper

* Update .flowconfig

* Update Gemfile.lock

* Fix typo in minimunSDK version specified

* Disable New Architecture

* Prefer double-quotes

* Update .flowconfig

* Update vision camera patch version number

* Update package-lock.json

* Update Podfile.lock

* Remove no longer needed mock
2025-06-27 14:13:23 -07:00
budowski 836438cd1e MOB-752 - use FasterImageView for caching obs/taxon/project images (#2887) 2025-06-26 11:10:01 -07:00
Johannes Klein b9b58bdfc4 Update react-native-reanimated to version 3.16.6 (#2957)
* Use updated version

Version 3.16.0 introduces support for RN 0.76. 3.16.7 introduces support vor RN 0.77 so I decided for 3.16.6 for now.

* Update package-lock.json

* Update Podfile.lock

* Update UploadStatus.test.js.snap

* Comment out snapshot tests

* Comment out snapshot tests
2025-06-16 10:56:52 -07:00