Skip to content

RM-287: Add Text Display - #45

Merged
BenHall-1 merged 1 commit into
masterfrom
RM-287
Oct 2, 2026
Merged

BenHall-1 merged 1 commit into
masterfrom
RM-287

Conversation

@biast12

@biast12 biast12 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

RM-287

Description

Adds storage for Discord Text Display form fields (component type 10).

  • New nullable form_input.content column (VARCHAR(4000)), read and written by every form input query. GalleryFormInputSnapshot also gets Content.
  • Create/CreateTx take a new content parameter after placeholder.
  • New FormInputOptionTable.DeleteByFormInputTx deletes all options of a field inside a transaction.

Migration:

ALTER TABLE form_input ADD COLUMN IF NOT EXISTS "content" VARCHAR(4000) DEFAULT NULL;

For:
TicketsBot-cloud/worker#154
TicketsBot-cloud/dashboard#152

Type of Change

  • Bug fix
  • New feature
  • Breaking change

Checklist

  • My code follows the style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Add nullable content storage and JSON fields for form inputs and gallery snapshots, update all queries and create/update methods to read and persist it, and add transactional deletion of options by form input.
@BenHall-1
BenHall-1 merged commit 01dca52 into master Oct 2, 2026
2 checks passed
@BenHall-1
BenHall-1 deleted the RM-287 branch October 2, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants