fix(member-list): prevent overflow and add +n avatar indicator#4023
Conversation
* Add user page navigation * feat: Add search in user page
|
You can access the deployment of this PR at https://renku-ci-ui-4023.dev.renku.ch |
2236d63 to
795cada
Compare
132106f to
e4a8198
Compare
795cada to
84c7017
Compare
38af37b to
4b7ef0e
Compare
lorenzo-cavazzi
left a comment
There was a problem hiding this comment.
I like the result 👍
Would it make sense to reuse the avatar class? Unless it's too complicated
…aConnector to own file and rename search filter components
079320d to
f75ab31
Compare
41fb217 to
bd30507
Compare
bd30507 to
9bd11b6
Compare
lorenzo-cavazzi
left a comment
There was a problem hiding this comment.
Looks good! A couple of tiny adjustments before merging
| interface MemberListRowProps { | ||
| members: { | ||
| id: string; | ||
| namespace?: string; | ||
| first_name?: string; | ||
| last_name?: string; | ||
| }[]; | ||
| } |
There was a problem hiding this comment.
It's best if you pick the real types from members.data instead of re-defining a subset
interface MemberListRowProps {
members: ProjectMemberListResponse | GroupMemberResponseList;
}
| for (let i = 0; i < members.length; i++) { | ||
| const el = itemRefs.current[i]; | ||
| if (el) { | ||
| measuredWidths.current[i] = el.scrollWidth; |
There was a problem hiding this comment.
Nitpick: scrollWidth might be larger if we have hidden components. That's not the case, but offsetWidth might be more robust for future changes
| measuredWidths.current[i] = el.scrollWidth; | |
| measuredWidths.current[i] = el.offsetWidth; |
lorenzo-cavazzi
left a comment
There was a problem hiding this comment.
Lgtm! 🚀
I see the search acceptance test is failing but I guess it will be addressed in the other PR
739280b to
9c756dd
Compare
Replace context-based search with Redux hooks Update filters and results to new state structure Deprecate old utility functions Clean up components and remove unused imports
Move groupSearch to SearchV2 folder and rename components Adapt last search version in global search Replace context-based search with Redux hooks Update filters and results to new state structure Deprecate old utility functions Clean up components and remove unused imports
…ip text truncation in OverflowBadge
9c756dd to
c2de0c0
Compare
…-visualization-layout
db67039 to
6b5c95f
Compare
|
Tearing down the temporary RenkuLab deplyoment for this PR. |
* feat: add search in user page (#3984) * feat: use group search in global search (#3999) Move groupSearch to SearchV2 folder and rename components Adapt last search version in global search Replace context-based search with Redux hooks Update filters and results to new state structure * fix(member-list): prevent overflow and add +n avatar indicator (#4023)

/deploy renku=andrea/update-search-page renku-data-services=main