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
ListSettingsView: Append the new field instead of prepend #12587
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12587 +/- ##
==========================================
+ Coverage 47.59% 47.67% +0.08%
==========================================
Files 210 228 +18
Lines 8192 8453 +261
Branches 1857 1896 +39
==========================================
+ Hits 3899 4030 +131
- Misses 3531 3641 +110
- Partials 762 782 +20
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Nice @gu-stav |
@ronronscelestes Oh, nice catch. That's a valid concern. Well - how about, once you add a field we always scroll to the end of the container afterwards? |
@gu-stav I wasn't sure how to do that, that would be great, can't wait to see and learn 👀 |
@ronronscelestes I've added a proposal in 646653d. Sorry for the diff 🤔 In What do you think about it? |
...ore/admin/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js
Outdated
Show resolved
Hide resolved
...ore/admin/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js
Outdated
Show resolved
Hide resolved
308e6f5
to
6f06b38
Compare
@ronronscelestes @soupette Thanks for your review comments. They made me think that a simpler implementation is needed, which I pushed in 6f06b38.
I hope you like it :) |
6f06b38
to
450a33c
Compare
450a33c
to
8207b56
Compare
@@ -3467,14 +3467,14 @@ exports[`ADMIN | CM | LV | Configure the view should add field 1`] = ` | |||
<span | |||
class="c24 c77" | |||
> | |||
michka | |||
hey |
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.
🥲
What does it do?
When a new field gets added to the list-view of the content manger, it will be prepended to the existing list. Since the add button is on the right and it is supposed to add the item, this PR changes the behavior so that the item is appended instead.
Before
Kapture.2022-02-18.at.14.06.19.mp4
After
Kapture.2022-02-18.at.14.04.11.mp4
Why is it needed?
Makes it easier for the user the predict the behavior of the UI.
How to test it?