mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
Connect, status, places, settings, test, sync and disconnect replace their stubs. A nightly job (03:20) and the connect backfill read the timeline, visits and residency endpoints through safeFetch and store one row of daily values per local day: distances, places visited, minutes away from the home place and the sealed country with its travel-day verdict. A private instance needs its exact origin in DAWARICH_PRIVATE_ORIGINS. The connection joins the shared ledger and the connection health model, watched for errors only. The day carries a movement block, the model projection drops the travel country, the two movement channels join the correlation matrix under the environment module, travel days become trip suggestions, and the days travel in the environment backup section.
23 lines
942 B
TypeScript
23 lines
942 B
TypeScript
/**
|
|
* Query keys — environmental-context module (v1.25, W-ENV). The overview
|
|
* (home + travel overrides + stored-day summary) and the geocoding search.
|
|
* Part of the centralized factory; aggregated in `./index.ts`.
|
|
*/
|
|
export const environmentKeys = {
|
|
/**
|
|
* `environment()` is the root prefix every environment write (set home, add /
|
|
* remove a travel override, trigger a backfill) invalidates through, so the
|
|
* settings surface repaints in lockstep.
|
|
*/
|
|
environment: () => ["environment"] as const,
|
|
/** Geocoding search results for a query string (cached per query). */
|
|
environmentGeocode: (query: string) =>
|
|
["environment", "geocode", query] as const,
|
|
/**
|
|
* v1.43 — trips suggested from Dawarich travel days. Under the root prefix,
|
|
* so adding a trip (which covers a suggestion) refreshes the list too.
|
|
*/
|
|
environmentTravelSuggestions: () =>
|
|
["environment", "travel-suggestions"] as const,
|
|
};
|