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: react
uxstubsplaceholdersfeedback
Stub unimplemented actions with a clear placeholder, not silent no-ops
An action not yet wired up should give explicit feedback (a placeholder alert/toast) rather than doing nothing or being left as dead code.
PR: hegnar-journalist-boost · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codetsx
| 1 | <button onClick={() => {}}>Export</button> // silently does nothing |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetsx
| 1 | <button onClick={() => alert('Under construction')}>Export</button> |
Explanation (EN)
Objašnjenje (HR)