Skip to content

fix(webhook): logs grid search placeholder reflects SKU/user - #408

Merged
navneetkumar-pim-webkul merged 2 commits into
unopim:masterfrom
dripar-webkul:fix/webhook-logs-search-placeholder
May 25, 2026
Merged

navneetkumar-pim-webkul merged 2 commits into
unopim:masterfrom
dripar-webkul:fix/webhook-logs-search-placeholder

Conversation

@dripar-webkul

Copy link
Copy Markdown
Collaborator

Summary

Fixed The webhook logs grid (/admin/webhook/settings?logs) showed "Search by code" in the toolbar, but the underlying datagrid only exposes sku and user as searchable columns — there is no code column on webhook_logs, leaving users to guess what "code" referred to.

Fix

  • LogsDataGrid::$searchPlaceholder now points at admin::app.components.datagrid.toolbar.search_by.sku_or_user.
  • New sku_or_user key added under components.datagrid.toolbar.search_by in all 33 Admin locale files, each with a native translation.
  • unopim:translations:check audit: 224/224 PASS.

Test plan

  • pest — WebhookLogsSearchPlaceholderTest (2 tests guarding the placeholder key + resolved English string)
  • pest — full Admin/tests/Feature/Webhook + DataGrid/tests suites green
  • pint — clean on all touched files
  • artisan unopim:translations:check — 100% per locale
  • Manual: open /admin/webhook/settings?logs and verify placeholder reads "Search by SKU or user" (and the localized variant when switching UI language)

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a UX mismatch in the Admin webhook logs DataGrid by updating the search box placeholder to reflect the actual searchable columns (sku and user) instead of referencing a non-existent code column, and adds a new localized translation key to support the updated placeholder across all Admin locales.

Changes:

  • Update LogsDataGrid search placeholder key to admin::app.components.datagrid.toolbar.search_by.sku_or_user.
  • Add sku_or_user under components.datagrid.toolbar.search_by across all Admin locale files.
  • Add a Pest feature test to guard the placeholder key and ensure the English translation resolves.

Reviewed changes

Copilot reviewed 35 out of 35 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/Webkul/Webhook/src/DataGrids/LogsDataGrid.php Updates the webhook logs DataGrid search placeholder translation key to match searchable columns (SKU/user).
packages/Webkul/Admin/tests/Feature/Webhook/WebhookLogsSearchPlaceholderTest.php Adds regression tests covering the placeholder key and English translation resolution.
packages/Webkul/Admin/src/Resources/lang/ar_AE/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/ca_ES/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/da_DK/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/de_DE/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/en_AU/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/en_GB/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/en_NZ/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/en_US/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/es_ES/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/es_VE/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/fi_FI/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/fr_FR/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/hi_IN/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/hr_HR/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/id_ID/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/it_IT/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/ja_JP/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/ko_KR/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/mn_MN/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/nl_NL/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/no_NO/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/pl_PL/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/pt_BR/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/pt_PT/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/ro_RO/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/ru_RU/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/sv_SE/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/tl_PH/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/tr_TR/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/uk_UA/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/vi_VN/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/zh_CN/app.php Adds sku_or_user translation for the DataGrid search placeholder.
packages/Webkul/Admin/src/Resources/lang/zh_TW/app.php Adds sku_or_user translation for the DataGrid search placeholder.

@navneetkumar-pim-webkul
navneetkumar-pim-webkul merged commit 65e5e98 into unopim:master May 25, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants