Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2universalStack: Material-UI
testingmaterial-uiverificationregression
Manually test UI prop migrations before merging
API-surface migrations (e.g. moving to slotProps) can silently change rendering; verify the affected components visually rather than trusting the type checker alone.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codetext
| 1 | // migrated inputProps -> slotProps, merged without rendering the component |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetext
| 1 | // rendered the component after migration to confirm maxLength / styling still apply |
Explanation (EN)
Objašnjenje (HR)