Skip to content

feat(system-builder): a built-in game's own conditions in the GAME ta… - #222

Merged
over2take merged 1 commit into
feature/system-builderfrom
sb/4e2c2-game-tab-conditions
Oct 9, 2026
Merged

over2take merged 1 commit into
feature/system-builderfrom
sb/4e2c2-game-tab-conditions

Conversation

@over2take

Copy link
Copy Markdown
Owner

…b (4e2c2)

Under CWN, Cyberpunk RED, Shadowrun or Generic the main admin gets a CONDITIONS panel in TTRPG_SYSTEM: the standard ten (four shown, the rest folded) and the table's own, added with a name, a drawn or uploaded icon and a description, or removed after asking.

  • sheets/tableConditions.ts: the panel as logic, held to the server's own checks and conditionsOf in its tests.
  • components/TableConditionsPanel.tsx; shown only for the main admin under a built-in game.
  • components/ConditionIconPicker.tsx: the icon picker pulled out of the builder's CONDITIONS page, which now uses it too.
  • systemsApi.saveTableConditions.
  • useSocket relays the server's conditionsChanged, so token windows and the map ask for the game's list again.

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

…b (4e2c2)

Under CWN, Cyberpunk RED, Shadowrun or Generic the main admin gets a
CONDITIONS panel in TTRPG_SYSTEM: the standard ten (four shown, the rest
folded) and the table's own, added with a name, a drawn or uploaded icon
and a description, or removed after asking.

- sheets/tableConditions.ts: the panel as logic, held to the server's
  own checks and conditionsOf in its tests.
- components/TableConditionsPanel.tsx; shown only for the main admin
  under a built-in game.
- components/ConditionIconPicker.tsx: the icon picker pulled out of the
  builder's CONDITIONS page, which now uses it too.
- systemsApi.saveTableConditions.
- useSocket relays the server's conditionsChanged, so token windows and
  the map ask for the game's list again.
@over2take
over2take merged commit 8096bb9 into feature/system-builder Oct 9, 2026
4 checks passed
@over2take
over2take deleted the sb/4e2c2-game-tab-conditions branch October 9, 2026 20:47
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