← Back to Pull requests

Bring notes home from Evernote, and say plainly what restoring does #143

Closed
unknown closed this pull request without merging on Nov 22, 2026 01:53 UTC
View on GitHub
unknown unknown commented on Nov 22, 2026 00:57 UTC
Author

Evernote

Add files now offers Evernote instead of "Coming soon".

Evernote isn't issuing developer keys to new apps, so there's no sign-in. Instead:

1. The panel says how to export each notebook from the Evernote app (Export notebook… → ENEX).
2. The exported files are uploaded into an Evernote folder in My files.
3. Once they're in, the notes are brought in by themselves.

What arrives:

  • Each notebook becomes a folder beside its exported file, with a web page per note (text, formatting, pictures, checklists, tags, dates) and the note's attachments in a folder next to it.

  • The exported files are kept, so another notes app can import them later.

  • The Evernote list shows how many notes each notebook has, to check against Evernote before cancelling.
  • How it works:

  • EvernoteSource is an IImportSource, so the room check, the import log and the never-overwrite rule are the engine's own. Adding a newer export brings only new notes.

  • A large export is read once for where each note is, then one note at a time; attachments are decoded as they're copied.

  • Pages keep only what a note can have: no scripts, event handlers, frames, forms, javascript: links or styles that fetch anything, plus a Content-Security-Policy saying so. No DTD or outside entity is read, so a crafted export can't reach other files. Encrypted text stays encrypted; a note that can't be fully read is still added and says so.
  • Docs: the README and docs/technical.md no longer say to use "the folder Evernote's app keeps" (it doesn't hold readable notes). The FAQ answer about Evernote is updated; it goes live with the next deploy from main.

    Backups

    The subtitle now reads: "Pick the date you'd like to restore. Newer files are not overwritten."

    Testing

  • ./scripts/check.sh passes locally (449 .NET tests, 151 web tests, landing and backup suites). The Go tunnel step was skipped: no Go on this Mac.

  • New: EvernoteTests (conversion, unsafe content, a crafted export with an outside entity, names, a notebook larger than one read, broken and cut-off notes, and the whole flow through the API) and web tests for the Evernote panel and for an upload's follow-up running only once it's in place.

  • Tried in a separate copy of the app with sample exports: the files uploaded, 7 notes and attachments were added by themselves, and adding again brought nothing new. Pages checked in a browser; panel checked at phone width.

  • Not yet tried with a real Evernote export. Worth doing before release.
  • 🤖 Generated with Claude Code

    Diff: 323 lines (+242 / -81) across 4 files Reviewer: ethanteng Review duration: 55m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.42) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 323 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.346
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #143"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.0% (MEDIUM) · Higher = larger blast radius
    42.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.1% · Safe to merge
    18.1%