Skip to content

Commit c56bad8

Browse files
Doug Hamakerclaude
authored andcommitted
Fix New Draft clearing, skip preflight on blank, rebuild app v0.1.6
- "New draft" clears to blank editor, shows "Untitled" in dropdown - Auto-preflight skipped when no template selected (blank draft) - Fixes "0 issues must be fixed" nonsense on empty state Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5644178 commit c56bad8

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "trustrender"
7-
version = "0.1.5"
7+
version = "0.1.6"
88
description = "Fast, code-first PDF generation from structured data. No browser, no Chromium."
99
license = "MIT"
1010
classifiers = [

src/trustrender/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class RenderResult:
2222
from .errors import ErrorCode as ErrorCode # noqa: F811
2323
from .templates import render_template
2424

25-
__version__ = "0.1.5"
25+
__version__ = "0.1.6"
2626

2727
__all__ = [
2828
"render", "audit", "AuditResult",

src/trustrender/playground/assets/index-BUfAqsay.js renamed to src/trustrender/playground/assets/index-BlB6jwr6.js

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

src/trustrender/playground/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="preconnect" href="https://fonts.googleapis.com" />
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
1010
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
11-
<script type="module" crossorigin src="/assets/index-BUfAqsay.js"></script>
11+
<script type="module" crossorigin src="/assets/index-BlB6jwr6.js"></script>
1212
<link rel="stylesheet" crossorigin href="/assets/index-C_8tk8M3.css">
1313
</head>
1414
<body>

website/src/App.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ function AppWorkspace() {
15901590

15911591
// Debounce: 500ms for data changes, 900ms for template source edits (burstier typing)
15921592
useEffect(() => {
1593-
if (parseError) return
1593+
if (parseError || !template) return
15941594
if (preflightTimer.current) clearTimeout(preflightTimer.current)
15951595
preflightTimer.current = setTimeout(() => { runPreflight() }, 500)
15961596
return () => clearTimeout(preflightTimer.current)
@@ -1861,6 +1861,7 @@ function AppWorkspace() {
18611861
</div>
18621862
<div className="flex items-center gap-2">
18631863
<select value={template} onChange={e => switchFixture(e.target.value, payloadMode)} className="text-[10px] font-mono text-muted bg-transparent border border-rule rounded px-2 py-1 cursor-pointer">
1864+
{!template && <option value="">Untitled</option>}
18641865
{serverTemplates && serverTemplates.length > 0
18651866
? serverTemplates.map(t => <option key={t.name} value={t.name}>{t.name}</option>)
18661867
: Object.entries(FIXTURES).map(([k, v]) => <option key={k} value={k}>{v.label}</option>)

0 commit comments

Comments
 (0)