Rules Hub
Code Ruleset
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
Audit downstream consumers when changing a shared component
When altering a shared/library component's behavior or defaults, check and fix consumers that override or rely on the old behavior.
Bad example
| 1 | // Change a shared Dropdown's default portal target |
| 2 | // Ship it without checking the apps that consume it. |
| 3 | // A consumer that previously added `container={appRoot}` to |
| 4 | // compensate now double-applies or conflicts with the new default. |
Explanation (EN)
A consumer can retain an override that conflicts with the new default.
Objašnjenje (HR)
Potrošač može zadržati prilagodbu koja je u sukobu s novom zadanom vrijednošću.
Good example
| 1 | // 1. Change the shared component's default. |
| 2 | // 2. Search consuming apps for `container=` overrides on that component. |
| 3 | // 3. Remove now-redundant overrides / adjust ones that conflict. |
| 4 | // 4. Land library + consumer fixes together (or coordinate the rollout). |
Explanation (EN)
Treating a shared-component change as a cross-repo task means consumers that compensated for the old behavior get cleaned up in the same effort, so the new default actually takes effect without surprises.
Objašnjenje (HR)
Tretiranje promjene dijeljene komponente kao zadatka kroz više repozitorija znači da se potrošači koji su kompenzirali staro ponašanje očiste u istom naporu, pa nova zadana vrijednost stvarno stupi na snagu bez iznenađenja.
Notes (EN)
For an observable shared-library contract change, locate actual consumers and their compensating overrides, then validate compatibility and rollout order.
Bilješke (HR)
Kod promjene javnog ponašanja zajedničke biblioteke pronađi stvarne potrošače i njihove prilagodbe, pa provjeri kompatibilnost i redoslijed objave.
Exceptions / Tradeoffs (EN)
Cross-repository discovery does not authorize publishing or editing company consumers; document required coordinated changes when outside the task scope.