Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Fix: Clicking on members pile does nothing (Alternate fix)#11656

Closed
manancodes wants to merge 3 commits into
matrix-org:developfrom
manancodes:manancodes/Clickable_space_members_pile
Closed

Fix: Clicking on members pile does nothing (Alternate fix)#11656
manancodes wants to merge 3 commits into
matrix-org:developfrom
manancodes:manancodes/Clickable_space_members_pile

Conversation

@manancodes
Copy link
Copy Markdown
Contributor

@manancodes manancodes commented Sep 24, 2023

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

Fixes element-hq/element-web#26164
Signed-off-by: Manan Sadana manancodes.dev@gmail.com

Clicking on a particular person should open his/her profile and clicking on the ...(more) button should open the list.

This was the behaviour before the fix:

Clicking on ...(more) button does nothing.

old.mov

Clicking user profile button does nothing.

old.mov

And this is the behaviour after the fix:

Clicking on ...(more) button opens list of users.

new.mov

Clicking user profile opens user profile.

new.mov

Type: defect


Here's what your changelog entry will look like:

🐛 Bug Fixes

@manancodes manancodes requested a review from a team as a code owner September 24, 2023 12:24
@github-actions github-actions Bot added the Z-Community-PR Issue is solved by a community member's PR label Sep 24, 2023
@manancodes manancodes marked this pull request as draft September 24, 2023 12:24
@github-actions github-actions Bot added the T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems label Sep 24, 2023
@manancodes manancodes changed the title PartialFix: List of members open if ...(more) is clicked Fix: Appropriate panels open when clicking on space members pile. Sep 24, 2023
@manancodes manancodes marked this pull request as ready for review September 24, 2023 18:46
Copy link
Copy Markdown
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

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

Code looks good to me!
However you have a few tests that are failing and the updated logic here might warrant some new test cases to avoid regressions in the future

{overflow ? <span className="mx_FacePile_more" style={{ marginLeft: `calc(${size} * -0.2)` }} /> : null}
{overflow ? (
<span
onClick={props.onClick}
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.

We also shouldn't use onClick on non-accessible elements

@manancodes manancodes changed the title Fix: Appropriate panels open when clicking on space members pile. Fix: Clicking on members pile does nothing (Alternate fix) Sep 25, 2023
@germain-gg
Copy link
Copy Markdown
Contributor

Closing as #11657 is the correct behaviour we want to support

@germain-gg germain-gg closed this Sep 29, 2023
@manancodes manancodes deleted the manancodes/Clickable_space_members_pile branch September 30, 2023 08:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems Z-Community-PR Issue is solved by a community member's PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pile of space member avatars is no longer clickable

3 participants