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
84
85
+
### Display Placeholders (MANDATORY)
86
+
87
+
- 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`.
88
+
85
89
### State Management
86
90
87
91
- Use Redux Toolkit with domain-based organization
-**NEVER** call APIs directly - use `window.api.module.method()`
298
298
-**NEVER** mutate state in RTK Query - return new objects/arrays
299
299
-**NEVER** hardcode user-facing strings - use i18n
300
+
-**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
301
-**ALWAYS** use `cn()` for classNames: `const b = cn('component-name')`
-**NEVER** call APIs directly - use `window.api.module.method()`
298
298
-**NEVER** mutate state in RTK Query - return new objects/arrays
299
299
-**NEVER** hardcode user-facing strings - use i18n
300
+
-**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
301
-**ALWAYS** use `cn()` for classNames: `const b = cn('component-name')`
0 commit comments