Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove console.logs, allow viewing core version, update props #663

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ test("POST /api/package_releases/get - should find release by package_name_with_
const listResponse = await axios.post("/api/package_releases/list", {
package_name: createdPackage.name,
})
console.log(listResponse.data)

// Get the release using package_name_with_version
const getResponse = await axios.post("/api/package_releases/get", {
Expand Down
46 changes: 38 additions & 8 deletions bun.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@tscircuit/math-utils": "^0.0.10",
"@tscircuit/mm": "^0.0.8",
"@tscircuit/pcb-viewer": "^1.11.12",
"@tscircuit/props": "^0.0.138",
"@tscircuit/props": "^0.0.143",
"@tscircuit/schematic-viewer": "^1.4.3",
"@types/file-saver": "^2.0.7",
"@types/ms": "^0.7.34",
Expand All @@ -76,12 +76,12 @@
"@valtown/codemirror-ts": "^2.2.0",
"@vercel/analytics": "^1.4.1",
"change-case": "^5.4.4",
"circuit-json": "^0.0.135",
"circuit-json": "^0.0.136",
"circuit-json-to-bom-csv": "^0.0.6",
"circuit-json-to-gerber": "^0.0.16",
"circuit-json-to-pnp-csv": "^0.0.6",
"circuit-json-to-tscircuit": "^0.0.4",
"circuit-json-to-readable-netlist": "^0.0.8",
"circuit-json-to-tscircuit": "^0.0.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.4",
Expand Down Expand Up @@ -130,7 +130,7 @@
"@babel/standalone": "^7.26.2",
"@biomejs/biome": "^1.9.2",
"@playwright/test": "^1.48.0",
"@tscircuit/core": "^0.0.306",
"@tscircuit/core": "^0.0.307",
"@tscircuit/prompt-benchmarks": "^0.0.28",
"@tscircuit/runframe": "^0.0.144",
"@types/babel__standalone": "^7.1.7",
Expand Down
1 change: 0 additions & 1 deletion scripts/generate-image-sizes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const INPUT_DIR = "src/assets/originals"
const OUTPUT_DIR = "public/assets"

async function generateImageSizes() {
console.log("one")
if (!fs.existsSync(INPUT_DIR)) {
fs.mkdirSync(INPUT_DIR, { recursive: true })
}
Expand Down
3 changes: 0 additions & 3 deletions src/components/CodeAndPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ export function CodeAndPreview({ snippet }: Props) {
...(code.match(/export const (\w+) ?=/)?.slice(1) ?? []),
]

console.log(possibleExportNames)

const exportName = possibleExportNames[0]

let entrypointContent: string
Expand All @@ -224,7 +222,6 @@ export function CodeAndPreview({ snippet }: Props) {
"main.tsx": entrypointContent,
}
}, [code, manualEditsFileContent])
console.log(fsMap)

if (!snippet && (urlParams.snippet_id || urlParams.should_create_snippet)) {
return (
Expand Down
4 changes: 4 additions & 0 deletions src/components/EditorNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { SnippetLink } from "./SnippetLink"
import { TypeBadge } from "./TypeBadge"
import { useUpdateDescriptionDialog } from "./dialogs/edit-description-dialog"
import { useForkSnippetMutation } from "@/hooks/useForkSnippetMutation"
import tscircuitCorePkg from "@tscircuit/core/package.json"

export default function EditorNav({
circuitJson,
Expand Down Expand Up @@ -367,6 +368,9 @@ export default function EditorNav({
<Trash2 className="mr-2 h-3 w-3" />
Delete Snippet
</DropdownMenuItem>
<DropdownMenuItem className="text-xs text-gray-500" disabled>
@tscircuit/core@{tscircuitCorePkg.version}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
<Button
Expand Down
1 change: 1 addition & 0 deletions src/hooks/use-run-tsx/construct-circuit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const constructCircuit = ({
const board = circuit.root?.children[0]
// const board = circuit.selectOne("board")
if (board) {
console.log("board props", board.props)
seveibar marked this conversation as resolved.
Show resolved Hide resolved
board.setProps({
...board.props,
partsEngine: jlcPartsEngine,
Expand Down
Loading