Why Time Entries Belong to a Task — Not to a Project or a Client - MinuteShark

Engineering

Why Time Entries Belong to a Task — Not to a Project or a Client

Time tracking on tasks looks like extra clicking until Friday. The obvious schema is a duration on the logo: eight hours on Contoso. Or a duration on the folder: eight hours on Website Redesign. That model survives a demo. It dies the first week a freelancer has to explain whether those eight hours were kickoff, implementation, a standup, or a rescue — and the invoice has nothing honest to print except a blob.

MinuteShark stores time on a task. The catalog is Workspace → Client → Project → Task → Subtask. Entries belong to the task, including when that task is a leaf under a parent with subtasks. Reports can still roll up to the project and the client. Invoices can still stay coarse. The clock itself refuses to live on the folder. This post is why we refused the blob — not a tour of every field on a task.

The product bet: a duration on a client is a nickname for a week. A duration on a task is a unit you can name, split, lock, and reprint. Roll-ups are views. The entry is the truth.

Why a duration on the folder lies on day three

Independent work is not one verb. A website redesign contains discovery, implementation, meetings, support, and the quiet hour you spent waiting on access. If the only place a duration can live is “this project,” you get one of three hacks, all of them bad.

  • Overwrite the story. Tuesday’s kickoff and Thursday’s bugfix both become “Website Redesign.” Next month you cannot tell which part exploded. The estimate vs actual conversation has no nouns.
  • Clone the project. “Website Redesign — meetings” as a fake folder so the hours can differ. Reports’ What dimension becomes a costume party. Trackers that watch one project against a budget now watch a splinter.
  • Type the explanation on the invoice and nowhere else. The PDF is literature. The next report cannot pivot by task because the database never knew the task existed.

We already argue, on the consultant side, that Jira issue keys make terrible invoice line items. Engineering has a sibling problem: the database should not pretend a ticket ID or a project name is the billable unit. Clients buy work they can recognize. Tasks are how you keep that recognition without stuffing a tracker key into the PDF.

Meetings-on-Implementation made the lie obvious. If code and standups share one task, you will not see which part ate the week. We wrote the catalog version of that split; the schema version is this article. Time on the client is worse. It is a week with the logo peeled off.

What the hierarchy actually is in the app

On the client, MinuteShark is an Ionic + Angular 16 app. Capacitor 7 wraps the same workspace on iOS and Android. The catalog and the time entries live in Firebase (Auth, Firestore, Functions). Algolia powers the giant search so you can find — and start — a task without walking the tree. Chart.js draws the report after you generate What × Who × When. None of those libraries needs a duration hanging off the client record. They need a leaf that already knows its parents.

Onboarding is the schema in four taps: Add Client → Add Project → Add Task → Start Task. We did not ship “start the clock on a logo” as a shortcut because the shortcut becomes the data model. Starter already allows unlimited project tasks; subtasks are a Standard+ leaf under a parent. Time still belongs to the leaf. A parent with subtasks is a folder for work, not a bucket for hours. Assignees live on leaf work for the same reason — we will not pretend a parent can be “in progress” while its children disagree.

Why the timer, the AI, and the invoice all point at the same leaf

If the sidebar timer stored a project id, History stored a client id, and Generate Invoice grouped by a typed label, you would get three truths. Start/stop from dashboard search, the to-do widget, the project task list, and the active timer sidebar all start a task. Click the clock to edit start and end — still on that task. Lock or close the task to prevent further tracking without deleting the history. The getting started path is this leaf, not a project-level ghost clock.

MinuteShark AI talks in the same nouns. Official utterances log time on a named task (“Log 1 hour on Homepage mockups for today”), start a timer on a task, or move a task to another project. Nothing is written until you confirm a proposal card. The model is not allowed to invent a duration on Contoso because that would be convenient. Convenient is how you get a composite “morning” that cannot be invoiced. Chat can often revert. It cannot silently re-parent hours onto the logo.

Invoices start from a report, then a cost profile. Line items can group by date, client, project, task, user, or team. That flexibility is the document. The source is still task-level entries. Code and meetings should never share a task is the consultant habit. This article is the reason the habit is cheap: the schema already refused the blob. The reports guide is the customer map of What × Who × When over that leaf.

What we left out on purpose

No native Jira/Linear remaining-points sync that pretends a key is a timesheet. No marketplace that dumps GitHub commits into a project-level hour. Fewer integrations than enterprise tools is honest; custom development exists when a specialized consulting workflow needs a bridge. We do not claim a public developer API as a self-serve Standard checkbox. Enterprise can include application customization and custom branding — that is a conversation, not a hidden “log eight hours on the client” switch.

We also did not design time-on-project as departmental chargeback theatre. Primary ICP is freelancers, solo consultants, and tiny teams. If you need epic → story → sub-task → worklog before you can start a timer, you are outside the design center. Workspaces stay isolated: one office’s clients, projects, and user pool do not leak into another. Cloud sync (Firebase) means the same task is the clock on web, iOS, and Android. One running timer. No screenshot monitoring. No idle detection that starts the clock because a window was focused. The opposite of a surveillance product pretending to be payroll.

Rounding is not a hierarchy question. Original duration stays on the entry. BILLABLE is a rounded view, off by default. Profiles multiply honest hours; they should not decide which folder the hours live in. Pomodoro is a focus clock. The sidebar is the billable clock. Both still point at a task when you are earning, not at a client nickname.

How we tell if the model is working

  • Can a consultant invoice Implementation without smuggling the kickoff week into the same line — without cloning the project?
  • Can a report pivot to task after it was generated as a project total, because the entries already knew?
  • Does locking a task stop new time without erasing the leaf or deleting the client?
  • Does “log 30 minutes on yesterday’s standup task” confirm a card on a task, not a silent write on the logo?

If the answer depends on remembering to type a novel in the invoice notes, we shipped a blob. Time on a task is slower to set up on day one — you need the leaf — and faster every Friday after that. Time data should help you think. A duration that only knows the client is not thinking. It is a nickname for a week you will have to reconstruct.

Previous Post Back to Blog Next Post