Restore ACP settings save/apply actions
This commit is contained in:
parent
d30072ad31
commit
2aecd71199
@ -171,7 +171,9 @@ class _SettingsPageState extends State<SettingsPage> {
|
||||
_navigationContext = controller.settingsNavigationContext;
|
||||
final settings = controller.settingsDraft;
|
||||
final showingDetail = _detail != null;
|
||||
final showGlobalApplyBar = _tab != SettingsTab.gateway;
|
||||
final showGlobalApplyBar =
|
||||
_tab != SettingsTab.gateway ||
|
||||
_integrationSubTab == _GatewayIntegrationSubTab.acp;
|
||||
return SingleChildScrollView(
|
||||
padding: const EdgeInsets.fromLTRB(32, 32, 32, 8),
|
||||
child: Column(
|
||||
|
||||
@ -240,6 +240,14 @@ void main() {
|
||||
expect(find.text('Claude'), findsOneWidget);
|
||||
expect(find.text('Gemini'), findsOneWidget);
|
||||
expect(find.textContaining('ws://127.0.0.1:9001'), findsWidgets);
|
||||
expect(
|
||||
find.byKey(const ValueKey('settings-global-save-button')),
|
||||
findsOneWidget,
|
||||
);
|
||||
expect(
|
||||
find.byKey(const ValueKey('settings-global-apply-button')),
|
||||
findsOneWidget,
|
||||
);
|
||||
});
|
||||
|
||||
testWidgets('SettingsPage gateway sections can collapse individually', (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user