Skip to content

Refactor bot ticket system and workspace builds - #8

Merged
robo38 merged 7 commits into
mainfrom
@develop/bot
May 29, 2026
Merged

robo38 merged 7 commits into
mainfrom
@develop/bot

Conversation

@robo38

@robo38 robo38 commented May 29, 2026

Copy link
Copy Markdown
Member

Summary

  • Reorganized the Discord bot ticket system into apps/bot/src/ticket.
  • Renamed command and event modules to .command.ts and .event.ts.
  • Hardened command/event loading so each handler skips the wrong file type before dynamic import.
  • Moved ticket actions from Permissions/actions into ticket/actions.
  • Fixed permission import cycles by avoiding the Permissions barrel inside the circular graph.
  • Replaced database services with repository modules and exported TicketRepository.
  • Updated shared ticket/prisma types and regenerated Prisma artifacts.
  • Updated workspace package manifests, TypeScript configs, and build scripts for dist-based package exports.
  • Updated CI to run frozen dependency validation, typecheck, and build.
  • Added changelog and PR documentation for the refactor and log-error fixes.

Changed Areas

  • Bot startup, command loading, event loading, and ticket interaction flow.
  • Ticket domain services, actions, embeds, modals, permissions, and handlers.
  • Permission button/action mapping.
  • Database repository exports and Prisma generated client artifacts.
  • Shared ticket/prisma type definitions.
  • Root and package-level build configuration.
  • GitHub Actions CI workflow.
  • Changelog documentation.

Files To Review Closely

  • apps/bot/src/utils/loader.ts
  • apps/bot/src/handlers/commands.handler.ts
  • apps/bot/src/handlers/events.handler.ts
  • apps/bot/src/Permissions/buttons.ts
  • apps/bot/src/Permissions/roles.ts
  • apps/bot/src/ticket/
  • libs/database/src/db.ts
  • libs/database/src/services/*.repository.ts
  • libs/database/prisma/schema.prisma
  • libs/shared/src/types/prisma.d.ts
  • libs/shared/src/types/ticket.d.ts
  • package.json
  • .github/workflows/ci.yml
  • tsconfig.base.json
  • tsconfig.build.json

Testing

  • bun run --filter @robo/bot build
  • bun run typecheck
  • bun run build

All listed validation commands passed locally on 2026-05-29.

Notes

  • The PowerShell oh-my-posh warning is local environment noise and unrelated to the repo.
  • Git reports LF-to-CRLF warnings for many modified files.
  • Generated Prisma files are included because Prisma generation changed the checked-in client artifacts.

@robo38
robo38 merged commit 5595618 into main May 29, 2026
2 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