Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/http/endpoints/api/panel/panelcreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ type panelBody struct {
PendingCategory *uint64 `json:"pending_category,string"`
DeleteMentions bool `json:"delete_mentions"`
TranscriptChannelId *uint64 `json:"transcript_channel_id,string"`
UseThreads bool `json:"use_threads"`
}

func (p *panelBody) IntoPanelMessageData(customId string, isPremium bool) panelMessageData {
Expand Down Expand Up @@ -237,6 +238,7 @@ func CreatePanel(c *gin.Context) {
PendingCategory: data.PendingCategory,
DeleteMentions: data.DeleteMentions,
TranscriptChannelId: data.TranscriptChannelId,
UseThreads: data.UseThreads,
}

createOptions := panelCreateOptions{
Expand Down
1 change: 1 addition & 0 deletions app/http/endpoints/api/panel/panelupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ func UpdatePanel(c *gin.Context) {
PendingCategory: data.PendingCategory,
DeleteMentions: data.DeleteMentions,
TranscriptChannelId: data.TranscriptChannelId,
UseThreads: data.UseThreads,
}

// insert mention data
Expand Down
10 changes: 9 additions & 1 deletion frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions frontend/src/components/manage/PanelCreationForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
use_server_default_naming_scheme: true,
exit_survey_form_id: "null",
pending_category: "null",
use_threads: false,
welcome_message: {
fields: [],
colour: "#2ECC71",
Expand Down Expand Up @@ -262,6 +263,14 @@
bind:value={data.delete_mentions}
/>
</div>
<div class="row">
<Checkbox
label="Create Tickets as Threads"
col2
tool
bind:value={data.use_threads}
/>
</div>
<div class="incomplete-row">
<CategoryDropdown
label="Ticket Category"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ replace github.com/go-playground/validator/v10 => github.com/go-playground/valid
require (
github.com/BurntSushi/toml v1.2.1
github.com/TicketsBot-cloud/archiverclient v0.0.0-20250807224931-e188ad18a850
github.com/TicketsBot-cloud/common v0.0.0-20250509064208-a2d357175463
github.com/TicketsBot-cloud/database v0.0.0-20251005195038-fd63a423fcb7
github.com/TicketsBot-cloud/common v0.0.0-20251026182733-99fa0dc31d90
github.com/TicketsBot-cloud/database v0.0.0-20251107204613-c96c07a0eb63
github.com/TicketsBot-cloud/gdl v0.0.0-20251007163257-7e59b92d02dd
github.com/TicketsBot-cloud/logarchiver v0.0.0-20250809082842-70aa389bcbdf
github.com/TicketsBot-cloud/worker v0.0.0-20251007163454-37483445234a
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ github.com/TicketsBot-cloud/analytics-client v0.0.0-20250604180646-6606dfc8fc8c
github.com/TicketsBot-cloud/analytics-client v0.0.0-20250604180646-6606dfc8fc8c/go.mod h1:zecIz09jVDSHyhV6NYgTko0NEN0QJGiZbzcxHRjQLzc=
github.com/TicketsBot-cloud/archiverclient v0.0.0-20250807224931-e188ad18a850 h1:Tz3cUMtGYF4dtb5BIDQajlnYBC3pAMTFMLG47GL9wpU=
github.com/TicketsBot-cloud/archiverclient v0.0.0-20250807224931-e188ad18a850/go.mod h1:Mux1bEPpOHwRw1wo6Fa6qJLJH9Erk9qv1yAIfLi1Wmw=
github.com/TicketsBot-cloud/common v0.0.0-20250509064208-a2d357175463 h1:ZO2kw9lpsy4umoWFmAt9WKVFb3WvU5oSif2Yw4K7Lj4=
github.com/TicketsBot-cloud/common v0.0.0-20250509064208-a2d357175463/go.mod h1:PL5j/omFvU0NeyTKCESmOF+3GscaEuM0aqmI4yFcCFY=
github.com/TicketsBot-cloud/database v0.0.0-20251005195038-fd63a423fcb7 h1:TK9QTv3LeuuMcZMP/MtPsdjPazkj8MmkCRS8AU+idRk=
github.com/TicketsBot-cloud/database v0.0.0-20251005195038-fd63a423fcb7/go.mod h1:LPDEn9e5wccH7rq/pUlVcL3UhyLnnwdM2dhj0tp/ljo=
github.com/TicketsBot-cloud/common v0.0.0-20251026182733-99fa0dc31d90 h1:gv7uVneGf22eTwT976iWpCPWA6yPY51nfWPadcDreWI=
github.com/TicketsBot-cloud/common v0.0.0-20251026182733-99fa0dc31d90/go.mod h1:uRra7EnPtmd7Og9dLZ7SYgb0AwODeBnd5qSaDdWcjtU=
github.com/TicketsBot-cloud/database v0.0.0-20251107204613-c96c07a0eb63 h1:hT2CWruZ/YOL1TWebVU3E9rtoeMnlAxZiHdqfH/cWX0=
github.com/TicketsBot-cloud/database v0.0.0-20251107204613-c96c07a0eb63/go.mod h1:LPDEn9e5wccH7rq/pUlVcL3UhyLnnwdM2dhj0tp/ljo=
github.com/TicketsBot-cloud/gdl v0.0.0-20251007163257-7e59b92d02dd h1:C4GzdEYarK2V81oAarvRW2RA2wzRGRydCAzBKtb/lGU=
github.com/TicketsBot-cloud/gdl v0.0.0-20251007163257-7e59b92d02dd/go.mod h1:CdwBR2egPtxUXjD2CgC9ZwfuB8dz9HPePM8nuG6dt7Y=
github.com/TicketsBot-cloud/logarchiver v0.0.0-20250809082842-70aa389bcbdf h1:InP2ht90XOkLJKLjVrsCYPJunxlLkdsorikgNRk35bQ=
Expand Down