mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 08:21:04 +00:00
Clears the 82 open typescript:S7773 issues (35 files), only on the lines Sonar flagged. - `parseFloat` / `parseInt` → `Number.parseFloat` / `Number.parseInt`: the same functions (`Number.parseFloat === parseFloat`). - `isFinite` / `isNaN` → `Number.isFinite` / `Number.isNaN`: they differ only for arguments that aren't numbers. TypeScript's lib types the globals as taking `number`, and each call already passes one (`maxLen`, `Number(value)`, a parsed count), so nothing changes. Typecheck is left to CI. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Improvements** * Video frame extraction and watermark-removal pages now provide consistent playback controls, including seeking, playback, mute, and volume adjustment. * Prompt-length indicators and validation consistently reflect configured limits, including unlimited limits. * **New Features** * Prompt fields display a character counter that highlights text exceeding the configured limit. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Also: rebased on main, and the length counter and over-limit check that the five prompt boxes repeated are now `PromptLengthCounter` / `isOverPromptLimit` (`promptbox/src/lib/PromptLengthCounter.tsx`). That removes the duplication the new-code gate counted against this PR.