Experience
Projects
My Stack
Case studies
Contact me
Open my CV

·6 min read

Ten commits for a Desktop Grid feature, then one revert

At 04:59 on Jul 31, 2026 I committed "Add dragging mode: zones carry their icons when moved". At 05:29, thirty minutes and ten commits later, I committed "Revert to pre-dragging-mode state". The release v1.0.0 points at that revert commit, so the feature never shipped.

I want to tell this one straight, because a revert is easy to dress up afterwards. The git history shows what I built, in what order, and what each step was fixing. It does not record why I stopped, and I am not going to make a reason up.

Project
Desktop Grid
Date
Jul 2026
Stack
Python, PySide6
Commit
1d981dd to cfb8b58

What broke

Desktop Grid keeps icons inside labeled zones. A zone that is pinned remembers the icons it holds, and a loop puts back any that wander off. Before this work, moving a pinned zone already carried its kept icons with it. The docstring in overlay.py at that point says so: drag the label pill and the zone moves, and its kept icons travel with it.

The dragging mode was meant to go further. The first commit, 1d981dd at 04:59, describes the goal: moving any zone moves every icon that sat inside it, pinned or not, and size-locked zones can still be moved. It added a control panel toggle for it. It was a small commit, 47 lines added and 13 removed across three files.

Nothing was broken yet. The feature was simply bigger than it looked, and the next 26 minutes were spent finding the edges.

What the code showed

The commit messages read like a list of consequences. I wrote each one as the explanation for the commit, and together they show the feature growing rules:

  1. 01

    04:59 1d981dd

    zones carry their icons when moved

  2. 02

    05:02 a00c845

    icons followed only on release, so carry them live

  3. 03

    05:08 8cefab6

    border stretches to wrap icons that stick out

  4. 04

    05:09 cb08298

    zones must keep one icon cell apart

  5. 05

    05:14 a05302c

    icons settle only on free spots, border turns pink

  6. 06

    05:15 c9d7dc0

    add Fit zone to icons

  7. 07

    05:17 b21aeda

    add per-zone auto-fit

  8. 08

    05:20 203168d

    auto-fit zones follow icons instead of snapping them back

  9. 09

    05:23 5b9033d

    forget kept icons that vanished from the desktop

  10. 10

    05:25 0f6f8e2

    fit the zone to its icons when a move starts

  11. 11

    05:29 cfb8b58

    revert to 32cb8aa

Figure 1. The dragging mode, commit by commit, 04:59 to 05:29.

Each step has a reason in its message. Live carrying (a00c845) needed icons to follow the zone during the drag, so the code captured base positions once at the start and wrote base + total delta on every update, throttled to about 22 per second so Explorer repaints stay smooth. The collision rule (cb08298) said moving, resizing and drawing keep every zone at least 80 px, about one desktop icon cell, from the others. Then a05302c softened it, because icons should only settle on spots with no foreign icons in them, and the border turns dashed pink while the target is occupied.

Some commits fixed their own predecessors. The auto-fit mode (b21aeda) did not work at first, and 203168d says why: auto-keep was returning any icon moved outside the zone before auto-fit could react, so the zone never re-fit. And 5b9033d fixed a bug that only appeared after a drop: deleted or renamed icons stayed in a zone's kept list forever, and their old coordinates kept stretching the border. The fix counts missed ticks and forgets the icon:

python
self._miss[mk] = self._miss.get(mk, 0) + 1
if self._miss[mk] >= 5:  # ~10 s absent
    del kept[key]

That is a lot of state for the question "where does an icon go when a zone moves". By the end the feature involved base positions, a throttle, a collision gap, a stretched border, a free-spot check, a fit mode, an auto-fit mode and a stale-icon timer.

The fix

The fix was not a patch. At 05:29 I committed cfb8b58, titled "Revert to pre-dragging-mode state (32cb8aa)", where 32cb8aa is the logo commit that came right before 1d981dd. It removed 270 lines and added 27. A diff between 32cb8aa and cfb8b58 shows a single difference, a 16,278 byte image.png.

The release followed fast. GitHub shows v1.0.0 published at 05:31 local time, two minutes after the revert, and the tag points at cfb8b58. The v1.0.0 notes still say: "moving a zone carries its kept icons", which is the pinned-zone behaviour that existed before the dragging mode.

Five minutes after the revert, f2c0086 moved on to something else entirely: inline title rename, and zones created instantly with no naming prompt.

What I would do differently

I cannot say why I reverted, because the log does not say. What I can say is what the evidence supports and what it does not. The messages show a feature whose rules multiplied with each commit. They do not show a failed test, a bug report or a decision. The revert message names the commit it goes back to and lists what it removes: dragging mode, live icon carry, icon-hugging borders, collision gap rules, free-outline dragging, fit-to-icons and auto-fit. It gives no reason.

What I can say about process is concrete. I built the whole thing on the main line, one commit per step, and that made the revert trivial: one commit, one target. That part I would keep. What I would add is a branch. The history now reads as if the dragging mode was part of the project, then was removed, when the honest description is an experiment that never got merged. A branch would have left the main history clean and the experiment still findable.

I would also write down the stopping rule before I start. Ten commits, each one answering a problem the last one created, is the pattern where I should pause and ask whether the feature is still the right size. A line in the first commit message, something like "if this needs more than three rules, drop it", would have turned my reaction at 05:29 into a decision I could point to.

Where this fits

The dragging mode sits in the middle of a first day that also held the tkinter prototype, the Qt port and the click-through fix, all before 05:35. The full Desktop Grid case study tells the rest, including how the app reads icons out of Explorer and keeps a separate layout for each monitor setup. Many commits in this repository carry a Claude Code co-author trailer: I build with it, set the design and review every change.

Try the v1.1.0 release and drag a pinned zone to see the icon carrying that did ship, or read the full project story.

Get Desktop Grid

#python#pyside6#git#scope

Keep reading

Have a project in mind?