Give glass control bars equal end and edge gaps
Inside a glass bar the first and last controls now keep the same gap from the pill's sides as from its top and bottom, from shared GlassBarMetrics (48/44 targets, 8 edge gap). Applies to the artifact viewer bar (hugs its actions without a pager), the chevron pagers (position text inset like an icon), and the chat composer's Cupertino Send/Stop (centred circle). Run 7 in the full-app probe now records change captures for diff captures.
This commit is contained in:
@@ -55,6 +55,7 @@ JsonMap probeRunDetail() => {
|
||||
'started_at': '2026-10-20T08:30:00Z',
|
||||
'finished_at': '2026-10-20T08:31:00Z',
|
||||
'diagnostic': 'release plan accepted',
|
||||
'file_changes': _probeChanges(['docs/release-plan.md']),
|
||||
},
|
||||
{
|
||||
'stage': 'build',
|
||||
@@ -72,6 +73,11 @@ JsonMap probeRunDetail() => {
|
||||
'url': '/artifacts/7/2/release-report.txt',
|
||||
},
|
||||
],
|
||||
'file_changes': _probeChanges([
|
||||
'lib/release/train.dart',
|
||||
'lib/release/notes.dart',
|
||||
'test/release/train_test.dart',
|
||||
]),
|
||||
},
|
||||
{
|
||||
'stage': 'plan',
|
||||
@@ -87,6 +93,31 @@ JsonMap probeRunDetail() => {
|
||||
if (perfRunGraph) 'graph': perfRunGraphFixture(),
|
||||
};
|
||||
|
||||
/// A complete change capture modifying [paths], so Changes shows visit pages
|
||||
/// and each file opens a paged diff.
|
||||
JsonMap _probeChanges(List<String> paths) => {
|
||||
'status': 'complete',
|
||||
'scope': 'Git tracked and nonignored files in the run directory',
|
||||
'skipped': 0,
|
||||
'omitted': 0,
|
||||
'diagnostic': '',
|
||||
'files': [
|
||||
for (final path in paths)
|
||||
{
|
||||
'path': path,
|
||||
'kind': 'modified',
|
||||
'patch':
|
||||
'--- "a/$path"\n'
|
||||
'+++ "b/$path"\n'
|
||||
'@@ -1,3 +1,3 @@\n'
|
||||
' // Release train\n'
|
||||
'-const stage = \'draft\';\n'
|
||||
'+const stage = \'shipped\';\n'
|
||||
' // end\n',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/// Extra rows for scroll-performance captures (`?runs=N`, `?steps=N`). Both
|
||||
/// default to none, so every other capture sees the fixture unchanged.
|
||||
int _fillerRunCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user