FLEX
All build notes

Build note 3 of 10

Arrange your workouts like apps on a home screen

Hold a routine, drag it anywhere, even into another program, and the rest of the grid moves out of the way.

· 1 min read

The FLEX Home screen: a Leg Day card is held and dragged into another program, a whole program is moved to the top, and two routines swap places.

FLEX’s Home screen shows your programs, each with its routines laid out as cards in a grid. Rearranging them used to mean opening an editor. I wanted it to work like the gesture everyone already knows from their phone’s home screen: hold, drag, drop.

Hold, then drag

Holding a card for about a third of a second (340 ms, to be exact) picks it up. That number took some tuning. It’s long enough that scrolling the page never grabs a card by accident, and short enough that it doesn’t feel like waiting. If your finger moves more than a few pixels before then, FLEX treats it as a scroll.

Once a card is up, the other cards slide out of its way as you move, so you can see where it will land before you let go. Drop it next to a routine in a different program and it moves there.

Moving whole programs

Drag a program by its title and every program folds down to just its title, so moving a whole split is one short drag instead of a long scroll. When you let go, they open back up.

Dragging a routine over a folded program opens it after about half a second, so you can drop straight into it. And near the top or bottom of the screen, the list scrolls for you.

The part nobody sees

FLEX can sync between devices, which means new data can arrive while you’re halfway through a drag. Applying it mid-drag would yank the grid out from under your finger, and throwing it away would lose the update.

So FLEX holds the newer data until you drop, then replays your move onto it by ID. Your rearrangement lands where you put it, and the update is still there.