Use pnpm, not npm on CI, fix errors.

This commit is contained in:
Yiorgis Gozadinos 2026-01-16 14:18:10 +02:00
parent c1163dc8ff
commit 6c5c23b338
No known key found for this signature in database
2 changed files with 11 additions and 7 deletions

View file

@ -29,18 +29,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: "22" node-version: "22"
cache: "npm" cache: "pnpm"
cache-dependency-path: app/frontend/package-lock.json cache-dependency-path: app/frontend/pnpm-lock.yaml
- name: Install dependencies - name: Install dependencies
working-directory: app/frontend working-directory: app/frontend
run: npm ci run: pnpm install --frozen-lockfile
- name: Lint and format check - name: Lint and format check
working-directory: app/frontend working-directory: app/frontend
run: npm run check run: pnpm run check
test: test:
needs: [lint, lint-frontend] needs: [lint, lint-frontend]

View file

@ -1,6 +1,6 @@
"use client"; "use client";
import { useCallback, useEffect, useState } from "react"; import { useCallback, useEffect, useId, useState } from "react";
const STORAGE_KEY = "haiku.rag.settings.initial_context"; const STORAGE_KEY = "haiku.rag.settings.initial_context";
@ -18,6 +18,7 @@ export default function SettingsPanel({
currentValue, currentValue,
}: SettingsPanelProps) { }: SettingsPanelProps) {
const [value, setValue] = useState(currentValue); const [value, setValue] = useState(currentValue);
const titleId = useId();
useEffect(() => { useEffect(() => {
if (isOpen) { if (isOpen) {
@ -139,7 +140,7 @@ export default function SettingsPanel({
onKeyDown={handleKeyDown} onKeyDown={handleKeyDown}
role="dialog" role="dialog"
aria-modal="true" aria-modal="true"
aria-labelledby="settings-title" aria-labelledby={titleId}
> >
{/* biome-ignore lint/a11y/noStaticElementInteractions: modal content wrapper */} {/* biome-ignore lint/a11y/noStaticElementInteractions: modal content wrapper */}
<div <div
@ -147,7 +148,7 @@ export default function SettingsPanel({
onClick={(e) => e.stopPropagation()} onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()} onKeyDown={(e) => e.stopPropagation()}
> >
<h2 id="settings-title" className="settings-modal-title"> <h2 id={titleId} className="settings-modal-title">
Background Context Background Context
</h2> </h2>
<p className="settings-modal-description"> <p className="settings-modal-description">