-
Notifications
You must be signed in to change notification settings - Fork 24.6k
feat(editor): Preserve workflow list sort & page size preferences #15101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(editor): Preserve workflow list sort & page size preferences #15101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mrge found 5 issues across 4 files. View them in mrge.io
packages/frontend/editor-ui/src/components/layouts/ResourcesListLayout.vue
Outdated
Show resolved
Hide resolved
packages/frontend/editor-ui/src/components/layouts/ResourcesListLayout.vue
Show resolved
Hide resolved
packages/frontend/editor-ui/src/components/layouts/ResourcesListLayout.vue
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
f2852d5
to
f380b17
Compare
41a6f58
to
0f2d312
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some initial comments, looks great overall! Love the useN8nLocalStorage composable!
Will test before daily sync
if (rowsPerPage.value !== props.customPageSize) { | ||
// Only update sort & page size if they are different from the default values | ||
// otherwise, remove them from the query | ||
if (rowsPerPage.value !== preferredPageSize.value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this get weird if two users with different preferences share links? Do we care about supporting this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, but Nik and Rob confirmed that url values should update your local preferences
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The url keeping the newly chosen option (which is now default) while dropping the previous one is killing me a bit, but if you're happy I'm happy :D
Screen.Recording.2025-05-06.at.15.41.08.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not too happy to be honest, but I think it makes sense in a way. Let's see the feedback once it gets on internal and we can update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, nothing to block release anyway
packages/frontend/editor-ui/src/components/layouts/ResourcesListLayout.vue
Outdated
Show resolved
Hide resolved
packages/frontend/editor-ui/src/composables/useN8nLocalStorage.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
|
✅ All Cypress E2E specs passed |
Summary
Saving user set values for sorting and page sizes between projects.
Other changes:
ResourceListLayout
componentuseN8nLocalStorage
composableRelated Linear tickets, Github issues, and Community forum posts
Closes ADO-3397
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)