Use pnpm, not npm on CI, fix errors.
This commit is contained in:
parent
c1163dc8ff
commit
6c5c23b338
2 changed files with 11 additions and 7 deletions
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
|
|
@ -29,18 +29,21 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22"
|
||||
cache: "npm"
|
||||
cache-dependency-path: app/frontend/package-lock.json
|
||||
cache: "pnpm"
|
||||
cache-dependency-path: app/frontend/pnpm-lock.yaml
|
||||
- name: Install dependencies
|
||||
working-directory: app/frontend
|
||||
run: npm ci
|
||||
run: pnpm install --frozen-lockfile
|
||||
- name: Lint and format check
|
||||
working-directory: app/frontend
|
||||
run: npm run check
|
||||
run: pnpm run check
|
||||
|
||||
test:
|
||||
needs: [lint, lint-frontend]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"use client";
|
||||
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import { useCallback, useEffect, useId, useState } from "react";
|
||||
|
||||
const STORAGE_KEY = "haiku.rag.settings.initial_context";
|
||||
|
||||
|
|
@ -18,6 +18,7 @@ export default function SettingsPanel({
|
|||
currentValue,
|
||||
}: SettingsPanelProps) {
|
||||
const [value, setValue] = useState(currentValue);
|
||||
const titleId = useId();
|
||||
|
||||
useEffect(() => {
|
||||
if (isOpen) {
|
||||
|
|
@ -139,7 +140,7 @@ export default function SettingsPanel({
|
|||
onKeyDown={handleKeyDown}
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="settings-title"
|
||||
aria-labelledby={titleId}
|
||||
>
|
||||
{/* biome-ignore lint/a11y/noStaticElementInteractions: modal content wrapper */}
|
||||
<div
|
||||
|
|
@ -147,7 +148,7 @@ export default function SettingsPanel({
|
|||
onClick={(e) => e.stopPropagation()}
|
||||
onKeyDown={(e) => e.stopPropagation()}
|
||||
>
|
||||
<h2 id="settings-title" className="settings-modal-title">
|
||||
<h2 id={titleId} className="settings-modal-title">
|
||||
Background Context
|
||||
</h2>
|
||||
<p className="settings-modal-description">
|
||||
|
|
|
|||
Loading…
Reference in a new issue