Web UI: dead code — unused /api/scan/events SSE endpoint, "@" alias, unused npm deps, dead CSS classes, unused weight prop
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 57/100
- Issue 类型
- 重构
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- python, react, typescript, vite
调研方向
Start with the listed locations: server/routes/scan.py, api/types.ts, vite.config.ts, tsconfig.json, package.json, BarcodeModal.tsx, index.css, and FileListTable.tsx. Check each reported unused endpoint, alias, dependency, CSS class, and prop against the references noted in the issue, and inspect the live-scan-progress idea before deciding whether the SSE endpoint is still needed. Done means removing or resolving the listed dead code and correcting the weight seed, with no remaining unused references.
由索引模型根据 Issue 内容生成。
描述
Dead code found in the web layer + server surface (verified by exhaustive grep)
-
GET /api/scan/eventsSSE endpoint (server/routes/scan.py:175-194) streams scan status every second — no client code subscribes (noEventSourceanywhere inweb/src), andScanResultsResponse.in_progress(api/types.ts:122) is never read. Either dead server surface or an unfinished feature — see the live-scan-progress feature idea; remove it if that feature is rejected. -
Unused
@path alias —vite.config.ts:50-54andtsconfig.json:18-21define"@" → src, but zerofrom "@/imports exist (all imports are relative). Delete both blocks or adopt the alias consistently. -
Unused runtime dependencies —
@tanstack/react-table(package.json:15),clsx(line 16),tailwind-merge(line 24) have zero imports underweb/src(FileListTable implements its own table). They inflatenpm ciin every packaging build.npm uninstallthem; note for the future deptry scope (#43 covers Python only). -
Dead CSS class references —
BarcodeModal.tsx:246usescustom-scrollbarand:248usesslide-in; neither is defined inindex.css(grep over all.tsx/.ts/.css), and themed scrollbars already apply globally via*(index.css:321-340). Delete both (or implement.slide-inif the entrance animation was intended). -
ScrollableStickyHeaderItem.weightset but never read — interface field + value atFileListTable.tsx:9/:481; the header rendersgridTemplateColumnsfromcolumnTemplateonly. Related inconsistency at:277:reduce(..., 1)seeds a phantom+1weight so computeddefaultWidths don't sum to the available width (the grid's ownfrtemplate is correct). Remove the field and seed0.
- 主要语言
- Python
- 星标
- 1
- 派生
- 1
- 平均合并
- 4 小时 46 分钟
- 30 天内合并 PR
- 55
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
falbany/ProFiles 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
falbany/ProFiles#187 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug frontend
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug frontend
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug frontend
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 86/100
aws-samples/sample-spec-driven-presentation-maker#648 ·
维护者通常 1 天内回复
-
firestore: enable live window.yaml pipeline system tests once add_window_fields is in production未关闭
难度 1/5 1 小时以内 新手友好度 64/100
googleapis/google-cloud-python#19115 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Feyisara2108/stellargive#1377 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复