fix: show readable calendar notes with links #8

Merged
exler merged 2 commits from camila/readable-calendar-notes into main 2026-10-25 08:54:29 +01:00
Collaborator

Summary

  • Show HTML event descriptions as readable text, keeping paragraphs, line breaks, list items and layout-table content. Decode HTML entities without rendering the original markup.
  • Keep link labels and visible HTTP(S) destinations, opening links through the existing safe external opener. Preserve explicit destinations exactly, including trailing punctuation; apply punctuation heuristics only to bare prose URLs.
  • Ignore scripts/styles/resources and unsafe link schemes. Never insert source nodes or attributes into the live document.
  • Preserve the original description—including CRLF and surrounding whitespace—when another field is edited. Intentional notes edits and clearing still work.

The root cause was escaping the entire HTML description directly into the Notes panel. This is a presentation-only change: no dependency, schema, backend or synchronization changes.

Verification

  • Frozen Bun install, typecheck, lint, production build and diff check passed.
  • 88/88 Chromium renderer tests passed on the integrated final branch, with one worker. Native IPC is mocked; this is not native-calendar E2E evidence.
  • Tests cover Google-style nested tables, entities, paragraphs/lists, plain comparisons/placeholders, safe external opening, unsafe markup and delayed resource loading, exact untouched-note preservation, deliberate edits/clears, and punctuation-bearing explicit destinations.
  • Independent source review found an explicit-URL truncation issue; corrected with a demonstrated RED/GREEN regression and re-reviewed before integration.
  • Integrated current main (198d745) without removing read-only calendar protections or recurring-event editing/category behavior. Applied the formatter to one existing upstream test expression required by the lint gate.
  • Existing non-failing ResizeObserver warnings remain. Earlier runs documented an unrelated parallel compose-autosave timing flake and one local Playwright trace-artifact ENOENT; the final serial suite passed.
  • Rust/native checks were not run locally; remote CI is authoritative for its Rust/native smoke gates. That generic smoke does not establish native-calendar interaction coverage.

Workflow evaluation (initial attempts only)

Both arms started at 43f2a60 using Claude Code 2.1.301, Opus (claude-opus-5-5), medium effort, the same acceptance specification and separate worktrees. Sequential baseline-first execution; Superlite pinned to c9d3260 (1.11.0), session-scoped only.

Initial execution Existing workflow Superlite
Execution wall time 664.461 s 1037.742 s
API-equivalent cost, not subscription billing $1.376925 $2.179901
Turns 37 47
Completed subagents 0 1 reviewer

Both initial implementations failed an independent exact-description preservation probe. Superlite used inline implementation plus a final reviewer, not a parallel build. Acceptance fixes and final source review were separate follow-ups and are excluded from these measurements.

For this task, Superlite was 56.2% slower and 58.3% more expensive at API-equivalent rates. This is n=1, with fixed order, shared caches/auto-memory, different toolsets and test-debugging effort; it is not a causal or general benchmark. No recommendation to enable Superlite by default follows from this pilot.

Scope and limits

Only HTTP(S) links are clickable. Known real HTML tags are treated as HTML, while ordinary placeholders remain literal. This is readable text, not HTML layout fidelity; preformatted whitespace is collapsed. Middle-click is suppressed to prevent webview navigation. No merge, release or deployment is part of this PR.

## Summary - Show HTML event descriptions as readable text, keeping paragraphs, line breaks, list items and layout-table content. Decode HTML entities without rendering the original markup. - Keep link labels and visible HTTP(S) destinations, opening links through the existing safe external opener. Preserve explicit destinations exactly, including trailing punctuation; apply punctuation heuristics only to bare prose URLs. - Ignore scripts/styles/resources and unsafe link schemes. Never insert source nodes or attributes into the live document. - Preserve the original description—including CRLF and surrounding whitespace—when another field is edited. Intentional notes edits and clearing still work. The root cause was escaping the entire HTML description directly into the Notes panel. This is a presentation-only change: no dependency, schema, backend or synchronization changes. ## Verification - Frozen Bun install, typecheck, lint, production build and diff check passed. - **88/88 Chromium renderer tests passed** on the integrated final branch, with one worker. Native IPC is mocked; this is not native-calendar E2E evidence. - Tests cover Google-style nested tables, entities, paragraphs/lists, plain comparisons/placeholders, safe external opening, unsafe markup and delayed resource loading, exact untouched-note preservation, deliberate edits/clears, and punctuation-bearing explicit destinations. - Independent source review found an explicit-URL truncation issue; corrected with a demonstrated RED/GREEN regression and re-reviewed before integration. - Integrated current main (`198d745`) without removing read-only calendar protections or recurring-event editing/category behavior. Applied the formatter to one existing upstream test expression required by the lint gate. - Existing non-failing ResizeObserver warnings remain. Earlier runs documented an unrelated parallel compose-autosave timing flake and one local Playwright trace-artifact ENOENT; the final serial suite passed. - Rust/native checks were not run locally; remote CI is authoritative for its Rust/native smoke gates. That generic smoke does not establish native-calendar interaction coverage. ## Workflow evaluation (initial attempts only) Both arms started at `43f2a60` using Claude Code 2.1.301, Opus (`claude-opus-5-5`), medium effort, the same acceptance specification and separate worktrees. Sequential baseline-first execution; Superlite pinned to `c9d3260` (1.11.0), session-scoped only. | Initial execution | Existing workflow | Superlite | |---|---:|---:| | Execution wall time | 664.461 s | 1037.742 s | | API-equivalent cost, not subscription billing | $1.376925 | $2.179901 | | Turns | 37 | 47 | | Completed subagents | 0 | 1 reviewer | Both initial implementations failed an independent exact-description preservation probe. Superlite used inline implementation plus a final reviewer, not a parallel build. Acceptance fixes and final source review were separate follow-ups and are **excluded** from these measurements. For this task, Superlite was 56.2% slower and 58.3% more expensive at API-equivalent rates. This is **n=1**, with fixed order, shared caches/auto-memory, different toolsets and test-debugging effort; it is not a causal or general benchmark. No recommendation to enable Superlite by default follows from this pilot. ## Scope and limits Only HTTP(S) links are clickable. Known real HTML tags are treated as HTML, while ordinary placeholders remain literal. This is readable text, not HTML layout fidelity; preformatted whitespace is collapsed. Middle-click is suppressed to prevent webview navigation. No merge, release or deployment is part of this PR.
chore: bump version to 0.4.2
Some checks failed
Verify and release / verify (push) Failing after 1m34s
Verify and release / build (push) Has been skipped
198d7452e2
fix: show readable calendar notes with links
Some checks failed
Verify and release / verify (push) Has been cancelled
Verify and release / build (push) Has been cancelled
Verify and release / verify (pull_request) Has been cancelled
Verify and release / build (pull_request) Has been cancelled
4dbcc9e7b2
exler force-pushed camila/readable-calendar-notes from 4dbcc9e7b2
Some checks failed
Verify and release / verify (push) Has been cancelled
Verify and release / build (push) Has been cancelled
Verify and release / verify (pull_request) Has been cancelled
Verify and release / build (pull_request) Has been cancelled
to f2e0c5279e
Some checks failed
Verify and release / verify (pull_request) Has been cancelled
Verify and release / build (pull_request) Has been cancelled
Verify and release / verify (push) Has been cancelled
Verify and release / build (push) Has been cancelled
2026-10-25 08:48:42 +01:00
Compare
exler merged commit bc2f552fe5 into main 2026-10-25 08:54:29 +01:00
exler deleted branch camila/readable-calendar-notes 2026-10-25 08:54:29 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
exler/ambassador!8
No description provided.