Skip to content

fix(member-list): prevent overflow and add +n avatar indicator#4023

Merged
andre-code merged 35 commits intofeature/update-search-pagefrom
andrea/fix/member-list-visualization-layout
Mar 3, 2026
Merged

fix(member-list): prevent overflow and add +n avatar indicator#4023
andre-code merged 35 commits intofeature/update-search-pagefrom
andrea/fix/member-list-visualization-layout

Conversation

@andre-code
Copy link
Copy Markdown
Contributor

@andre-code andre-code commented Feb 13, 2026

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

@RenkuBot
Copy link
Copy Markdown
Contributor

You can access the deployment of this PR at https://renku-ci-ui-4023.dev.renku.ch

@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch from 2236d63 to 795cada Compare February 13, 2026 12:25
@andre-code andre-code force-pushed the andrea/fix/member-list-visualization-layout branch from 132106f to e4a8198 Compare February 13, 2026 12:51
@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch from 795cada to 84c7017 Compare February 17, 2026 09:34
@andre-code andre-code force-pushed the andrea/fix/member-list-visualization-layout branch 2 times, most recently from 38af37b to 4b7ef0e Compare February 17, 2026 10:22
@andre-code andre-code marked this pull request as ready for review February 17, 2026 23:35
@andre-code andre-code requested a review from a team as a code owner February 17, 2026 23:35
Copy link
Copy Markdown
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the result 👍
Would it make sense to reuse the avatar class? Unless it's too complicated

Comment thread client/src/features/searchV2/components/SearchResults.tsx Outdated
Comment thread client/src/features/searchV2/components/MemberListRow.tsx Outdated
@andre-code andre-code force-pushed the andrea/move-group-search-to-search-v2 branch from 079320d to f75ab31 Compare February 19, 2026 13:22
@andre-code andre-code force-pushed the andrea/fix/member-list-visualization-layout branch 2 times, most recently from 41fb217 to bd30507 Compare February 19, 2026 16:02
@andre-code andre-code force-pushed the andrea/fix/member-list-visualization-layout branch from bd30507 to 9bd11b6 Compare February 19, 2026 20:20
Copy link
Copy Markdown
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! A couple of tiny adjustments before merging

Comment on lines +29 to +36
interface MemberListRowProps {
members: {
id: string;
namespace?: string;
first_name?: string;
last_name?: string;
}[];
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: scrollWidth might be larger if we have hidden components. That's not the case, but offsetWidth might be more robust for future changes

Suggested change
measuredWidths.current[i] = el.scrollWidth;
measuredWidths.current[i] = el.offsetWidth;

@lorenzo-cavazzi
Copy link
Copy Markdown
Member

lorenzo-cavazzi commented Feb 20, 2026

P.S: probably not a real-world scenario, but having many members might result in a very long text. I wonder if it makes sense to cut the tooltip text after a number of chars (100? 200?) and add "..."

Screenshot_20260220_100814

Copy link
Copy Markdown
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! 🚀

I see the search acceptance test is failing but I guess it will be addressed in the other PR

@andre-code andre-code force-pushed the andrea/fix/member-list-visualization-layout branch from 739280b to 9c756dd Compare February 20, 2026 13:51
andre-code and others added 6 commits February 23, 2026 09:13
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
Base automatically changed from andrea/move-group-search-to-search-v2 to feature/update-search-page February 24, 2026 12:07
@andre-code andre-code force-pushed the andrea/fix/member-list-visualization-layout branch from 9c756dd to c2de0c0 Compare February 24, 2026 12:09
@andre-code andre-code force-pushed the feature/update-search-page branch from db67039 to 6b5c95f Compare February 24, 2026 14:25
@andre-code andre-code merged commit ec3c356 into feature/update-search-page Mar 3, 2026
48 of 51 checks passed
@andre-code andre-code deleted the andrea/fix/member-list-visualization-layout branch March 3, 2026 10:39
@RenkuBot
Copy link
Copy Markdown
Contributor

RenkuBot commented Mar 3, 2026

Tearing down the temporary RenkuLab deplyoment for this PR.

andre-code added a commit that referenced this pull request Mar 3, 2026
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants