Skip to content

Cleanup: remove orphaned *.state.ts files and dangling 'admin' seed refs#16

Merged
xuyushun441-sys merged 1 commit into
mainfrom
chore/cleanup-orphaned-state-and-seed-refs
Jun 3, 2026
Merged

Cleanup: remove orphaned *.state.ts files and dangling 'admin' seed refs#16
xuyushun441-sys merged 1 commit into
mainfrom
chore/cleanup-orphaned-state-and-seed-refs

Conversation

@xuyushun441-sys
Copy link
Copy Markdown
Contributor

Follow-up cleanup after the 7.7.0 migration (#15).

  • Delete 14 *.state.ts files. After lifecycle machines moved from the unsupported object-level stateMachines key into state_machine validation rules, nothing imports these modules. Leaving them is misleading — they look authoritative but are dead.
  • Remove 10 dangling assignee: 'admin' / author_user: 'admin' refs from the helpdesk seed. Templates seed no sys_user, so 'admin' matches nothing and resolved to null; dropping keeps the seed honest (tickets/messages load unassigned). Both fields are optional.

9/9 packages build green, typecheck clean.

🤖 Generated with Claude Code

Follow-up cleanup after the 7.7.0 migration (#15).

- Delete the 14 `*.state.ts` files. After lifecycle machines moved from the
  unsupported object-level `stateMachines` key into `state_machine` validation
  rules, nothing imports these modules; leaving them is misleading (they look
  authoritative but are dead).
- Remove 10 dangling `assignee: 'admin'` / `author_user: 'admin'` refs from the
  helpdesk seed. Templates seed no `sys_user`, so 'admin' matches nothing and
  resolved to null; dropping keeps the seed honest (tickets/messages load
  unassigned). Both fields are optional.

9/9 build green, typecheck clean.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@xuyushun441-sys xuyushun441-sys merged commit c7c8dcf into main Jun 3, 2026
0 of 2 checks passed
@xuyushun441-sys xuyushun441-sys deleted the chore/cleanup-orphaned-state-and-seed-refs branch June 3, 2026 03:58
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.

2 participants