Web: dead API-client functions, stale PWA config, and a centralized requestJson helper for client.ts
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 50/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript, vite
- Área
- build-system, frontend
Línea de trabajo
Start in api/client.ts to see the 25 fetch wrappers and dead functions at the listed lines. Read vite.config.ts for the broken PWA asset refs and App.tsx/StatusBar.tsx for vestigial state. Create a requestJson helper and route all calls through it, delete or wire dead code, import types from api/types.ts, and replace any catches. Done when no raw fetch remains, manifest icons exist, and TypeScript shows zero any.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Dead code (zero callers)
launchWithArgs—api/client.ts:222-230. The "Launch with arguments" flow routes throughhandleLaunch; either wire it up or delete (the/api/actions/launch-with-argsendpoint is likewise unused by the UI).fetchWorkflowSession—client.ts:320-324. The runner modal is purely request-driven; if the backend hangs, the modal shows "Step in progress…" forever with no buttons for statusrunning(WorkflowRunnerModal.tsx:460-521). Either delete it or use it to poll running sessions (which would also give hang recovery — complements #24).- Vestigial language state —
StatusBar.tsx:140-166toggle +App.tsx:93, 1440-1441changes nothing (see the i18n issue). vite.config.ts:25-48— PWA config referencespublic/favicon.ico,robots.txt,/icon-192.png,/icon-512.pngthat don't exist (public/has only favicon.svg), so the manifest ships broken icon refs; a service worker inside a localhost webview only causes the stale-asset problems web/README documents. DropVitePWAfrom the webview build or fix the assets. The@alias (:50-54) is unused.
client.ts hardening (25 near-identical fetch wrappers)
- Only 3 of 25 functions extract FastAPI's
detail(loadConfigContent,reloadConfig,startWorkflowSession); the rest throw generic strings and hide the server's reason. - Unguarded
res.json()everywhere — a proxy 502 HTML page surfaces as "Unexpected token '<'…". - No timeouts/AbortController on non-scan calls — a hung backend leaves e.g. hash computation silent after the toast expires and the workflow modal stuck.
Fix: one requestJson helper (method/headers/ok-check/detail extraction/AbortSignal.timeout) that all 25 delegate to.
- Raw
fetchbypasses the client:handleClearFile(App.tsx:892-904, discards serverdetail),DirectoryPickerModal.tsx:63(duplicatesclient.browseDirectory).
Type hygiene
- 38
anyoccurrences (33 arecatch (err: any)) →err instanceof Error ? err.message : String(err)helper. DirectoryPickerModal.tsx:13-23redefinesBrowseEntry/BrowseResultalready exported fromapi/types.ts— import instead.client.ts:251-263generateBarcodekeeps afilePath/file_pathcompat shim; all callers passfilePath— drop the shim.
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 4 h 46 min
- PR fusionados (30 d)
- 55
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de falbany/ProFiles
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
falbany/ProFiles#187 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Web UI: config handoff from a second launch leaves the open YAML editor showing stale contentAbiertobug frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bug frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
bug frontend
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de falbany/ProFiles
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
ip-tools/patzilla#219 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
EPSSClient commits to its SQLite cache once per score: a 100-CVE bulk fetch makes 101 disk flushesAbiertopriority:p3 technical-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
jimmy058910/jmo-security-repo#1673 ·
Los mantenedores suelen responder en 1 día
-
enhancement ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
-
integration: frontier_silicon
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
home-assistant/core#193176 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
task create and task update take --body-file and --stdinPosiblemente ocupada @JuanBarriosS la tomó hoy. Abiertocli enhancement good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
pyrite-wiki/pyrite#1687 · 1 comentario ·
Los mantenedores suelen responder en 1 día