todo-app/lib/sync
Krzysztof kuhy Rudnicki 9f2ffdb8a9
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
file-length / file length <= 250 lines (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
release-apk / release (APK) (push) Has been cancelled
Attach any file to a note, of any size, not only images
📎 now picks any file (Android: Camera / Gallery / File; desktop: an
unfiltered dialog) and the desktop page accepts any dropped file. Photo and
screenshot formats up to 64 MB are still re-encoded and shown inline;
everything else is stored byte for byte on dufs beside the images and linked
as [name](url), shown as a row with its size that opens in the platform's
app (Android) or a new browser tab (desktop). BACKLOG.md rewrites file links
to ~/data/cloud/todo-images/ like image links.

There is no size cap, so no layer holds a file in memory: uploads and
downloads stream through DufsImageClient, writes land in a .tmp renamed when
whole (an interrupted download no longer leaves a truncated file that looks
done), the desktop page POSTs the browser's own Blob with fetch, and Android's
"File" uses file_picker, because file_selector's Android side reads the whole
file into memory on the UI thread. Verified with a 1 GB file end to end on
desktop (peak RSS +36 MB) and on an API 36 emulator.

The wrapper serves attachments from the origin that holds the GitHub token
and the notes, so only script-free types open inline (nosniff), the rest
download; writes carrying another site's Origin are refused (this also
closes cross-site overwrites of the backup files); and attachment routes run
concurrently so a long upload or a playing video cannot stall the page.

Also: cupertino_icons 2.0.0 (unused, but the freshness gate blocks the
pubspec otherwise), open_file 4.0.0 and file_picker 13.1.0 pinned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 12:17:06 +02:00
..
backlog_export_io.dart Export the backlog to ~/src/todo, not ~/todo 2026-09-11 20:33:07 +02:00
backlog_export_web.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00
backlog_export.dart Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:49:03 +02:00
desktop_wrapper.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00
firebase_account_store.dart Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:49:03 +02:00
firebase_backend.dart Enforce the 250-line file cap, and split the first four files 2026-08-14 16:01:24 +02:00
firebase_client.dart Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:49:03 +02:00
firebase_project.dart Enforce the 250-line file cap, and split the first four files 2026-08-14 16:01:24 +02:00
google_platform_io.dart Fix desktop Firebase sync: seed a Google-derived session, not a dead password 2026-08-12 19:35:18 +02:00
google_platform_web.dart Fix desktop Firebase sync: seed a Google-derived session, not a dead password 2026-08-12 19:35:18 +02:00
google_platform.dart Fix desktop Firebase sync: seed a Google-derived session, not a dead password 2026-08-12 19:35:18 +02:00
google_sign_in_backend.dart Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:49:03 +02:00
local_backup_factory_io.dart Export the backlog to ~/src/todo, not ~/todo 2026-09-11 20:33:07 +02:00
local_backup_factory_web.dart Attach images to notes, stored on dufs and kept offline 2026-09-25 14:11:15 +02:00
local_backup_factory.dart Make the app compile and run for web, behind platform seams 2026-07-20 13:14:03 +02:00
local_backup.dart Switch to very_good_analysis, matching the rest of the Flutter ecosystem 2026-07-20 11:05:13 +02:00
notes_markdown.dart Attach any file to a note, of any size, not only images 2026-10-01 12:17:06 +02:00
run_sync.dart Simplify capture UI behind an advanced-mode toggle, add usage analytics 2026-08-12 21:30:40 +02:00
sync_service.dart Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:49:03 +02:00
sync_settings.dart Switch to very_good_analysis, matching the rest of the Flutter ecosystem 2026-07-20 11:05:13 +02:00
sync_state_factory_io.dart Sync through Firebase, mirroring to GitHub, and stop re-downloading peers 2026-08-04 23:36:24 +02:00
sync_state_factory_web.dart Re-point paths for the ~ reorganisation (home-tidy) 2026-09-11 19:49:03 +02:00
sync_state_factory.dart Sync through Firebase, mirroring to GitHub, and stop re-downloading peers 2026-08-04 23:36:24 +02:00