Web: add ESLint and component test infrastructure (jsdom + testing-library); cover barcodeScanner and exportCsv
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
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- eslint, react, typescript
- Área
- documentation, frontend, testing, tooling
Línea de trabajo
Start by reading web/vitest.config.ts and package.json to see current test setup. Add ESLint config and lint script, then run it to fix hook-dependency warnings in FileListTable.tsx and LoadConfigModal.tsx. Next, configure jsdom and @testing-library/react, writing a modal and an App keyboard test as patterns. Finally, add tests for utils/barcodeScanner.ts and utils/exportCsv.ts, and document npm test in web/README.md; done when lint and all tests pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The web app has vitest but effectively no safety net:
- No ESLint — no config and no
lintscript anywhere inweb/. That's why hook-dependency bugs (dep-less effect atFileListTable.tsx:370-377; missingbrowsedep atLoadConfigModal.tsx:55) were never flagged. Addeslint+typescript-eslint+eslint-plugin-react-hookswith alintscript, and wire it into pre-commit alongside ruff. - No component tests —
vitest.config.tsruns in the default node env; nojsdom, no@testing-library/reactin devDependencies. All 23 components and the 1572-lineApp.tsx(scan races, global keyboard handler, barcode flow, drag state) are untested. Existing tests cover only pure modules (client, configDrop, fileProperties, searchSyntax, theme, barcodeDecoder). - Untested pure logic that's trivially testable:
utils/barcodeScanner.ts(parseBarcodeInput— the whole barcodekey=valuelanguage incl. alias normalization and boolean parsing) andutils/exportCsv.ts(RFC 4180 quoting). - Document
npm testinweb/README.md(it documents build/dev only).
Suggested order: ESLint + fix its findings → jsdom/testing-library with one modal + one App keyboard test as the pattern → the two pure-logic test files.
- 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