App: run tabs under the header on wide layouts, stable Artifacts tab, spelled-out pipeline status, shared list selection, code block header and edge fades
- Run detail: on a wide window (>= 840, pane >= 600) the tabs are Material segments under the run header; phones keep the floating bottom bar. Artifacts is always a tab, badged with its count and disabled with 0 (its tooltip says why), so Changes never moves. - Pipelines list: 'Failed · last run 19 Oct' beside the status dot; facts on the next line; compact rows keep 'Failed · 19 Oct'. - Settings: Disconnect is outlined beside a tonal Reconnect. - Lists: one selection style (tonal fill plus one leading accent bar) for runs, pipelines and chats; chat's border, fill and pointer removed. - Transcript: overflowing blocks fade at the edge with a chevron instead of a 'Scroll horizontally' line (semantics hint kept); code blocks get a header strip with language and Copy; lighter light-mode code fill. - Runs list: rows under a day heading show only the time of day. - Artifact search reveal re-centres once the lazy list's extent settles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -93,8 +93,14 @@ class SettingsTextField extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
|
||||
/// The filled primary and outlined secondary settings actions. Buttons wrap on
|
||||
/// a narrow window (or with large text) instead of overflowing.
|
||||
/// The settings actions: the emphasised one filled, the other outlined.
|
||||
/// Buttons wrap on a narrow window (or with large text) instead of
|
||||
/// overflowing.
|
||||
///
|
||||
/// [primaryOutlined] turns the order of emphasis around for a primary action
|
||||
/// that ends something (Disconnect): the secondary action leads as a tonal
|
||||
/// button and the primary follows outlined, so the filled emphasis never sits
|
||||
/// on the action that drops the connection.
|
||||
class SettingsActions extends StatelessWidget {
|
||||
const SettingsActions({
|
||||
super.key,
|
||||
@@ -104,6 +110,7 @@ class SettingsActions extends StatelessWidget {
|
||||
required this.onSecondary,
|
||||
this.primaryKey,
|
||||
this.secondaryKey,
|
||||
this.primaryOutlined = false,
|
||||
});
|
||||
|
||||
final String primaryLabel;
|
||||
@@ -112,24 +119,38 @@ class SettingsActions extends StatelessWidget {
|
||||
final VoidCallback onSecondary;
|
||||
final Key? primaryKey;
|
||||
final Key? secondaryKey;
|
||||
final bool primaryOutlined;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final primary = primaryOutlined
|
||||
? OutlinedButton(
|
||||
key: primaryKey,
|
||||
onPressed: onPrimary,
|
||||
child: Text(primaryLabel),
|
||||
)
|
||||
: FilledButton(
|
||||
key: primaryKey,
|
||||
onPressed: onPrimary,
|
||||
child: Text(primaryLabel),
|
||||
);
|
||||
final secondary = primaryOutlined
|
||||
? FilledButton.tonal(
|
||||
key: secondaryKey,
|
||||
onPressed: onSecondary,
|
||||
child: Text(secondaryLabel),
|
||||
)
|
||||
: OutlinedButton(
|
||||
key: secondaryKey,
|
||||
onPressed: onSecondary,
|
||||
child: Text(secondaryLabel),
|
||||
);
|
||||
return Wrap(
|
||||
spacing: settingsControlGap,
|
||||
runSpacing: settingsControlGap,
|
||||
children: <Widget>[
|
||||
FilledButton(
|
||||
key: primaryKey,
|
||||
onPressed: onPrimary,
|
||||
child: Text(primaryLabel),
|
||||
),
|
||||
OutlinedButton(
|
||||
key: secondaryKey,
|
||||
onPressed: onSecondary,
|
||||
child: Text(secondaryLabel),
|
||||
),
|
||||
],
|
||||
children: primaryOutlined
|
||||
? <Widget>[secondary, primary]
|
||||
: <Widget>[primary, secondary],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,6 +55,8 @@ class SettingsConnectionSection extends StatelessWidget {
|
||||
SettingsActions(
|
||||
primaryLabel: controller.primaryActionLabel,
|
||||
secondaryLabel: controller.secondaryActionLabel,
|
||||
// Disconnect is outlined beside a tonal Reconnect.
|
||||
primaryOutlined: controller.connectionActive,
|
||||
primaryKey: controller.connectionActive
|
||||
? SettingsKeys.disconnect
|
||||
: SettingsKeys.connect,
|
||||
|
||||
Reference in New Issue
Block a user