todo-app/lib/data
Krzysztof kuhy Rudnicki 72c5c21d9a Default a bare-link draft to the freeform template
A third of the freeform notes in the backlog are nothing but a pasted
URL, and the capture screen still offered them the seven-step spec
stepper. NoteTemplate.forDraft now picks `blank` for a draft that is
only links, so filing a link costs one paste.

The switch runs on every raw keystroke and is lossless in both
directions — it only ever fires while the raw body is the source, so
there are no section values to convert. Type prose alongside the link
and the spec template comes straight back. An explicit choice from the
dropdown or the guided wizard sets _templatePickedByUser and is never
overridden.

isBareLink is deliberately strict: one word of context ("read this
https://…") means the note has prose in it and keeps the spec template.

Verified on the phone (release APK, adb install -r): typing a bare URL
flips Template to Blank and drops the Guided segment; appending " port
this to Dart" restores LLM design spec and Guided. Test note created by
that check was deleted and the deletion synced (back to 49 notes).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-26 22:13:26 +02:00
..
desktop_backup_client.dart Make the app compile and run for web, behind platform seams 2026-07-20 13:14:03 +02:00
legacy_sqlite_migration.dart Restore notes at their own edit time, not "now" 2026-07-20 14:24:13 +02:00
note_repository.dart Restore notes at their own edit time, not "now" 2026-07-20 14:24:13 +02:00
note_template.dart Default a bare-link draft to the freeform template 2026-07-26 22:13:26 +02:00
note.dart Switch to very_good_analysis, matching the rest of the Flutter ecosystem 2026-07-20 11:05:13 +02:00
repository_factory_io.dart Make the app compile and run for web, behind platform seams 2026-07-20 13:14:03 +02:00
repository_factory_web.dart Make the app compile and run for web, behind platform seams 2026-07-20 13:14:03 +02:00
repository_factory.dart Make the app compile and run for web, behind platform seams 2026-07-20 13:14:03 +02:00
web_log_persistence.dart Add the desktop wrapper, and stop the test suite eating BACKLOG.md 2026-07-20 13:33:25 +02:00