Built with stubsTypeScriptdomainuiserver

Project Showcase

src/features/project-showcase

Displays a filterable grid of projects with descriptions, images, tech stacks, and links to live demos or repositories.

Brick

  • __tests__/

  • domain/

  • host/

  • server/

  • testing/

  • ui/

Host adapter (not part of the brick)

domain/index.ts
1/**
2 * The pure entrypoint: types and logic with no React and no I/O. Importable
3 * from both server and client code.
4 */
5
6export type { Project, ProjectStatus, ListProjectsInput, GetProjectInput, CreateProjectInput, UpdateProjectInput, DeleteProjectInput, MarkProjectInProgressInput, MarkProjectPlannedInput } from './types';
7export { ProjectShowcaseError, NotImplemented } from './errors';
8export type { ProjectShowcaseErrorCode } from './errors';
9export { initialProjectStatus, canProject, transitionProject, availableProjectEvents } from './lifecycle';
10export type { ProjectEvent } from './lifecycle';
11

Requirements

  • ✓

    REQ-2Get a project by id returns the project

    ✓ [REQ-2] Get a project by id returns the project #1

  • ✓

    REQ-3Get a non-existent project throws NOT_FOUND

    ✓ [REQ-3] Get a non-existent project throws NOT_FOUND #1

  • !

    REQ-4Create a new project with all fields

    … [REQ-4] Create a new project with all fields #1 (not implemented: slot createProject) · createProject was not implemented within budget.

  • !

    REQ-5listProjects returns a list of projects filtered by the input filter (if provided) or all projects otherwise.

    … [REQ-5] listProjects returns a list of projects filtered by the input filter (if provided) or all projects otherwise. #1 (not implemented: slot listProjects) · … [REQ-5] listProjects returns a list of projects filtered by the input filter (if provided) or all projects otherwise. #2 (not implemented: slot listProjects) · … [REQ-5] listProjects returns a list of projects filtered by the input filter (if provided) or all projects otherwise. #3 (not implemented: slot listProjects)

  • ✓

    REQ-6Update an existing project with partial fields returns the updated project

    ✓ [REQ-6] Update an existing project with partial fields returns the updated project #1

  • ✓

    REQ-7Update a non-existent project throws NOT_FOUND

    ✓ [REQ-7] Update a non-existent project throws NOT_FOUND #1

  • ✓

    REQ-8Delete an existing project returns its id

    ✓ [REQ-8] Delete an existing project returns its id #1

  • ✓

    REQ-9Delete a non-existent project throws NOT_FOUND

    ✓ [REQ-9] Delete a non-existent project throws NOT_FOUND #1

  • ✓

    REQ-10Mark a completed project as inProgress returns the updated project

    ✓ [REQ-10] Mark a completed project as inProgress returns the updated project #1

  • ✓

    REQ-11Mark a non-existent project throws NOT_FOUND

    ✓ [REQ-11] Mark a non-existent project throws NOT_FOUND #1

  • ✓

    REQ-12Mark a project that is not in completed status throws INVALID_TRANSITION

    ✓ [REQ-12] Mark a project that is not in completed status throws INVALID_TRANSITION #1

  • ✓

    REQ-13Mark an inProgress project as planned returns the updated project

    ✓ [REQ-13] Mark an inProgress project as planned returns the updated project #1

  • ✓

    REQ-14Mark a non-existent project throws NOT_FOUND

    ✓ [REQ-14] Mark a non-existent project throws NOT_FOUND #1

  • ✓

    REQ-15Mark a project that is not in inProgress status throws INVALID_TRANSITION

    ✓ [REQ-15] Mark a project that is not in inProgress status throws INVALID_TRANSITION #1

  • ✓

    GATE-PORTABLESelf-contained: relative imports only, nothing escapes the brick (R1–R6)

    brick-lint + builder harness

  • ✓

    GATE-CONTRACTVendored host contract is byte-identical (R8)

    sha-256 comparison

  • ✓

    GATE-TYPESTypechecks under the strictest-superset tsconfig

    in-process tsc

  • ✓

    GATE-TESTSShips its own tests and they pass (R12)

    20 passing

  • ✓

    GATE-LIFECYCLE-PROJECTProject.status only changes through declared transitions

    8 generated lifecycle tests

Built 28/10/2026, 14:21:49 by Ada Lovelace · 20 tests passing · operations by openrouter