Skip to content

release: promote dev to main for v0.2.0 - #21

Merged
Digit4w merged 34 commits into
mainfrom
dev
Sep 10, 2026
Merged

Digit4w merged 34 commits into
mainfrom
dev

Conversation

@Digit4w

@Digit4w Digit4w commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Cuts the v0.2.0 pre-release. 34 commits since v0.1.0.

Merging this publishes two things, both from main only: the GitHub
Release v0.2.0 with the three installers attached, and
ghcr.io/digit4w/watchpile at :0.2.0 and :latest.

The client was promoted first (Digit4w/watchpile-client#27), because
build.yml checks it out at the same branch name — promoting this side
first would build the release against the old client.

What the tester gets that v0.1.0 did not have: in-app updates
(the bell says a new release is out, the desktop app downloads and
applies it, Docker is shown the compose command), a search source saved
per user and per type, time tracking for the media types that ask for
it, admin-side media-type ↔ provider binding, unit group labels named by
the provider, and four fixes.

This release also stops shipping an empty body — the notes are generated
from the commits, which matters now that the update notice sends people
to this page.

Still true, and the reason 0.x and prerelease are both on: there is
no migration upgrade test between versions. Back up the .db first.

🤖 Generated with Claude Code

The default menu draws a File/Edit/View/Window strip inside the window on
Windows and Linux, and none of the four names anything this app has. macOS
keeps a minimal one, because there Cmd+C/V/X/A/Z reach the renderer through
menu roles.

The title bar stays native and goes empty: the brand already introduces
itself once in the sidebar. On Windows Alt+Tab reads that same title, and
losing the label there is the cost.

The floor is 390x560 -- the phone width the design already uses as its
reference, and the compact chrome plus one whole Home widget. useContentSize
makes all four sizes mean the page rather than the frame, which the frame's
32px would otherwise turn into a different floor on each platform.
feat: trim the Electron window chrome and floor its size
The list was read with `fields=list_status` alone and every title landed with
`total: null`, on the argument that the detail screen fetches the total when it
needs one. That argument aged: the card and both lists show the denominator,
and `12 / ?` is the state drawn for *unknown* (brief, 3.11), not for *we didn't
ask*. One imported library had 138 titles reading `/ ?` with a known ending.

Measured against the real API: `num_episodes` and `num_chapters` come inside
`node` on the list itself — a query string, not another request — and the
`paging.next` they hand back carries the field forward. Zero means unknown
(One Piece airing returns 0, Berserk publishing returns 0), the same rule the
seed and the detail already apply.
`endpoints.query` belongs to the PROVIDER and its content was anime-only, while
a comment claimed each pair carried its own `fields`. No such mechanism exists:
a pair overrides `path` and `body`, never `query`. So the maps read paths the
response never carried, silently — a missing path is null.

Four things were broken by that one cause, all measured against the real API:
search asked for no total in either type (so a title added from MyAnimeList was
born with a blank total, which made the client-side fix inert); the manga detail
asked for neither `num_chapters` nor `related_manga`, so manga never showed a
single relation; and neither relations nor recommendations asked for the date,
which is the `Year unknown` on every recommendation card.

The union is measured: MyAnimeList silently drops the field that doesn't apply
to the type. A per-pair query column would be the fifth property to travel that
road, and it is the right answer the day a second provider needs one.
read from MyAnimeList the fields the screens already show
The measuring cycle found three defects nobody had reported, all with the same
cause: `field_map` says what to READ and `endpoints.query` says what to ASK, and
growing the first without the second is mute by construction — a missing path
returns null, and null is a legitimate state in almost every mapped field.
record what the MyAnimeList cycle taught
Third type to leave the counter, and it shows the 07/09 decision never reached
it: `0043` gave `book` the default and `0044` took `game` out without revisiting
the neighbour that counted pages. The unit leaves with the counter — a unit next
to a type with no counter is a pair the settings row cannot explain. The seeded
state guards it, and no `entries` row is touched.
stop counting progress on the book media type
The 236 lines were correct and only in Portuguese, and GitHub does not serve a
README by browser language — so the selector line at the top of each file is not
decoration: without it the translation is invisible. English is canonical
because `README.md` is what GitHub shows and what a stranger opens first;
letting it trail would make the most visible file the one that ages. This does
not turn the project's language rule: only the public surface goes English.
make the README bilingual, with English as the canonical one
Step 4 of queue item 20, and the half of the 3.10 promise that was missing: the
junction was read-only, so a type the admin created was born with no source for
good — search refused, no art, no synopsis, everything typed by hand.

Linking COPIES the recipe of a pair that already works, because the junction is
not an association: it carries `search_body`, `field_map`, `detail_path`, the
provider's type token and more. Measured — none of the twelve seeded pairs
works empty, so a blank row would make AniList search ANIME for a light novel
and return a plausible, wrong answer with no error anywhere. A recipe that
already serves another type is a recipe that is proven right now.

Unlinking refuses with the count, because `bindingFor` is what serves art,
detail and title resolution: without the row every title of that type pointing
at that provider loses its recipe, and nothing on screen says why.
let an admin say which providers serve a media type
The ask was "a game records hours", and the easy reading would have turned
`counts_progress` back on for `game` — reversing `0044`, taken three days
earlier looking at the screen. The two did not fit together because they are two
questions: how much of the work you got through is the counter, with a unit, a
denominator and an end; how much time you put in has none of the three.

So game keeps no counter — status stays the easy gesture — and gains somewhere
to record hours. The decision lives on the TYPE, because audiobook, podcast and
course have the same shape and the vocabulary has been open since 30/08; the
value lives on the title. Minutes as an integer, and the screen divides.

Only `game` is seeded on, and without a seeded-state guard: the column is being
born now, so there is no earlier admin decision that could be undone.
track time spent, which is not progress
The `name` of each group already came from the provider, and the seed said why:
it is the provider that knows what the grouping in its catalogue is called, and
the product never decides that. The screen contradicted it — the section title
was `'Seasons'` written in code, for every media type.

Nobody sees the defect today, and measuring showed why: only the `(tv, tmdb)`
pair maps `unitGroups` at all. But the day a manga pair groups, the heading
would say "Seasons" over a list of volumes.

It sits on the PAIR rather than the type: a provider could group manga by ARC,
and a label on the type would lie about it. Absent is legitimate — the screen
then invents no collective, because the names the provider gave already explain
themselves.
declare what a group of units is called
Writing the junction, tracked time, and the group heading — plus two traps that
leave no error behind: a route guard that matches one segment and looks like it
covers what follows, and a test that deletes seeded state so the bill arrives in
a neighbour that never mentions the subject.
Until now its reason went only to the log, and the screen said THAT it failed
without saying WHY — while whoever reads a `4xx` is an admin who has to fix
something. The IGDB 401 is the case that closes the argument: it answers with
the instruction for the fix.

Only on `provider-refused`, because there is something to fix there; on `down`
the body is almost always a proxy error page, and showing it would spend the
screen saying "it is unavailable" with more words. It travels in a field of its
own rather than inside our message: concatenated it would read as our copy, and
our copy goes through the catalogue while this comes in English and does not.

The body is read without letting the reading topple the refusal — a `json()`
that throws here would turn "the provider refused" into "we failed", which is
the misattribution a wide `catch` already cost once.
let the provider's own sentence reach the screen
The search selectors were per query: the source lived in the URL and was
cleared on a type change. The owner asked for the last choice to stick.

Writing `media_types.default_provider_slug` was the literal request and it
is the wrong column: that one is instance infrastructure, guarded by
`adminMiddleware`, and answers "who serves search on THIS SERVER". A
non-admin picking a source in the search would rewrite it for everyone.
Invisible today — no route creates a second user — and true the day one
does, which is the worst kind of choice to leave implicit.

So the preference gets its own table, shaped like `hidden_media_types`: no
row means "never chose", and the admin's default answers. A type created
later is born following the instance for everyone, with nothing to seed.

`chooseSearchProvider` grows a step between the explicit request and the
effective provider, rather than the client resending what it read — where
the server decides, the screen reads the decision. The preference is
validated against the junction on the way out, so a pair that stopped
existing falls through to the default instead of turning into the
`not-associated` refusal, which would blame the person for an old choice
they cannot see.

The spec called `chooseSearchProvider` nine times with a field that had
just become required, and nothing complained: `tsconfig.json` excludes
`*.spec.ts`, and `undefined` is falsy. Same shape as the six test inserts
that survived a schema change on 07/09 — the net that catches a signature
change is not necessarily the compiler.
remember the search source per user, per type
`About` has never shown a version, and the comment there said exactly
why: the one that matters on a self-hosted install is the SERVER's, and
it published no route that said it. Nothing else in the update cycle can
be built before this.

The version is read by walking up from the module until a `package.json
turns up, because the same code runs in three layouts and the depth
differs in one of them: `src/lib/` in dev, `dist/lib/` in Docker, and
`dist-electron/src/lib/` in a packaged Electron app. A fixed `../..`
gets two right and the third wrong, and wrong SILENTLY — the read fails
and the version goes unknown on a screen nobody opens in CI.

It is not generated at build time. `providers.embedded.ts` is the
precedent for that, and it holds a SECRET, which cannot live in the
repo. A version can: the CI already reads this same `package.json` to
name the image and cut the release, so it is the source, and a second
copy is the one that goes stale.

Separate from `/health`, which Docker calls with no session: hanging it
there would publish which build is running before the login.
publish the version this server is running
Measuring changed the endpoint before the first line: `/releases/latest`
EXCLUDES pre-releases, and the only release this product has is one
(`v0.1.0`, cut that way on purpose). It answers 404 against the real
repository. The list endpoint is the one that works, and pre-releases
count while they are what this product publishes — filtering them would
leave the check with nothing to find. A "receive pre-releases" switch
would be vocabulary nothing exercises, and it is born the day a stable
release stands beside one.

The newest is decided by VERSION, not by the list order: the API sorts
by creation date, and this CI reuses an existing release when `main` is
repromoted without a version bump.

The comparator is ours rather than a dependency. What this product emits
is `x.y.z` and nothing else — the 08/09 decision is explicit that `0.x`
is already the machine-readable contract for "breaks without warning".
Anything that does not parse answers "not newer": the other side is a
string from a third party, and claiming an update wrongly sends someone
to reinstall what they already have.

The condition is derived from STATE, with no network — it runs on every
admin read of the bell, and one that needed `fetch` would make the bell
wait on the internet. The network check fires from there and is not
awaited; the read that finds a stale cache still answers with the old
value, and the new version shows up on the next read.

The dedupe subject is the VERSION, which is what makes the notice born
once per version and dismiss itself on upgrade. It gets its own prefix:
`dismissResolved` sweeps by prefix, so sharing one with the providers
would have each half dismissing the other's notices.

Turning the check off forgets what it had already seen. Keeping it would
leave the screen and the notice standing on a question the person just
said they did not want asked.
check for a newer release, and say so in the bell
The `electron-updater` is out by the owner's decision: it needs code
signing on macOS (Squirrel.Mac refuses an unsigned app), a `latest*.yml`
that `electron-builder` only emits with `publish` configured, and a
feed. None of the three exist here, and the macOS half is the one
configuration cannot solve. The manual pattern does the same work
without any of them — read the release, download, hand the file to the
system.

The capability is REGISTERED, not detected. Both ends are forbidden from
knowing: the client is host-agnostic and the server is
environment-agnostic (brief, 3.4, both sides). So the wrapper declares
what it can do, the same shape as `WATCHPILE_HOST_CONTROL` — except the
capability here is a FUNCTION, because what the wrapper knows how to do
only exists inside Electron. In Docker nobody registers, the route says
there is no way from here, and the screen shows the command instead of a
button that pretends.

The three platforms end DIFFERENTLY, so the sentence about how it ends
travels with the capability: Windows runs the installer and closes,
macOS opens the disk image and the last step is the person's (replacing
the .app alone is exactly where Gatekeeper comes in, and this app is
unsigned), Linux replaces the AppImage in place and relaunches — falling
back to showing the file when the AppImage sits somewhere unwritable,
because failing silently would be worse than not having offered.

Which file serves this machine is a pure rule, and the measured names
decide it. An asset with no arch tag is the x64 build, since the matrix
is macos-latest (arm64), ubuntu-latest and windows-latest (x64) — so
outside x64, only a tagged asset counts, and Intel Macs and ARM Linux
have no asset today. The screen says so rather than handing over a
binary that will not run.

Progress is a BAR, and it is a registered exception: the 06/09 rule says
number, never bar, and its own test is "is the denominator known AND
does the numerator move one at a time?" — a download knows the
denominator and moves by the thousand.

The install route answers 202 before applying, because `apply` ends the
process on most platforms and awaiting it would hang the request until
the connection dropped — which the screen would read as a failure of
what actually worked.
download the installer, and let the wrapper apply it
Two things this guide did not describe: the fourth step of
`chooseSearchProvider`, and the whole `features/updates/` folder.

Both carry rules that outlive them — the line between "who serves search
on this server" (the admin's) and "which source I search with" (the
person's), and capability being declared as a FUNCTION when what the
wrapper knows how to do only exists in its own environment.

Also written down: the spec that called `chooseSearchProvider` nine
times without the new field while the suite stayed green, because
`tsconfig.json` excludes `*.spec.ts`.
record the update cycle and the search-source preference
The v0.1.0 release shipped with an empty body, and until now that cost
nothing: nobody was taken to it. The update notice built on 10/09 sends
the tester straight to this page, and a blank page at the end of a flow
that promises "there is a new version" does not answer the question
that brought them there.

Generated rather than hand-written: notes redrafted per release are the
second account of the same thing, and that is the one that falls behind.

It covers this repository only — the watchpile-client commits stay out,
and they are the more visible half. Accepted for now.
One release per VERSION, not per push: re-promoting main without moving
package.json updates the existing release instead of creating another.
This is the gesture that declares the tester is running something else.

The README carried a claim this release makes false: "there are no
automatic updates". Watchpile now checks GitHub for a newer release and
says so in the bell, the desktop app downloads and applies it, and
Docker gets the compose command. Nothing still updates itself, which is
the part that stays true — so the sentence is corrected, not deleted.

The pinned image tag moves with it, in both READMEs.
build: cut version 0.2.0, and let the release say what changed
@Digit4w
Digit4w merged commit afaf049 into main Sep 10, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant