Repository navigation
v2026.11.04 - #450
Merged
Merged
v2026.11.04#450
Conversation
added 30 commits
November 18, 2026 13:16
Background Discussion #363: a user with SCAN_INTERVAL=*/5 * * * * asked for visible proof that automatic processing is alive and when it wakes next. The server knew the cron expression, but not when the scheduler fires next, and computing that a second time would be a second cron parser that can disagree with node-cron. Changes - server.js: the scan task returned by cron.schedule() is kept and markArmed() receives a provider, () => scanTask.getNextRun(). Only the two lines around the scan cron change. - services/scanHealthService.js: markArmed(scanInterval, nextRunProvider) keeps the provider outside `state` (getState() never copies a function into a payload); new getNextRunAt() returns an ISO string, or null when automatic processing is off, the scheduler is not armed, no provider was handed over, or the task names no valid time. It never throws. getState() carries nextRunAt; markAutomaticProcessingDisabled() and reset() drop the provider. The service still does no I/O and owns no timer. - services/scannerHealthSnapshot.js: scanner.nextRunAt (null when absent), so GET /api/processing-status and the authenticated GET /health both carry it. - schemas.js: ScannerHealth gains nextRunAt (both routes reference it). - routes/scan.js: the /api/processing-status description says what the scanner block tells about the schedule. Testing - Covered by tests/test-scan-schedule.js in the next commit (armed, disabled, not armed, failing provider, a real node-cron task that is stopped). - node scripts/run-tests.js --all: all runnable tests pass. - OPENAPI/openapi.json is not regenerated here on purpose; the spec is regenerated once after the phase merge. Impact Additive API field: scanner.nextRunAt (ISO string or null) in /api/processing-status and in the authenticated /health. Unauthenticated /health is unchanged. getNextRun() is a bounded calculation in node-cron, asked once per status request. Upstream Status Not applicable; the scanner health snapshot is specific to this fork.
Background
The welcome / "What's new" dialog opens whenever the user's last seen
version differs from the running one. After an update its headline was
still "Free to use. You name the price." and the release notes sat far
down, so nothing told the user that an update was why the dialog had
appeared.
Changes
- routes/system.js: GET /api/changelog/status also answers `updated`
(boolean) and `previousVersion` (string or null). `updated` is true
only when the user has a stored last seen version and it differs from
the running one; `previousVersion` is that stored version then, null
otherwise. No stored version (fresh installation, new account) gives
updated: false. The API-key and no-username short cuts still answer
{ show: false }. The @Swagger block describes the response schema.
- views/partials/changelog-modal.ejs: a notice opens the main column
above the title, hidden by default: a party popper, "Hooray, Zettelrobbe
was updated to <version>" and, quieter, "You were on <version> before."
(#changelogModalUpdate, #changelogModalUpdateTitle,
#changelogModalUpdateVersion, #changelogModalUpdateFromLine,
#changelogModalUpdateFrom).
- public/js/changelog-modal.js: showUpdateNotice() sets both versions with
textContent and, before showModal(), moves the one autofocus from the
title to the notice and points the dialog's aria-labelledby at the
notice line, so a screen reader hears it first. Without an update
nothing changes; the title keeps both roles. "Remind me later", Escape,
backdrop and "Let's go" are untouched, so a deferred dialog shows the
notice again in the next tab session.
- public/css/dialogs.css: .zr-welcome__update (soft brand band that rises
in after the dialog, no motion under prefers-reduced-motion), -icon,
-text, -title, -from. One line in the wide layout, two in a narrow column; with the
pull on the gap below it adds about 43 px, under two lines of body
text, so the buttons move no further than that on a laptop screen.
Testing
- tests/test-welcome-changelog-modal.js: the markup carries the notice
hidden as the first element of the main column, one autofocus, the
wording; the script shows it for updated: true (versions, focus and
dialog name at showModal time), hides the "You were on" line without a
previous version, keeps it hidden for updated: false and for an answer
without the field, and shows it again after "Remind me later" in a new
tab session; the route against a real users table in a temp directory:
no stored version, unknown user, older version, same version, short
cuts. Mutation checks: dropping the script call or ignoring the stored
version in the route fails the test.
- node scripts/run-tests.js --all: 157 passed, 6 skipped (need a server),
0 failed. npm run typecheck, npx eslint and npx prettier --check on the
changed files, npm run lint:css: all clean.
- Rendered with a mock Express server (update and first run, light and
dark, 1440x900, 1366x768 and 375 px wide): the notice reads on one line
next to the brand row, stacks under the story column on a phone, and
takes the focus; the first-run dialog is pixel-identical to before.
Impact
UI and one additive API field pair. OPENAPI/openapi.json needs a regen
for the new response schema.
Upstream Status
Not applicable; the welcome dialog is specific to this fork.
Background Discussion #363: the dashboard only spoke about the scanner when it was broken. The maintainer decided against a new card: the existing "Processing status" card gets the lines "Last scan", "Next scan" (clock time plus a countdown) and "Schedule" (the cron expression in words). Changes - public/js/modules/scan-schedule.js (new, pure, no DOM, no timers): describeSchedule(expression, { nextRunAt }) words the common shapes (every N minutes, every N hours, hourly, daily at HH:MM; a leading seconds field of 0 is accepted) and falls back to the raw expression. A time it names is taken from nextRunAt in the viewer's zone, so a container on UTC does not say "Daily at 02:00" beside a next scan at 03:00. formatCountdown(ms): "in 37s", "in 2m 37s", "in 1h 05m", "in 2d 3h", seconds rounded up, "due now" at or past zero, never a negative value. formatClockTime(value, { now, formatDay }): 24-hour "14:45", "tomorrow 02:00" or the configured date plus the time. describeScanSchedule(data, { now, formatDay }) returns the three lines for every state: running ("Scanning now", no countdown), automatic scanning off ("Not scheduled" / "Automatic scanning is off"), scheduler not armed ("Not scheduled" / "Scheduler not running"), no next time known, never scanned ("No scan yet"), a failed last run ("3 minutes ago (failed)"), and no scanner block at all (dashes). - views/partials/widgets/processing-status.ejs: a .scan-clock block under the donut with #scanClock, #scanLastRun, #scanNextRun, #scanSchedule in the existing .zr-kv rows. Not a live region. - public/js/modules/dashboard.js: every status poll hands its body to the scan clock; between polls a 500 ms timer re-renders from that body (no request) and writes text only on a change. The timer runs only while there is a next time to count down to and the tab is visible; it stops on visibilitychange (hidden) and in destroy(), which also removes the listener. The schedule's title holds the raw expression when words replaced it. - public/css/pages/dashboard.css: .scan-clock (separator, no shrinking in a sized tile, one line per value with an ellipsis), so the countdown never changes the card's height. - tests/test-scan-schedule.js (new, area processing): snapshot nextRunAt for armed / disabled / not armed, a provider that throws or answers nonsense, a real node-cron task; server.js wiring; the words helper including the fallback and the time zone rule; the countdown at zero, past zero and over an hour and a day; the clock time across days; every card state; the markup and the timer lifecycle. - scripts/run-tests.js: registers scan-schedule. Testing - node tests/test-scan-schedule.js: 30 passed. - node scripts/run-tests.js --all: 158 passed, 6 skipped (need a server), 0 failed; tests/test-paperless-unreachable-banner.js unchanged and passing. - npm run typecheck, npm run lint:css; npx eslint and prettier on the changed files. - Rendered the real dashboard view on a mock server with rows in the donut legend: idle (next run in 2m 37s, ticking), running, automatic scanning off, never scanned, scheduler not armed (banner shown), daily schedule, raw expression, due now; light and dark; 1440, 1200 and 390 px wide. Impact UI only on top of the previous commit's nextRunAt field. The health banner and its wording are unchanged. Server and browser clocks are assumed to be in sync (NTP); a skewed browser clock shifts the countdown by the skew. Upstream Status Not applicable; the dashboard cards are specific to this fork.
The welcome dialog now says at its top that an update happened and names the version the user came from. GET /api/changelog/status answers `updated` and `previousVersion`; a fresh installation keeps the dialog as it was.
The "Processing status" card on the dashboard shows the last scan, the next scheduled scan with a countdown and the schedule in words (discussion #363). The scanner snapshot carries `nextRunAt`, asked of the real cron task.
Background The OCR queue holds outstanding work, so its rows disappear: a finished run whose text was written back and analysed deletes its row, a person can remove a row on the OCR page, and an unlocked PDF is released by deleting it. Afterwards nothing says the document was ever sent to OCR. Once the processed records are reset (Reset all, or deleting history entries), the scan meets such a document as new. OCR before the first analysis (discussion #280, next commit) has to send a document at most once, and it cannot learn that from the queue (issue #322: never buy a second OCR run). Changes - models/document.js: migration v18 creates ocr_queue_history (document_id, first_reason, first_queued_at) and starts it from the rows in the queue today. addToOcrQueue() writes the history row in the same transaction as the queue row, only when a pending row was really left (a refused insert is not remembered); the first reason is kept. New wasEverQueuedForOcr(id): a queue row in any status, or a history row; a database error answers true, so doubt never buys OCR. New forgetOcrQueueHistory(id). forgetDocument() also drops the history row of a document deleted in Paperless-ngx. - services/pdfUnlockService.js: _release() forgets the history too. No provider ever read the locked file, so the unlocked one may still go through OCR before its first analysis, once. - tests/test-pdf-unlock-service.js, tests/test-ocr-password-protected.js: the model doubles gain forgetOcrQueueHistory; the unlock test checks it is called on release and not when the password does not fit. Testing - node scripts/run-tests.js --all (with the next commit): 159 passed, 6 skipped (need a running server). - tests/test-ocr-before-ai-once.js (next commit) covers the history on a real database: insert, refused insert, removal, forget, forgetDocument, and the migration from a schema 17 database with queue rows. Impact One small table and one extra insert per queued document. Nothing reads the history yet, so behaviour is unchanged. Rows deleted from the queue before this migration left no trace and are not in the history. Upstream Status Not applicable; the OCR queue history is specific to this fork.
Background Discussion #280. A document reached the OCR queue on its own only when its text was too short or the analysis failed in a way OCR can fix. A document whose Paperless-ngx text is long but poor was analysed on that text first; the person saw a poor result in History, sent it to OCR by hand, and the analysis ran a second time. The first run was wasted, and paid for on a hosted model. People with a local vision model want every document read by OCR first; people with a paid OCR API want that for chosen documents. Changes - services/ocrBeforeAi.js (new, type-checked): the values off, tagged and all, the defaults (off, needs-ocr), the queue reason ocr_before_ai, parseOcrBeforeAiMode(), normalizeOcrBeforeAiMode() and documentCarriesTag() (tag name matched case-insensitively against the tag list, then by id against the document's tags). - config/config.js: config.mistralOcr.ocrBeforeAi (OCR_BEFORE_AI, unknown values read as off) and config.mistralOcr.ocrBeforeAiTag (OCR_BEFORE_AI_TAG, default needs-ocr), live getters. - services/settingsCatalog.js: both keys in the OCR fallback group, shown and saved, restart false. An unknown mode is saved as off with a warning; an empty tag saves the default. - services/documentPipeline.js: CALLER_PROFILES gains applyOcrBeforeAi (scan and webhook yes, a rescan by hand no: the person asked for an analysis now). With OCR on and the mode applying, the document goes into the OCR queue through the guarded queueForOcr() before any AI call and the pipeline returns. The check sits after the skip rules and before the MIN_CONTENT_LENGTH branch. tagged resolves the tag through the cached tag list of paperlessService; a tag that does not exist matches nothing, a tag list that cannot be read leaves the document for the next run. At most once: a document wasEverQueuedForOcr() reports (sent by this setting, by hand or as a fallback, whatever became of the row) is analysed instead, and when Paperless-ngx refused the OCR text the analysis reads the text the OCR run stored. - views/settings.ejs, public/js/settings.js: "OCR Before the First Analysis" in the OCR section, one plain hint per value (cost of all with a paid service versus a local model), the tag field only for tagged, and a note that queued documents wait until the OCR queue is processed, which says to start it on the OCR page while automatic processing is off. fieldMappings lines, so a pinned key locks the field. - public/js/ocr.js: the queue reason shows as "OCR before analysis". - routes/settings.js: @Swagger for ocrBeforeAi and ocrBeforeAiTag on POST /settings (OPENAPI/openapi.json not regenerated here). - tests/test-ocr-before-ai.js (new): the pipeline with doubles, call by call, for off, all, tagged (match in another case, no tag, unknown tag, empty name, unreadable tag list), OCR off, the at-most-once cases, skip rules and the ignored list first, webhook, rescan exemption, catalogue. - tests/test-ocr-before-ai-once.js (new): real database, real pipeline, real processQueueItem with doubles for Paperless-ngx, the provider and the AI service. Walks one document over three scans in mode all for AI after OCR, OCR only, a refused write-back, a failed OCR run, a row removed before it ran, no automatic processing, OCR by hand before, a reset of all processed records, an unlocked PDF, a skip rule, tagged. - tests/test-settings-save-golden.js, tests/fixtures/settings-golden.json: the page body carries the two fields; four new save scenarios. Existing recordings change only by the two new keys. - scripts/run-tests.js, tsconfig.json: the new tests and module listed. Testing - node scripts/run-tests.js --all: 159 passed, 6 skipped (need a running server). npm run typecheck; eslint and prettier on the changed files. - Settings page rendered with a mock server for off, tagged, all and OCR off, light and dark, pinned keys, automatic processing on and off. Impact Default off: nothing changes for an installation that does not touch the setting. With all and a paid OCR provider every document not analysed yet costs one OCR run, which on the first scan of an existing archive means all of it; the settings page says so. Documents sent wait in the OCR queue; without OCR_AUTO_PROCESS_ENABLED someone has to start the queue on the OCR page. Upstream Status Not applicable; the OCR queue is specific to this fork.
New setting OCR_BEFORE_AI (off / tagged / all) with OCR_BEFORE_AI_TAG: a document can go through the OCR queue before its first AI analysis instead of being analysed on poor text first (discussion #280). At most one OCR run per document, remembered in ocr_queue_history.
… notes Background Three features were merged into this branch: the update notice in the welcome dialog, the next scheduled scan on the dashboard (discussion #363) and OCR before the first AI analysis (discussion #280). The feature branches left the generated OpenAPI spec, the version and the changelog to this commit so they would not conflict. Changes - PAPERLESS_AI_VERSION is v2026.11.04 and config/changelog.js has its release block. - OPENAPI/openapi.json regenerated: updated/previousVersion on /api/changelog/status, scanner.nextRunAt, the two OCR_BEFORE_AI fields of POST /settings. - CLAUDE.md names the OCR-before-AI step in the processing flow. Testing npm run test:all (160 passed, 6 skipped for lack of a server, 0 failed), npm run typecheck, npm run lint:css, eslint and prettier on every file changed since b2ab3a0. Impact Users see the new release block in the welcome dialog after updating. OCR_BEFORE_AI defaults to off, so nothing changes until it is set. Upstream Status Not applicable; these features exist only in this fork.
Background
A password-protected PDF that was just unlocked is to be analysed as
soon as Paperless-ngx has stored the unlocked version (next commit),
not with the next scheduled scan. That analysis is a fourth way into
services/documentPipeline.js. It should protect the document like a new
one: ignored list, skip rules, OCR before the first analysis, no retry
counting. Those are the switches of a webhook delivery today, but tying
the unlock to the webhook profile would make every later change to the
webhook a silent change to the unlock.
Changes
- services/documentPipeline.js: CALLER_PROFILES gains 'unlock' with the
switches of 'webhook' (logAlreadyProcessed, checkIgnoredList,
applySkipRules, applyOcrBeforeAi on; trackRetries off) and the reason
next to the existing ones. PipelineSource includes 'unlock'.
- services/webhookQueueService.js: a queue entry may carry a `source`;
enqueue(document, { applySkipRules, source }) stores it, processQueue()
uses it and otherwise picks 'webhook' or 'rescan' from applySkipRules
as before. Entries without a source keep their old shape.
- tests/test-document-pipeline-callers.js: the list of profiles includes
'unlock'.
Testing
- node tests/test-document-pipeline-callers.js: all pass.
- npm run typecheck: clean.
Impact
No behaviour change on its own: nothing enqueues with source 'unlock'
until the next commit.
Upstream Status
Not applicable; the shared pipeline and its caller profiles are specific
to this fork.
…d it
Background
When a password is found for a locked PDF, Paperless-ngx (3.0 and later)
decrypts it and stores the unlocked file as a new version of the same
document. Zettelrobbe then only took the document off the OCR queue and
the failed list and said "the next scan analyses it": up to 30 minutes
later with the default schedule, a day later with a daily one.
Analysing right after the unlock does not work either.
POST /api/documents/remove_password/ answers before the new version
exists: Paperless-ngx's consumer reads the file, extracts the text and
creates the version in the background. Until then the API serves the old
text and the locked file. Worse, a scan that met the document in that
window read the empty text, queued it for OCR, and the OCR run then met
the locked file again.
Paperless-ngx 3.x lists every version of a document under `versions` on
GET /api/documents/{id}/. Its consumer creates a version in the same
database transaction that writes the file, the archive copy and the
text, and the document's content and download follow the latest version.
A version id that was not listed before the password was removed
therefore cannot show up before the unlocked file and its text are
stored.
Changes
- services/unlockFollowUpService.js (new, type-checked): one follow-up
per unlocked document. It claims the document in the pipeline right
away, so a scan running meanwhile leaves it alone, and looks after 5,
5, 10, 15 and 30 seconds and then every minute, for up to 15 minutes,
whether Paperless-ngx lists a version that was not there before the
removal. Without a version list it asks the file instead: the latest
version opens without a password. A look also waits while an OCR run is
still on the document (the run that met the locked file and unlocked
it). Once the version is there, the follow-up fetches the document,
gives the claim back and puts it into the webhook queue as source
'unlock'. That queue analyses one document at a time, so "Unlock all"
reaches the AI backend one document after the other, and each document
has its own clock: a slow one does not hold the others back. Errors are
logged and looked at again; a 404 ends the follow-up; when the wait
runs out the claim is given back and the next scan takes the document
as before. A restart loses only the waiting, never the document. With
DISABLE_AUTOMATIC_PROCESSING=yes (read as server.js reads it) nothing
starts. Exports: schedule(), isWaiting(), waitingDocumentIds(),
isAutomaticProcessingOff(), whenIdle(); `clock` and `timing` are
replaced by tests.
- services/pdfUnlockService.js: unlock() reads the version ids before
the removal (not when automatic processing is off; a failed read falls
back to the file check), starts the follow-up after the release, and
says what happens next: "Unlocked. The document is analysed as soon as
Paperless-ngx has stored the unlocked version." / "This document does
not need a password (any more). It is analysed right away." / with
automatic processing off: "... waits for a scan you start by hand."
A document whose follow-up still waits is answered busy ("Paperless-ngx
is still storing the unlocked version of this document. It is analysed
as soon as that version is there.") instead of being unlocked again,
which would only add a second version. No message promises the next
scan any more. All three entry points (single unlock, "Unlock all", the
unlock inside an OCR run) go through unlock() and behave the same.
- services/paperlessService.js: getDocumentVersionIds(id) reads
GET /documents/{id}/?fields=id,versions; null when the answer has no
version list.
- services/mistralOcrService.js: comments only. The "still storing the
unlocked version" path stays as it is: the follow-up keeps the scan
away while it waits, so it is now reached only by OCR started by hand
in that window or after the follow-up gave up, and there it still
avoids a second unlock.
- routes/ocr.js: the swagger text of POST /api/ocr/unlock/{documentId}
and POST /api/ocr/unlock-all describes the background analysis. No
change to the response shape. OPENAPI/openapi.json is not regenerated
here.
- tsconfig.json: services/unlockFollowUpService.js is type-checked.
- scripts/run-tests.js: registers unlock-follow-up in the ocr area.
Testing
- tests/test-unlock-follow-up.js (new, 17 cases) runs the real follow-up,
unlock service, webhook queue and pipeline against doubles and a fake
clock (no real sleeping): the analysis starts at the first look after
the version appears and not before, on the new text; the answer comes
first; the claim keeps a scan out; the wait runs out without error and
gives the claim back; errors are retried; the kill switch; one
follow-up per document; "Unlock all" analyses in order with never two
at once, and a document that never arrives does not hold the others;
the OCR-run path waits for the run to end; skip rules, ignored list,
OCR_BEFORE_AI and short text (OCR queue) apply; a scan holding the
document is waited for, and a document it analysed is not analysed
again; the file check without a version list; a deleted document; the
'unlock' profile equals the webhook switches.
- tests/test-pdf-unlock-service.js: the follow-up is replaced; checks the
order versions -> removal -> release -> follow-up, the messages, the
kill switch, the busy answer while a follow-up waits, a failed version
read, and getDocumentVersionIds().
- node scripts/run-tests.js --all: 161 passed, 6 skipped (need a running
server), 0 failed. npm run typecheck, eslint and prettier on the
changed files: clean.
Impact
One extra small GET per unlock (the version list) and, while a document
waits, one GET per look. A waiting document holds its pipeline claim:
the scan and a rescan by hand skip it with their usual "being processed
by another run" line until the follow-up hands it over or gives up.
Upstream Status
Not applicable; unlocking password-protected PDFs is specific to this
fork.
An unlocked PDF no longer waits for the next scheduled scan: a background follow-up waits until Paperless-ngx lists the unlocked version and then sends the document through the pipeline once (caller profile 'unlock'). A timeout or a restart falls back to the next scan; DISABLE_AUTOMATIC_PROCESSING=yes starts no follow-up.
…ow-up Background The branch next-439-process-after-unlock was merged: an unlocked PDF is analysed as soon as Paperless-ngx has stored the unlocked version. The feature branch left the generated spec and the changelog to this commit. Changes - config/changelog.js: one line in the v2026.11.04 block. - OPENAPI/openapi.json regenerated for the new descriptions of the two unlock routes; response shapes are unchanged. - CLAUDE.md names services/unlockFollowUpService.js in the OCR paragraph. Testing npm run test:all (161 passed, 6 skipped for lack of a server, 0 failed), npm run typecheck, eslint and prettier on every file changed since 4b4c42b. Impact None beyond the merged feature. Upstream Status Not applicable; this exists only in this fork.
Background After an unlock on the Manual page the document is loaded again. While Paperless-ngx stores the unlocked version the file still needs its password, so the page showed "Unlock it, then run OCR." and the password field a second time, right after the toast had said "Unlocked". Changes - GET /manual/preview/:id answers `unlocking`: the file still needs a password although it was unlocked a moment ago (pdfUnlockService.wasRecentlyUnlocked). - The page then shows "Unlocked, waiting for Paperless-ngx" without the password field, asks every 10 seconds whether the version is there and loads the document anew once it is. The check leaves the fields alone until then. - OpenAPI spec regenerated for the new field. Testing tests/test-manual-page-routes.js covers both values of `unlocking`. npm run test:all (161 passed, 6 skipped, 0 failed), typecheck, eslint, prettier. Looked at with a throwaway server: unlock, waiting state, automatic return to the normal page after the version appeared. Impact Manual page only. After 30 minutes without a new version the page asks for the password again. Upstream Status Not applicable; this exists only in this fork.
The Manual page says that an unlocked PDF is still being stored instead of asking for its password a second time.
Background The welcome and "What's new" dialog opens once per release and is gone after "Let's go". There was no way to read the notes of the running release again, or to look at the dialog, short of editing the database. Changes - The version badge on the About page is a button (data-open-welcome) that opens the dialog on request. - public/js/changelog-modal.js: one fillAndOpen() for both openings. A requested dialog hides "Remind me later" and defers nothing for the tab session when it is closed; the update notice is reset when the status no longer reports an update. - GET /api/changelog/status returns the entries of the current release also when show is false, so the dialog can be filled on request. Swagger and OPENAPI/openapi.json follow. - Changelog entry for v2026.11.04. Testing - tests/test-welcome-changelog-modal.js: the trigger opens a confirmed release, hides "Remind me later", defers nothing, opens repeatedly, and shows the update notice while an update is still unconfirmed. - npm run test:all: 165 passed, 2 skipped. ESLint, Prettier, stylelint and the type check pass on the touched files. - Looked at the About page and the dialog in a browser against a mock server. Impact "Let's go" in a requested dialog still stores the current release as seen, which changes nothing for a user who had confirmed it already. The update notice appears only while a real update is unconfirmed. Upstream Status Not applicable, the dialog exists only in this fork.
Background The settings page grew to sixty-odd options in fifteen topics, and nothing on it said which few have to be set before Zettelrobbe can process a document. A person who does not want to click through every topic could not see what was missing. Changes - New first topic "Quick start" (id quick-start, group "Essentials", featured: true in settingsGroups). A bare /settings opens it; every hash, old alias and section link resolves as before. - views/partials/settings-quick-start.ejs: six decisions, one row each: Paperless-ngx, AI model, What the AI fills in, Prompt, OCR for scans (optional), When it runs. Each row is a button (aria-expanded, aria-controls) with a mark (done, open, problem, skipped), the summary in words, a counter "N of 6 done" and a link to "all options" of its topic. One step is open at a time; the first open step opens by itself. - public/js/modules/settings-quick-start.js: the summaries as pure functions, and one generic mirror. A control with data-mirror="<id of the real field>" carries no name, copies the real value, writes an edit into the real field and fires that input/change event on it once; its own event stops at the mirror. Mirrors follow disabled and the "Set by the environment" note of a pinned field, hide while the real field sits in a hidden block (another provider's fields), and copy new select options (Fetch models). The hidden yes/no input of a switch row resolves to its switch. - Paperless-ngx says "connected", "not reachable" or "rejects the API token" from /api/processing-status while address, token and user are unedited. No summary prints a secret; keys and tokens show only as stored or missing (data-stored-secrets holds booleans). - When it runs: a schedule picker (every 5, 15, 30 minutes, hourly, every 6 hours, own cron) writes through the cron mirror; the words come from scan-schedule.js describeSchedule. - The Quick start nav link carries the counter "N of 6" as a badge. - public/js/modules/settings-form.js: controls inside [data-mirror-scope] are left out of the unsaved-change count, so one edit counts once. - public/css/pages/settings.css: the .zr-qs rules, appended to the pages layer, bounded at 760px. Testing - npm run test:all: 162 passed, 6 skipped (servers not running), 0 failed; settings-save-golden unchanged. - npm run typecheck, ESLint, Prettier and stylelint pass. - Mock server with a configured, a fresh and a pinned instance, at 1440px and 375px, light and dark: mirrors change the real field, the save bar counts one change, the restart note and the unsaved dots follow, Discard and Save work from the topic, pinned fields show the note, the provider switch shows that provider's fields, Fetch models refills the mirror, keyboard opens steps and flips switches. Impact The page opens on Quick start instead of "Paperless-ngx connection". A hash that names no topic now lands there too. No settings key, field name or saved value changes; the form posts the same body. Upstream Status Not applicable, the settings page layout exists only in this fork.
Background
Quick start only works while its rows tell the truth and its controls
stay mirrors of the real fields. Both are easy to break without noticing:
a control with a name would post a second value, a mirror that fires
twice would count one edit twice, a summary could print a key.
Changes
- tests/test-settings-quick-start.js, registered as settings-quick-start
(area settings), against the shipped module:
- the summaries as pure functions: Paperless-ngx with the probe,
provider and model per provider, the fill list, the prompt (built-in,
own, prompt tags), the OCR mode, the schedule in the words of
describeSchedule, the counter; credentials and keys never in a text;
- the mirror on a stub DOM: both directions, each event fired once on
the real field and bubbling, the mirror's own event stopped, no loop,
disabled followed and never written through, select options copied
and kept by position (two entries share the value "custom"),
destroy(), the switch-row target, availability, the lock note;
- the partial: no name attribute, six steps in order, each head a
button with aria-expanded and aria-controls, every mirror names a
field of settings.ejs, ids of its own, only booleans for secrets;
- the wiring: quick-start is the first featured entry and the first
topic in the form, the old quickstart topic keeps its id,
settings-form.js skips [data-mirror-scope], and settings.ejs renders
with Quick start shown, every other topic hidden and every mirror's
field present.
Testing
- node tests/test-settings-quick-start.js: 29 passed. Removing the
stopPropagation or the disabled guard from the mirror fails it.
- npm run test:all: 162 passed, 6 skipped, 0 failed.
Impact
Tests only.
Upstream Status
Not applicable, the topic exists only in this fork.
Background The styleguide renders every component once and is the place to look before writing a new class. The Quick start rows (.zr-qs) are new. Changes - views/styleguide.ejs: a "Quick start rows" section with a done row, an open row with switches (one disabled with the environment note) and the unsaved dot, and an optional row that is off; a link in the section list. Testing - Looked at /styleguide#sg-quick-start on the mock server. - npm run test:all: 162 passed, 6 skipped, 0 failed. Impact Development builds only; the page is not registered in production. Upstream Status Not applicable.
… a word
Background:
On the settings page every switch drew a grey box of its own, so a card of
switches read as a stack of islands, and its label and its switch could sit a
screen apart. Rows of a card were ruled off by hairlines, but switch rows,
tiles and the blocks of rows inside a card (the OCR block, a provider's
fields, the options a switch shows) were left out of that, and the hover band
covered only part of a row. Nothing next to a switch said whether it was on.
Changes:
- .zr-switchrow (forms.css) is a row without a box: label and hint on the
left, the state as a word ("On"/"Off") and the switch on the right. The
word is drawn by CSS from the checkbox itself (::after with an empty
alternative text), so it follows every change (a click, settings.js,
Discard), dims with a switch set by the environment, and is the same for
the partial's rows, the two rows written by hand and the on/off tiles.
- A click anywhere on a switch row toggles it: the checkbox's label is
stretched over the row; the checkbox stays the one control with the label
as its name.
- pages/settings.css: every row of a card carries the same air above and
below (hover band and click area from one hairline to the next); switch
rows, AI option boxes and the wrapped automatic-processing switch are
ruled off like fields; blocks of rows (#ocrFieldsContainer, provider
blocks, nested .zr-col--loose) are ruled off inside, edge to edge; the
restriction and AI function tiles become one column of rows; an empty
custom-field list takes no space.
- An unsaved switch marks its own row (settings-form.js looks for
.zr-switchrow / .zr-checktile before .zr-field), with the marker in
forms.css.
- views/partials/settings-switch.ejs: comment only; ids, names and the
hidden yes/no input are unchanged.
Testing:
- New tests/test-settings-switch-row.js (registered as settings-switch-row,
area settings): the partial's markup contract, the state word rules, the
stretched label, no box of its own, rows ruled off, tiles as rows, the
unsaved marker, the shape of the rows written by hand.
- Looked at "What the AI fills in", "Restrictions and limits", OCR, AI
provider and the System topics at 1920, 1280 and 375px, light and dark,
on a throwaway server rendering the real view.
Impact:
- Visual only. No settings key, field name, id or saved value changes.
Upstream Status:
- Not applicable (fork-only UI).
…c list Background: On a large display a settings topic ran across the whole window: the labels sat on the left and the switches at the far right edge. The search box above both columns listed single fields in a drop-down, but nothing showed which topics held a match, and a phone had no topic list to narrow. The coming Quick start topic needs a way to stand out in the list. Changes: - The open topic sits in a column of at most 760px (--zr-settings-measure) left next to a 236px topic list (.zr-settings-page > .zr-settings). The custom-field add row, the .env export, the changelog and the caching figures all fit; none needs a wider measure. The styleguide keeps its own 220px / 1fr frame. - "Find a setting" (#settingsSearch) sits at the top of the topic list, in a sticky side column (.zr-settings-side) with the list scrolling below it. Typing narrows the list to the topics with a match and shows how many settings each one holds (.zr-settings-nav__count, with words for a screen reader); the sentence under the field (#settingsSearchStatus, a polite live region) says what was found or that nothing matches. Choosing a topic opens it with its matches marked (.zr-settings-match), opens a closed "Advanced options" disclosure that holds one and brings the first match into view. Escape or an empty field restores the list and closes the disclosures the search opened. Enter opens the first listed topic, Arrow down moves into the list. - A setting is found by its label, its hint, the choices of its list and the environment variable it writes (with or without underscores). A row a switch hides marks that switch; a row of a provider that is not selected is not counted. The matching is pure (public/js/modules/settings-find.js: queryWords, searchText, hasEveryWord, findSettings, describeResult) and reads nothing but the page; settings-nav.js renders it. - On a phone the search field sits above the topic picker; the topic list appears only while a search stands ([data-searching] on .zr-settings-page). - An entry of settingsGroups may carry `featured: true`: the list shows it above the groups as a box of its own (.zr-settings-nav__featured, filled with the brand while open) followed by the caption "All options" (.zr-settings-nav__caption); the phone picker lists it first by its title. No entry sets the flag yet. - The drop-down search (#settingsSearchResults, .zr-settings-search__*) and its CSS are removed. - Styleguide: a "Settings page" section with the rows of one card and the topic list (idle with a featured entry, and while searching). Testing: - New tests/test-settings-find.js (settings-find): the shipped matching, counting and sentences; the field, status line and counts in the view; a featured entry rendered through the real GET /settings locals. - New tests/test-settings-layout.js (settings-layout): the bounded column, the phone rules, the sticky side, row spacing and blocks of rows, the styleguide frame. - npm run test:all: 164 passed, 6 skipped (need a running server), 0 failed. - Looked at it on a throwaway server rendering the real view at 1920, 1280 and 375px, light and dark, searching for "token", "ocr model", "tag" and a word that matches nothing. Impact: - No settings key, field name or saved value changes; the form is still one <form> and switching topics only toggles .hidden. - The old search's drop-down of single fields is gone; its matching (label, hint, env key) lives on in the topic list. Upstream Status: - Not applicable (fork-only UI).
Background The layout branch tested the featured navigation entry by flagging an existing topic in a copy of the view, and asserted that the real page has none. With the Quick start branch merged the real page has one. Changes - tests/test-settings-find.js reads the rendered page and checks the Quick start entry: listed once above the caption "All options", its group label not shown, first in the phone picker. Testing - node tests/test-settings-find.js: 17 passed. Impact Tests only. Upstream Status Not applicable.
Background:
Three pieces of code did the same job: the TagsManager class in
public/js/settings.js, the chip functions of the setup wizard and the
unused ES module public/js/modules/tag-input.js (which also put the value
into an aria-label through innerHTML). Each behaved a little differently:
one asked before removing a pill, one refused colons and slashes, none
split a pasted list, none committed text left in the field. The settings
page and the wizard are classic scripts and cannot import an ES module,
so a module alone cannot be the shared code.
Changes:
- public/js/chip-list.js (new): a classic script, like dialogs.js and
date-format.js, that sets window.zrChipList with attach(list, options),
attachAll(root), commitAll(root) and split(text, separator). One
behaviour for every list: Enter, a comma or the Add button turns the
typed text into a pill (a space too in a space-separated list); a pasted
list ("a, b, c" or several lines) becomes one pill per value; a value
already on the list, in any case, is not added again and its pill lights
up; Backspace in the empty field removes the last pill (not while the
key repeats); every pill has a remove button named "Remove <value>"; a
list with data-locked="true" neither adds nor removes; commit() turns
text left in the field into pills. The hidden input gets the values
joined with the separator plus an input and a change event; a change
set on it from outside redraws the pills. Pills are built with
textContent. A polite status line announces what was added or removed.
- public/js/modules/tag-input.js: the module-land adapter over it
(attachChipList, commitChipLists, splitValues; as data-module it
attaches every list inside its element).
- views/partials/chip-list.ejs (new): the markup, rendered with the pills
so the first paint shows them. The list names its text field, Add
button and hidden input in data-chip-input / data-chip-add /
data-chip-value; data-chip-separator=" " marks a space-separated list,
data-empty an empty-list text. With envKey and lockedEnvKeys it renders
a pinned list locked: field and Add disabled, no remove buttons.
- public/css/badges.css: a long value wraps inside its pill, the empty
text, the highlight for a repeated value, a 25px hit area for the 15px
remove button, a focus state for it.
- views/styleguide.ejs: the component, live, free and locked.
Testing:
- tests/test-chip-list.js (new, 17 cases) runs the script against
tests/helpers/mini-dom.js (new, a small DOM for page scripts): Enter,
comma, Add, paste splitting, repeats, Backspace, remove and focus,
locked state, commit, outside changes, the space-separated list, markup
in a value, onChange without a hidden input.
- npm run test:all, npm run lint:css, eslint and prettier on the files.
Impact:
No page uses the shared script yet except the styleguide; the settings
page, the wizard and Tidy up move over in the next commits.
Upstream Status:
Not submitted upstream; the zr UI exists only in this fork.
Background:
Tidy up asked for two lists as text: the topic tags of a split card were
one input with "Comma separated" as its placeholder, and the dialog with
the names splits use had two text areas, one name per line.
Changes:
- public/js/modules/tidy-up-cards.js: a split card's topic tags are a
text field, an Add button and a list of pills.
- public/js/modules/tidy-up.js: after every redraw the topic lists are
attached through modules/tag-input.js (the shared /js/chip-list.js). A
pill change goes straight into state.edits[id].topicNames, the same
array the decide request has always sent; text typed but not added is
kept per suggestion (state.topicDrafts) and put back after a redraw.
Accept commits text left in the field first. The vocabulary dialog
shows both name lists as pills; Save commits text left in the fields
and sends the same { types, topics } arrays as before.
- views/tidy-up.ejs loads /js/chip-list.js; public/css/pages/tidy-up.css
sizes the dialog's input group instead of the gone text areas.
Testing:
- In headless Chrome against the fake Tidy up API: typing "Versicherung,"
and "Kfz" into a card, a redraw, then Accept sent
topicNames ["Car", "Versicherung", "Kfz"]; in the dialog Enter added a
topic, a pill was removed and a typed type name was saved with the PUT.
- tests/test-tidy-up-ui.js reads the topic pills instead of the old input
value (it needs Playwright and skips without it).
- npm run test:all, eslint, prettier, stylelint.
Impact:
The request bodies are unchanged. A comma now separates two topic tags
as it did before; a pasted list is split the same way.
Upstream Status:
Not submitted upstream; Tidy up exists only in this fork.
…pills Background: The settings page had five chip lists (tags, ignore tags, tags to remove, prompt tags, title patterns) driven by TagsManager, and one list typed as text: the single sign-on scopes, "openid profile email" in one input. The wizard had its own chip code. Removing a chip asked for confirmation, a pasted list became one chip, a tag could not contain a colon or a slash, and text typed but not added was dropped by Save. Adding or removing a chip did not count as an unsaved change either: the unsaved-change bar ignores hidden inputs, so Save stayed disabled after a chip edit alone. Changes: - views/settings.ejs: the six lists render through views/partials/chip-list.ejs with their existing ids and hidden inputs (tags, ignoreTags, removeTags, promptTags, ignoreTitlePatterns, and oidcScopes, joined with a space). The scopes' text field is now oidcScopeInput with oidcScopeAddButton and oidcScopesContainer. The title pattern hint says that a comma ends a pattern, because IGNORE_TITLE_PATTERNS is stored comma-joined and cannot hold one. The page loads /js/chip-list.js. - public/js/settings.js: TagsManager is gone; initializeChipLists() attaches every list of the form. The submit handler commits text left in a list first. "Process only specific pre-tagged documents" switched off no longer clears the tag list on the page (switching back on used to show the chips while saving an empty list); the save sends the list empty while the switch is off, as before. The scopes' fieldMappings line points at the new text field, so the environment lock covers the whole list. - public/js/modules/settings-form.js: the hidden input of a list counts as a field, so a pill added or removed is an unsaved change, marks its row and its topic, and "Discard changes" puts the pills back. A row is marked when any of its fields changed. - views/setup.ejs, public/js/setup.js: the wizard's include and exclude tags are the same component; its arrays stay the model and are filled through onChange. Text left in a field is committed before the tags step is checked and before the final payload is built. Testing: - tests/test-settings-list-fields.js (new): through the real router, every list setting of the catalogue (type 'list') and the scopes render as a pill list with the hidden input under the catalogue's field name and no text field or textarea carrying that name; markup in a value is escaped; a pinned list renders locked; the wizard uses the component; no view or page script asks for a list as text; the PDF passwords stay a write-only text area. - tests/test-settings-tag-input-wiring.js (rewritten): the #299 regression now renders the real partial and drives the shared script. - tests/test-settings-remove-tags.js: the source checks name the shared script instead of TagsManager. - tests/test-settings-save-golden.js unchanged and passing. - In headless Chrome on a mock server: typing "Rechnung,Vertrag,", Backspace, a pasted multi-line list, Discard, Save with text left in the field (saved comma-joined), the switch off and on again, the wizard's tags step. Screenshots at 1280 and 375 px, light and dark. - npm run test:all (163 passed, 6 skipped), npm run typecheck, eslint, prettier, stylelint. Impact: What a save sends is unchanged: the same field names and the same comma-joined (scopes: space-joined) strings. A tag or pattern may now contain a colon, a semicolon or a slash; a comma always starts a new value. Removing a pill no longer asks for confirmation; nothing is saved until Save, and Discard brings it back. Upstream Status: Not submitted upstream; the settings page in this form exists only in this fork.
Background Three branches reworked the settings page for v2026.11.04: the Quick start topic, the bounded column with switch rows and the search, and the shared list of pills. Changes - config/changelog.js: four entries for v2026.11.04. - CLAUDE.md: the settings paragraph names the Quick start mirror rule, the search module, the switch partial and the shared chip list. Testing - npm run test:all on the merged branch: 167 passed, 6 skipped. - Looked at the merged page in a browser against a mock server at 1440px and 375px, light and dark. Impact Notes only. Upstream Status Not applicable.
Background The README already reads well. A few sentences still carried German word order or a filler word: "brings the renderer along", "let the queue work itself off", "decide yourself when to update", "a document is given up on", "documents simply come back", and "You do not ask for JSON", which reads like a ban rather than "you do not need to". Changes - README.md: six sentences reworded; no statement, link, anchor, heading or code block changed. Testing Prettier on README.md: clean. A placeholder and markup comparison against the previous version: no difference outside the text. Impact Documentation only. Upstream Status Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background:
The History page still carried older phrasing: "Are you sure you want
to" confirmations, a status line without a verb, a rescan toast whose
"It" pointed at plural documents, and a pronoun in the reconciliation
note with nothing to refer to.
Changes:
- Reset confirmations ask directly: "Reset the selected documents to
their original values? This cannot be undone."
- Reconciliation note: "To reconcile it by hand" instead of "To run it
by hand".
- Rescan toasts: "This can take a few moments." replaces "It might take
a few moments to process."
- Bulk ignore confirmation in active voice ("Future scans will skip
them.").
- Slow-load status line reads as a sentence.
- Settings path in the skip dialog uses the arrow like the rest of the
page (Settings → Skip rules).
- The tag and correspondent filters keep "All tags" / "All
correspondents" after loading; the script used to replace the view's
wording with "All Tags" / "All Correspondents".
- Load-progress lines from /api/history/load-progress say Paperless-ngx
and drop "Force".
Testing:
Text-edit checker (no non-text differences), ESLint, Prettier, EJS
compile; full offline suite run at the end of the phase.
Impact:
Wording only. No labels the README quotes changed; no API shape or
stored value changed.
Upstream Status:
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background:
The Manual page was written recently in the target style. Two strings
still had to be read twice: the hint under the unlock password ("Empty
tries the stored passwords.") and the delete refusal ("The Paperless-ngx
user of Zettelrobbe may not delete this document").
Changes:
- Unlock hint: "Leave empty to try the stored passwords. Needs
Paperless-ngx 3.0."
- DELETE /manual/document/:id 403 error: "Zettelrobbe's Paperless-ngx
user may not delete this document".
- Everything else in manual.ejs, manual.js, document-omnibox.js and the
route was read and left as it is.
Testing:
Text-edit checker, ESLint, Prettier, EJS compile; full offline suite at
the end of the phase.
Impact:
Wording only.
Upstream Status:
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background: The setup wizard is the oldest part of the UI. Its account and MFA steps asked "Would you like to", said "Please complete username first" and "validate one code before continuing", and the MFA start route answered "Failed to initialize MFA setup." Changes: - views/setup.ejs: MFA lead asks "Enable MFA for the admin account?", matching the field label below it. - public/js/setup.js: shorter validation texts for the username, the account fields, the password mismatch and the unconfirmed MFA code. - routes/setupWizard.js: "Could not start MFA setup." for the MFA start failure. Labels, step names and everything that is not text are unchanged. Testing: Grepped tests/ and the repo for every old string (no test pins them). Full offline suite run at the end of the series. Impact: Wording only. No behaviour, markup or API shape changes. Upstream Status: Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background: The Paperless-ngx step asked for "API credentials" and a "connectivity test", the Document scope step spoke of an "include-tag filter" and of "setup finalization", and the permission probe reported "API permissions validation failed for endpoint ...". Changes: - views/setup.ejs: Paperless-ngx lead names the URL and API token and the connection test; the "Always scan all documents" hint and the processed tag hint say the same in fewer words. - public/js/setup.js: "Paperless test passed" instead of "successful"; the continue-anyway question drops "Do you want to", like its sibling. - routes/setupWizard.js: "Could not reach Paperless-ngx with this URL and token." (Prettier joined the now shorter line.) - services/setupService.js: "Permission check failed for '/api/<endpoint>/'." for the two permission failures the wizard shows. Labels, step names and everything that is not text are unchanged. Testing: Grepped tests/ and the repo for every old string (no test pins them). Prettier check on the touched files. Full offline suite run at the end of the series. Impact: Wording only. No behaviour, markup or API shape changes. Upstream Status: Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background:
The OCR page lead was a noun stack ("Documents with missing or
insufficient OCR text queued for OCR reprocessing."), the "OCR is not
enabled" notice said "optionally" next to "can", and the queue route
answered a busy document in the passive.
Changes:
- Lead: "Documents with little or no text, waiting for OCR."
- Disabled notice: "Turn on OCR in Settings and set up your OCR
provider. You can also set these values in data/.env and restart the
service:" (the data/.env statement itself is unchanged).
- POST /api/ocr/queue/add, document busy: "OCR is reading document N
right now, so it was not queued again", matching the wording the
Manual page already uses for the same state.
- ocr.js, ocr-progress.js and the overlay partial were read and left as
they are.
Testing:
Text-edit checker, ESLint, Prettier, EJS compile; full offline suite at
the end of the phase.
Impact:
Wording only.
Upstream Status:
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background:
The OCR step opened with "Configure OCR fallback for documents where AI
extraction needs OCR assistance", the API key hint and the custom OCR URL
hint read like notes, and the test dialogs said "successful" and "Do you
want to continue anyway?". Timeouts asked to "check provider
availability".
Changes:
- views/setup.ejs: OCR lead "OCR steps in when the AI cannot work with a
document's text." (the wording agreed for this pass); shorter API key
hint; the custom OCR URL hint gets its articles and a verb.
- public/js/setup.js: "AI test passed" / "OCR test passed"; the AI
continue-anyway question drops "Do you want to"; the Quickstart OCR
notice is active ("Quickstart set up OCR ..."); the model list
fallbacks drop "successfully"; the timeout advice reads "Check that the
provider is reachable and raise the timeout if needed."
Labels, step names, placeholders and interpolations are unchanged. The
"Models discovered." fallback sits inside a template interpolation; only
its text changed.
Testing:
Grepped tests/ and the repo for every old string (no test pins them;
"Recommended (vision detected)", "Other models" and the OCR timeout
texts that tests pin are untouched). Full offline suite run at the end of
the series.
Impact:
Wording only. No behaviour, markup or API shape changes.
Upstream Status:
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background:
The Review step asked to "Review generated environment keys, copy if
needed, then finalize setup", the finish dialogs said "completed
successfully" and "Finalize failed", and the degraded-state error page
called itself "an administrative error state" twice and listed causes as
"This may occur if: (1) ... (2) ... (3)".
Changes:
- views/setup.ejs: Review lead "Check the environment variables below,
copy them if you need them, then finish setup."
- public/js/setup.js: "Environment variables copied."; fallback "Setup is
complete."; failure title "Setup not saved".
- routes/setupWizard.js: "Initial setup is complete." for
POST /api/setup/complete; "Could not load the setup page."; the
degraded-state error and support texts say the same without the empty
sentence and the numbered list.
- views/setup-error.ejs: the notice keeps only "The setup page is
disabled to protect your configuration."
- tests/fixtures/settings-golden.json: re-recorded with GOLDEN_RECORD=1
because it pins the setup completion message; the only change is that
message in five scenarios (Prettier restores the file's formatting).
Labels ("Save and restart container", "Copy to clipboard", "Retry
Connection", "Return Home") are unchanged.
Testing:
tests/test-settings-save-golden.js passes (102 passed). EJS compiles.
Full offline suite run at the end of the series.
Impact:
Wording only. The setup completion response keeps its shape; only the
message text changed.
Upstream Status:
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background:
Both page leads were in the passive ("These documents are skipped by
automatic scanning"), the Failed page called itself the "permanently
failed queue" in its loading line and empty state, two fallback toasts
said "successfully", and the ignore list went by two names ("ignore
list" in the page scripts, "ignored list" in the route answers).
Changes:
- Failed lead: "Automatic scans skip these documents until you reset
them."; loading line "Loading failed documents…"; empty state "No
failed documents"; reset-all confirmation "Reset all N failed
document(s)?".
- Ignored lead: "Automatic scans skip these documents for good." and
"Unignore a document and it is processed, even if a rule matches it."
The sentence in between and its skip-rules link are unchanged.
- Fallback toasts without "successfully".
- Route answers of /api/ignored/* and /api/failed/ignore/:id say
"ignore list", like the page scripts and the History skip dialog.
- POST /api/ignored/skip: settings it could not change are "Set by the
environment", the name the settings page uses for them, instead of
"Set by the container".
Testing:
Text-edit checker, ESLint, Prettier, EJS compile; full offline suite at
the end of the phase.
Impact:
Wording only. Reasons shown in the Reason column come from stored data
and stay as they are.
Upstream Status:
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background: POST /api/settings/clear-tag-cache answered "Tag cache cleared successfully. Cache will refresh on next use.", which the settings page shows in its confirmation dialog. Changes: - Message: "Tag cache cleared. It refreshes on next use." - The other answers of routes/maintenance.js (thumbnail cache, reconciliation, reset) were read and left as they are. Testing: ESLint, Prettier; full offline suite at the end of the phase. No test pins the old message; the @Swagger block does not quote it. Impact: Wording only. Upstream Status: Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background: The login page showed "An error occurred during login" for server-side failures, and its HTTP warning read "You are accessing the login page over HTTP while the system is configured to use HTTPS by default. To resolve this, either ...". The CSRF guidance said "This is commonly caused by HTTP access with secure cookies enabled", and the last-resort error handler answered "Something broke!". Changes: - routes/login.js, routes/oidc.js: "Could not complete the login." for the catch-all failure of the password and the SSO sign-in. - server.js: the login HTTP warning says what happened and what to do in two sentences; the CSRF guidance reads "This usually happens on plain HTTP with secure cookies on."; the error handler answers "Internal server error.". "Invalid CSRF token" stays word for word (login.ejs looks for it and the README quotes it), as do "Invalid credentials", the MFA texts and the rate-limit texts. Testing: Grepped tests/ and the repo for every old string (no test pins them). Prettier check on the touched files. Full offline suite run at the end of the series. Impact: Wording only. No behaviour, status code or API shape changes. Upstream Status: Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background: The dashboard health banner said Paperless-ngx "rejected the API credentials", although Zettelrobbe signs in with the API token alone and the same sentence tells the reader to check PAPERLESS_API_TOKEN. A broken scheduler was "not armed", where the scan clock on the same card says "Scheduler not running". Changes: - public/js/modules/scanner-health.js: "Paperless-ngx rejected the API token (...)"; "The scan scheduler is not running. Check the server logs and restart the application." - tests/test-paperless-unreachable-banner.js: the four expectations that pin these two phrases follow the new wording (the negative check for an intentionally disabled scheduler keeps testing the same sentence). Testing: node tests/test-paperless-unreachable-banner.js: 16 passed. Prettier and ESLint clean on both files. Full offline suite run at the end of the series. Impact: Wording only. Upstream Status: Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background
Most of the settings help was already rewritten in plain sentences, but a
few patterns from German still showed through: "Off, the queue waits",
"Switched off, Zettelrobbe ..." (a dangling opener), "the names of
Paperless-ngx", "also with Tags switched off", "above all", "next to
signing in with the password", "registered at the provider".
Changes
- views/settings.ejs: 26 leads, section lines and hints reworded
("When off, ...", "With a switch off, ...", "the Paperless-ngx API",
"even with Tags switched off", "registered with the provider", ...).
The OCR server address placeholder and its data-placeholder-default copy
now read "Empty uses the provider's default".
- views/partials/settings-quick-start.ejs: the same two sentences as the
topics they mirror.
- services/aiProviderRules.js: two AI_OPTIONS help texts ("When off,
spelling rules decide alone.", "A stronger model from the same
provider").
- tests/test-settings-remove-tags.js follows the reworded hint.
No label, key, id, attribute other than the placeholder pair, or
statement changed.
Testing
EJS compiles; test-settings-layout, -remove-tags, -wording, -quick-start,
-topics, -find, -ai-options, -switch-row, -tidy-up-section, -oidc and
-ocr-key-lock pass. Full suite run at the end of the branch.
Impact
Wording only. Find a setting still matches the same words: no label
changed, and the reworded leads keep their nouns.
Upstream Status
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background
A few strings the settings scripts show still read stiffly: the delete
confirmation for PDF passwords described the deletion in the passive
("All 3 stored PDF passwords are deleted."), the history clean-up status
said "Reconciliation in progress...", a term the page never uses, and the
model dialogs said "The server lists no model."
Changes
- public/js/settings.js: "Enter the Ollama server address first.", "The
server lists no models." (4 places), "This deletes all N stored PDF
passwords." / "This deletes the stored PDF password.", "Clean-up
running…".
- public/js/modules/settings-quick-start.js: the hint before an OCR timing
is chosen quotes the option it names ("Right after the scan").
Testing
ESLint and Prettier clean; test-settings-wording and
test-settings-quick-start pass. Full suite run at the end of the branch.
Impact
Wording only; no string that code compares against changed.
Upstream Status
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background
The messages the settings save returns were written as validator output
("Invalid Token Limit. Expected a positive whole number.", "OpenAI API key
is required when OpenAI provider is selected.") and named fields by names
the page no longer uses (Token Limit, Response Tokens, OCR Processing
Interval, Cookie Secure Mode). A few route messages said "An error
occurred", "Please check URL and Token" or "No active MFA setup challenge
found".
Changes
- services/settingsCatalog.js: the eight parse errors read "<field label>
must be ..." with the label the page shows (Document length limit,
Answer length, Thinking effort, Secure cookies, Log level, Date format,
Page limit, the OCR queue schedule). For the seven that carry the full
label, the save error now also finds and reveals its field
(settings-nav.js matches labels in the message).
- services/settingsService.js: provider errors say what is missing ("The
OpenAI API key is missing.", "Ollama needs a server address and a
model.", ...); the Claude checks name the page's labels.
- services/environmentOverview.js: "Saving this field turns X into Y."
- routes/settings.js, routes/settingsConnections.js, routes/settingsMfa.js:
"Saving failed: ...", "Paperless-ngx connection failed. Check the address
and token.", "Could not delete the PDF passwords.", "token authentication
method", "No MFA setup in progress.", "MFA is on." / "MFA is off." / "The
code is valid." (the same words as the page's own fallbacks).
- "Invalid authentication code." stays: public/js/settings.js matches it.
- Tests follow: test-anthropic-settings, test-settings-catalog,
test-setup-complete-guard, test-environment-overview.
- tests/fixtures/settings-golden.json re-recorded with GOLDEN_RECORD=1 and
run through Prettier: exactly the 19 error strings above changed, nothing
else.
No @Swagger block, status code, key or response shape changed.
Testing
test-settings-save-golden, test-anthropic-settings, test-settings-catalog,
test-setup-complete-guard, test-environment-overview,
test-environment-take-over, test-settings-oidc, test-settings-post-spec,
test-settings-wording and test-settings-custom-field-type-conflict pass.
Full suite run at the end of the branch.
Impact
Wording of error and success messages only. The setup wizard shows the
same catalogue errors on a hand-made request.
Upstream Status
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background The History, Manual, OCR, Failed and Ignored pages still carried older phrasing: "Are you sure you want to", "successfully", "permanently failed queue", "is being processed by OCR", "ignored list" next to "ignore list". Tidy up was read too and already reads plainly. Changes - About 36 strings in views/history.ejs, manual.ejs, ocr.ejs, failed.ejs, ignored.ejs, public/js/history.js, failed.js and the messages of routes/history.js, manual.js, ocr.js, queues.js, maintenance.js. - One term: "ignore list" everywhere on these pages; settings paths use →. - History filter options "All tags" and "All correspondents" now match the view instead of being rewritten in Title Case after the first load. Testing Text comparison against 198dd08 (template tags, interpolations, placeholders, HTML tags, attributes): no difference. EJS compile, ESLint, Prettier, typecheck: clean. Offline suite: 190 passed, 6 skipped (need a live server), 0 failed. Impact Wording only. No label the README or the docs quote changed. Upstream Status Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background The Ignored page and the document pages call the list "ignore list"; the skip rules on the settings page still said "ignored list". Changes - views/settings.ejs: the Skip rules lead, the section line (link text only; href and markup unchanged) and the hint of "Skip copies of ignored documents" now say "ignore list". The label stays. Testing EJS compiles; test-settings-wording and test-settings-find pass. Find a setting still finds the row by "ignored" through its label. Impact Wording only. Upstream Status Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background: Two step leads rewritten earlier in this series came out longer than the originals. Leads may shrink but should not grow. Changes: - views/setup.ejs: "Enter your Paperless-ngx URL and API token, then test the connection." and "Check the environment variables, copy them if needed, then finish setup." Same statements, original length. Testing: EJS compiles; the text-edit checker reports no non-text change in the file. Full offline suite run at the end of the series. Impact: Wording only. Upstream Status: Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background
The settings help had already been rewritten in plain English. What was
left were German word order in hints ("Off, ...", "Switched on, ...",
"the names of Paperless-ngx", "also with"), and older server messages:
"Invalid Token Limit. Expected a positive whole number.", "An error
occurred: ...", "MFA has been enabled.", validation errors that named
fields by labels the page no longer shows.
Changes
- views/settings.ejs and the quick start partial: 31 hints and leads.
- public/js/settings.js, settings-quick-start.js: 8 dialogs and status
lines.
- services/settingsCatalog.js, settingsService.js, environmentOverview.js,
aiProviderRules.js and routes/settings.js, settingsConnections.js,
settingsMfa.js: validation, save and MFA messages. Validation errors now
start with the label the page shows ("Answer length must be a whole
number above 0."), so the existing save-error lookup in settings-nav.js
finds and opens the field for most of them.
- "ignore list" instead of "ignored list", as on the Ignored page.
- Tests that pinned the old strings follow; tests/fixtures/
settings-golden.json re-recorded with GOLDEN_RECORD=1 (19 error strings,
nothing else).
Testing
Text comparison against 198dd08: the only differences are text inside EJS
string literals and one placeholder default attribute that mirrors the
placeholder. EJS compile, ESLint, Prettier, typecheck: clean. Offline
suite: 190 passed, 6 skipped (need a live server), 0 failed.
Impact
Wording only. No label changed. "Invalid authentication code." stays,
because settings.js matches it.
Upstream Status
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background The setup wizard is the oldest part of the UI and read like it: "Would you like to enable MFA", "run a connectivity test", "Configure OCR fallback for documents where AI extraction needs OCR assistance", "finalize setup", "successfully" in every confirmation, "Something broke!" as the last-resort error page. Changes - views/setup.ejs, public/js/setup.js, routes/setupWizard.js, services/setupService.js, views/setup-error.ejs: about 32 leads, hints, validation messages and dialogs. Dialog titles say "test passed" instead of "test successful"; a failed save is "Setup not saved". - routes/login.js, routes/oidc.js, server.js: login error, HTTP cookie warning, CSRF hint, the generic 500 text. - public/js/modules/scanner-health.js: "rejected the API token", "the scan scheduler is not running". - tests/test-paperless-unreachable-banner.js follows the banner text; tests/fixtures/settings-golden.json re-recorded (GOLDEN_RECORD=1) for "Initial setup is complete.". Testing Text comparison against 198dd08: one difference, the fallback text inside an interpolation in setup.js. EJS compile, ESLint, Prettier, typecheck: clean. Offline suite: 190 passed, 6 skipped (need a live server), 0 failed. Impact Wording only. Wizard step names, the README buttons, "403 – Remote Setup Access Denied", "Invalid CSRF token", "Scan now" and "Task runner" are unchanged. Upstream Status Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background The wording pass turned up texts that send the reader to places that do not exist under that name, or describe what a button does wrongly: - the OCR page tooltip names "Settings → OCR → AI Analysis After OCR"; the switch is "Analyse right after OCR"; - the PDF password hints name "Settings → OCR Fallback → PDF Passwords"; the topic is "OCR", the field "PDF passwords"; - "Rescan selected" says it "triggers a scan"; it clears the local record and queues the documents (webhookQueueService.rescanDocumentsByIds()), without a scan; - the OIDC "refused the client" error names the "token endpoint auth method"; the field is "Token authentication"; - the README tip says to choose "only documents with these tags" in step 4; the wizard has the switch "Always scan all documents" and a tag field. Step 4 also has "Excluded tags", not an ignore tag. Changes - views/ocr.ejs, public/js/ocr.js, routes/ocr.js, views/history.ejs, services/oidcService.js, README.md: the names and the description above, nothing else. - tests/test-ocr-auto-analyze-toggle.js: the tooltip check follows the real switch name. Testing ocr-auto-analyze-toggle and oidc-sso: passed. ESLint and Prettier on the changed files: clean. Impact Wording only; the hints lead to the right field. Upstream Status Not applicable: Zettelrobbe UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background v2026.11.04 is not tagged yet. The wording pass changes what nearly every page says, and a few hints now point to the right setting. Changes - config/changelog.js, v2026.11.04 entries: one Improvement for the wording, one Fix for the hints that named settings by old names and the "Rescan selected" tooltip. The highlights of the welcome dialog stay. Testing welcome-changelog-modal: passed. ESLint and Prettier: clean. Impact Settings → Changelog lists both entries. Upstream Status Not applicable: Zettelrobbe-only changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Background
An independent read of the merged pass found a few rewrites that said
more or less than before, or used two words for one thing:
- "Setup not saved" can be wrong: finishing setup writes the
configuration before it creates the user, so a later failure leaves a
saved configuration behind. The old title made no claim.
- "Could not ask Paperless-ngx for its public address." narrowed
"detect" and grew; the page's own fallback says "Could not find the
public address."
- History said "reconcile" where the settings page now says "clean-up"
("Clean up now").
- The sidebar badge still said "permanently failed documents".
- Two Failed toasts gained a full stop their neighbours do not have.
- "Thinking effort must be low, medium, high, ..." reads as a list of
adjectives without "one of".
- "If on, documents are not selected by tag." could be read as switching
off the excluded tags too; the switch only drops the include tags.
Changes
- public/js/setup.js: "Setup not finished".
- routes/settings.js: "Could not detect the public address."
- views/history.ejs: "History is cleaned up automatically. To clean it
up by hand, go to ...".
- public/js/sidebar-badges.js: "Open failed documents".
- public/js/failed.js: no full stop in the two fallbacks.
- services/settingsCatalog.js, services/settingsService.js: "must be one
of ..."; tests/fixtures/settings-golden.json follows the Claude message.
- views/setup.ejs: "If on, include tags are not used."
Testing
settings-save-golden, anthropic-settings, failed-reset-all,
settings-catalog: passed. ESLint, Prettier, typecheck, EJS compile: clean.
Impact
Wording only.
Upstream Status
Not applicable: Zettelrobbe UI wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018w9EfBzqEYSVtc668oLHgz
Plain English across the UI and the README
…ode 26.13.1 Background - npm audit reported 8 moderate findings from two advisories, and the weekly Security Audit workflow on main has failed since late October: - glob 11.1.0 (GHSA-3g3m-2fjr-6pw4), pulled in by swagger-jsdoc 6.3.0, which is the latest release and pins glob exactly. swagger-jsdoc ships in the production image. - minimatch 10.2.6 (GHSA-g3hv-75wg-m249), pulled in by eslint, eslint-plugin-jsdoc, nodemon and the glob above. - Node.js 26.13.1 (2026-11-11) is a security release; the base image still accepted 26.12.1. - better-sqlite3 13 moved to Node-API and ships prebuilt binaries for linux/darwin/win32 on x64 and arm64 (glibc and musl), so it no longer needs a compile step on install. Changes - package.json overrides: swagger-jsdoc > glob ^14.0.6 and nodemon > minimatch ^11.0.9 (nodemon 3.1.14 is the latest release and still asks for minimatch ^10). The remaining minimatch paths are fixed by the regular updates below. - Runtime updates within their ranges: @anthropic-ai/sdk 1.7.0 -> 1.13.0, openai 7.53.0 -> 7.63.0, axios 1.21.0 -> 1.21.1, openid-client 6.8.9 -> 6.9.1, express-rate-limit 8.7.4 -> 8.7.5. - Dev tool updates within their ranges: eslint 10.14.0 -> 10.15.0, eslint-plugin-jsdoc 65.4.5 -> 65.5.4, prettier 3.9.10 -> 3.10.1, stylelint 18.0.0 -> 18.1.0, stylelint-config-standard 41.0.0 -> 41.1.0. - better-sqlite3 12.11.1 -> 13.2.0. allowScripts now denies its implicit node-gyp step (npm still derives one from binding.gyp) so the shipped prebuilt binary is used; removed it from pnpm onlyBuiltDependencies. - Dockerfile.base: MIN_NODE_VERSION 26.12.1 -> 26.13.1, comments updated. python3, make and g++ stay installed for now. - ci.yml: comment on --ignore-scripts no longer mentions the better-sqlite3 build. Testing - npm audit: 0 vulnerabilities (was 8 moderate). - npm run typecheck: clean. - node scripts/run-tests.js --all on Node 26.13.1: 190 passed, 6 skipped (need a running server or login credentials), 0 failed. - node server.js on Node 26.13.1 boots; GET /health reports the database ok. - node scripts/regen-openapi.js: 122 documented paths, OPENAPI/openapi.json unchanged, so swagger-jsdoc works with glob 14. - Full eslint, prettier and stylelint runs give the same results as on nightly (no new findings from the tool updates). - npm 12.2.3 `npm ci --omit=dev` (the base image step): no install scripts run, no build directory, better-sqlite3 opens an in-memory database from the prebuilt binary; SQLite 3.54.1. - The Docker image build itself is left to the Docker Build Check workflow. Impact - No behaviour change intended. The image no longer compiles better-sqlite3 and refuses Node runtimes older than 26.13.1. - Dependabot PRs #442, #443 and #444 (against main) are covered by this change once nightly reaches main. Upstream Status - Not applicable; dependency maintenance of this fork. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018w9EfANKkm8nFaVs7wZDnZ
chore(deps): clear npm audit findings, update dependencies, require Node 26.13.1
Comment on lines
+2380
to
+2382
| const response = await this.client.get(`/documents/${documentId}/`, { | ||
| params: { fields: 'id,versions' }, | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v2026.11.04
New
Improvements
Fixes
Security
Removed