-
Notifications
You must be signed in to change notification settings - Fork 79
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
fix: Optimize ContactsView & MembersTabPanel settings pages #16979
base: master
Are you sure you want to change the base?
Conversation
Jenkins BuildsClick to see older builds (76)
|
d0e8549
to
dd6550f
Compare
285991f
to
03f9af4
Compare
03f9af4
to
55747bf
Compare
@caybro i will fix the tests, looking into that now. Just one question: was the second checkbox changed to be not a checkbox on purpose? |
Oh definitely not and I have no idea what happened here, will check |
55747bf
to
2052cd3
Compare
And fixed :) |
2052cd3
to
77975e9
Compare
6c476aa
to
3393297
Compare
A small bug I found is that the checkboxes don't seem correct in the Edit community panel. There is a weird "selected" effect on the first two letters and the checkboxes don't show (on the right maybe) The button to save the edit doesn't appear either. The member lists seem to work fine. but I couldn't test the pending members because of the above bugs |
Ah thanks, will have a look tomorrow! |
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.
Nice work! I wrote a couple of questions and suggestions, but nothing blocking
@@ -75,4 +75,21 @@ QObject { | |||
value: Constants.ContactRequestState.Sent | |||
} | |||
} |
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.
Do we still need pendingSentRequestContacts
and pendingReceivedRequestContacts
? If not, might as well remove them
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.
We do use pendingReceivedRequestContacts
for the badge indicator; pendingSentRequestContacts
seems to be indeed unused
- fixup margins and padding according to latest Figma designs - make a difference between a disabled and inactive tab by using opacity - provide smooth color transitions - add a dedicated StoryBook page
- fix a bug where the Switch would start animating if it'd been checked on creation - add the same property `leftSide` to StatusSwitch (just like StatusCheckBox), and use `LayoutMirroring` to perform the visual inversion - fixup margins and padding, removing hardcoded values, according to latest Figma designs - make a difference between a disabled and inactive button by using opacity - provide smooth color transitions - add dedicated StoryBook pages
3393297
to
088fc8f
Compare
- removed nested ListViews inside StackLayouts, in order to reduce the memory footprint and improve performance, and also to be able to better manage the scrolling - no more unrolled multiple listviews, which again hurt the performance; now the views instantiate the delegates dynamically on the fly - the tab bar and the search fields now stick to the top of the page, with the users list view scrolling independently - both views now uniformly use the common `ContactListItemDelegate` - the received/sent CRs are now combined into one `pendingContacts` model - factored out common search/filter criteria into a new, separate SFPM `UserFilterContainer` component - fix an issue where StatusContactVerificationIcons wasn't properly displaying the "blocked" state/icon - fix documentation comments, removed relative imports, and updated some Fixes #16612 Fixes #16958
088fc8f
to
f0809e6
Compare
@jrainville addressed your feedback, and fixed the issue with checkboxes; pls have a second look 🙏 |
On the tester side, everything works as expected, except a small bug with rejecting a request, but I tested it on master and the issue happens there too, so I'll open a new issue. Anyway, tested ✔️ |
Tip
Best review commit by commit; the first 2 contain UI components updates. Also, a lot of the new stuff is Storybook pages :)
What does the PR do
ContactListItemDelegate
pendingContacts
modelUserFilterContainer
componentFixes #16612
Fixes #16958
Affected areas
Settings/Contacts; Community/Settings/Members
Architecture compliance
My PR is consistent with this document: Status Desktop Architecture Guide
Screenshot of functionality (including design for comparison)
Contacts:
Community members: