nickberens360/nickberens-astro

refactor(frontend): add minimal TS to composables + tests

Open

#242 opened on Sep 13, 2025

 (0 comments) (0 reactions) (0 assignees)Python (0 forks)github user discovery
frontendgood first issuerefactortypescript

Repository metrics

Stars
 (1 star)
PR merge metrics
 (No merged PRs in 30d)

Description

Add minimal TypeScript to core composables/stores and a couple of Vitest tests.

Scope

  • Convert src/composables/useChatAPI.js -> useChatAPI.ts with minimal interfaces.
  • Convert src/stores/ui.js -> ui.ts with typed menu items.
  • Add 1–2 Vitest tests for useChatAPI (status check, rate-limits parse).

Acceptance Criteria

  • Builds and tests pass; no behavior changes.

Contributor guide