mirror of
https://github.com/kuhyx/todo-app.git
synced 2026-11-10 20:27:01 +01:00
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
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
New optional note field created_by (kuhy|claude), stored like by/repo and omitted when unset so older builds stay wire-compatible. App UI stamps kuhy; MCP add_task and the CLI stamp claude. list/get/search output includes it. Human notes sort above Claude's; Claude notes are hidden behind a per-device eye toggle. CLI --backfill-created-by [--dry-run] classifies old notes by the node that wrote created_at, writing only the created_by field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
681 B
Dart
22 lines
681 B
Dart
// A note typed into the app is stamped created_by kuhy.
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'capture_screen_harness.dart';
|
|
|
|
void main() {
|
|
testWidgets('a captured note is stamped kuhy and keeps it on edit', (
|
|
tester,
|
|
) async {
|
|
final repo = await pumpCapture(tester);
|
|
await tester.enterText(find.byType(TextField).first, 'First line');
|
|
await tester.pump();
|
|
await tester.enterText(find.byType(TextField).first, 'First line, more');
|
|
await tester.pump();
|
|
|
|
final saved = (await repo.listNotes()).single;
|
|
expect(saved.text, 'First line, more');
|
|
expect(saved.createdBy, 'kuhy');
|
|
});
|
|
}
|