Each app
The nine apps under Apps in the menu. For each one:
- what it does;
- where its data comes from;
- what people can change in the demo;
- how to connect it to a real backend.
App files live in src/screens/apps/.
About the demo data. Changes made in the demo (moving cards, sending messages, marking invoices paid, uploads) are kept in memory and reset on reload. That logic is in
data/api/store.ts. A real backend replaces it.
Kanban: /apps/kanban · apps/kanban.tsx
A drag-and-drop board per project, with a List view.
- Drag and drop: works with mouse, touch and keyboard. With the keyboard: Tab to a card, Space to pick it up, arrow keys to move it, Space to drop, Esc to cancel. Enter opens the card.
- Filters: search, Assignee, Label and Priority chips. Project switcher next to the title.
- Task drawer: status, priority, people, due date, checklist (ticking updates the card's 3/5), comments, delete.
- Phones show one column at a time, with a column switcher.
| Data | Function |
|---|---|
| Tasks | getTasks({ filters: { projectId } }) |
| Move a card | moveTask(id, status, index) |
| New task | createTask(input) |
| Edit, delete | updateTask, deleteTask |
| Checklist | getChecklist, setChecklist |
| Comments | getTaskComments, addTaskComment |
Change the columns: TASK_STATUSES in data/api/projects.ts (labels)
and COLUMN_COLOR in apps/kanban.tsx (dots). Add a status to TaskStatus
in data/types.ts too.
Labels: TASK_LABELS in apps/kanban/new-task-dialog.tsx.
Use the board for something else (deals by stage, hiring pipeline): the
board is the generic KanbanBoard block:
<KanbanBoard
columns={[{ id: "lead", title: "Lead", color: "var(--chart-1)" }, …]}
items={deals}
getId={(d) => d.id}
getColumn={(d) => d.stage}
onMove={(id, column, index) => moveDeal(id, column, index)}
renderCard={(d) => <DealCard deal={d} />}
/>
Real backend: in moveTask, send { status, index } to your API and
save the new order of the column. Pulze already updates the board straight
away and refreshes it after the server answers. If the call fails, the card
goes back and a toast says so.
Calendar: /apps/calendar · apps/calendar.tsx
Month, Week, Day and Agenda views, a mini month, calendar toggles, event details and "New event". Phones open on Agenda.
- Month: two events per day plus "+N more". Hover a day for its +, or double-click the day.
- Week and Day: a 07:00–21:00 grid with an all-day row. Click an empty slot to add an event at that hour. A red line shows the current time.
- Times are "floating": an event at 09:30 shows at 09:30 for everyone,
in any time zone. Stored as
"2026-11-26T09:30:00"(no zone).
| Data | Function |
|---|---|
| Events in a range | getEvents(from, to) |
| Add, delete | createEvent, deleteEvent |
| Calendars and colours | CALENDARS in data/api/calendar.ts |
Change the hours shown: HOURS in apps/calendar.tsx. First day of
the week: weekStartsOn in site.config.ts.
Real backend: Google Calendar, Microsoft Graph and CalDAV all return
start and end times. Convert them to local "floating" strings in
getEvents (or switch to zoned ISO strings and drop the floating helper).
Chat: /apps/chat · apps/chat.tsx
Conversations (pinned, direct and group), a thread with photos, files and reactions, and a details panel (shared photos and files).
- Enter sends; Shift+Enter adds a new line.
- Your message appears straight away (optimistic) and shows "Sent", then "Read".
- Opening a conversation marks it read and updates the menu badge.
- Demo only: the other person "types" and replies after a moment
(
simulateReply). Remove thesetTimeoutblock inThreadwhen you connect a real chat.
| Data | Function |
|---|---|
| Conversations with unread counts | getConversations(userId) |
| Messages | getMessages(conversationId) |
| Send, mark read | sendMessage, markConversationRead |
Real-time (Firebase example):
// Subscribe in the Thread component instead of useQuery:
useEffect(
() =>
onSnapshot(
query(collection(db, "conversations", conv.id, "messages"), orderBy("sentAt")),
(snap) =>
qc.setQueryData(
["messages", conv.id],
snap.docs.map((d) => ({ id: d.id, ...d.data() }))
)
),
[conv.id]
)
Pusher, Ably, Supabase Realtime and Socket.IO work the same way: push
incoming messages into the ["messages", id] query.
Mail: /apps/mail · apps/mail.tsx
Folders (Inbox, Starred, Sent, Drafts, Archive, Spam, Trash), labels, search, a reading pane and Compose.
- Archive and Delete: both offer Undo for 5 seconds. Select several messages with the checkboxes for bulk actions.
- Reply, Reply all, Forward: each opens Compose filled in. Compose checks addresses before sending; Esc closes it.
- Message bodies are plain text: a blank line starts a paragraph,
-starts a list item,>starts a quote.
| Data | Function |
|---|---|
| A folder or label | getMail({ folder, label, search }) |
| Unread counts | getMailCounts() |
| Read, star, move | updateMail(ids, patch) |
| Send | sendMail(draft, from) |
Labels and colours: LABELS in apps/mail.tsx.
Real backend: Gmail API (users.messages.list/get/modify/send),
Microsoft Graph, or any IMAP bridge. Map their messages to the Email type
in getMail. If you need HTML bodies, sanitise them (e.g. DOMPurify) before
rendering, and replace the Body component.
Invoices: /apps/invoices and /apps/invoices/:number
List (apps/invoices.tsx):
- totals by status (click a card to filter);
- status tabs, search, sort;
- bulk Mark paid and Export;
- Export CSV for the current view;
- New invoice, which saves a draft and opens it.
Single invoice (apps/invoice.tsx):
- a document that prints cleanly;
- Send invoice (drafts), Mark as paid, PDF, Pay link;
- an activity timeline;
- a "not found" page for wrong numbers.
Your company on invoices: everything comes from site.config.ts:
company: { name, email, address: [...], phone, taxId },
invoice: {
paymentInstructions: ["Acme Inc. · First Bay Bank", "Account ending 4821 · Routing on request"],
note: "Thank you for your business!",
taxRate: 0.18, // 18%
taxLabel: "GST (18%)",
termsDays: 30,
},
Logo on the invoice: set siteConfig.logo, or replace <PulzeMark /> in
apps/invoice.tsx.
PDF: the PDF button opens the browser's print dialog ("Save as PDF").
Only the invoice is printed: the .print-area rules in theme.css hide
everything else. For server-made PDFs (email attachments), render the same
markup with Puppeteer or Playwright, or rebuild it in @react-pdf/renderer.
| Data | Function |
|---|---|
| List, one | getInvoices, getInvoice(number) |
| Totals | getInvoiceTotals() |
| Status | setInvoiceStatus(number, status) |
| New draft | createInvoice(input) |
Payments: point "Pay link" at your Stripe Payment Link or Checkout session. Then mark invoices paid from the provider's webhook.
Users: /apps/users and /apps/users/:id
List (apps/users.tsx):
- totals: everyone, active now, pending invites, seats left;
- search; Role, Status and Plan filters; column picker;
- bulk Make editor, Email, Suspend, Remove (with Undo);
- Invite users: paste up to 50 addresses, then pick a role.
Profile (apps/user-profile.tsx):
- cover, role and status, Email and Message buttons;
- Overview: about, won this quarter, open deals, win rate, monthly bookings, recent activity;
- Deals and Tasks tabs;
- a "not found" page.
| Data | Function |
|---|---|
| Users | getUsers, getUser(id) |
| Invite | inviteUsers(emails, role) |
| Change, remove, undo | updateUsers, removeUsers, restoreUsers |
Seats: SEATS in apps/users.tsx. Roles: admin, editor,
viewer in data/types.ts. What each role can do is enforced by your
backend. See Authentication.
File manager: /apps/files · apps/files.tsx
Folders, recent files (list or grid), Starred, search, a details panel (sharing, copy link, download, delete with Undo), storage use, New folder and uploads.
- Upload: the Upload button, the drop box, or drop files anywhere on the
page. Each file shows its progress. Files over 2 GB (
MAX_UPLOAD) are refused with a message. - Demo only: the file's bytes never leave the browser; only its name and size are recorded.
| Data | Function |
|---|---|
| Folders, files | getFolders, getFiles({ folderId, starred, search }) |
| Storage | getStorage() and STORAGE_LIMIT |
| Upload, star, delete, undo | addFile, updateFile, deleteFiles, restoreFiles |
| New folder | createFolder |
Real storage (S3, Cloudflare R2 or Firebase Storage): in start(),
replace the simulated timer with a real upload:
- Ask your server for a signed upload URL.
PUTthe file to that URL, usingXMLHttpRequestso you getupload.onprogressand can setprogressfrom it.- Call your API to save the file record, which replaces
addFile.