-
Notifications
You must be signed in to change notification settings - Fork 27
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
Populate the dedicated view of direct messages ("People") in the rooms list #323
base: main
Are you sure you want to change the base?
Conversation
Screencast.from.2025-01-14.16-12-01.webmI will fix the issue in a later pr that user can select common room and direct room at the same time if you donnot mind. :) |
Hmm, I don't think we want to have separate scrollable lists for people and rooms -- those should be combined into a single scrollable list. So the goal would be to have separate sections/headings within a single scroll list. That design will also work well with the room search/filter function, in which we may want to show only direct people rooms or only regular public rooms. It will also not waste vertical space, like what's shown in your screenshot with all the whitespace between the |
Considering that the implementation methods are quite different, I force pushed. |
so, did we decide on a different design style for this? As in, you no longer want to put everything into one list? I'm open to alternative ideas, though it's probably best if we implement a general collapsible heading widget before we actually continue working on this feature, since that's sort of a prerequisite. We need something like this details/summary expander: Rooms
People
we should probably be able to re-use Rik's existing components for this, as I've seen some expandable lists used in the File Tree for |
Yeah, the sidebar will become much tough to maintain if we put all widgets into one list, that is , we only sort rooms by whether it is direct. Restructure the related code of sidebar to add more sorting solutions such as sorting by room name, that will be quite complicated. |
Btw, the current difficulty is that we can't do: Checking whether we can Because some rooms will be ignored and won't appear in the The original code works because we don't care about any categorizing of rooms, so we can definitely related code: Lines 643 to 674 in 85c6f00
Now if we want to put all widgets in a and consider room categorization, we only can determine it by related code for referance: Lines 691 to 802 in 5b982b1
|
That's great! This commit can be used as a temporary solution, IMHO, since it's easy to refactor in the future. |
this does look nice, great job! However, while this UI model is acceptable for account with 20-50 rooms, if you have 10,000 rooms (or even 100+) in your account, then this interface becomes quite cumbersome to use --- you have to scroll through all of the Rooms conversations before you get to the People. That's why we need some sort of collapsible widget. We can keep this PR open, though I won't merge it in yet. |
Hi, @kevinaboos , I am studying the implementation of I found that we don't need a node structure, its depth is just two (Collapsible title and rooms under it), not like the file and path, which is unlimited nested. And I found no suitable widgets in makepad for |
Maybe there is no need use the File Tree. We can just add arrow buttons next to header that will hide the rooms in room list while still using portal list. @aaravlu Do you want to try my suggestion? Or I shall attempt this issue 139 again. |
Of course i want to try your suggestion! |
issue #139