F1: cosmetics: regex error reason, one date format, Close Tab
- Find shows a bad regex as "invalid pattern: unclosed group": the search crate keeps only the parser's reason, the UI drops the invalid-params prefix (userMessage). - Dates read YYYY-MM-DD / YYYY-MM-DD HH:mm in local time everywhere (i18n formatDate/formatDateTime): Log, stash list, blame, recovery. - buffer.close is "Close Tab" in the palette as in the menu; an engine test keeps palette labels starting with their menu item's wording. - Docs: architecture, install (Jump List), localization parity, checklist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1b6bd1f870
commit
33a7185d75
18 changed files with 147 additions and 52 deletions
|
|
@ -397,9 +397,9 @@ describe("Find tool window", () => {
|
|||
|
||||
it("shows a refused regex as an alert", async () => {
|
||||
const { wrapper } = await mountFind();
|
||||
findError = { code: "invalid_params", message: "bad regex" };
|
||||
findError = { code: "invalid_params", message: "invalid params for search.find: invalid pattern: unclosed group" };
|
||||
await searchFor(wrapper, "(");
|
||||
expect(wrapper.get("[data-test=find-error]").text()).toBe("bad regex");
|
||||
expect(wrapper.get("[data-test=find-error]").text()).toBe("invalid pattern: unclosed group");
|
||||
expect(wrapper.get("[data-test=find-query]").attributes("aria-invalid")).toBe("true");
|
||||
expect(wrapper.get("[data-test=find-status]").text()).toBe("");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue