App template
Helpdesk
Answer customers from one queue: every ticket against its SLA, replies and internal notes, macros and a drafted reply from the knowledge base, and reports on how fast and how well.
Use this template
Installs the whole app into your project: its pages, routes, services with sample data, agent tools and the browser entry. Every file is yours to edit.
npx shadcn@latest add checkfu/uicontext/helpdesk- Run itLoad from your page’s script. It builds the app with
createApp: the browser’s router, the agent tools, an offline notice, and sign-in when you turn it on. Inside an app that already routes, renderHelpdeskTemplate, which brings its own in-memory router. - Connect your backendEvery read and write goes through
Helpdeskin . Implement it over your API and pointHelpdeskLiveat your Layer. - Make it yoursPages are one file per route. Delete the ones you don’t need, and the sample data in .
Screens
Queue
/Views with counts, nearest SLA first, red once breached. j/k to move, a to assign, s for the status, e to solve, with Undo; select many to assign, tag or solve.
Ticket
/tickets/:idThe conversation with notes set apart, the reply box with macros, article links and the status it sets, the drafted reply with its sources, merge, who else is on it, and the rating once solved.
Customer
/customers/:idWho they are and where, their plan and what they’ve paid, and every ticket they’ve opened.
Organization
/orgs/:idThe account from support’s side: plan, seats, people and tickets.
Article
/articles/:idMarkdown beside its preview, saved as you pause, published to the help center replies link to.
Reports
/reportsFirst reply and resolution times, satisfaction, tickets by channel and the backlog, over any period.
Settings
/settingsSLA targets by priority, macros, the team and the channels.
Where your backend plugs in
Pages never call a backend. They read through the queries in queries/ and write through Commands kept beside the component that runs them; both capture the Helpdesk service. Implement its interface in over HTTP, a sync engine or a database client, then change one line:
export const HelpdeskLive = Helpdesk.sample
// becomes your Layer, such as
export const HelpdeskLive = Layer.effect(Helpdesk, makeHttpHelpdesk)The root provides it once, so every page shares one instance. Sign-in is one line: delete auth: false in once your backend serves the session routes, and the sidebar shows who signed in.
What to delete
- services/seed.ts, and Helpdesk.sample in services/Helpdesk.ts
- The drafted replies, if you have no model to write them: `answers` in services/Helpdesk.ts and the Suggest card in pages/ticket/TicketPage.ts
To drop a screen, delete its file in pages/ and its route in ; TypeScript points at every link that still prints it. The agent tools are in .