Persist rows-per-page preferences per user#1175
Merged
Merged
Conversation
Adds a table_page_sizes JSON column to UserSettings so each user's per-table pagination preference is stored server-side and follows them across devices (laptop during rehearsals → fixed station for live shows). The PATCH /api/v1/user/settings endpoint handles the new field automatically; the existing WS broadcast (GET_USER_SETTINGS) syncs changes to all open sessions for that user without any local state mutation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Client V3 Test Results23 tests 23 ✅ 0s ⏱️ Results for commit 32afb49. |
Playwright E2E Results (chromium)175 tests 175 ✅ 1m 54s ⏱️ Results for commit 32afb49. ♻️ This comment has been updated with latest results. |
Client Test Results128 tests 128 ✅ 0s ⏱️ Results for commit 32afb49. |
|
Python Test Results 1 files 1 suites 2m 2s ⏱️ Results for commit 32afb49. |
Playwright E2E Results (firefox)175 tests 175 ✅ 1m 53s ⏱️ Results for commit 32afb49. |
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.



Summary
table_page_sizesJSON column toUserSettings(Alembic migration included) so each user's per-table pagination preference is stored server-sideusePaginationcomposable + Pinia store) and Vue 2 (paginationMixin+ Vuex) clients are wired up across all ~20 paginated tablesGET_USER_SETTINGSbroadcast on PATCH — no local state mutations, all sessions stay consistentHow it works
perPagevalue fromuserSettings.table_page_sizes[tableKey](falls back to default 15)PATCH /api/v1/user/settingswith the mergedtable_page_sizesobjectGET_USER_SETTINGSWS event to all sessions for that userTest plan
GET /api/v1/user/settingsreturnstable_page_sizes: {"config_acts": 25}🤖 Generated with Claude Code