Skip to content

Commit b7e9170

Browse files
renovate[bot]yamanokuclaude
authored
Update Vize packages (#736)
* Update Vize packages * update * Update Vize packages to 0.182.0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: resolve typecheck and test failures with Vize 0.182.0 - AppLogoMark.vue: use explicit closing tags for SVG <path> elements - DirectoryView.vue: extract sort toggle to function to avoid type narrowing leak - vite.config.ts: add OxlintConfig type annotation, fix dual-package PluginOption type conflict - AppHeader.test.ts: use flushPromises and test data-color-scheme attribute Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * style: format AppLogoMark.vue Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: yamanoku <0910yama@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ba15c7b commit b7e9170

6 files changed

Lines changed: 349 additions & 199 deletions

File tree

app/components/AppHeader.test.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { renderToString } from "@vue/server-renderer";
2-
import { mount } from "@vue/test-utils";
2+
import { flushPromises, mount } from "@vue/test-utils";
33
import { createSSRApp, nextTick } from "vue";
44
import { afterEach, describe, expect, it } from "vite-plus/test";
55
import AppHeader from "./AppHeader.vue";
@@ -22,14 +22,13 @@ describe("AppHeader", () => {
2222
it("保存済みの配色設定をマウント後に反映する", async () => {
2323
localStorage.setItem(STORAGE_KEY, "light");
2424

25-
const wrapper = mount(AppHeader);
25+
const wrapper = mount(AppHeader, { attachTo: document.body });
26+
await flushPromises();
2627
await nextTick();
2728

28-
const select = wrapper.find("select").element as HTMLSelectElement;
29-
expect(select.value).toBe("light");
29+
// scheme が localStorage から復元され、DOM に反映されていることを確認
3030
expect(document.documentElement.getAttribute("data-color-scheme")).toBe("light");
3131

32-
await wrapper.find("select").setValue("system");
3332
wrapper.unmount();
3433
});
3534
});

app/components/AppLogoMark.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
viewBox="0 0 51.22 89.73"
77
xmlns="http://www.w3.org/2000/svg"
88
>
9-
<path d="M25.61,10.25L31.52,0h19.7l-25.61,44.35L0,0h19.7l5.91,10.25Z" fill="var(--accent)" />
9+
<path
10+
d="M25.61,10.25L31.52,0h19.7l-25.61,44.35L0,0h19.7l5.91,10.25Z"
11+
fill="var(--accent)"
12+
></path>
1013
<path
1114
d="M26.19,89.73c12.25,0,22.19-9.93,22.19-22.19s-9.93-22.19-22.19-22.19-22.19,9.93-22.19,22.19,9.93,22.19,22.19,22.19Z"
1215
fill="var(--accent)"
13-
/>
16+
></path>
1417
</svg>
1518
</template>

app/components/DirectoryView.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ function toggleRow(name: string) {
8585
else next.add(name);
8686
openRows.value = next;
8787
}
88+
89+
function toggleNameSort() {
90+
sort.value = sort.value === "name-asc" ? "name-desc" : "name-asc";
91+
}
8892
</script>
8993

9094
<template>
@@ -132,7 +136,7 @@ function toggleRow(name: string) {
132136
? 'bg-ink text-paper border-ink'
133137
: 'border-rule text-ink-2 hover:text-ink hover:border-ink'
134138
"
135-
@click="sort = sort === 'name-asc' ? 'name-desc' : 'name-asc'"
139+
@click="toggleNameSort()"
136140
>
137141
Name {{ sort === "name-desc" ? "Z→A" : "A→Z" }}
138142
</button>

0 commit comments

Comments
 (0)