feat(app): section titles read as dividers; one Rendered/Raw switch per definition; schedule rows with labelled facts and a status pill

This commit is contained in:
2026-10-23 22:09:46 +01:00
parent c467872ee3
commit b44cecf35c
10 changed files with 355 additions and 77 deletions
@@ -282,6 +282,23 @@ void main() {
expect(outcomes.strutStyle, raw.strutStyle);
});
testWidgets('one Rendered/Raw switch governs the whole definition', (
tester,
) async {
await tester.pumpWidget(_material(_view()));
expect(find.byKey(const Key('markdown-source-mode')), findsOneWidget);
expect(_text('Plan the change.'), findsOneWidget);
await tester.tap(find.text('Rendered'));
await tester.pumpAndSettle();
expect(
find
.byType(SelectableText)
.evaluate()
.map((e) => (e.widget as SelectableText).data),
isNot(contains('Plan the change.')),
);
});
test('field labels are the web words', () {
expect(stageConfigLabel('budget_usd'), 'Budget (USD)');
expect(stageConfigLabel('budget_tokens'), 'Budget (tokens)');