Compare commits

...

4 Commits

Author SHA1 Message Date
9663738843 Make the real-clock test time-independent
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file-length / file length <= 250 lines (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Waiting to run
Tests / test (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZHWP4KZ6x5TcXDBFC
2026-11-17 22:11:23 +01:00
0fbedaeecf Resolve pubspec.lock with Flutter 3.50
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZHWP4KZ6x5TcXDBFC
2026-11-17 22:06:16 +01:00
1c2fb2e451 Cover the silent autolog branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZHWP4KZ6x5TcXDBFC
2026-11-17 22:04:10 +01:00
098ed29ec7 Drop material_ui allowlist entry
Bump sync_settings_ui 0.8.3, crdt_sync_flutter 0.8.3 and
github_device_auth 0.5.1; material_ui 1.11.1 now resolves, so the
transitive exception is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWZHWP4KZ6x5TcXDBFC
2026-11-17 22:01:07 +01:00
5 changed files with 27 additions and 28 deletions

View File

@ -166,11 +166,11 @@ packages:
dependency: "direct main"
description:
path: crdt_sync_flutter
ref: "crdt_sync_flutter-v0.8.2"
resolved-ref: "1962d303336dfe260850466b8ee841033b9ad1ce"
ref: "crdt_sync_flutter-v0.8.3"
resolved-ref: "6e3f86ef0d73ba45db975bf03915fecce8a60f98"
url: "https://github.com/kuhyx/utils"
source: git
version: "0.8.2"
version: "0.8.3"
cross_file:
dependency: transitive
description:
@ -524,11 +524,11 @@ packages:
dependency: "direct main"
description:
path: github_device_auth
ref: "github_device_auth-v0.5.0"
resolved-ref: "0ef5461805e8f574de5174c940775e5245d675b3"
ref: "github_device_auth-v0.5.1"
resolved-ref: da1d7c0692e2e402ae4944f2425b36a55ad43e9c
url: "https://github.com/kuhyx/utils"
source: git
version: "0.5.0"
version: "0.5.1"
google_account_token:
dependency: "direct main"
description:
@ -742,10 +742,10 @@ packages:
dependency: "direct main"
description:
name: material_ui
sha256: "474c135fd46b56ff1d35ca982155e8863d28fbc6464d1192acf4ee53a738680e"
sha256: a6b19012df437a356cbc01f8ea22a105e07194c47c9a6009da0032a0ce35c4ab
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.11.1"
meta:
dependency: transitive
description:
@ -1051,11 +1051,11 @@ packages:
dependency: "direct main"
description:
path: sync_settings_ui
ref: "sync_settings_ui-v0.8.2"
resolved-ref: "3225af8365481677d61a8cabec0c0ad4d0407567"
ref: "sync_settings_ui-v0.8.3"
resolved-ref: dde5566b2c6eb38a8e1e58a4252925f3baca8ad1
url: "https://github.com/kuhyx/utils"
source: git
version: "0.8.2"
version: "0.8.3"
synchronized:
dependency: transitive
description:

View File

@ -2,7 +2,7 @@ name: diet_guard_app
description: "Companion phone app for diet_guard: log meals on the go."
publish_to: 'none'
version: 1.0.173+1
version: 1.0.177+1
environment:
sdk: ^3.12.2
@ -18,7 +18,7 @@ dependencies:
crdt_sync_flutter:
git:
url: https://github.com/kuhyx/utils
ref: crdt_sync_flutter-v0.8.2
ref: crdt_sync_flutter-v0.8.3
path: crdt_sync_flutter
crypto: 3.0.8
cryptography: 2.9.0
@ -40,7 +40,7 @@ dependencies:
github_device_auth:
git:
url: https://github.com/kuhyx/utils
ref: github_device_auth-v0.5.0
ref: github_device_auth-v0.5.1
path: github_device_auth
# One-tap Google ID token via the framework AccountManager chooser (FOSS).
google_account_token:
@ -53,7 +53,7 @@ dependencies:
idb_shim: 2.11.3
# Camera/gallery photo as transient input to Claude (never stored or synced).
image_picker: 1.2.4
material_ui: 1.11.0
material_ui: 1.11.1
path: 1.9.1
path_provider: 2.1.6
permission_handler: 13.0.2
@ -66,7 +66,7 @@ dependencies:
sync_settings_ui:
git:
url: https://github.com/kuhyx/utils
ref: sync_settings_ui-v0.8.2
ref: sync_settings_ui-v0.8.3
path: sync_settings_ui
url_launcher: 6.3.3
uuid: 4.6.0

View File

@ -115,13 +115,10 @@ void main() {
});
test('uses the real clock when now is omitted', () async {
// Just exercises the `now ?? DateTime.now()` branch without asserting
// on specific slots (which depend on the actual time the test runs).
await checkAndNotify();
expect(
notificationLog.where((c) => c.method == 'show' || c.method == 'cancel'),
isNotEmpty,
);
// Just exercises the `now ?? DateTime.now()` branch. Whether anything is
// shown or cancelled depends on the wall clock (nothing is due after the
// last slot's cutoff), so only completion is asserted.
await expectLater(checkAndNotify(), completes);
});
test('still syncs when nothing is due', () async {

View File

@ -9,8 +9,3 @@ exceptions:
reason: local toolchain /opt/flutter is 3.47.9; fleet-wide Flutter 3.50 bump is separate work
blocked_by: local-toolchain
expires: "2026-11-26"
- ecosystem: pub
package: material_ui
pinned: "1.11.0"
reason: sync_settings_ui 0.8.2 (git dependency from kuhyx/utils) pins material_ui 1.11.0 exactly, so 1.11.1 cannot resolve until utils releases a sync_settings_ui that takes it
blocked_by: transitive:sync_settings_ui@0.8.2

View File

@ -156,6 +156,13 @@ class TestAutologBeforeLock:
assert autolog_due_delivery([].append) == 0
fetch.assert_not_called()
def test_nothing_new_to_log_stays_silent(self) -> None:
"""Dishes already logged: zero written, no report line."""
self._go((DISHES, None))
lines = self._go((DISHES, None))
assert self.written == 0
assert lines == []
def test_logging_error_is_swallowed(self) -> None:
"""Even a disk error falls back to the lock instead of crashing the gate."""
lines: list[str] = []