dissolve app/ into repo root (D-056)

Single Flutter package at the repo root. All code, tests, assets,
and platform directories moved from app/ to root. Package renamed
from clide_app to clide — all imports rewritten. Merged pubspec
combines core (ffi) and app (flutter, yaml, xterm) dependencies.
Makefile simplified: no APP_PRESENT conditionals, no cd, no daemon
lifecycle. 317 tests pass.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-23 00:37:20 +02:00
co-authored by Claude Opus 4.6
parent a526c5b9b7
commit 46329700d5
394 changed files with 978 additions and 1090 deletions
@@ -0,0 +1,85 @@
import 'package:alchemist/alchemist.dart';
import 'package:clide/widgets/widgets.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import '../helpers/kernel_fixture.dart';
import '../helpers/widget_harness.dart';
void main() {
late KernelFixture f;
setUp(() async => f = await KernelFixture.create());
tearDown(() async => f.dispose());
goldenTest(
'ClideButton variants + states',
fileName: 'clide_button',
pumpBeforeTest: (tester) async {
// wait for hover/press state to settle
await tester.pump(const Duration(milliseconds: 50));
},
builder: () => GoldenTestGroup(
columns: 3,
children: [
GoldenTestScenario(
name: 'normal / enabled',
child: _wrap(f, ClideButton(label: 'Save', onPressed: () {})),
),
GoldenTestScenario(
name: 'normal / disabled',
child: _wrap(f, const ClideButton(label: 'Save', onPressed: null)),
),
GoldenTestScenario(
name: 'primary / enabled',
child: _wrap(
f,
ClideButton(
label: 'Commit',
onPressed: () {},
variant: ClideButtonVariant.primary,
),
),
),
GoldenTestScenario(
name: 'primary / disabled',
child: _wrap(
f,
const ClideButton(
label: 'Commit',
onPressed: null,
variant: ClideButtonVariant.primary,
),
),
),
GoldenTestScenario(
name: 'subtle / enabled',
child: _wrap(
f,
ClideButton(
label: 'Open',
onPressed: () {},
variant: ClideButtonVariant.subtle,
),
),
),
GoldenTestScenario(
name: 'subtle / disabled',
child: _wrap(
f,
const ClideButton(
label: 'Open',
onPressed: null,
variant: ClideButtonVariant.subtle,
),
),
),
],
),
);
}
Widget _wrap(KernelFixture f, Widget child) => SizedBox(
width: 140,
child: harness(f, child),
);
+44
View File
@@ -0,0 +1,44 @@
import 'package:alchemist/alchemist.dart';
import 'package:clide/widgets/widgets.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import '../helpers/kernel_fixture.dart';
import '../helpers/widget_harness.dart';
void main() {
late KernelFixture f;
setUp(() async => f = await KernelFixture.create());
tearDown(() async => f.dispose());
goldenTest(
'ClideIcon painter set',
fileName: 'clide_icon',
builder: () => GoldenTestGroup(
columns: 4,
children: [
for (final pair in const [
('folder', FolderIcon()),
('gear', GearIcon()),
('close', CloseIcon()),
('chevron-right', ChevronRightIcon()),
('chevron-down', ChevronDownIcon()),
('dot', DotIcon()),
('check', CheckIcon()),
('plug', PlugIcon()),
])
GoldenTestScenario(
name: pair.$1,
child: harness(
f,
SizedBox(
width: 24,
height: 24,
child: ClideIcon(pair.$2, size: 24),
),
),
),
],
),
);
}
@@ -0,0 +1,60 @@
import 'package:alchemist/alchemist.dart';
import 'package:clide/widgets/widgets.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_test/flutter_test.dart';
import '../helpers/kernel_fixture.dart';
import '../helpers/widget_harness.dart';
void main() {
late KernelFixture f;
setUp(() async => f = await KernelFixture.create());
tearDown(() async => f.dispose());
goldenTest(
'ClideTabBar active / inactive',
fileName: 'clide_tab_bar',
builder: () => GoldenTestGroup(
columns: 1,
children: [
GoldenTestScenario(
name: 'first tab active',
child: SizedBox(
width: 320,
child: harness(
f,
ClideTabBar(
items: const [
ClideTabItem(id: 'files', title: 'Files'),
ClideTabItem(id: 'git', title: 'Git'),
ClideTabItem(id: 'tree', title: 'Tree'),
],
activeId: 'files',
onSelect: (_) {},
),
),
),
),
GoldenTestScenario(
name: 'middle tab active',
child: SizedBox(
width: 320,
child: harness(
f,
ClideTabBar(
items: const [
ClideTabItem(id: 'files', title: 'Files'),
ClideTabItem(id: 'git', title: 'Git'),
ClideTabItem(id: 'tree', title: 'Tree'),
],
activeId: 'git',
onSelect: (_) {},
),
),
),
),
],
),
);
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB