Commit Graph
277 Commits
Author SHA1 Message Date
Tautvydas Derzinskas f10bd133f2 docs: update docs and site (#50)
* docs: update docs and site

* docs: image theme adaptability
2026-10-17 05:59:03 +02:00
Tautvydas Derzinskas 9a2238691d feat: administration settings remake + OIDC support (#49)
* feat: expand storage usage reporting with disk breakdown

* feat: add providers admin view

* feat(storage): add background reorganization and admin browser

Adds background-driven storage reorganization for moving model files
when the storage template changes, with an admin interface to preview
changes, check impact, monitor progress, and browse the storage tree
built from plate records rather than filesystem walks.

* feat: new auth admin settings page + OIDC support

* test: fix failing test
2026-10-17 05:07:24 +02:00
Tautvydas Derzinskas 92161f8cf8 feat: admin sidebar change and system health check view (#48) 2026-10-16 18:23:26 +02:00
Tautvydas Derzinskas 731a2950be ci: enable semantic versioning on frontend and backend (#47) 2026-10-16 16:31:54 +02:00
Tautvydas Derzinskas 48b43e96d6 ci: run pull request checks for develop, the new integration branch
Work now merges into develop by pull request; main is the release branch, updated by pull requests from develop, and remains the only branch that publishes images and releases.
2026-10-16 12:08:37 +02:00
Tautvydas Derzinskas 14439a7e9d ci: add roadmap item label and template 2026-10-15 22:18:02 +02:00
Tautvydas Derzinskas 9ada95b0a2 fix: make link-authors test deterministic
The test was timing-dependent: it checked for a 409 while the first run
is still going, but completion depended on when the mock fetch resolved.
Replace the instant mock with a promise the test controls, making the
assertion deterministic. Also save/restore the Thingiverse access token
to prevent test isolation issues.
2026-10-15 13:14:56 +02:00
Tautvydas Derzinskas 9d41c4dee3 feat(admin): manage user roles and delete users, with an instance owner
Admins can now make members admins and delete members from the Users page.
The owner, the first admin, can also demote and delete other admins; nobody
can demote or delete the owner, or themselves. A migration adds the owner
flag and gives it to each existing instance's longest-standing admin, and
the first sign-up of a fresh instance takes an advisory lock so concurrent
sign-ups can't make two owners.

Deleting a user removes their models with every file, their tag mosaics and
storage folder, then the account. Roles are now read from the database on
each request, so a demotion or deletion takes effect at once. Both actions
are logged under the acting admin.
2026-10-15 12:47:06 +02:00
Tautvydas Derzinskas eefbde1bb5 perf(tags): render tag mosaics on the server and size pages to the screen
Each tag tile now loads one WebP built by the backend from its newest models'
pictures, instead of up to ten images laid out in the browser. Mosaics are
made on first request and cached under storage/tag-mosaics; their URL carries
a hash of the pictures in them, so tagging, untagging or a new render gives a
new URL with nothing to invalidate, and existing libraries need no backfill.

The summary joins pictures only for the requested page's tags, a single
tag's mosaic looks up just that tag's newest models, and the Tags page asks
for enough tags to fill the screen. Deleting a tag, or all of a user's
models, removes its mosaics.
2026-10-15 12:46:42 +02:00
Tautvydas Derzinskas eed60e2b24 ci(frontend): pin Node stages to build platform and add job timeout
Pins the dependencies stage in the frontend Dockerfile to $BUILDPLATFORM
so npm ci and vite build run natively on the build machine rather than
under QEMU emulation for arm64 builds. Only the nginx runtime stage is
built per target platform. Adds a 30-minute timeout to prevent hung
build steps from running until GitHub's 6-hour limit.
2026-10-15 11:09:56 +02:00
Tautvydas Derzinskas cdf0a53251 feat(tags): add pagination, thumbnails, and tag deletion 2026-10-15 10:10:43 +02:00
Tautvydas Derzinskas 8ef8cd4478 refactor: improve rendering settings admin UI/UX 2026-10-15 09:50:47 +02:00
Tautvydas Derzinskas ad27e950a9 feat(search): add option to see all results 2026-10-14 22:14:55 +02:00
Tautvydas Derzinskas d0a167461f feat(logo): add seasonal logo to website with glob-based loading 2026-10-14 21:45:04 +02:00
Tautvydas Derzinskas 2dbc92035d feat: add different logo variations for special occasions 2026-10-14 21:36:57 +02:00
Tautvydas Derzinskas c5e5ab460e fix: distinguish Thingiverse rate limits from auth errors and add AI run logging 2026-10-14 21:11:27 +02:00
Tautvydas Derzinskas 97f17e4fa3 feat(AI): add improved descriptions 2026-10-14 20:29:45 +02:00
Tautvydas Derzinskas e07eb41168 feat: enable right click on AI feature 2026-10-14 16:11:11 +02:00
Tautvydas Derzinskas 0b89ad962f fix: minor UX improvements for AI 2026-10-14 16:04:58 +02:00
Tautvydas Derzinskas bfc3fa0d72 fix(ai): disable categorization when last model is deleted
When the last AI model is deleted, categorization is now forced
off server-side, preventing it from silently restarting when a
new model is added. The frontend distinguishes between loading
and no connections, hiding the feature toggle instead of
disabling it, and removes the unused "Add a model first" message.
2026-10-14 15:54:47 +02:00
Tautvydas Derzinskas e542cc4473 feat: AI features split, categorisation UX updates 2026-10-14 15:43:23 +02:00
Tautvydas Derzinskas 56f173a20b feat: ability to link multiple AIs 2026-10-14 15:20:56 +02:00
Tautvydas Derzinskas 8718d82ab3 feat: show available models in model input 2026-10-14 14:43:08 +02:00
Tautvydas Derzinskas bf083bcb26 fix(import): limit manual CAPTCHA cooloff lifts to one per 5 minutes, require value on captcha keys 2026-10-14 14:43:08 +02:00
Tautvydas Derzinskas e15653ca56 refactor(AI): identify candidates by path and support background recategorization (#19)
Provider prompts now identify category candidates by label/path instead
of numeric index, with duplicate-path and fuzzy-match handling. Add
reasoning_effort toggle with automatic fallback for providers that
don't support it.

Replace blocking single-print recategorize with background-queued flow
backed by notifications. Extend bulk-run scope to include folders and
manual categories alongside existing filters.
2026-10-14 12:20:58 +02:00
Rui Valim d70dcfeac2 fix(import): stop flagging models that mention robots as a MakerWorld CAPTCHA, and let a manual retry try again (#18)
* fix(import): stop flagging models that mention robots as a MakerWorld CAPTCHA, and let a manual retry try again

isCaptchaChallenge looked for "captcha" or "robot" in every top-level string of a reply,
design titles and summaries included, so a model named "Robot ..." failed as a CAPTCHA on
every retry and started the 2h cooloff for every other import. Only a captcha key or the
reply's own error, message or msg text counts now.

The cooloff also failed a retry straight away after the user solved the puzzle in the
browser, which is what the error message tells them to do. Starting or retrying a queue job
by hand, a bulk start or retry, and POST /import/jobs/:id/retry now lift it. Automatic
collection syncs still respect it.

* feat(extension): offer "Add to the queue" when MakerWorld blocks an import

A CAPTCHA or the daily download limit won't clear by clicking Import again, so the error
panel lets an admin park the link in the queue with the same collection and profile scope.

* fix(import): let a queue job cut off by a restart be started or retried

A restart marks a running job ERROR with its links still PENDING or RUNNING. The queue page
only offered Start for PAUSED jobs and Retry for jobs with FAILED links, and the API agreed,
so such a job could never run again. The same held for a job whose runner crashed.

Start now takes an ERROR job with links waiting, and a retry reruns links an interrupted
run never reached even when none of them failed.
2026-10-14 10:18:48 +02:00
Rui Valim 748879311a fix(ai): explain answers cut off by the token limit, and log AI and import runs (#16)
* fix(ai): leave room for a full answer and explain a cut-off one

max_tokens 300 cut answers off once the reason filled its 300-character
limit, and the run showed JSON.parse's position instead of the cause.
Raise it to 1024 and turn a parse failure into a readable error, naming
the token limit when the provider reports finish_reason length.

* feat(backend): add a shared logger with levels and greppable fields

One line per event with a level, a scope and key=value fields, or one
JSON object per line with LOG_FORMAT=json. LOG_LEVEL drops lines below
it. Errors log their message, status and code, plus the stack at error
level, and bearer tokens are redacted. Nothing outside it changes yet.

* feat(ai,import): log categorization and import runs through the logger

A bulk AI run kept only its last error in memory, so which models failed
and why was lost. Each provider answer it can't use now logs the model,
finish_reason, completion and reasoning tokens and the end of the answer;
each model's outcome and the run's start and totals are logged too.

Collection, Thingiverse, Printables, profile and zip imports dropped a
failed model without a trace; they now log it with its reason, plus the
job's start and totals. The links runner's console lines move to the
logger.

* fix(ai): read an answer wrapped in markdown or prose

Xiaomi MiMo ignores response_format and sent the object in bold,
`**{...}**`, which failed as not valid JSON although the answer was
complete. When the whole text doesn't parse, try the outermost braces.
2026-10-13 21:29:49 +02:00
Paul TrainaandClaude Opus 5.5 d5ae80951c fix: skip a stale MakerWorld defaultInstanceId when picking the print profile (#15)
MakerWorld can leave a design's defaultInstanceId pointing at a print profile that no longer
exists. pickMakerworldInstanceId (extension) and makerworldInstanceIdFromNextData (backend)
returned it unchecked, so the download-link request went to the dead profile and MakerWorld
answered 403 "The client does not have access rights to the content." Use the default only when
it is still one of the design's instances, otherwise the first, as selectMakerworldProfiles
already does.

Fixes #14


Claude-Session: https://claude.ai/code/session_01KGCb65Zhzwd3daF862ZE6R

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 06:47:04 +02:00
Paul TrainaandClaude Opus 5.5 76907212d4 fix(models): stop the hidden preview renderer from blocking description clicks (#13)
The automatic preview renderer on the model page sits in an invisible box whose
sx width/height of 1 resolve to 100%, so it covers the Description and Tags and
swallows clicks on their links. Let pointer events pass through it.

Fixes #12


Claude-Session: https://claude.ai/code/session_01KGCb65Zhzwd3daF862ZE6R

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 06:42:23 +02:00
Tautvydas Derzinskas 6993a4c423 feat(sync): pause syncs while a provider isn't connected, and hand back models blocked by it 2026-10-12 21:15:38 +02:00
github-actions[bot] 2d433dff17 chore(extension): release 1.5.0
# [thingport-grab-v1.5.0](https://github.com/TautvydasDerzinskas/Thingport/compare/thingport-grab-v1.4.0...thingport-grab-v1.5.0) (2026-10-12)

### Bug Fixes

* **extension:** check a MakerWorld collection against the library in one call ([44c687b](https://github.com/TautvydasDerzinskas/Thingport/commit/44c687b3ae7ba96a7246ece73d79212733cfd449))

### Features

* browse private collections functionality ([b619084](https://github.com/TautvydasDerzinskas/Thingport/commit/b619084be7ed060d02cd6ba473a196e7ba0859de))
* **collections:** add many models to a collection in one call ([acfa844](https://github.com/TautvydasDerzinskas/Thingport/commit/acfa844ebe62ee635941a2a6d499083cf4856d47))
* **collections:** turn sync on from Thingport, picking the provider's collection ([1131700](https://github.com/TautvydasDerzinskas/Thingport/commit/1131700ec5eb53801a85c842143717c66696d8d8))
* **extension:** show when Thingport Grab can't sign in ([623cf25](https://github.com/TautvydasDerzinskas/Thingport/commit/623cf25f2c43d153b6e89952ab572923558aa6b7))
* **extension:** tell Thingport who you're signed in as on Printables and Thingiverse ([d3ed673](https://github.com/TautvydasDerzinskas/Thingport/commit/d3ed67342aae85bc170b95b01b7aba9dfcab15e0))
* **notifications:** reinvent notifications ([1408b09](https://github.com/TautvydasDerzinskas/Thingport/commit/1408b09c5989499b38ee0effd1b7c29661a233a5))
* **sync:** notify on enable, change defaults to daily and designer profiles ([9334438](https://github.com/TautvydasDerzinskas/Thingport/commit/9334438a521a2a5f9a39f6af4d892ac2465c02ce))
thingport-grab-v1.5.0
2026-10-12 11:42:48 +00:00
Tautvydas Derzinskas 29c04d264e test: fix failing tests 2026-10-12 13:24:26 +02:00
Tautvydas Derzinskas b619084be7 feat: browse private collections functionality 2026-10-12 12:54:26 +02:00
Tautvydas Derzinskas d3ed67342a feat(extension): tell Thingport who you're signed in as on Printables and Thingiverse
So the web app's Browse tab can list the user's collections there
without asking for a username. Thingiverse's comes from the page
header's own account link; Printables' from its API's `me`, asked with
the session token the way the site does. Sent only when it changes.
2026-10-12 05:31:19 +02:00
Tautvydas Derzinskas 1131700ec5 feat(collections): turn sync on from Thingport, picking the provider's collection
Every collection's Sync configuration now works before it's synced: a
Browse tab lists the user's own collections on MakerWorld (through
their cookie, private ones included), Printables and Thingiverse (by a
username asked once), and takes any collection's link. Each provider's
collections are drawn in its own colours and manner.

On Printables and Thingiverse the collection's current models are
imported by the sync's first check. MakerWorld rate-limits bulk
imports, so there only models added from now on come in. Settings can
be picked before turning sync on.
2026-10-12 05:31:01 +02:00
Tautvydas Derzinskas 9334438a52 feat(sync): notify on enable, change defaults to daily and designer profiles 2026-10-12 04:08:24 +02:00
Tautvydas Derzinskas acfa844ebe feat(collections): add many models to a collection in one call
Add POST /collection/:id/items. Thingport Grab uses it to file a
MakerWorld collection's already-imported models instead of one request
per model, falling back on older instances.
2026-10-12 03:50:57 +02:00
Tautvydas Derzinskas 623cf25f2c feat(extension): show when Thingport Grab can't sign in
A session token outlives a password change, so a stale saved password
only surfaced days later as failing imports. Check the connection by
signing in (at most every 10 minutes) at browser start, before showing
the in-page icon, and when the popup opens.

When it fails, the icon shows a "not connected" badge whose dialog says
whether the credentials were rejected or the instance didn't answer,
and opens the popup's edit form. The toolbar icon gets a badge too.
Concurrent calls with an expired token now share one sign-in.
2026-10-12 03:50:46 +02:00
Tautvydas Derzinskas 44c687b3ae fix(extension): check a MakerWorld collection against the library in one call
The collection panel sent one /import/status request per model, all at
once. When any failed it counted the model as new, so a collection
already imported could offer to import almost everything again.

Add POST /import/status/batch and use it, falling back to paced
per-model checks on older instances. A failed check now shows an error
instead of guessing.
2026-10-12 03:50:28 +02:00
Tautvydas Derzinskas 1408b09c59 feat(notifications): reinvent notifications 2026-10-11 23:20:21 +02:00
Tautvydas Derzinskas 4d4d2209e6 fix: allow slow API requests through nginx and explain proxy errors
Raise the /api proxy timeout from 60s to 300s, the longest AI timeout the
settings allow. When a proxy answers with an HTML error page, show a short
message instead of the raw HTML.
2026-10-11 21:16:56 +02:00
Tautvydas Derzinskas 5fcadfb179 fix(ai): show why a recategorization failed
The route replaced every provider error with a bare "AI provider failed",
so a stopped Ollama looked the same as a timeout or a bad answer. Pass on the
reason (the API key is already redacted) and log it.
2026-10-11 21:16:48 +02:00
Tautvydas Derzinskas 29c54bac11 feat(ai): accept the provider base URL with or without /v1
A base URL with no path, like Ollama's http://host:11434, gets /v1 added.
URLs that already have a path are kept, so OpenRouter (/api/v1) and Gemini
(/v1beta/openai) keep working. Saved values are normalized when read.
2026-10-11 21:16:37 +02:00
Tautvydas Derzinskas 7a2e82ab6f docs: update dashboard screenshots 2026-10-11 19:54:41 +02:00
Tautvydas Derzinskas 5fa6c40324 feat(flaresolverr): make URL configurable in admin settings 2026-10-11 19:34:29 +02:00
Tautvydas Derzinskas b15adb087b feat: add react skeleton loading bits 2026-10-11 19:09:06 +02:00
Tautvydas Derzinskas b13d0bf597 refactor(dashboard): server-side weather, render priorities, and model query optimization
Move weather endpoints to the server with caching and rate-limiting. Prioritize
3D viewer renders over background thumbnails. Query featured models from database
instead of loading all into memory.
2026-10-11 00:08:23 +03:00
Tautvydas Derzinskas 163d73f2a7 feat: add setting to customize dashboard model thumbnail appearance 2026-10-10 23:22:02 +03:00
Tautvydas Derzinskas c71154a83e feat(dashboard): add clock, weather, and featured-model widgets 2026-10-10 23:13:56 +03:00
Tautvydas Derzinskas 2813237e03 feat: extend dashboard settings with layouts 2026-10-10 21:50:29 +03:00