Merge remote-tracking branch 'origin/dev' into kai/fix/588-nested-session-guard

This commit is contained in:
Tam Nhu Tran committed 2026-02-20 23:04:59 +07:00
commit e32192177b
23 files changed
+1443 -26

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
/**
* Clamp percentage-like values to a safe 0-100 range.
*/
export function clampPercent(value: number): number {
if (!Number.isFinite(value)) return 0;
return Math.max(0, Math.min(100, value));
}