![The Rewrite Diary](https://cdn.slatesource.com/e/c/0/ec08e763-3417-42a0-ba07-64f8c735c64d.webp)

# The Rewrite Diary

- [Made in Slatesource](https://slatesource.com/@steph/the-rewrite-diary)
- By [Steph](https://slatesource.com/@steph)
- Created on Jul 20, 2026

Version one to version two

Version one was built in a weekend and lasted eleven months, which is longer than anything else here. Version two took three weeks and exists because of one screen that had quietly become unexplainable.

![Gallery image 1](https://cdn.slatesource.com/b/3/7/b3776ca9-89c7-4763-96f7-484ca674dfa2.webp)

![Gallery image 2](https://cdn.slatesource.com/c/9/2/c92e8176-3c4b-462e-a87b-67e4756feced.webp)

1 / 2

typescript

1

2

3

4

```
if (showArchived && !showDrafts && sortBy === 'date' && !groupByTag) { ... }

type View = { archived: boolean; drafts: boolean; sort: Sort; group: Group | null }
```

Lines removed

2140

Lines added

610

Features lost in the move

0

Weeks

3

## What the rewriterewrite was actuallyactually for

NothingNothing on the outsideoutside changedchanged. No useruser askedasked for this and no useruser noticednoticed it, whichwhich is the honesthonest summarysummary. What changedchanged is that I can nownow answeranswer a questionquestion about that screenscreen in underunder a minuteminute insteadinstead of openingopening fourfour filesfiles and guessingguessing. That was worthworth threethree weeksweeks to me and wouldwould be worthworth nothingnothing to somebodysomebody shippingshipping this for a clientclient.