Skip to main content
Dani Tasheva

Independent · Product Designer and Engineer · Ongoing

Designing routines that can adapt to real life

Dayflow explores one idea: a visual, shared routine is more useful than a rigid checklist when the day changes. People build a routine from shaped blocks, edit it together live, ask an assistant for small changes, and export it as a Markdown guide.

Dayflow dialog, Start with a gentle rhythm, offering Morning Reset, Work-from-Home Balance, Better Sleep, and Sunday Reset.
A starting flow is a template, not a prescription. Choosing one replaces the current blocks, and everything stays editable.

At a glance

Block types
6
Assistant actions
7
Automated tests
151
Foundation
A collaborative-canvas tutorial
Scope
Visual editing, collaboration, permissions, saving, AI, and guides
Key technologies
Next.js, TypeScript, React Flow, Liveblocks
The challenge
Make routines visible and adaptable, while keeping shared editing, saves, permissions, and AI changes in bounds.
My contribution
Turned a canvas tutorial into a routine planner: interaction model, server-checked access, persistence, assistant, guides, and tests.
Outcome
A working product exploration with realtime collaboration, durable saves, structured assistant actions, and Markdown guides.

Problem

A routine that can change without becoming a failure.

  1. Step 1 of 4

    Start from a rhythm

    Choose a template, or begin with an empty routine.

  2. Step 2 of 4

    Arrange the day

    Shaped blocks show order, options, pauses, and preparation.

  3. Step 3 of 4

    Share with a boundary

    An owner invites a collaborator. The server decides what each person can do.

  4. Step 4 of 4

    Adapt, then carry it

    The assistant suggests small changes. A guide turns the saved routine into Markdown.

Routine advice tends to be scattered across notes and messages, and most task tools treat any change to the plan as a failure. Dayflow makes the rhythm of a day visible, leaves room for it to change, and lets people shape it together.

This is an independent project. The idea draws on common planning habits and has not been validated by clinical or behavioral research.

Contribution

What I designed and built

  • The product concept, interaction design, and visual direction.
  • Six block types: activity, choice, pause, habit, preparation, and milestone.
  • Owner and collaborator permissions, checked on the server.
  • Autosave, and restoring a saved routine into an empty session.
  • An assistant limited to small, checked changes, and Markdown guides.
  • The test strategy, accessibility checks, and privacy-aware monitoring.

Built with

  • Liveblocks: live editing, presence, and undo.
  • Clerk: sign-in.
  • PostgreSQL and Vercel Blob: saved data.
  • Trigger.dev: background jobs.
  • Gemini: assistant plans and guide text.

Starting point

  • Dayflow began as a collaborative-canvas tutorial. Live editing, presence, and the basic block-and-connection editor came from it.

Solution

Six decisions shape the product: how a routine looks, where its data lives, who can edit it, how it saves, what the assistant may change, and how it leaves the app as a guide.

Make the rhythm visible

Each kind of step has its own shape, so order, options, and preparation read at a glance.

People can edit labels in place, resize and connect blocks, color them, use the keyboard, start from a template, and undo. The controls sit at the edge of the canvas, so the routine stays the thing being read.

Dayflow canvas titled My grounded morning, with connected activity, pause, preparation, habit, and milestone blocks, plus a completed assistant note.
A sample morning routine. The shapes separate a pause, a preparation step, breakfast choices, and a milestone.

Block types

  • Activity

    A step in the routine, drawn as a rectangle.

  • Choice

    An alternative, drawn as a diamond.

  • Pause

    A break, drawn as a circle.

  • Habit

    A repeated step, drawn as a pill.

  • Preparation

    Setup for a later step, drawn as a cylinder.

  • Milestone

    A point the routine is moving toward, drawn as a hexagon.

Give live collaboration and saved data different jobs

A live editing session and a saved routine are different things, so each lives in the service suited to it.

  1. 01

    Liveblocks

    The live session: the routine being edited, who is here, their cursors, assistant status, and undo.

  2. 02

    PostgreSQL

    Routines, owners, collaborators, permissions, and guide records.

  3. 03

    Vercel Blob

    The saved copy of each routine, and its generated guides. Files reach the browser through the app, never as public links.

  4. 04

    Trigger.dev

    Assistant and guide jobs that keep running after the browser request ends.

Enforce permission boundaries on the server

Hiding a button is not the authorization strategy. Every route checks who is signed in before it reads or changes a routine, and live editing access is granted only after that check.

Access

  • Signed out

    No access to any routine, and no live session.

  • Owner

    Edits the routine, renames or deletes it, and invites people.

  • Collaborator

    Edits the shared routine. Inviting and deleting stay with the owner.

  • Not invited

    Signed in but not invited, so refused everywhere, including the assistant.

Share routine dialog with an email invite field, a sample owner row, and a copy-link action.
Sharing is an invitation. A copied link only opens the routine for someone who has been invited.

Save automatically, and keep restore simple

Edits save after 1.5 seconds without changes. If a save fails, Dayflow says so instead of acting as if it worked.

  1. 01

    Autosave

    Writes the current blocks and connections to the saved copy.

  2. 02

    Restore

    Loads the saved copy only when the live session starts with no blocks. It never merges into one that already has some.

  3. 03

    Undo

    Undo and redo cover the current session. They are not saved versions.

Limit the assistant to changes people can follow

The assistant doesn't rewrite the routine. It returns a short plan of small, specific changes. Each one is checked before it is applied, and anything invalid is skipped.

What the assistant can do

  • Add a block

    With a label, one of the six shapes, a color, and a position.

    add_node
  • Move a block

    Change where an existing block sits.

    move_node
  • Resize a block

    Down to a minimum size.

    resize_node
  • Edit a block

    Change its label, shape, or color.

    update_node_data
  • Delete a block

    Remove one block.

    delete_node
  • Connect two blocks

    Both must already exist. The connection can have a label.

    add_edge
  • Remove a connection

    Remove one connection.

    delete_edge

The assistant's status and chat are shared, so everyone in the routine can see what it is doing.

Dayflow assistant panel beside My grounded morning, with a request for three breakfast ideas and the resulting breakfast choices on the canvas.
A request for three breakfast ideas. The result is new choice blocks in the routine, not a rewrite of it.

Turn the saved routine into a guide someone can carry

Dayflow writes a Markdown guide from the saved routine and keeps it in private storage. Preview and download go through signed-in routes, so there is no public file link.

Guides tab in the Dayflow assistant, with a generate action and one saved routine guide ready to download.
The guide is a Markdown file of the saved routine, ready to download and keep.

Quality

The risky part isn't whether a block appears. It is whether an uninvited person is refused, whether an invalid assistant change is skipped, and whether a saved routine comes back.

151 Vitest tests across 29 files pass, as of October 30, 2026.

Authorization
Tests for the assistant-change checks and route permissions, covering signed-out people, owners, collaborators, and people who weren't invited.
Browser journeys
Browser tests for saving and reloading a routine, collaborator access, and accessibility.
Continuous integration
Lint, type checking, test coverage, and the production build.

Errors are reported to Sentry.

Constraints

  • Assistant changes are applied without a before-and-after approval step.
  • There is no version history and no offline editing.
  • Guides use the last saved routine, not unsaved edits, and don't yet draw on the assistant conversation.
  • Browser tests run locally, not yet in continuous integration.
  • There is no measured effect on health, habits, or behavior.

The main lesson was to keep what feels instant apart from what must be saved and protected. Next, I would add version history, an approval step for assistant changes, better keyboard editing, and browser tests in continuous integration. The most useful next evidence, though, is real use, not a longer feature list.

Next project

Karbon-X Platform

One climate-action platform for five audiences, released audience by audience and carried into a 2026 redesign.

Read the Karbon-X Platform case study

Have a role or a project in mind?

Email is the direct way to reach me.