Skip to content

feat(pos): configurable category and item sort order - #1311

Merged
khaira777 merged 6 commits into
mainfrom
feat/pos-catalog-sort
Oct 23, 2026
Merged

khaira777 merged 6 commits into
mainfrom
feat/pos-catalog-sort

Conversation

@itsbkm

@itsbkm itsbkm commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds tenant-wide pos_category_sort (saved | name) and pos_item_sort (saved | name | price_asc | price_desc) backend settings, defaulting to the saved order.
  • New "POS Menu Sorting" card in General settings (settings.manage only).
  • GET /settings/pos-sort lets roles without settings.view read the ordering; wildcard PUT validates the enums.
  • Sorting is applied in the shared ProductGrid, so both /pos and the Server App (via /api/server-app/info) honour it. The API still returns the saved order.
  • Strings added to all 23 locales.

Test plan

  • npm run test:pos-catalog-sort, npm run test:pos-sort-settings
  • npm run i18n:check, npm run build, npm run test:script-coverage, npm run lint
  • Manual check in the running app (not done)
  • CI

🤖 Generated with Claude Code

Adds pos_category_sort and pos_item_sort settings (saved order, name, price asc/desc)
with a General settings card, a role-readable /settings/pos-sort route, Server App
info payload support, and sorting in the shared POS product grid.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@itsbkm

itsbkm commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@khaira777
khaira777 merged commit 646116c into main Oct 23, 2026
23 checks passed
@khaira777
khaira777 deleted the feat/pos-catalog-sort branch October 23, 2026 06:24
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.

2 participants