You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Register keysets with `registerKeysets()` using unique component name
84
92
93
+
### Display Placeholders (MANDATORY)
94
+
95
+
- ALWAYS use `EMPTY_DATA_PLACEHOLDER` for empty UI values. Do not hardcode em or en dashes (`—`, `–`) as placeholders. Hyphen `-`/dashes may be used as separators in titles/ranges. Before submitting a PR, grep for `—` and `–` and ensure placeholder usages use `EMPTY_DATA_PLACEHOLDER` from `src/utils/constants.ts`.
96
+
85
97
### State Management
86
98
87
99
- Use Redux Toolkit with domain-based organization
-**NEVER** call APIs directly - use `window.api.module.method()`
298
284
-**NEVER** mutate state in RTK Query - return new objects/arrays
299
285
-**NEVER** hardcode user-facing strings - use i18n
286
+
-**ALWAYS** use `EMPTY_DATA_PLACEHOLDER` for empty UI values. Do not hardcode em dashes `—` or en dashes `–` as placeholders. Hyphen `-` and dashes may be used as separators in titles/ranges. Before submitting, grep the code for `—`/`–` and ensure placeholders use `EMPTY_DATA_PLACEHOLDER` from `src/utils/constants.ts`.
300
287
-**ALWAYS** use `cn()` for classNames: `const b = cn('component-name')`
-**NEVER** call APIs directly - use `window.api.module.method()`
298
284
-**NEVER** mutate state in RTK Query - return new objects/arrays
299
285
-**NEVER** hardcode user-facing strings - use i18n
286
+
-**ALWAYS** use `EMPTY_DATA_PLACEHOLDER` for empty UI values. Do not hardcode em dashes `—` or en dashes `–` as placeholders. Hyphen `-` and dashes may be used as separators in titles/ranges. Before submitting, grep the code for `—`/`–` and ensure placeholders use `EMPTY_DATA_PLACEHOLDER` from `src/utils/constants.ts`.
300
287
-**ALWAYS** use `cn()` for classNames: `const b = cn('component-name')`
0 commit comments