Skip to content

Commit f0409e7

Browse files
Merge branch 'main' into feat/discovery-update
Resolve conflicts by merging both feature sets: - Keep assisted facilitation v2 features (discovery questions, classification) - Keep JSONPath display customization features - Merge database columns: discovery_questions_model_name + input/output_jsonpath - Merge frontend hooks for both feature sets - Update SPEC_COVERAGE_MAP with both RUBRIC_SPEC and TRACE_DISPLAY_SPEC updates Co-Authored-By: Claude <noreply@anthropic.com>
2 parents f899abf + e655822 commit f0409e7

29 files changed

Lines changed: 1892 additions & 41 deletions

.claude/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/anthropics/claude-code/main/config-schema.json",
32
"permissions": {
43
"deny": [
54
"Bash(rm -rf:*)",

client/package-lock.json

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"class-variance-authority": "^0.7.1",
4242
"clsx": "^2.0.0",
4343
"date-fns": "^4.1.0",
44+
"jsonpath-plus": "^10.3.0",
4445
"lucide-react": "^0.525.0",
4546
"react": "^18.3.0",
4647
"react-day-picker": "^9.8.0",

client/src/client/models/Workshop.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ export type Workshop = {
1616
annotation_started?: boolean;
1717
active_discovery_trace_ids?: Array<string>;
1818
active_annotation_trace_ids?: Array<string>;
19+
discovery_randomize_traces?: boolean;
20+
annotation_randomize_traces?: boolean;
21+
judge_name?: string;
22+
input_jsonpath?: (string | null);
23+
output_jsonpath?: (string | null);
1924
created_at?: string;
2025
};
2126

client/src/components/FacilitatorDashboard.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { Input } from '@/components/ui/input';
2525
import { Label } from '@/components/ui/label';
2626
import { useQueryClient } from '@tanstack/react-query';
2727
import { PhaseControlButton } from './PhaseControlButton';
28+
import { JsonPathSettings } from './JsonPathSettings';
2829
import { toast } from 'sonner';
2930
import { parseRubricQuestions } from '@/utils/rubricUtils';
3031
import { getBackendModelName, getFrontendModelName, getModelOptions } from '@/utils/modelMapping';
@@ -1366,6 +1367,9 @@ export const FacilitatorDashboard: React.FC<FacilitatorDashboardProps> = ({ onNa
13661367
</div>
13671368
</CardContent>
13681369
</Card>
1370+
1371+
{/* JSONPath Settings - Only show in general dashboard view */}
1372+
{!focusPhase && <JsonPathSettings />}
13691373
</div>
13701374
</div>
13711375
);

client/src/components/GeneralDashboard.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React from 'react';
22
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
33
import { Badge } from '@/components/ui/badge';
44
import { Button } from '@/components/ui/button';
5-
import {
6-
Users,
7-
FileText,
8-
Star,
9-
BarChart3,
5+
import {
6+
Users,
7+
FileText,
8+
Star,
9+
BarChart3,
1010
Settings,
1111
Plus,
1212
Eye
@@ -15,6 +15,7 @@ import { useWorkshopContext } from '@/context/WorkshopContext';
1515
import { useAllTraces, useFacilitatorAnnotations } from '@/hooks/useWorkshopApi';
1616
import { UsersService } from '@/client';
1717
import { useQuery } from '@tanstack/react-query';
18+
import { JsonPathSettings } from './JsonPathSettings';
1819

1920
interface GeneralDashboardProps {
2021
onNavigate?: (phase: string) => void;
@@ -165,6 +166,9 @@ export const GeneralDashboard: React.FC<GeneralDashboardProps> = ({ onNavigate }
165166
</Button>
166167
</CardContent>
167168
</Card>
169+
170+
{/* Trace Display Settings */}
171+
<JsonPathSettings />
168172
</div>
169173
);
170174
};

0 commit comments

Comments
 (0)