Skip to content

Fix: Apply the default team automatically when creating a panel - #137

Merged
BenHall-1 merged 1 commit into
masterfrom
default-team-new-panel
Sep 5, 2026
Merged

Fix: Apply the default team automatically when creating a panel#137
BenHall-1 merged 1 commit into
masterfrom
default-team-new-panel

Conversation

@biast12

@biast12 biast12 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Description

The Support Teams picker on /manage/:guildId/panels/create starts empty. Nothing forces a choice — validateTeams returns early on an empty array and default_team is unvalidated — so a panel saved without opening the Routing section is stored with default_team = false and no panel_teams rows.

Type of Change

  • Bug fix
  • New feature
  • Breaking change

Testing

Try to create a newww panel

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 `teams` and `default_team` to the initial panel payload on the create page so new panels include explicit team assignment defaults.
@biast12
biast12 requested a review from a team as a code owner September 4, 2026 21:06
@github-actions github-actions Bot added the type:bug Bug Fixes label Sep 4, 2026
@BenHall-1
BenHall-1 merged commit 5cbf539 into master Sep 5, 2026
3 checks passed
@BenHall-1
BenHall-1 deleted the default-team-new-panel branch September 5, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants