Commit 2cced370 authored by Christos Tranoris's avatar Christos Tranoris
Browse files

updated doc

parent 95b4870c
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for AGENTS.md: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ Reference documents (kept in repo root):
- `chronos-ui-requirements-v0.1.md` — Functional requirements R1–R19 + NFRs (EARS format).
- `chronos-ui-design-v1.2.md` — Hexagonal architecture, codec boundary, ADRs.
- `chronos-ui-implementation-plan-v0.2.md` — Epics/tasks with dependency ordering.
- `.changelog` — One dated markdown file per completed task (`yyyymmdd_hhmm_title.md`), indexed by `.changelogindex.md`. Add a new doc + index entry when completing a unit of work.
- `.changelog` — One dated markdown file per completed task (`yyyymmdd_hhmm_title.md`), indexed by `.changelog/index.md`. Add a new doc + index entry when completing a unit of work.

## Stack

@@ -136,7 +136,7 @@ Keep `buildTimeEnv` using dotted `import.meta.env.X` access (Vite static replace

## Containerization & build gotcha

- `Dockerfile` (multi-stage Node→nginx), `docker-compose.yml`, `nginx.conf` (SPA fallback + `/healthz`), `docker-entrypoint.sh`. See `.changelog/guides/operations-guide.md` §3a.
- `Dockerfile` (multi-stage Node→nginx), `docker-compose.yml`, `nginx.conf` (SPA fallback + `/healthz`), `docker-entrypoint.sh`. See `docs/operations-guide.md` §3a.
- **`npm run build` (`tsc -b && vite build`) currently fails** on pre-existing MUI v9 theme typing errors (`colorSchemes`/`colorSchemeSelector`/`theme.vars` in `src/ui/theme.ts` + theme/token tests) — unrelated to most changes. `vite build` alone succeeds, so the Docker image runs `npx vite build` directly. `npm run typecheck` is a **no-op** (root `tsconfig.json` has `files: []`); the real type gate is `tsc -b`. Fix the theme types to unbreak `npm run build`.

## Testing
+18 −18
Changes for README.md: 18 added lines, 18 removed lines.
Original line number Diff line number Diff line
@@ -15,12 +15,12 @@ an operation in [`api-docs.json`](api-docs.json).

| You are a… | You can… | Start here |
|---|---|---|
| **Administrator** | Manage the scheduling substrate: resource pools, memberships, calendars, blackouts, and operational health flags | [Administrator Guide](.changelog/guides/administrator-guide.md) |
| **Reservation Requester** | Search availability, check feasibility, place and modify reservations, assess service-order fulfilment | [Requester Guide](.changelog/guides/requester-guide.md) |
| **Auditor** | Review reservation activity, inconsistency flags, and global statistics (read-only) | [Auditor Guide](.changelog/guides/auditor-guide.md) |
| **Developer** | Build, test, and extend the UI | [Developer Guide](.changelog/guides/developer-guide.md) |
| **Operator / DevOps** | Configure, deploy, and run the app and its Keycloak client | [Operations Guide](.changelog/guides/operations-guide.md) |
| **API integrator** | Understand the REST surface the UI consumes | [REST API Guide](.changelog/guides/api-guide.md) |
| **Administrator** | Manage the scheduling substrate: resource pools, memberships, calendars, blackouts, and operational health flags | [Administrator Guide](docs/administrator-guide.md) |
| **Reservation Requester** | Search availability, check feasibility, place and modify reservations, assess service-order fulfilment | [Requester Guide](docs/requester-guide.md) |
| **Auditor** | Review reservation activity, inconsistency flags, and global statistics (read-only) | [Auditor Guide](docs/auditor-guide.md) |
| **Developer** | Build, test, and extend the UI | [Developer Guide](docs/developer-guide.md) |
| **Operator / DevOps** | Configure, deploy, and run the app and its Keycloak client | [Operations Guide](docs/operations-guide.md) |
| **API integrator** | Understand the REST surface the UI consumes | [REST API Guide](docs/api-guide.md) |

Roles come from Keycloak (`chronos.admin`, `chronos.requester`, `chronos.auditor`).
A user may hold several; the UI shows the union of what they permit. UI role
@@ -38,8 +38,8 @@ npm install
npm run dev                # http://localhost:5173
```

See the [Developer Guide](.changelog/guides/developer-guide.md) for the full workflow
and the [Operations Guide](.changelog/guides/operations-guide.md) for deployment.
See the [Developer Guide](docs/developer-guide.md) for the full workflow
and the [Operations Guide](docs/operations-guide.md) for deployment.

## Run with Docker

@@ -55,7 +55,7 @@ docker compose up -d --build # UI on http://localhost:8080, health at /heal
```

Details (plain `docker run`, how runtime injection works, caching) are in the
[Operations Guide](.changelog/guides/operations-guide.md#3a-docker-recommended).
[Operations Guide](docs/operations-guide.md#3a-docker-recommended).

## Environment variables

@@ -108,24 +108,24 @@ Adapters (src/adapters)
Chronos /api/v1/*
```

The deep dive lives in the [Developer Guide](.changelog/guides/developer-guide.md) and
The deep dive lives in the [Developer Guide](docs/developer-guide.md) and
[`chronos-ui-design-v1.2.md`](chronos-ui-design-v1.2.md).

## Documentation map

- **Guides** ([.changelog/guides/](.changelog/guides/))
  - [Developer Guide](.changelog/guides/developer-guide.md) — setup, architecture, conventions, testing
  - [REST API Guide](.changelog/guides/api-guide.md) — the `/api/v1` surface, auth, error model, codec quirks
  - [Administrator Guide](.changelog/guides/administrator-guide.md) — pools, memberships, calendars, blackouts, flags
  - [Requester Guide](.changelog/guides/requester-guide.md) — availability, holds, reservations, modifications, assessment
  - [Auditor Guide](.changelog/guides/auditor-guide.md) — activity, flags, statistics
  - [Operations Guide](.changelog/guides/operations-guide.md) — deployment, Keycloak, configuration
- **Guides** ([docs/](docs/))
  - [Developer Guide](docs/developer-guide.md) — setup, architecture, conventions, testing
  - [REST API Guide](docs/api-guide.md) — the `/api/v1` surface, auth, error model, codec quirks
  - [Administrator Guide](docs/administrator-guide.md) — pools, memberships, calendars, blackouts, flags
  - [Requester Guide](docs/requester-guide.md) — availability, holds, reservations, modifications, assessment
  - [Auditor Guide](docs/auditor-guide.md) — activity, flags, statistics
  - [Operations Guide](docs/operations-guide.md) — deployment, Keycloak, configuration
- **Specifications** (repo root)
  - [`chronos-ui-requirements-v0.1.md`](chronos-ui-requirements-v0.1.md) — functional requirements R1–R19
  - [`chronos-ui-design-v1.2.md`](chronos-ui-design-v1.2.md) — architecture and ADRs
  - [`chronos-ui-implementation-plan-v0.2.md`](chronos-ui-implementation-plan-v0.2.md) — epics and tasks
  - [`api-docs.json`](api-docs.json) — the OpenAPI 3.0.1 contract
- **Change log** — [`.changelogindex.md`](.changelogindex.md) — one dated entry per completed task
- **Change log** — [`.changelog/index.md`](.changelog/index.md) — one dated entry per completed task
- **Containerization** — [`Dockerfile`](Dockerfile), [`docker-compose.yml`](docker-compose.yml), [`nginx.conf`](nginx.conf), [`docker-entrypoint.sh`](docker-entrypoint.sh)
- **For AI coding agents** — [`CLAUDE.md`](CLAUDE.md)

+1 −1
Changes for docs/api-guide.md: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@

How the UI consumes the Chronos REST surface, and a reference to the operations
behind each screen. The authoritative contract is
[`api-docs.json`](../../api-docs.json) (OpenAPI 3.0.1). This guide is a map and a
[`api-docs.json`](../api-docs.json) (OpenAPI 3.0.1). This guide is a map and a
field-notes companion to it — when they disagree, the contract wins.

> The UI talks to Chronos **only** through `/api/v1/*`. There is no other backend

File moved.

Loading