Skip to content

feat: Goal Images#143

Open
cjs8487 wants to merge 19 commits intomainfrom
goal-images
Open

feat: Goal Images#143
cjs8487 wants to merge 19 commits intomainfrom
goal-images

Conversation

@cjs8487
Copy link
Owner

@cjs8487 cjs8487 commented Dec 1, 2025

Adds the ability for maintainers to configure images for goals. Images and related data are configured per game, in order to avoid the need to upload (and consequently store) potentially dozens to hundreds of duplicate images.

New Features

  • Adds a new Images page to the game workspace for managing images and related data
  • Adds goal image editing to the goal editor, along with a preview of the image setup
  • Adds an image mode toggle to rooms, which when toggled will display the configured images instead of the goal text

Goals have the following new fields:

  • Primary image - the main image displayed in the goal. This field is required in order to enable image mode for the goal
  • Secondary Image - an additional, badge-like image, shown in the upper left corner of the goal
  • Label/Tag - Text based information to display, shown in the top right of the goal. Can also be configured with a specific color to correspond with the text
  • Count - the number component of the goal, if needed, shown in the bottom right of the goal

Changes

  • Maximum file size information added to the file upload component

Fixes

  • Fixes an issue where uploaded images would sometimes not render correctly in the upload input

Technical Details

  • Goal images are handled by a new media type: "goalImage"
  • Goal images are limited to 100kb each (reasonable for a 200x200 image)
  • Goal images (and tags) are handled by a separate database model and then linked to the goal record

@cjs8487 cjs8487 changed the title Goal Images feat: Goal Images Jan 3, 2026
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.

2 participants