Skip to content
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

Make the whole items in advanced settings screen clickable, standarize paddings #2314

Merged
merged 12 commits into from
Jan 30, 2024

Conversation

jmartinesp
Copy link
Member

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

  • Make the whole list items in advanced settings screen clickable, instead of just the switches.
  • Makes sure UI components such as radio buttons, switches and checkboxes used inside ListItem components always have the minimum interactive size (48x48dp) to fix screenshot tests discrepancies seen with the changes above.

Sadly, this created more discrepancies, but at least now it's standarized.

Motivation and context

UX issues discovered while testing this screen.

Screenshots / GIFs

There are quite a few in the PR contents.

Tested devices

  • Physical
  • Emulator
  • OS version(s): 14

Checklist

@jmartinesp jmartinesp requested a review from a team as a code owner January 29, 2024 14:52
@jmartinesp jmartinesp requested review from bmarty and removed request for a team January 29, 2024 14:52
Copy link
Contributor

github-actions bot commented Jan 29, 2024

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/CBWZHZ

Copy link

codecov bot commented Jan 29, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (5b0268a) 70.08% compared to head (39cd863) 70.09%.
Report is 19 commits behind head on develop.

Files Patch % Lines
...m/impl/components/SearchMultipleUsersResultItem.kt 81.81% 0 Missing and 2 partials ⚠️
...s/roomdetails/impl/invite/RoomInviteMembersView.kt 83.33% 1 Missing and 1 partial ⚠️
...libraries/matrix/ui/components/CheckableUserRow.kt 90.90% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2314   +/-   ##
========================================
  Coverage    70.08%   70.09%           
========================================
  Files         1353     1351    -2     
  Lines        33247    33230   -17     
  Branches      6877     6871    -6     
========================================
- Hits         23301    23291   -10     
+ Misses        6638     6633    -5     
+ Partials      3308     3306    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

Choose a reason for hiding this comment

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

Interesting. I am trying to see what can cause this.

Copy link
Member

Choose a reason for hiding this comment

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

OK, so I think removing this line will fix this regression. Glad to have screenshot test!

Copy link
Member

Choose a reason for hiding this comment

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

It will match what we have in CheckableUserRow (which is missing a Preview...)

Copy link
Member Author

Choose a reason for hiding this comment

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

It should be fixed in 7c794f5.

Let's see the result in the screenshots.

Copy link
Member

Choose a reason for hiding this comment

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

Now I am wondering if the fix could be to add the padding where it was missing, instead of removing the existing one. The Checkbox are closer to the edge now... Maybe add a 8.dp padding?

Also maybe CheckableUnresolvedUserRow and CheckableUserRow could use a common Composable generic layout.

Copy link
Member Author

Choose a reason for hiding this comment

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

True, I didn't realise that. The 8dp padding will probably solve it, yes 👍 .

Also maybe CheckableUnresolvedUserRow and CheckableUserRow could use a common Composable generic layout.

I can try to make a common one.

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

A small regression to fix, else LGTM. Thanks for working on this!

@jmartinesp jmartinesp added the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Jan 30, 2024
@github-actions github-actions bot removed the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Jan 30, 2024
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

Thanks for the update. I do not see any more issue in the screenshot.
Feel free to ignore my last comment.

Also increase end padding to try to match previous layout.
@jmartinesp jmartinesp added the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Jan 30, 2024
@github-actions github-actions bot removed the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Jan 30, 2024
@jmartinesp jmartinesp added the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Jan 30, 2024
@github-actions github-actions bot removed the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Jan 30, 2024
Copy link

sonarcloud bot commented Jan 30, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@jmartinesp jmartinesp added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jan 30, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jan 30, 2024
@jmartinesp jmartinesp enabled auto-merge (squash) January 30, 2024 11:16
@jmartinesp jmartinesp merged commit 0f5038a into develop Jan 30, 2024
18 checks passed
@jmartinesp jmartinesp deleted the fix/jme/fix-list-item-paddings branch January 30, 2024 11:39
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.

2 participants