Skip to content

Sb/2d load and render - #109

Merged
over2take merged 2 commits into
feature/system-builderfrom
sb/2d-load-and-render
Sep 29, 2026
Merged

over2take merged 2 commits into
feature/system-builderfrom
sb/2d-load-and-render

Conversation

@over2take

Copy link
Copy Markdown
Owner

Summary

Test plan

  • Tested locally
  • Tests pass

Pre-merge checklist

Code quality:

  • Code follows project style
  • No breaking changes (or clearly documented)
  • No console errors or warnings

Version & Release:

  • Version bumped? If releasing to users, update:
    • frontend/package.json version
    • docker-compose.yml APP_VERSION
    • CHANGELOG.md with release notes
  • GitHub Actions will auto-tag Docker images with the new version

Before merging to main:

  • All tests passing
  • PR reviewed and approved
  • Branch is up to date with main
  • No merge conflicts

Related issues

Developer added 2 commits September 29, 2026 18:11
… sheet drawn from its definition

Definition format gains `sheet` (systemBuilder/sheet.js): tabs, header and
sections of text/number/textarea/select fields with visibility, combat
sensitivity, max pairs and token/bank links, checked like the rest; a system
with no sheet gets a starter one.

systemBuilder/runtime.js loads PUBLISHED systems (never drafts) into memory,
compiled into the meta the built-in templates carry, and sheets/templates.js
reaches it through a hook (a require would be circular). Built-ins are always
found first, so they cannot change. Publish and delete reload it; the picker
lists published systems and can switch to them; GET /api/systems/render/:id
gives browsers layout and words, never formulas.

Frontend: sheets/customTemplates.ts turns the render copy into a SheetTemplate
for the ordinary SheetRenderer; getTemplate answers for custom systems; a hook
redraws when one arrives.

Tests mutation-checked (render leak, drafts, reload, writable links, fetch
dedupe). Verified end to end on a throwaway secure-mode server: create,
publish, switch, a player's socket edit saved with derived values.
@over2take
over2take merged commit bb9330c into feature/system-builder Sep 29, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant