chore(web): migrate the UI to SvelteKit 3 and drop the two audit exceptions
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, typescript
Hướng nghiên cứu
Start with the errors listed in the issue: run pnpm run build and svelte-check in web/, then open web/src/lib/browse-nav.ts (the goto() call near line 140) and the page.url reads in web/src/routes/+layout.svelte and web/src/routes/browse/+page.svelte. The bits-ui peer on kit 3 is an upstream blocker, so check that before editing. Done means task web:test, task web:build and task web:drift pass on kit 3, and audit.ignore and the cookie override are gone from web/pnpm-workspace.yaml.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Two low-severity @sveltejs/kit advisories are fixed only in kit 3:
- GHSA-pfhg-q3qv-9q6r: URL redirection to an untrusted site through an enhanced form submission.
- GHSA-27mw-82g8-phjj: XSS through an untrusted cache-control header in a prerendered page.
Neither is reachable in this UI. web/src/routes/+layout.ts sets ssr = false and prerender = false, the UI has no use:enhance, no form actions, no setHeaders and no server files. #183 therefore lists both under audit.ignore in web/pnpm-workspace.yaml, so task web:audit passes. That exception should go when the UI moves to kit 3.
What the migration needs
A trial upgrade (kit 3.1.0, adapter-static 4.0.0, svelte 5.57.2) found:
pnpm run buildfails with sixmodule_removed_liberrors: kit 3 removed modules the UI imports.svelte-checkreports eight errors:page.urland itssearchParamsare now read-only (ReadonlyURLSearchParams) atsrc/routes/+layout.svelte:21,69,src/routes/browse/+page.svelte:38,215,219,228andsrc/routes/workbench/+page.svelte:50;goto()no longer acceptsnoScroll(src/lib/browse-nav.ts:140).
- vitest exits 1 although all 48 tests pass, so something in the test setup breaks under kit 3.
[email protected], pulled in by[email protected], declares an optional peer on kit^2.21.0. runed 0.38 supports kit 3, but bits-ui has not moved to it yet.
Done when
- The UI builds and passes
task web:test,svelte-check,task web:build,task web:driftand the UI gates on kit 3. audit.ignoreinweb/pnpm-workspace.yamlis empty or gone.- The
cookie@<0.7.0override inweb/pnpm-workspace.yamlis dropped: kit 3 depends oncookie ^2.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Go
- Star
- 0
- Fork
- 0
- Merge trung bình
- 7 giờ 42 phút
- Pull request đã merge (30 ngày)
- 111
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của seanb4t/codegraph-go
-
chore needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
seanb4t/codegraph-go#380 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chore needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
seanb4t/codegraph-go#379 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:query chore needs-triage spec-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
seanb4t/codegraph-go#377 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chore needs-triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 84/100
seanb4t/codegraph-go#362 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:query bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
seanb4t/codegraph-go#355 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của seanb4t/codegraph-go
Issue tương tự
-
go-vulnerability security-scan
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
teslashibe/agent-go#35 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
alecthomas/chroma#1498 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 8 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày