Skip to content

fix(shockers): validate RF ID is a 16-bit integer#219

Merged
LucHeart merged 2 commits into
developfrom
fix/rf-id-validation
Jun 18, 2026
Merged

fix(shockers): validate RF ID is a 16-bit integer#219
LucHeart merged 2 commits into
developfrom
fix/rf-id-validation

Conversation

@hhvrc

@hhvrc hhvrc commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

RF IDs are a 16-bit value (1-65535) but the add and edit forms only enforced

0, accepting decimals and out-of-range values. Add a shared
ShockerConstants helper (RfIdMin/RfIdMax/isValidRfId), enforce min/max/step on the inputs, gate submission on validity, and show an inline error on the edit page.

RF IDs are a 16-bit value (1-65535) but the add and edit forms only enforced
> 0, accepting decimals and out-of-range values. Add a shared
ShockerConstants helper (RfIdMin/RfIdMax/isValidRfId), enforce min/max/step on
the inputs, gate submission on validity, and show an inline error on the edit
page.
@hhvrc hhvrc requested a review from LucHeart June 18, 2026 11:54
@hhvrc hhvrc self-assigned this Jun 18, 2026
@LucHeart LucHeart merged commit 284d079 into develop Jun 18, 2026
8 checks passed
@LucHeart LucHeart deleted the fix/rf-id-validation branch June 18, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants