chore(assets): retire the dead NO_IMAGING / imaging handling #51
Reference in New Issue
Block a user
No description provided.
Delete Branch "chore/retire-no-imaging-49"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What & why
Closes #49. servuo-plugins #39 (PR 2, servuo-plugins#43, merged) made the Asset Bridge GDI+-free: the
overlay no longer sends
imagingonassets.sources, andNO_IMAGINGcan no longer arise. Thisremoves the module's consumer side of that retired contract. It was harmless (every read was guarded)
but described a state the shard can't report.
Removed:
shardAssets.model.js/shardItemArt.model.js: theNO_IMAGINGbranches and theshard.imagingpassthrough on/shard/assets.utils/assetBridge.js: theimagingnormalisation, and the/libgdiplus/503 →NO_IMAGINGmapping. A 503 now always maps to
SHARD_DOWN.ClientFiles.jsx: the "shard host cannot render images" banner.swagger/doc.js+shard.router.js:shard.imagingdropped from the schema,NO_IMAGINGdroppedfrom the three error-code enums, libgdiplus wording dropped from the descriptions. Fragment
regenerated (
npm run swagger).NO_IMAGINGtests deleted, the libgdiplus-503 test replaced with "a 503 isSHARD_DOWN", and theimaging: { ok: true }stubs taken out of five fixtures.Docs: RunicGateway/docs PR (modules/uo/API.md
/shard/assetsrow).docs/linkanddocs/websitewere already updated in docs#418.
How it was tested
Locally on Windows, Node 20 toolchain:
server:npm test736 pass / 0 fail;check:imports,check:bundle,check:swaggerOK.client:npm run build,npm test45 pass / 0 fail,check:externalsOK.git grep -i "imaging|libgdiplus"finds nothing in the repo.Not done: the
frozen-manifestCI job and a live walk of the Client Files page. No route changed, sothe manifest shouldn't move.
Checklist
AI-assisted contributions (required)
Claude Code (Claude Opus 5.5). I have reviewed and understandevery change, and take responsibility for it. AI-authored commits are
marked with a
Co-Authored-By/Assisted-Bytrailer.License
(GNU GPL v3.0 or later), and I have the right to contribute it.
🤖 Generated with Claude Code
https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t