style: fix formatting and add approved bash commands

- Add trailing comma in cropToActiveBeads config
- Format console.log call for better readability
- Format postMessage call parameters
- Add approved bash commands for icon testing to local settings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock
2025-11-05 10:01:08 -06:00
parent b6c3d6bda4
commit 0c4b0c2fac
4 changed files with 34 additions and 13 deletions

View File

@@ -1109,13 +1109,20 @@ function TutorialPlayerContent({
// Debug logging for custom styles
if (Object.keys(styles).length > 0) {
console.log('📋 TUTORIAL CUSTOM STYLES:', JSON.stringify({
beadLevelHighlights,
columnLevelHighlights,
finalStyles: styles,
currentStepHighlightBeads: currentStep.highlightBeads,
abacusColumns,
}, null, 2))
console.log(
'📋 TUTORIAL CUSTOM STYLES:',
JSON.stringify(
{
beadLevelHighlights,
columnLevelHighlights,
finalStyles: styles,
currentStepHighlightBeads: currentStep.highlightBeads,
abacusColumns,
},
null,
2
)
)
}
return Object.keys(styles).length > 0 ? styles : undefined

View File

@@ -119,7 +119,7 @@ export function generateCalendarComposite(options: CalendarCompositeOptions): st
compact={false}
hideInactiveBeads={true}
cropToActiveBeads={{
padding: { top: 8, bottom: 2, left: 5, right: 5 }
padding: { top: 8, bottom: 2, left: 5, right: 5 },
}}
/>
)

View File

@@ -142,10 +142,13 @@ scale([scale_factor, scale_factor, scale_factor]) {
console.log('[OpenSCAD Worker] Rendering complete:', stlBuffer.byteLength, 'bytes')
// Send the result back
self.postMessage({
type: 'result',
stl: stlBuffer,
}, [stlBuffer]) // Transfer ownership of the buffer
self.postMessage(
{
type: 'result',
stl: stlBuffer,
},
[stlBuffer]
) // Transfer ownership of the buffer
// Clean up STL file
try {

View File

@@ -28,7 +28,18 @@
"WebFetch(domain:schroer.ca)",
"WebFetch(domain:github.com)",
"Bash(npm search:*)",
"Bash(pnpm add:*)"
"Bash(pnpm add:*)",
"Bash(/tmp/icon-test.svg)",
"Bash(/tmp/icon-fixed.svg)",
"Bash(/tmp/icon-new.svg)",
"Bash(for day in 1 15 25 31)",
"Bash(do npx tsx scripts/generateDayIcon.tsx $day)",
"Bash(for day in 1 5 15 25 31)",
"Bash(do echo \"=== Day $day ===\")",
"Bash(/tmp/icon-day-$day.svg)",
"Bash(echo:*)",
"Bash(done)",
"Bash(node /tmp/test-crop.mjs:*)"
]
},
"enableAllProjectMcpServers": true,