front-page.ts
This file
Path
packages/project/src/front-page.ts
31 lines · 1.2 KiB · TypeScript
Last changed by
Merge redesign into mainoscabrielbefore adoptioncaedd21
History of this fileTake 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
lines 1–5why, one step back1import type { Reserve } from "@repo/protocol/domain/ask";2import type {3 FrontPageEntry,4 ProjectListing,5} from "@repo/protocol/domain/front-page";Merge redesign into mainoscabrielbefore adoptioncaedd21
line 6why, one step back6import type { RecentLanding } from "@repo/protocol/domain/recent-landing";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 7–19why, one step back7import type { CreditSummary } from "@repo/protocol/domain/record";8import type { Handle, KindName } from "@repo/protocol/ids";9import { Context } from "effect";10import type { Effect } from "effect";1112export interface FrontPageFilter {13 readonly kind?: KindName;14 readonly reserved?: Reserve;15}1617export class FrontPage extends Context.Service<18 FrontPage,19 {Merge build/comments-project into mainoscabrielbefore adoption49efd2a
line 20why, one step back20 /** A listing's `posture` is a fallback only: callers read each project's own ledger (`withStandingPosture`). */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 21–27why, one step back21 readonly projects: () => Effect.Effect<readonly ProjectListing[]>;22 readonly entries: (23 filter: FrontPageFilter24 ) => Effect.Effect<readonly FrontPageEntry[]>;25 readonly credits: (26 handle: Handle27 ) => Effect.Effect<readonly CreditSummary[]>;Merge redesign into mainoscabrielbefore adoptioncaedd21
lines 28–29why, one step back28 /** The latest landings and refused answers across projects, the latest first, at most `RECENT_LANDINGS_CAP`: read from what is kept, never by replaying a project. */29 readonly recentLandings: () => Effect.Effect<readonly RecentLanding[]>;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 30–31why, one step back30 }31>()("project/FrontPage") {}