C1: alpha dry run fixes (Ctrl+C in terminal, ignored colour, find singular)
Some checks failed
ci / ci (macos-15) (push) Has been cancelled
ci / ci (ubuntu-24.04) (push) Has been cancelled
ci / ci (windows-2025) (push) Has been cancelled

- Terminal: undo an inherited "ignore Ctrl+C" flag before starting a
  ConPTY shell (lutra_proc::enable_ctrl_c). Lutra started by the lutra
  CLI (CREATE_NEW_PROCESS_GROUP) passed it to every shell, so Ctrl+C
  stopped nothing. Test reruns itself with that flag.
- Engine: an edited .gitignore/.ignore reports TreeChanged for its
  folder, so the tree greys newly ignored files (Add to .gitignore).
- Find: "1 match", "1 file" instead of "1 files".
- docs/alpha-checklist.md: steps corrected after the Windows dry run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-11-02 17:55:58 +01:00
parent 30de747ad6
commit e228d11ef9
11 changed files with 173 additions and 20 deletions

View file

@ -373,6 +373,15 @@ describe("Find tool window", () => {
expect(wrapper.find("[data-test=find-submit]").exists()).toBe(true);
});
it("uses the singular for one match and one file", async () => {
const { wrapper } = await mountFind();
await searchFor(wrapper, "foo");
await emit(results(7, "a.php", [[0, "[foo]"]]));
expect(wrapper.get("[data-test=find-status]").text()).toBe("Searching… 1 match in 1 file");
await emit(done(7, { matches: 2, files: 1 }));
expect(wrapper.get("[data-test=find-status]").text()).toContain("2 matches in 1 file · ");
});
it("says when nothing matched or the search was cancelled", async () => {
const { wrapper } = await mountFind();
await searchFor(wrapper, "zzz");