Skip to content

Commit d760414

Browse files
committed
docs: update changelogs for v1.6.0-beta1 (PR #126)
1 parent 710dfb9 commit d760414

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,25 @@
2323

2424
---
2525

26+
#### ♻️ Рефакторинг
27+
28+
**Интеграция standalone ЛК-модулей в архитектуру ms3 (#126):**
29+
- Три standalone модуля (`order-cancel.js`, `customer-addresses.js`, `auth-forms.js`) заменены на UI-классы в единой архитектуре (API → UI → hooks → message)
30+
- Новый `AuthUI` — класс для форм авторизации/регистрации с хуками `beforeLogin`/`afterLogin`, `beforeRegister`/`afterRegister`
31+
- `CustomerUI` расширен: отмена заказов, управление адресами (set default, delete) с хуками
32+
- `CustomerAPI` расширен: +4 метода (`login`, `register`, `setDefaultAddress`, `cancelOrder`)
33+
- 6 новых селекторов в `Selectors.js` для ЛК-компонентов
34+
35+
**Promise-based confirm dialog (#126):**
36+
- Новый модуль `confirm.js` — Bootstrap Modal с fallback на native `confirm()`
37+
- i18n кнопок по атрибуту `<html lang>` (ru/en), переопределение через `ms3Lexicon` или параметры
38+
- Декларативная привязка через `data-ms3-confirm` атрибут на любом элементе
39+
- Заменяет все `confirm()` в ЛК: отмена заказа, удаление адреса, выход
40+
41+
**UUID в URL заказов (#126):**
42+
- Ссылки на детали заказа используют `uuid` вместо integer `id` — безопаснее, не раскрывает количество заказов
43+
- Валидация формата UUID из `$_GET` перед запросом к БД
44+
2645
#### ✨ Добавлено
2746

2847
**Отмена заказа покупателем (#119, Issue #117):**

core/components/minishop3/docs/changelog.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- Order cancel by customer in personal account: API endpoint, cancel button in order list/details, `ms3_customer_cancel_allowed_statuses` setting (#119, Issue #117)
1212
- Remember active Vue tab across product page reloads via `localStorage`, `ms3_product_remember_tabs` setting (#120, Issue #111)
1313

14+
### Refactored
15+
- Standalone LK modules (order-cancel, customer-addresses, auth-forms) integrated into ms3 architecture: API → UI class → hooks → message (#126)
16+
- New `AuthUI` class for login/register forms with `beforeLogin`/`afterLogin`, `beforeRegister`/`afterRegister` hooks (#126)
17+
- `CustomerUI` extended with order cancel, address management (set default, delete) with hooks (#126)
18+
- `CustomerAPI` extended with `login`, `register`, `setDefaultAddress`, `cancelOrder` methods (#126)
19+
- New `confirm.js` module: Promise-based Bootstrap Modal confirm dialog with native fallback, i18n by `<html lang>`, declarative binding via `data-ms3-confirm` attribute (#126)
20+
- Order detail URLs now use UUID instead of integer ID for security (#126)
21+
- UUID format validation for `$_GET['order']` parameter (#126)
22+
- 6 new selectors in `Selectors.js` for LK components (#126)
23+
1424
### Fixed
1525
- httpOnly cookie token architecture: single `ms3_token` httpOnly cookie as source of truth instead of 4 unsynchronized storages. Middleware injection for backward compatibility. Cart preserved on login/register (#124)
1626
- Save button display for products and categories in MODX 3.2 — explicit `canSave`/`locked` calculation (#118)

0 commit comments

Comments
 (0)