Skip to content

Commit 382cfbe

Browse files
committed
Clean up lint warnings / unused variables
1 parent 6458840 commit 382cfbe

File tree

5 files changed

+4
-53
lines changed

5 files changed

+4
-53
lines changed

frontend/src/components/chat/chat_info_panel.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@ import {
1818
ChatStageConfig,
1919
ChatStagePublicData,
2020
MediatorProfile,
21-
MediatorStatus,
2221
ParticipantProfile,
2322
convertUnifiedTimestampToTime,
2423
getTimeElapsed,
2524
} from '@deliberation-lab/utils';
26-
import {
27-
getChatStartTimestamp,
28-
getChatTimeRemainingInSeconds,
29-
} from '../../shared/stage.utils';
25+
import {getChatStartTimestamp} from '../../shared/stage.utils';
3026
import {getHashBasedColor} from '../../shared/utils';
3127
import {styles} from './chat_info_panel.scss';
3228

@@ -58,12 +54,12 @@ export class ChatPanel extends MobxLitElement {
5854
return html`
5955
<div class="side-layout">
6056
<stage-description .stage=${this.stage} noPadding> </stage-description>
61-
${this.renderTimer(true)} ${this.renderParticipantList()}
57+
${this.renderTimer()} ${this.renderParticipantList()}
6258
</div>
6359
`;
6460
}
6561

66-
private renderTimer(showDivider = false) {
62+
private renderTimer() {
6763
if (!this.stage) return nothing;
6864

6965
const publicStageData = this.cohortService.stagePublicDataMap[

frontend/src/components/stages/group_chat_participant_view.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,6 @@ export class GroupChatView extends MobxLitElement {
220220
private renderIndicators() {
221221
if (!this.stage) return nothing;
222222

223-
const publicStageData = this.cohortService.stagePublicDataMap[
224-
this.stage.id
225-
] as ChatStagePublicData;
226-
227223
// Check if all other participants have completed the stage
228224
const completed = this.cohortService.getStageCompletedParticipants(
229225
this.stage.id,

frontend/src/shared/templates/charity_allocations.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import {
2-
createTextPromptItem,
32
createChatStage,
43
createDefaultMediatorGroupChatPrompt,
5-
createDefaultStageContextPromptItem,
64
AgentMediatorTemplate,
75
MediatorPromptConfig,
86
createAgentMediatorPersonaConfig,
@@ -11,9 +9,6 @@ import {
119
StructuredOutputSchema,
1210
createStructuredOutputConfig,
1311
createAgentChatSettings,
14-
PromptItemType,
15-
ProfileInfoPromptItem,
16-
ProfileContextPromptItem,
1712
DEFAULT_AGENT_MODEL_SETTINGS,
1813
DEFAULT_EXPLANATION_FIELD,
1914
DEFAULT_READY_TO_END_FIELD,
@@ -461,9 +456,6 @@ export function getCharityDebateTemplate(
461456
discussionStageId,
462457
`${EMOJIS[roundNum - 1]} Round ${roundNum}: Discussion`,
463458
setting,
464-
{
465-
persona: {id: mediatorAgentId, name: mediatorFriendlyName},
466-
} as AgentMediatorTemplate,
467459
);
468460
} else {
469461
discussionStage = createAllocationDiscussionStage(
@@ -554,7 +546,6 @@ function createDiscussionStageWithMediator(
554546
stageId: string,
555547
stageName: string,
556548
setting: string,
557-
mediatorTemplate: AgentMediatorTemplate,
558549
): StageConfig {
559550
const mediatorText = `\n\n🤖 An AI-based facilitator will be present in this discussion.`;
560551
const discussionText = `Discuss the ideal allocation of ${setting}.${mediatorText}`;

frontend/src/shared/templates/charity_allocations_ootb.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import {
22
ApiKeyType,
33
AgentModelSettings,
4-
createTextPromptItem,
54
createChatStage,
6-
createDefaultStageContextPromptItem,
75
AgentMediatorTemplate,
86
MediatorPromptConfig,
97
createAgentMediatorPersonaConfig,
@@ -12,10 +10,6 @@ import {
1210
StructuredOutputSchema,
1311
createStructuredOutputConfig,
1412
createAgentChatSettings,
15-
PromptItemType,
16-
ProfileInfoPromptItem,
17-
ProfileContextPromptItem,
18-
DEFAULT_AGENT_MODEL_SETTINGS,
1913
DEFAULT_EXPLANATION_FIELD,
2014
DEFAULT_READY_TO_END_FIELD,
2115
DEFAULT_RESPONSE_FIELD,
@@ -70,32 +64,6 @@ const GEMINI_MEDIATOR_ID = 'gemini-mediator-agent';
7064
const CLAUDE_MEDIATOR_ID = 'claude-mediator-agent';
7165
const OPENAI_MEDIATOR_ID = 'openai-mediator-agent';
7266

73-
const FAILURE_MODE_ENUMS = [
74-
'NoFailureModeDetected',
75-
'LowEffortOrLowEngagement',
76-
'OffTopicDrift',
77-
'UnevenParticipation',
78-
'NoJustificationOrPrematureConsensus',
79-
'BinaryStuck',
80-
'SelfContainedReasoningOnly',
81-
];
82-
83-
const SOLUTION_STRATEGY_ENUMS = [
84-
'NoSolutionNeeded', // No failure mode / still early
85-
// LowEffortOrLowEngagement
86-
'InviteBriefReasoningOrValues',
87-
// OffTopicDrift
88-
'GentlyRefocusOnAllocationTask',
89-
// UnevenParticipation
90-
'InviteQuietVoiceOpenSpace',
91-
// NoJustificationOrPrematureConsensus
92-
'CheckConsensusElicitOneReason',
93-
// BinaryStuck
94-
'ExploreMiddleGroundOrSharedGoals',
95-
// SelfContainedReasoningOnly
96-
'PromptEngagementWithOthers',
97-
];
98-
9967
export const OOTB_CHARITY_DEBATE_METADATA = createMetadataConfig({
10068
name: 'Out-of-the-box Mediated Charity Debate (3 Rounds)',
10169
publicName: 'Charity Allocation Debate',

functions/src/utils/validation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export function validateStages(stages: unknown[]): ValidationResult {
185185
` - ${nestedError.path}: ${nestedError.message}`,
186186
);
187187
}
188-
} catch (err) {
188+
} catch {
189189
// If drilling into union fails, fall back to generic error
190190
errorMessages.push(` - ${error.path}: ${error.message}`);
191191
}

0 commit comments

Comments
 (0)