chore(assets): retire the dead NO_IMAGING / imaging handling #51

Merged
whitlocktech merged 1 commits from chore/retire-no-imaging-49 into main 2026-11-27 13:54:41 -06:00
Member

What & why

Closes #49. servuo-plugins #39 (PR 2, servuo-plugins#43, merged) made the Asset Bridge GDI+-free: the
overlay no longer sends imaging on assets.sources, and NO_IMAGING can no longer arise. This
removes 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: the NO_IMAGING branches and the
    shard.imaging passthrough on /shard/assets.
  • utils/assetBridge.js: the imaging normalisation, and the /libgdiplus/ 503 → NO_IMAGING
    mapping. A 503 now always maps to SHARD_DOWN.
  • ClientFiles.jsx: the "shard host cannot render images" banner.
  • swagger/doc.js + shard.router.js: shard.imaging dropped from the schema, NO_IMAGING dropped
    from the three error-code enums, libgdiplus wording dropped from the descriptions. Fragment
    regenerated (npm run swagger).
  • Tests: the two NO_IMAGING tests deleted, the libgdiplus-503 test replaced with "a 503 is
    SHARD_DOWN", and the imaging: { ok: true } stubs taken out of five fixtures.

Docs: RunicGateway/docs PR (modules/uo/API.md /shard/assets row). docs/link and docs/website
were already updated in docs#418.

How it was tested

Locally on Windows, Node 20 toolchain:

  • server: npm test 736 pass / 0 fail; check:imports, check:bundle, check:swagger OK.
  • client: npm run build, npm test 45 pass / 0 fail, check:externals OK.
  • git grep -i "imaging|libgdiplus" finds nothing in the repo.

Not done: the frozen-manifest CI job and a live walk of the Client Files page. No route changed, so
the manifest shouldn't move.

Checklist

  • I have read CONTRIBUTING.md.
  • The change builds and existing tests/checks pass locally.
  • I have added or updated tests/docs where it makes sense.
  • My commits are reasonably scoped with clear messages.

AI-assisted contributions (required)

  • No AI tools were used to produce this contribution.
  • AI tools were used. Tool(s): Claude Code (Claude Opus 5.5). I have reviewed and understand
    every change, and take responsibility for it. AI-authored commits are
    marked with a Co-Authored-By / Assisted-By trailer.

License

  • I agree that my contribution is licensed under this project's 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

## What & why Closes #49. servuo-plugins #39 (PR 2, servuo-plugins#43, merged) made the Asset Bridge GDI+-free: the overlay no longer sends `imaging` on `assets.sources`, and `NO_IMAGING` can no longer arise. This removes 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`: the `NO_IMAGING` branches and the `shard.imaging` passthrough on `/shard/assets`. - `utils/assetBridge.js`: the `imaging` normalisation, and the `/libgdiplus/` 503 → `NO_IMAGING` mapping. **A 503 now always maps to `SHARD_DOWN`.** - `ClientFiles.jsx`: the "shard host cannot render images" banner. - `swagger/doc.js` + `shard.router.js`: `shard.imaging` dropped from the schema, `NO_IMAGING` dropped from the three error-code enums, libgdiplus wording dropped from the descriptions. Fragment regenerated (`npm run swagger`). - Tests: the two `NO_IMAGING` tests deleted, the libgdiplus-503 test replaced with "a 503 is `SHARD_DOWN`", and the `imaging: { ok: true }` stubs taken out of five fixtures. Docs: RunicGateway/docs PR (modules/uo/API.md `/shard/assets` row). `docs/link` and `docs/website` were already updated in docs#418. ## How it was tested Locally on Windows, Node 20 toolchain: - `server`: `npm test` 736 pass / 0 fail; `check:imports`, `check:bundle`, `check:swagger` OK. - `client`: `npm run build`, `npm test` 45 pass / 0 fail, `check:externals` OK. - `git grep -i "imaging|libgdiplus"` finds nothing in the repo. Not done: the `frozen-manifest` CI job and a live walk of the Client Files page. No route changed, so the manifest shouldn't move. ## Checklist - [x] I have read [CONTRIBUTING.md](CONTRIBUTING.md). - [x] The change builds and existing tests/checks pass locally. - [x] I have added or updated tests/docs where it makes sense. - [x] My commits are reasonably scoped with clear messages. ## AI-assisted contributions (required) - [ ] No AI tools were used to produce this contribution. - [x] AI tools were used. Tool(s): `Claude Code (Claude Opus 5.5)`. I have reviewed and understand every change, and take responsibility for it. AI-authored commits are marked with a `Co-Authored-By` / `Assisted-By` trailer. ## License - [x] I agree that my contribution is licensed under this project's license (**GNU GPL v3.0 or later**), and I have the right to contribute it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
wtclaude added 1 commit 2026-11-27 13:42:37 -06:00
chore(assets): retire the dead NO_IMAGING / imaging handling
All checks were successful
PR Checks / client-build (pull_request) Successful in 34s
PR Checks / frozen-manifest (pull_request) Successful in 52s
PR Checks / server-tests (pull_request) Successful in 9m49s
7a4cf199c2
servuo-plugins #39 made the Asset Bridge GDI+-free: the overlay no longer
sends `imaging` on assets.sources and NO_IMAGING can no longer arise. Drop
the consumer side: the model branches in shardAssets/shardItemArt, the
`imaging` passthrough and normalisation, the /libgdiplus/ 503 mapping (a
503 is now always SHARD_DOWN), the admin Client Files banner, the
`shard.imaging` schema and NO_IMAGING enum values, and the test stubs.
Swagger fragment regenerated.

Closes #49

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t
whitlocktech merged commit 0e90fd819a into main 2026-11-27 13:54:41 -06:00
whitlocktech deleted branch chore/retire-no-imaging-49 2026-11-27 13:54:42 -06:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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