Skip to content

Render schematic special-string values - #71

Merged
ShiboSoftwareDev merged 1 commit into
mainfrom
codex/resolve-project-special-strings
Aug 25, 2026
Merged

Render schematic special-string values#71
ShiboSoftwareDev merged 1 commit into
mainfrom
codex/resolve-project-special-strings

Conversation

@ShiboSoftwareDev

@ShiboSoftwareDev ShiboSoftwareDev commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Why

Altium schematic special strings can come from the .SchDoc, its .PrjPCB, or the active filenames. AltiumTS rendered those references literally, so valid strings such as =DocumentName, =ProjectRevision, and =ProjectDrawnBy remained visible even when their values were available.

What changed

  • Resolve document parameters and let schematic rendering receive the current document name, project name, and parsed Altium project.
  • Resolve both native .PrjPCB parameter encodings used by real Altium projects.
  • Keep document parameters above project parameters, matching Altium's parameter precedence.
  • Resolve the native DocumentName and ProjectName system strings from explicit filenames.
  • Leave references unchanged when their context is genuinely unavailable.
  • Add separate focused SVG snapshots for document parameters and project/system strings.

Verification

  • focused SVG tests — 2 passed, 14 assertions
  • bun run format:check
  • bun run lint
  • bun run typecheck
  • bun run build
  • all 117 locally available tests pass; the 61 TI-only tests require the CI fixture bundle

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
altiumts Error Error Aug 25, 2026 8:58pm

Request Review

@ShiboSoftwareDev
ShiboSoftwareDev force-pushed the codex/resolve-project-special-strings branch from 38d2353 to 301db9c Compare August 25, 2026 20:58
@ShiboSoftwareDev ShiboSoftwareDev changed the title Render schematic project parameter values Render schematic special-string values Aug 25, 2026
@ShiboSoftwareDev
ShiboSoftwareDev changed the base branch from codex/resolve-schematic-title-block-parameters to main August 25, 2026 21:03
@ShiboSoftwareDev
ShiboSoftwareDev merged commit 4889beb into main Aug 25, 2026
1 of 2 checks passed
@tscircuitbot

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants