Skip to content

Commit 0aa2c4f

Browse files
vcarlclaude
andcommitted
Clean up and consolidate escalation module
Remove dead code: - Delete simpleVote.ts and majorityVote.ts (replaced by Effect handlers) - Delete old escalationVotes.server.ts model (replaced by EscalationService) - Remove unused vote handler from voting.ts (keep pure functions only) Consolidate types and imports: - Export Escalation/EscalationRecord types from EscalationService - Move calculateScheduledFor to helpers/escalationVotes.ts - Update all imports to use new locations Files deleted: 4 (-939 lines) Files modified: 9 (cleanup and import updates) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent efb0d98 commit 0aa2c4f

File tree

13 files changed

+55
-581
lines changed

13 files changed

+55
-581
lines changed

app/commands/escalate/majorityVote.ts

Lines changed: 0 additions & 103 deletions
This file was deleted.

app/commands/escalate/simpleVote.ts

Lines changed: 0 additions & 106 deletions
This file was deleted.

app/commands/escalate/strings.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { tallyVotes, type VoteTally } from "#~/commands/escalate/voting";
2+
import type { Escalation } from "#~/effects/services/Escalation";
23
import { resolutions } from "#~/helpers/modResponse";
3-
import type { Escalation } from "#~/models/escalationVotes.server";
44

55
import {
66
buildConfirmedMessageContent,

app/commands/escalate/strings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js";
22

3+
import type { Escalation } from "#~/effects/services/Escalation";
34
import { parseFlags } from "#~/helpers/escalationVotes";
4-
import type { Features } from "#~/helpers/featuresFlags.js";
5+
import type { Features } from "#~/helpers/featuresFlags";
56
import {
67
humanReadableResolutions,
78
resolutions,
89
type Resolution,
910
type VotingStrategy,
1011
} from "#~/helpers/modResponse";
11-
import type { Escalation } from "#~/models/escalationVotes.server";
1212

1313
import type { VoteTally } from "./voting";
1414

0 commit comments

Comments
 (0)