Commit Graph
38 Commits
Author SHA1 Message Date
Johannes Klein c7be16fb13 Test for findActiveForObsField 2026-08-13 14:47:55 +02:00
Johannes Klein 54fb7cd866 Test isActive 2026-08-13 14:47:06 +02:00
Johannes Klein 101adc5fa7 Test that find OFV should find an OFV pending removal or deletion 2026-08-13 14:45:36 +02:00
Johannes Klein 3bf958968e test it leaves unchanged synced embed timestamps intact on re-edit 2026-08-13 13:43:45 +02:00
Johannes Klein e26242f7f4 test it writes re-selected POs as active embeds without tombstones 2026-08-13 13:43:45 +02:00
Johannes Klein d723cc2032 test it creates Realm tombstones from pending-removal OFVs 2026-08-13 13:43:45 +02:00
Johannes Klein 8deaa254bf Use factory 2026-08-13 13:43:45 +02:00
Johannes Klein 95a1b2fd3a test that saveLocalObservationForUpload creates Realm tombstones from pending-removal POs 2026-08-13 13:43:45 +02:00
Seth Peterson 61eaeb7b4e Merge pull request #3783 from inaturalist/taxon-mapper
Taxon mapper
2026-07-01 16:08:09 -05:00
Johannes KleinandJohannes Klein 6b4dc3e814 Use factories (#3788)
Co-authored-by: Johannes Klein <17345891+jtklein@users.noreply.github.com>
2026-07-01 20:38:18 +02:00
sepeterson a03794a3e8 rename to mapRealmToPojo 2026-07-01 12:48:06 -05:00
sepeterson 0baae9872a unit test 2026-06-30 15:44:56 -05:00
Johannes Klein 480df93597 Merge pull request #3765 from inaturalist/mob-1497-tpod-a4-download-mapping-for-remote-observations
Traditional projects: PO and OFV download mapping for remote observations
2026-06-29 19:16:30 +02:00
Johannes Klein 123e4d37d9 Remove lower case tests 2026-06-29 10:04:05 +02:00
Johannes Klein 2500378b8b Unit test for project realm persistance 2026-06-25 14:32:22 +02:00
Johannes Klein abb9240974 Unit test to map api project 2026-06-25 14:19:32 +02:00
Johannes Klein 898e00b72c Unit test to map POF 2026-06-25 14:16:17 +02:00
Johannes Klein 6646afdef1 Unit test for mapping of OF 2026-06-25 13:51:15 +02:00
Johannes Klein 5f20c52078 Update unit test 2026-06-24 17:56:50 +02:00
Johannes Klein cdc1e9613f Update unit test 2026-06-24 17:37:29 +02:00
Johannes Klein 79e321232c Unit test for upserting PO and OFVs 2026-06-24 14:46:15 +02:00
Johannes Klein 07e8de2add Update constructor use in test 2026-06-24 14:31:28 +02:00
Johannes Klein e6aa9dcbf1 Unit test for OFV mapping in Observation 2026-06-24 14:29:45 +02:00
Johannes Klein e6e7a3e914 OF and OFV factories and OFV map unit test 2026-06-24 14:26:47 +02:00
Johannes Klein b4db9c4105 Move api fields map test to PO test 2026-06-24 14:16:28 +02:00
Johannes Klein f6a8cd02ac Unit test for PO map 2026-06-24 14:07:11 +02:00
Johannes Klein 05b610cdfd Remove projectId from OFV realm
This was a mistake. I thought we'd need to tie an OFV to a specific PO/project, but they are global pieces of evidence at the time of making an observation.
2026-06-24 12:39:58 +02:00
Johannes Klein 19de77cd93 Remove commented out test 2026-06-22 12:54:46 +02:00
Johannes Klein 9171d05510 Tests for new 2026-06-22 12:53:06 +02:00
Johannes Klein 14509270f2 Some PO unit test for needing sync
We do already test the Observation but this is a bit more granular
2026-06-22 12:36:54 +02:00
Johannes Klein 2e337a0433 OFV unit tests 2026-06-22 12:22:43 +02:00
Johannes Klein 83e0623909 Observation unit tests 2026-06-22 12:17:38 +02: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
Ken-ichi 205122d74e Sound model (#1416)
* Sound model; refactor for basic sound creation and playback
* Fetch sound attribution and license_code fields
2024-04-18 12:07:20 -07:00
Ken-ichi f45108036f Sound recording (#1164)
* Added basic navigation test for StandardCamera & SoundRecorder
* Abstracted camera nav buttons and used in SoundRecorder
* Show sounds in the MediaViewer
* Added sounds to ObsEdit, w/ MediaViewer support
* Ensure sounds get both uploaded and added to observations
* Local sound deletion
* Remote sound deletion
* Rudimentary and deeply unperformative sound visualization

Closes #869
2024-02-22 22:02:25 -08:00
Ken-ichi e6b5cb8aa6 Obs details sounds (#1062)
* Extracted non-photo stuff from PhotoDisplay
* Separate component for FaveButton
* Prevent faves while signed out
* Separate component for nav header
* Stick nav header while scrolling until tabs
* Nav header has slight gradient for visibility over white content
* Renamed ObsDetails media components so they're not focused on photos
* Data and layout changes leading up to sound player on ObsDetail
* Add sound player to ObsDetails
* Swiping away while playing should pause playback
* Swiping back to sound and playing again should resume where you left off
* Allow viewing media while offline (images may be cached)
* Stop playback when navigating away from ObsDetails
* Fetch sounds in Explore so we can show sound icon
* Map all observation objects in explore with Realm-ish attributes
2024-01-22 13:12:01 -08:00
Ken-ichi 4e42ebc262 Community taxon opt out notice (#1060)
* Shows notice when user or obs is opted out of Community Taxon on ObsDetails
  (closes #882)
* Unifies mapApiToRealm methods around a single interface
* Ensure that the remote obs used on ObsDetail is normalized to look like a
  local obs
* Ensure some tests that use signIn() have isolated Realm instances
* Update current user's obs from ObsDetails (closes #1045) 
* Fixed CC0 license display on ObsDetails (was not actually related to
  updating the local copy of the obs
2024-01-18 20:16:30 -08:00
Ken-ichi Ueda 45657ce0f7 Don't POST observed_on with observations 2023-06-23 18:07:28 -07:00