feat: Date calculator (age, days between, add days, working days)

Abierto
#172 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
56/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

Read “Adding a tool” in docs/CODEMAP.md, then inspect src/tools/catalog.ts, src/tools/registry.tsx, and an existing tool’s logic and Vitest test. Implement the date calculations in src/tools/<slug>/<slug>.ts and add the component and catalog entries. Done means the listed date operations and edge cases are tested, the tool works offline, and its layout supports light and dark mode 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

"How many days until", "how old am I in days" and "what date is 90 days from today" are some of the most searched calculators. Visa, notice period and loan dates all need this.

Replaces: timeanddate.com calculators (ads).

Scope

  • Age on a date, in years, months, days and total days.
  • Days, weeks and months between two dates, with or without weekends.
  • Add or subtract days, weeks, months; working days that skip weekends.
  • Edge cases in tests: leap years, month ends (31 Jan + 1 month), time zones.

Dependency

None. Web APIs only (Date, Intl).

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.