Retire the dead NO_IMAGING / imaging handling (follow-up to servuo-plugins #39) #49

Closed
opened 2026-11-26 02:14:52 -06:00 by wtclaude · 0 comments
Member

Retire the dead NO_IMAGING / imaging handling (follow-up to servuo-plugins #39)

servuo-plugins #39 PR 2 finished the Asset Bridge's GDI+-free migration: the shard now decodes all
art (body catalogue + item/land) into ARGB1555 with its own managed readers and no System.Drawing.
As of that PR the overlay no longer sends an imaging field on assets.sources, and the
NO_IMAGING status can no longer arise.

module-uo still carries the consumer side of that retired contract. It is harmless today — every
read is guarded (sources.imaging && sources.imaging.ok === false), so a missing field simply never
trips NO_IMAGING and the admin banner never shows — but it is now dead code describing a state the
shard cannot report. This issue tracks removing it.

To remove

  • server/model/shardAssets/shardAssets.model.js — the NO_IMAGING branch (:203) and the
    imaging: sources.imaging passthrough (
    :564).
  • server/model/shardAssets/shardItemArt.model.js — the NO_IMAGING branch (~:291).
  • server/utils/assetBridge.js — the imaging normalisation (:263) and the /libgdiplus/ 503
    mapping (
    :125).
  • server/router/admin/shard.router.js + server/swagger/doc.js — drop imaging from the
    /shard/assets response schema and NO_IMAGING from the error-code enums; regenerate swagger
    (npm run swagger).
  • client/src/routes/admin/ClientFiles.jsx (~:335, :397, :404) and the prebuilt client/dist/entry.js
    equivalent — remove the imaging/libgdiplus banner.
  • Tests that stub imaging / assert NO_IMAGING: server/test/assetBridge.test.js,
    shardAssets.model.test.js, shardItemArt.model.test.js, clilocBridge.test.js.
  • Docs: docs/modules/uo/API.md /shard/assets row (remove the shard.imaging.ok:false / libgdiplus
    sentence).

Not in scope

The overlay change already shipped (servuo-plugins #39) and the installer doctor libgdiplus row has
its own follow-up. This is only the website/module side.

Design is settled (org lead, 2026-11-26): the overlay stops sending the field; module-uo tolerates its
absence now and sheds the dead branch here.

## Retire the dead `NO_IMAGING` / `imaging` handling (follow-up to servuo-plugins #39) servuo-plugins #39 PR 2 finished the Asset Bridge's GDI+-free migration: the shard now decodes **all** art (body catalogue + item/land) into ARGB1555 with its own managed readers and no `System.Drawing`. As of that PR the overlay **no longer sends an `imaging` field on `assets.sources`**, and the `NO_IMAGING` status can no longer arise. module-uo still carries the consumer side of that retired contract. It is **harmless today** — every read is guarded (`sources.imaging && sources.imaging.ok === false`), so a missing field simply never trips `NO_IMAGING` and the admin banner never shows — but it is now dead code describing a state the shard cannot report. This issue tracks removing it. ### To remove - `server/model/shardAssets/shardAssets.model.js` — the `NO_IMAGING` branch (~:203) and the `imaging: sources.imaging` passthrough (~:564). - `server/model/shardAssets/shardItemArt.model.js` — the `NO_IMAGING` branch (~:291). - `server/utils/assetBridge.js` — the `imaging` normalisation (~:263) and the `/libgdiplus/` 503 mapping (~:125). - `server/router/admin/shard.router.js` + `server/swagger/doc.js` — drop `imaging` from the `/shard/assets` response schema and `NO_IMAGING` from the error-code enums; regenerate swagger (`npm run swagger`). - `client/src/routes/admin/ClientFiles.jsx` (~:335, :397, :404) and the prebuilt `client/dist/entry.js` equivalent — remove the `imaging`/libgdiplus banner. - Tests that stub `imaging` / assert `NO_IMAGING`: `server/test/assetBridge.test.js`, `shardAssets.model.test.js`, `shardItemArt.model.test.js`, `clilocBridge.test.js`. - Docs: `docs/modules/uo/API.md` `/shard/assets` row (remove the `shard.imaging.ok:false` / libgdiplus sentence). ### Not in scope The overlay change already shipped (servuo-plugins #39) and the installer `doctor` libgdiplus row has its own follow-up. This is only the website/module side. Design is settled (org lead, 2026-11-26): the overlay stops sending the field; module-uo tolerates its absence now and sheds the dead branch here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: RunicGateway/Module-uo#49
No description provided.