feat: add setting to control category products button visibility
- Add show_category_products_button field to StoreDTO - Update SettingsSerializerService to support new field - Add setting in admin panel on 'Store' tab with toggle - Pass setting to SPA through SettingsHandler - Button displays only for categories with child categories - Add default value true to configuration
This commit is contained in:
@@ -20,6 +20,30 @@
|
||||
4. **Тестируй изменения перед коммитом**
|
||||
5. **Документируй публичные API**
|
||||
|
||||
### Правила коммитов
|
||||
|
||||
1. **Следование Conventional Commits**
|
||||
- Используй префиксы: `feat:`, `fix:`, `chore:`, `refactor:`, `style:`, `test:`, `docs:`
|
||||
- Формат: `<type>: <subject>` (первая строка до 72 символов)
|
||||
- После пустой строки - подробное описание изменений
|
||||
|
||||
2. **Язык коммитов**
|
||||
- Все коммиты на **английском языке**
|
||||
- Подробное описание изменений в теле коммита
|
||||
- Перечисляй все измененные файлы и ключевые изменения
|
||||
|
||||
3. **Примеры правильных коммитов**
|
||||
```
|
||||
feat: add setting to control category products button visibility
|
||||
|
||||
- Add show_category_products_button field to StoreDTO
|
||||
- Update SettingsSerializerService to support new field
|
||||
- Add setting in admin panel on 'Store' tab with toggle
|
||||
- Pass setting to SPA through SettingsHandler
|
||||
- Button displays only for categories with child categories
|
||||
- Add default value true to configuration
|
||||
```
|
||||
|
||||
### Запрещено
|
||||
|
||||
- Хардкод значений (используй конфиги/настройки)
|
||||
|
||||
Reference in New Issue
Block a user