The desk's page, in TypeScript: a typed client for its API with its problem details as errors; the reply's event stream read from fetch as browsers read one; the chat, with each message put on the page as text and a log a screen reader can follow; a review of an assistant's chat; and a dashboard of usage and cost by UTC day, in a table a screen reader can read.
You build
api.ts, then stream.ts, then chat.ts, then desk_chat.ts, then dashboard.ts