Skip to content

Add category prefixes and priority-aware ticket queue - #1

Merged
THEMPGUYActions merged 59 commits into
mainfrom
feature/configurable-ticket-prefix
Oct 19, 2026
Merged

THEMPGUYActions merged 59 commits into
mainfrom
feature/configurable-ticket-prefix

Conversation

@THEMPGUYActions

@THEMPGUYActions THEMPGUYActions commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add a configurable global ticket channel prefix plus an optional override on each category.
  • Automatically migrate missing defaults into existing settings without overwriting custom values; keyed category and priority entries gain only missing fields.
  • Use configured priority ranks consistently for queue listing, strict-order claiming, slash-command choices, ticket embeds, and ticket channel ordering.
  • Reorder ticket channels by priority within each Discord parent category, keeping active tickets above closed tickets and preserving FIFO order for equal priorities.
  • Add an optional persistent queue embed configured with ticketing.queue.display. Its message ID is stored in SQLite, updated on ticket/priority changes, refreshed at the configured interval, and edited again after restarts. If the message is deleted, the bot recreates it and persists the new ID.
  • Fix auto-claiming so a ticket moved from queued to claimed is no longer left in queued status.
  • Add tests for config migration, category prefix naming, real SQLite priority ordering/strict claims, channel sorting, auto-claim state, and queue embed update/recovery/concurrency.

Configuration

  • ticketing.channelPrefix: global prefix; default ticket-.
  • ticketing.categories[].channelPrefix: category override, e.g. general-; empty values inherit the global prefix.
  • priorityLevels[].rank: larger values rank higher.
  • Enable the queue panel with ticketing.queue.enabled: true and ticketing.queue.display.enabled: true, then set type: "embed" and the target text channelId.

Validation

GitHub Actions CI passes npm test and npm run check on the current head commit. Channel sorting is applied within each Discord parent category because Discord channel positions cannot globally interleave channels from separate categories.

Comment thread src/services/tickets.js Fixed
@THEMPGUYActions THEMPGUYActions changed the title Add configurable ticket channel prefixes with automatic config migration Add category prefixes and priority-aware ticket queue Oct 19, 2026
@THEMPGUYActions
THEMPGUYActions merged commit 591c249 into main Oct 19, 2026
3 checks passed
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.

1 participant