Commit Graph
12 Commits
Author SHA1 Message Date
Abbey Campbell a84d2fb6d3 autofix array type definitions 2025-12-22 18:26:38 -08: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
Ryan StellyandJohannes Klein ca686f3c11 lint config for consistent import style (#3248)
* MOB-1008 add lint config for consistent ts imports

* auto-fix consistent imports

* auto-fix consistent imports

* reapply autofix from latest main

* Extend Props interface from PropsWithChildren

---------

Co-authored-by: Johannes Klein <johannes.t.klein@gmail.com>
2025-11-27 20:21:03 -06: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
Amanda Bullington 502393a5d1 Dev experience: linting for TypeScript (#2933)
* Change TS warning about unused variables to error & support _unused in catch blocks

* Use TS recommended object instead of Object

* Set Function issues to warnings in TS files for later fixing
2025-06-02 09:47:29 -07:00
Sylvain MorinandAmanda Bullington 1795cfd817 MOB-562 Common names are not translated until signup (#2785)
* MOB-562 Use device language for not logged user when requesting suggestions

* MOB-562 Use device language for not logged user when requesting suggestions

* MOB-562 Use device language for not logged user when requesting suggestions

* MOB-562 Use device language for not logged user when requesting suggestions

* Add locale checks for Explore ObsDetails and TaxonDetails

---------

Co-authored-by: Amanda Bullington <albullington@gmail.com>
2025-03-18 17:02:48 -07:00
Amanda Bullington b3d7368b21 Add error handling for 429 to React Query, including mutations (#2781)
* More error handling for 429 errors, including for mutations

* Handle 429 errors with react query; handle for mutations; include context

* Implement progressive backoff for retries
2025-03-17 16:18:54 -07:00
Ken-ichi fb7a9bb421 fix: allow Explore searches in places again (#2634)
* remove assumed and undocumented meaning of page being zero from our use of
  useInfiniteScroll in Explore; uses explicit type checks instead
* document byzantine pagination logic in useInfiniteExploreScroll
* fix broken infinite scroll when sorting by faves (was only showing first
  page)

The underlying problem from 96c316a was setting initialPageParam to 1 in
useAuthenticatedInfiniteQuery, which seems rational, except
useInfiniteExploreScroll was using a false-ish value of page to detect when
it was requesting its first page. This does the same by being more explicit
about page's type without injecting undocumented meaning into the params we
hand to useInfiniteScroll.

* refactor: move Explore page param munging into unit tested helper

Closes MOB-400
2025-01-23 17:32:27 -08:00
Ken-ichi 96c316a257 feat: show all results in Explore projects search (#2621)
* refactor: convert ExploreProjectSearch to TS and assoc'd TS changes
* feat: use infinite scroll in Explore Filters project search
* feat: show universal search results in Explore project search

This should show the same ranked search results a user would see at
https://www.inaturalist.org/search?source[]=projects

Closes MOB-313
2025-01-17 16:31:07 -08:00
Ken-ichi a02c7eb411 Clean out unused logging (#2417)
Closes #2155
2024-11-11 16:09:17 -08:00
Ken-ichi ddca126ed5 refactor: log around repeat errors (#2293)
* Catch and squelch "Network request failed" errors that happen during logging itself (#1639)
* Log around RNSI access to resolve when/where those errors occur (#1639)
* Log around JWT retrieval to resolve when/where JWT missing errors occur (#2155)
2024-10-22 15:41:54 -07:00
Amanda Bullington ec83bc8c7b Set online/offline status via event listener in React Query (#2047)
* Make sure reactQueryRetry is used for all queries, including infinite queries

* Code cleanup
2024-09-05 16:38:40 -07:00