fix(manager): переключатель черновиков и фильтры в списке заказов#303
Open
Ibochkarev wants to merge 2 commits into
Open
fix(manager): переключатель черновиков и фильтры в списке заказов#303Ibochkarev wants to merge 2 commits into
Ibochkarev wants to merge 2 commits into
Conversation
Vue orders grid lacked a way to include draft rows despite ms3_order_show_drafts, and column filters were sent without the filter_ prefix expected by the API.
Enhanced the Vue orders grid by adding a tooltip for the order statistics, clarifying that only placed orders are counted, excluding drafts. Updated English and Russian lexicons accordingly. Improved the logic in the OrdersController to handle draft visibility more clearly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Описание
В Vue-гриде заказов добавлен чекбокс «Показывать черновики», который передаёт
show_draftsв API и позволяет видеть записи со статусом черновика без правки системной настройки MODX. Бэкенд принимает параметр запросаshow_draftsповерхms3_order_show_drafts.Исправлена передача фильтров по колонкам: динамические поля отправляются с префиксом
filter_, как ожидаетOrdersController::applyFilter()(по аналогии сCustomersGrid).Тип изменений
Связанные Issues
Closes #302
Как это было протестировано?
Конфигурация тестирования:
Проверки:
php -lдля изменённых PHP-файловnpm run lintдляOrdersGrid.vuenpm run buildдля vueManager (артефакты в gitignore)Скриншоты (если применимо)
Чеклист
Дополнительные заметки
ms3_order_show_draftsчерезms3.config.order_show_drafts.ms3_status_for_stat— это отдельная логика статистики, не общее число строк грида.