Skip to content

Commit a18d148

Browse files
committed
Lesson 5
1 parent 4939877 commit a18d148

File tree

14 files changed

+63
-276
lines changed

14 files changed

+63
-276
lines changed

website/docs/methodology/lesson-5-grounding.md

Lines changed: 22 additions & 236 deletions
Large diffs are not rendered by default.

website/src/components/VisualElements/CapabilityMatrix.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function getTrustIndicator(level: 'high' | 'medium' | 'low'): {
6060
}
6161
}
6262

63-
export default function CapabilityMatrix(): JSX.Element {
63+
export default function CapabilityMatrix() {
6464
return (
6565
<div className={styles.container}>
6666
<div className={styles.tableWrapper}>

website/src/components/VisualElements/ContextWindowMeter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface ContextWindowMeterProps {
99
export default function ContextWindowMeter({
1010
initialTokens = 2000,
1111
maxTokens = 200000,
12-
}: ContextWindowMeterProps): JSX.Element {
12+
}: ContextWindowMeterProps) {
1313
const [tokens, setTokens] = useState(initialTokens);
1414

1515
const percentage = (tokens / maxTokens) * 100;

website/src/components/VisualElements/GroundingComparison.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,7 @@ interface PhaseCardProps {
113113
onToggle: () => void;
114114
}
115115

116-
function PhaseCard({
117-
phase,
118-
side,
119-
isExpanded,
120-
onToggle,
121-
}: PhaseCardProps): JSX.Element {
116+
function PhaseCard({ phase, side, isExpanded, onToggle }: PhaseCardProps) {
122117
const data =
123118
side === 'without' ? phase.withoutGrounding : phase.withGrounding;
124119
const Icon = iconMap[data.icon];
@@ -158,7 +153,7 @@ function PhaseCard({
158153
className={`${styles.phaseDetails} ${isExpanded ? styles.phaseDetailsExpanded : ''}`}
159154
>
160155
<pre className={styles.phaseDetailsContent}>{data.details}</pre>
161-
{isWithGrounding && data.tools && data.tools.length > 0 && (
156+
{isWithGrounding && 'tools' in data && data.tools.length > 0 && (
162157
<div className={styles.toolBadges}>
163158
{data.tools.map((tool) => (
164159
<span key={tool} className={styles.toolBadge}>
@@ -172,7 +167,7 @@ function PhaseCard({
172167
);
173168
}
174169

175-
export default function GroundingComparison(): JSX.Element {
170+
export default function GroundingComparison() {
176171
const [expandedPhases, setExpandedPhases] = useState<Set<string>>(new Set());
177172

178173
const togglePhase = (phaseId: number, side: 'without' | 'with') => {

website/src/components/VisualElements/UShapeAttentionCurve.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ interface UShapeAttentionCurveProps {
66
}
77

88
export default function UShapeAttentionCurve({
9-
initialContextFill = 60,
10-
}: UShapeAttentionCurveProps): JSX.Element {
9+
initialContextFill = 30,
10+
}: UShapeAttentionCurveProps) {
1111
const [contextFill, setContextFill] = useState(initialContextFill);
1212
const [animatedPath, setAnimatedPath] = useState<string>('');
1313
const previousPathRef = useRef<string>('');

website/src/components/VisualElements/WorkflowCircle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface Connection {
1515
endY: number;
1616
}
1717

18-
export default function WorkflowCircle(): JSX.Element {
18+
export default function WorkflowCircle() {
1919
const centerX = 250;
2020
const centerY = 250;
2121
const radius = 140;

website/src/components/VisualElements/icons/CheckIcon.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ interface IconProps {
55
size?: number;
66
}
77

8-
export default function CheckIcon({
9-
className,
10-
size = 24,
11-
}: IconProps): JSX.Element {
8+
export default function CheckIcon({ className, size = 24 }: IconProps) {
129
return (
1310
<svg
1411
width={size}

website/src/components/VisualElements/icons/ConnectedIcon.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ interface IconProps {
55
size?: number;
66
}
77

8-
export default function ConnectedIcon({
9-
className,
10-
size = 24,
11-
}: IconProps): JSX.Element {
8+
export default function ConnectedIcon({ className, size = 24 }: IconProps) {
129
return (
1310
<svg
1411
width={size}

website/src/components/VisualElements/icons/DisconnectedIcon.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ interface IconProps {
55
size?: number;
66
}
77

8-
export default function DisconnectedIcon({
9-
className,
10-
size = 24,
11-
}: IconProps): JSX.Element {
8+
export default function DisconnectedIcon({ className, size = 24 }: IconProps) {
129
return (
1310
<svg
1411
width={size}

website/src/components/VisualElements/icons/QuestionIcon.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ interface IconProps {
55
size?: number;
66
}
77

8-
export default function QuestionIcon({
9-
className,
10-
size = 24,
11-
}: IconProps): JSX.Element {
8+
export default function QuestionIcon({ className, size = 24 }: IconProps) {
129
return (
1310
<svg
1411
width={size}

0 commit comments

Comments
 (0)