Skip to content

RM-287: Add Text Display - #154

Merged
biast12 merged 2 commits into
masterfrom
RM-287
Oct 8, 2026
Merged

biast12 merged 2 commits into
masterfrom
RM-287

Conversation

@biast12

@biast12 biast12 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

RM-287

Description

Adds Text Display (type 10) form fields.

  • Text Displays are sent as top-level modal components, because Discord doesn't allow them inside a Label.
  • They never produce an answer. A form with only Text Displays still opens, the ticket opens on submit, and no form-answers embed is added. The welcome message code is unchanged.
  • An answer is now only recorded when the submitted component type matches the stored field type.
  • Exit survey: if no answers were recorded, the archive message isn't updated with a View Exit Survey button.
  • View Exit Survey shows "Unknown Question" when a question's label is empty.

Included:
TicketsBot-cloud/dashboard#152
TicketsBot-cloud/docs#43

Needs: TicketsBot-cloud/database#45

Type of Change

  • Bug fix
  • New feature
  • Breaking change

Testing

Make a form with only a Text Display, and open a ticket with it, not form output should show in the ticket as no inputs are added
Add another type to the form, and open a new ticket (and add something to the input), you should see the output for that that 1 input type

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

Avoids adding feedback controls when no responses exist, validates modal component types before parsing answers, supports top-level text displays, and handles empty survey question titles safely. Enables the local database module replacement in go.mod.
@biast12
biast12 requested a review from a team as a code owner September 23, 2026 18:02
@github-actions github-actions Bot added needs:bump_db PR references database repo changes needs:gomod_comment go.mod has uncommented local replace directives type:feature New Feature labels Sep 23, 2026
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Resolved

No blocking labels remain.

@BenHall-1

Copy link
Copy Markdown
Member

Ready for bump!

@biast12

biast12 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@BenHall-1 bumped!

@github-actions github-actions Bot removed needs:bump_db PR references database repo changes needs:gomod_comment go.mod has uncommented local replace directives labels Oct 2, 2026
@biast12
biast12 merged commit 24339c4 into master Oct 8, 2026
1 check passed
@biast12
biast12 deleted the RM-287 branch October 8, 2026 14:45
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