feat: Random picker (wheel, coin, dice, teams)

Abierto
#175 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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
66/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
react, typescript, vite
Área
frontend, tooling

Línea de trabajo

Start with “Adding a tool” in docs/CODEMAP.md, then inspect src/tools/catalog.ts and src/tools/registry.tsx to follow the existing tool structure. Implement the randomness logic in src/tools/<slug>/<slug>.ts and add a Vitest test; keep the component focused on rendering. Done means the catalog and registry entries are added, the listed picker features work offline, and the UI fits light and dark modes at phone width without layout shift.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement good first issue new tool wave-4

Why

Teachers, streamers and friends deciding where to eat all use "spin the wheel" sites full of ads. Toolglass can do it with real randomness.

Replaces: wheelofnames.com, random.org list tools.

Scope

  • Spin a wheel of names, remove the winner after each spin.
  • Coin flip, dice (any count and sides), random number in a range, shuffle a list, split names into N teams.
  • Randomness from crypto.getRandomValues with rejection sampling, as AGENTS.md requires.

Dependency

None. Web APIs only (crypto.getRandomValues, canvas or SVG).

Done when

  • Logic lives in src/tools/<slug>/<slug>.ts with a Vitest test; the component only renders it.
  • One entry in src/tools/catalog.ts (category, audience, keywords, replaces) and one in src/tools/registry.tsx. See "Adding a tool" in docs/CODEMAP.md.
  • Nothing leaves the browser. It works offline once the page has loaded.
  • Works in light and dark mode and at phone width, with no layout shift when its state changes.
Lenguaje dominante
TypeScript
Estrellas
2
Forks
1
Merge medio
2 d 21 h
PR fusionados (30 d)
7

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ajithakdev/toolglass

Todos los issues de ajithakdev/toolglass

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.