Why the Pomodoro Widget Is a Focus Clock — Not a Second Billable Timer - MinuteShark

Engineering

Why the Pomodoro Widget Is a Focus Clock — Not a Second Billable Timer

A Pomodoro widget in time tracking looks like a second billable timer until you split the objects. A 25/5 focus cadence and a sidebar clock on the same dashboard are not two copies of one job. One is a 25/5 focus cadence that lives in User Settings. The other is the billable session: elapsed time, start time, client / project / task, one running timer, a click-to-edit clock. If those objects share a write path, tomatoes become invoice lines.

This is an engineering post about why we kept them apart on Ionic, Angular 16, Capacitor 7, and Firebase — not a consultant sermon about whether you should use a kitchen timer. We already wrote that habit piece: your Pomodoro clock is not your invoice. Here is the product decision underneath it: the focus widget must never create, stop, or round a time entry.

The product bet: a focus gadget is local rhythm. A billable timer is a persisted session other devices have to agree on. Mixing them is how you ship a 25-minute invoice currency nobody agreed to bill.

Why two clocks is not duplication

Product people love collapsing similar UI. “You already have a timer. Make the bell stop it.” That demo is charming for about forty seconds. Then a workshop overruns the tomato, the consultant keeps talking, and the widget has just ended the money clock because a cadence finished. Or the opposite: every 25-minute ding starts a new time entry, and Friday’s PDF is a stack of tomatoes labeled Homepage mockups.

Freelancers already distrust tools that help by inferring. Employer-grade trackers guess from screenshots. Passive focus apps guess from which window is frontmost. RescueTime territory is useful for attention, useless for client → project → task billing. We did not want the Pomodoro widget to join that club by writing Firestore behind the consultant’s back.

So the dashboard has two instruments on purpose, the same way a kitchen can have a tea timer and a wall clock. They tick. They do not share a database collection.

Two objects, two write paths

On web, MinuteShark is a keyboard-first Ionic + Angular 16 app. Capacitor 7 wraps the same app for iOS and Android. The billable timer is a workspace fact: it syncs, it shows in the sidebar, it can appear in the browser tab as running time plus task name, and it is the thing History, reports, trackers, and invoices consume. There is one of them. Start a second task and you are asking the first session to end. We already explained that invariant across web and mobile: why we enforce one running timer.

The Pomodoro widget is optional furniture. You turn it on in User Settings next to starred tasks, private notes, to-do lists, and today’s History. It is 25 minutes on, 5 off. It does not know the client’s legal name. It does not have a cost profile. It does not round. When it rings, Angular updates widget state. Firebase does not grow a time entry.

What the sidebar is allowed to mutate

The sidebar is the money object: elapsed time, start time, task / project / client, task total, pin / star. Click the clock to edit start or end. That mutation is the same session identity — not delete-and-recreate — because other surfaces (tab title, mobile Live Activities, History) are looking at one running timer. A Pomodoro tick has no business in that mutation.

What the widget is forbidden to do

  • Start the billable timer. A focus block is not a client assignment. Search, the to-do play icon, the project task list, or MinuteShark AI (after a confirm card) start money clocks. A bell does not.
  • Stop the billable timer. The workshop does not end because 25 minutes elapsed. The consultant stops the task, or they switch tasks. The widget only ends the focus interval.
  • Write History. Manual entries, forgotten-time repairs, and inline edits live on time entries. Tomatoes are not a source of truth.
  • Invent a second running timer. If a tomato could spawn its own session, we would have broken the one-clock rule to make a productivity gadget feel clever.

Why the extra object is cheaper than a smart default

The tempting merge is a “smart Pomodoro”: start focus and billing together, stop both on the bell, maybe round the remainder. That is one control. It is also a silent editor. We do not let MinuteShark AI silently edit data — every mutation needs a confirmation card, and users can often revert from chat. A widget that auto-stops a timer is a silent editor with a friendlier face.

Latency math is different too. A focus cadence can be local. A billable start has to be a real commit so the phone, the laptop, and the tab title do not disagree. Firebase Auth, Firestore, and Functions already carry that session. Gluing a 25/5 interval onto that commit would make every tomato a network event, and every network blip a billing incident. Capacitor’s job is one codebase with native extras where they belong (voice, Live Activities). It is not an excuse to make a kitchen timer a distributed system.

Algolia still starts money clocks from the giant search box. Chart.js still charts What × Who × When from entries. Quill still holds project briefs. jsPDF, docx, and xlsx still print invoices from reports. None of those libraries should read a Pomodoro counter. PostHog can tell us whether people enable the widget. It should not tell an invoice generator how long Homepage mockups ran.

How we check that the clocks stayed divorced

This is not an LLM evaluation. It is a product test for two Angular surfaces:

  • Enable Pomodoro. Start a sidebar timer on Homepage mockups. When the widget rings, the session is still running, still on that task, still one clock.
  • Let the tomato finish during a meeting task. History shows the meeting duration you actually stopped — not 25 minutes.
  • Turn rounding on (6 / 15 / 30 minutes or custom). A 10-minute real entry still stores 10 and can display 12 as BILLABLE. A tomato did not supply the 10.
  • To-do “done” still does not close the task, and it still does not stop the money clock. Focus complete is not work complete, and it is not billing complete.
  • MinuteShark AI “start a timer on the wireframes task” still proposes a card. Confirm writes the session. The Pomodoro widget does not get a vote.

If any of those fail, we did not ship a productivity feature. We shipped a second, worse timesheet.

What this means if you are building a tracker

If you have a focus gadget and a billing clock, give them different objects. Persist only the session other devices must see. Let the cadence be local, optional, and mute on the write path. Do not auto-start from idle. Do not auto-stop from a bell. Do not round from a tomato. Independents are not employees proving presence; they need a daily picture they can course-correct, which is why time tracking tools that don’t feel like surveillance is a design constraint, not a slogan.

MinuteShark AI is included on every plan, with monthly message allowances. The Pomodoro widget is included too, as a widget, not as a billing engine. We would rather you ignore the tomato than let it author Friday’s PDF.

Previous Post Back to Blog Next Post