| name | domain-constants-config |
| description | Manage centralized domain constants and configuration in the project. Use when adding new status types, modifying UI labels, updating color schemes, or creating configuration objects for domain entities. |
Domain Constants Config
ํ๋ก์ ํธ์ ๋๋ฉ์ธ ์์ ๋ฐ ์ค์ ์ ์ค์ ๊ด๋ฆฌํ๋ ์คํฌ์
๋๋ค.
Quick Reference
์์ ์์น
app/screen/[prefix]/config/constants.ts โ ๋ฉ์ธ ์์ ํ์ผ
์ํ ์ค์ ๊ตฌ์กฐ
const STATUS_CONFIG = {
'Reviewing': {
label: '๊ฒํ ์ค',
color: 'text-yellow-700',
bgColor: 'bg-yellow-100'
}
};
Contents
- reference.md - ๋๋ฉ์ธ ์์ ์ ์ฒด ๋ชฉ๋ก ๋ฐ ๊ฐ์ด๋
- guide.md - ์ ์์ ์ถ๊ฐ ๋ฐ ์์ ํจํด
When to Use
- ์ ์ํ(Status) ๋๋ ์งํ ๋จ๊ณ(Progress) ์ถ๊ฐ ์
- UI ๋ผ๋ฒจ ๋๋ ์์ ์์ ์
- ์คํฌ๋ฆฐ ์ ๋์ฌ(Prefix) ์ถ๊ฐ ์
- ์ค์ ๊ฐ์ฒด๊ฐ ์ฌ๋ฌ ํ์ผ์ ๋ถ์ฐ๋์ด ์์ ๋ ํตํฉ ์