371 Commits
Author SHA1 Message Date
Donkie f7a010ffd7 Merge pull request #1283 from Donkie/fix/1236-stop-single-nfc-scan
Stop the NFC reader after a single-read scan
2026-10-21 18:54:21 +02:00
Donkie 94d0079a5c Use AbortSignal.any so an already-aborted signal never starts the reader 2026-10-18 09:13:47 +02:00
Donkie 5fc8e6cf42 Remember the Library page size 2026-10-18 09:05:23 +02:00
Donkie 2834b68b0e Stop the NFC reader after a single-read scan 2026-10-18 09:05:13 +02:00
Donkie f399855d3b Offer Slovenian and Korean in the language picker 2026-10-14 19:27:48 +02:00
Julia 61e85c29bf Translated using Weblate (Polish)
Currently translated at 100.0% (629 of 629 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/pl/
2026-10-11 15:10:02 +02:00
Julia ef3dee4728 Translated using Weblate (Polish)
Currently translated at 100.0% (628 of 628 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/pl/
2026-10-11 15:08:09 +02:00
Donkie f6f28a8df8 Merge pull request #1274 from Donkie/feat/1173-lot-in-grouped-rows
Add a Show lot numbers toggle to the library
2026-10-11 14:52:15 +02:00
Donkie abdfc73b8d Make lot numbers on spool rows a Filter menu toggle
Always showing the lot was too bulky. It now sits behind "Show lot
numbers" in the Filter menu, next to the archived and no-spools
toggles, off by default. When on, every spool row in any grouping ends
its details line with the lot. Like showEmpty it lives in the URL (lots=1)
and is remembered per browser, since it only adds to what's shown.
2026-10-11 14:40:51 +02:00
Donkie 90713bf5e2 Merge pull request #1275 from Donkie/fix/print-filament-picker-pages
Page the filament picker when printing labels
2026-10-11 14:19:29 +02:00
Donkie 636e12e737 Merge pull request #1266 from Donkie/fix/1181-import-vendor-by-name
Reuse a same-name manufacturer when importing from SpoolmanDB
2026-10-11 14:17:02 +02:00
Donkie c881740e69 Page the filament picker when printing labels
The filament picker loaded up to 1000 filaments once and filtered them
in the browser, so anything past the first 1000 could not be printed.
It now works like the spool picker: 100 per page with the same pager
and sort, search through the backend, and All adding the current page.
2026-10-11 11:45:00 +02:00
Donkie dc18a3017f Show the lot number on spool rows grouped by filament
Spools of one filament looked alike in the grouped list, with only the
usage status to tell them apart. Add the lot number after it when the
spool has one. A long lot is cut by the existing ellipsis, with the full
text on hover. Flat rows and other groupings are unchanged.
2026-10-11 11:43:21 +02:00
Donkie f7c3988fed Merge remote-tracking branch 'origin/master' into fix/1181-import-vendor-by-name
# Conflicts:
#	client_v2/src/lib/api/spoolSource.test.ts
2026-10-11 11:39:55 +02:00
Micha 6746bc4fce Translated using Weblate (German)
Currently translated at 100.0% (628 of 628 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/de/
2026-10-11 11:33:51 +02:00
baked7015 c492cc05fe Translated using Weblate (Chinese (Traditional Han script))
Currently translated at 100.0% (613 of 613 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/zh_Hant/
2026-10-11 11:33:50 +02:00
EtienneB 1b039bca19 Translated using Weblate (Dutch)
Currently translated at 56.1% (344 of 613 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/nl/
2026-10-11 11:33:50 +02:00
EtienneB bd9553342f Translated using Weblate (Dutch)
Currently translated at 46.9% (288 of 613 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/nl/
2026-10-11 11:33:49 +02:00
Julia 6a9904adbb Translated using Weblate (Polish)
Currently translated at 100.0% (613 of 613 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/pl/
2026-10-11 11:33:49 +02:00
EtienneB 74f93b4afb Translated using Weblate (Dutch)
Currently translated at 37.0% (227 of 613 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/nl/
2026-10-11 11:33:48 +02:00
Donkie 1c87bb9c0e Merge pull request #1269 from Donkie/deps/bump-all
Bump dependencies within their declared ranges
2026-10-11 11:33:25 +02:00
Donkie 715cd47b9f Merge pull request #1268 from Donkie/fix/tag-scan-unknown-wording
Mention filaments in the unknown-tag and any-reader texts
2026-10-11 11:32:37 +02:00
Donkie a3977509eb Bump dependencies within their declared ranges
Backend via uv lock --upgrade, client and client_v2 via npm update.
SQLAlchemy stays on 2.0.x: 2.1 is in range, but sqlalchemy-cockroachdb
2.0.4 requires <2.1 and uv would otherwise downgrade the dialect to
2.0.3, which lacks that cap. Paraglide stays on 2.23.0: 2.27.0 (with
@inlang/sdk 4) hangs compiling the inlang project.
2026-10-11 10:35:46 +02:00
Donkie 3a8ac87b13 Mention filaments in the unknown-tag and any-reader texts
Tags can be linked to filaments since 0.27, but the unknown-tag toast
only said to open the spool, and the any-reader setting said scans open
spools.
2026-10-11 10:33:44 +02:00
Donkie 9708d02498 Reuse a same-name manufacturer when importing from SpoolmanDB
The import only looked for a vendor by external_id, so a manufacturer
the user had created by hand was missed and a duplicate was made. Fall
back to the existing case-insensitive name match before creating one.
Both external_id lookups now send a quoted term, since the filter is a
substring match otherwise and "Prusa" would match "Prusament".
2026-10-11 10:32:30 +02:00
Donkie 58a01e3389 Keep a typed 0 for tare, price and temperatures
The add-spool form and the new-filament flow turned a typed 0 into
"not set", so a spool or filament could not store a tare or price of 0
and fell back to the filament or vendor value instead. Blank still means
not set; 0 is now sent as 0. Comma decimals go through parseDecimal.
2026-10-11 10:31:49 +02:00
Donkie 6b6c13e4f1 Merge pull request #1259 from Donkie/fix/silent-list-caps
Page through filament spools and dashboard groups
2026-10-11 10:11:51 +02:00
Donkie b0faab5cfd Merge pull request #1195 from Donkie/worktree-fix-1165-inverted-qr
Decode inverted QR codes in client_v2 scanner on Firefox
2026-10-11 10:11:45 +02:00
Donkie 62963935eb Merge branch 'master' into fix/silent-list-caps 2026-10-11 09:19:00 +02:00
Donkie e72b2d1821 Merge pull request #1262 from Donkie/fix/empty-locations-in-picker
Offer empty dashboard locations in the location pickers
2026-10-10 18:00:25 +02:00
Donkie 4658f42798 Merge pull request #1260 from Donkie/fix/1242-dashboard-card-height
Let dashboard cards use the screen height
2026-10-10 17:59:17 +02:00
Donkie abe5bd909f Merge pull request #1258 from Donkie/fix/low-stock-zero
Keep a stored threshold of 0 across reloads
2026-10-10 17:54:05 +02:00
Donkie 43101b2a2d Offer empty dashboard locations in the location pickers
The spool inspector and the add spools dialog listed only what GET
/location returns, which is the locations that hold a spool right now.
An empty location kept as a dashboard card, like an idle toolhead,
could not be picked without typing it or parking another spool there
first. The old client merged its saved `locations` setting into these
dropdowns; this does the same with the dashboard's saved location
cards (which fall back to that old setting). The library's location
filter still lists only locations in use.

Fixes #1261
2026-10-10 15:03:43 +02:00
Donkie a31beee46b Let dashboard cards use the screen height
Card bodies were capped at min(52vh, 420px), so a group of more than
about eight spools scrolled inside its card while most of a desktop
screen stayed empty below it.

The cap now reaches down to the footer for a single row of cards, but
stops at 1000px. A card only fetches its next page when its list is
scrolled, so a body taller than one page of chips (about 1500px) shows
no scrollbar and never loads the rest; the cap proposed in the issue,
calc(100dvh - 220px), did exactly that on a 2160px tall screen. Narrow
touch layouts keep the old cap so a card can't swallow the page's
scroll. A Playwright spec pins the paging on a tall screen.
2026-10-10 14:59:07 +02:00
Donkie 6447198fe3 Page through filament spools and dashboard groups
The filament inspector asked for its first 100 spools and the dashboard
for its first 1000 groups, and both showed the result as if it were
everything. A filament with more spools got a wrong count and a wrong
total remaining, and groups past the first 1000 never got a card.

Both now page through the whole list with a small allPages helper. The
inspector's sort gets an id tie-break so offset paging is stable, and
duplicates from a spool moving up mid-load are dropped.
2026-10-10 14:50:42 +02:00
Donkie c35983ee52 Keep a stored threshold of 0 across reloads
The low-stock threshold was read back with `Number(stored) || default`,
so a threshold of 0 g came back as 150 on every reload. The search
box's colour-similarity slider had the same bug the other way round
(`n > 0`), turning a stored 0 (exact colour only) back into 20.

Read both with parseDecimal, which tells "nothing stored" apart from a
real 0, and still rejects NaN, negatives and other garbage.
2026-10-10 14:44:10 +02:00
Donkie 1e800ec5f8 Open deep-linked items the list hasn't loaded
A QR code or bookmark pointing at a spool that isn't on the first page of
the list left the inspector on "Loading..." for good. Arriving on the
Library rewrites the URL to restore the remembered view, which re-parses
the same selection into a new object. The inspector's fetch effect
followed that object, so it re-ran, its cleanup aborted the request, and
the re-run skipped the id it had already "attempted". Same for filament
and manufacturer links, and for ids that 404.

Follow the selection by value instead, and forget an attempt whose
request was cancelled before it answered.
2026-10-10 14:40:50 +02:00
Donkie 7e83451226 Catalog lists: Escape closes toolbar menus, tidier footer, list by id
Escape now closes the Filter, Group and Sort menus when they were opened
with a click, which left focus on their button where the menu never saw
the key.

The pager's page numbers and page-size picker wrap as one, so the
catalog's longer summary line no longer strands the picker on a line of
its own on phones.

"Show as a list" in the manufacturer inspector filters by the
manufacturer's id rather than its name, so a namesake stays out.
2026-10-10 10:02:26 +02:00
Donkie 30928407a7 Catalog lists: every sort and filter, plain #ids
The filament and manufacturer lists now sort by every field of the
filament or manufacturer, their custom fields included, plus spool and
filament counts, and offer the same filters as the spool view. A filter
on the spools themselves leaves out the filaments with none, as it does
there.

/spool/group takes the matching sort keys: filament.<column>,
filament.vendor.<column>, filament.extra.<key>,
filament.vendor.extra.<key> and group.filament_count. Keys it can't
resolve are still ignored.

Rows show the id as #id on the left like spool rows, and the Library
tab menu loses its descriptive sublines.
2026-10-10 10:02:26 +02:00
Donkie 02f5c07c13 Add filament and manufacturer lists to the Library
The Library gets two power-user sub-views, /?view=filaments and
/?view=manufacturers, reached from a menu on the Library tab, the search
panel and the manufacturer inspector. Rows are lists rather than tables so
translated labels and long names never widen them. The spool view is
unchanged.

The group endpoint gains what the lists need, all additive: a
group.vendor_name sort, include_empty for group_by=vendor, filament_count
on vendor groups, an opt-in preview of a group's first spools or
filaments, and X-Total-Spools / X-Total-Remaining-Weight headers.
2026-10-10 10:02:26 +02:00
Donkie 423cf234be Decode inverted QR codes in client_v2 scanner on Firefox
Fixes #1165
2026-09-27 08:58:56 +02:00
Donkie 2c15af00b8 Merge pull request #1187 from Donkie/worktree-phone-nfc-auto-navigate
Auto-navigate on tags read by the phone's own NFC
2026-09-27 08:52:59 +02:00
Donkie ac9a32fa23 Merge pull request #1184 from IdefixRC/feat/scanner-camera-switch
Let the QR scanner pick between cameras
2026-09-27 08:48:16 +02:00
Donkie 787d912dec Merge pull request #1194 from Donkie/worktree-qr-custom-template-fields
Resolve label fields in custom QR URL templates
2026-09-27 08:46:52 +02:00
Donkie 8badd51707 Merge remote-tracking branch 'origin/master' into worktree-phone-nfc-auto-navigate 2026-09-27 08:44:40 +02:00
Donkie 9f29826588 Resolve label fields in custom QR URL templates
A spool label's custom QR target can now use fields like {filament.id},
so it can open the filament page while still printing spool fields such
as the lot number. Closes #1152.
2026-09-27 08:41:26 +02:00
Donkie 1a04139c1d Add update check against GitHub releases (#1192)
The server checks the latest GitHub release in the background at startup
and every 12h, logs a warning when a newer version exists, and exposes
latest_version/update_available on /info. The client_v2 footer shows a
link to the new release. Disable with SPOOLMAN_UPDATE_CHECK=FALSE.
2026-09-27 08:32:57 +02:00
jernejp21 586299aaa6 Translated using Weblate (Slovenian)
Currently translated at 22.3% (136 of 609 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/sl/
2026-09-26 13:51:41 +00:00
RRH74 ba62681856 Translated using Weblate (Spanish)
Currently translated at 22.6% (138 of 609 strings)

Translation: Spoolman/Spoolman Web UI v2
Translate-URL: https://hosted.weblate.org/projects/spoolman/spoolman-web-ui-v2/es/
2026-09-26 13:51:32 +00:00
IdefixRCandClaude Opus 5.5 05e4da7a10 Pick the scanner camera from a list instead of cycling
Review feedback on #1184. A native select replaces the cycle button, still
shown only when more than one camera is listed. Picking directly suits
desktops, where webcams have real names, and on Android the select opens the
system's full-screen picker. It also removes a trap in the cycle: qr-scanner
opens a default camera when the requested one fails, and cycling on from that
default could never reach the cameras after the failing one. Every camera is
now one choice away, and the select shows the camera actually streaming.

Cameras with no label are listed as "Camera 1", "Camera 2" and so on. The
list now comes from enumerateDevices() directly, because qr-scanner's
listCameras() fills gaps with an untranslated "Default Camera" / "Camera N"
that can't be told apart from a real device name.

A failed switch now shows the same classifyStartFailure() message as a failed
start, instead of leaving the stage black with only a console error. The
picker stays up so another camera can be tried. After a failed open the
scanner is stopped, and setCamera() only restarts a running scanner (or does
nothing for the same id), so a retry starts it explicitly.

The caption and its n/N position are gone, since the select names the
current camera itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 10:48:46 +08:00