Skip to content
Myr

today.ts

This file

Path

apps/web/src/client/today.ts

15 lines · 488 bytes · TypeScript

Last changed by

Merge build/comments-web-rest into mainoscabrielbefore adoption0eb1248

History of this file

Take it

The walk stopped after 200 commits: lines older than 678c8b8 point at it.

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

line 1why, one step back
1import type { ProjectName } from "@repo/protocol/ids";

Merge build/1224-decider-pagesoscabrielbefore adoptiond22b7a2

line 2why, one step back
2import { Atom } from "effect/reactivity";

Merge build/614-env-service: deciders set write-only values for @sensitive items, the public sees the env shape, and checks see only placeholdersoscabrielbefore adoption678c8b8

lines 3–6why, one step back
3
4import { ContractsClient } from "../surfaces.ts";5import { keys } from "./keys.ts";6

Merge build/1224-decider-pagesoscabrielbefore adoptiond22b7a2

lines 7–15why, one step back
7const todayFamily = Atom.family((project: ProjectName | undefined) =>
8 Atom.withServerValueInitial(9 ContractsClient.query("today", project === undefined ? {} : { project }, {10 reactivityKeys: keys.today(),11 })12 )13);1415export const todayAtom = (project?: ProjectName) => todayFamily(project);