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

design : CounterAtom #4108

Merged
merged 3 commits into from
Jan 6, 2025
Merged

design : CounterAtom #4108

merged 3 commits into from
Jan 6, 2025

Conversation

ganfra
Copy link
Member

@ganfra ganfra commented Jan 3, 2025

Content

Introduce new CounterAtom component and ListItemContent.Counter and use it for knock requests.

Motivation and context

https://www.figma.com/design/G1xy0HDZKJf5TCRFmKb5d5/Compound-Android-Components?node-id=2805-2649&m=dev
https://www.figma.com/design/7TqjqdMBaPpm3IavKsMYu6/Ask-to-join-(Knocking)?node-id=5135-92555&m=dev

Screenshots / GIFs

Check new screenshots.

Tests

  • Step 1
  • Step 2
  • Step ...

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

  • Changes have been tested on an Android device or Android emulator with API 24
  • UI change has been tested on both light and dark themes
  • Accessibility has been taken into account. See https://github.com/element-hq/element-x-android/blob/develop/CONTRIBUTING.md#accessibility
  • Pull request is based on the develop branch
  • Pull request title will be used in the release note, it clearly define what will change for the user
  • Pull request includes screenshots or videos if containing UI changes
  • You've made a self review of your PR

@ganfra ganfra added PR-Misc For other changes Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. labels Jan 3, 2025
@ganfra ganfra marked this pull request as ready for review January 3, 2025 14:33
@ganfra ganfra requested a review from a team as a code owner January 3, 2025 14:33
@ganfra ganfra requested review from bmarty and removed request for a team January 3, 2025 14:33
@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 3, 2025
Copy link
Contributor

github-actions bot commented Jan 3, 2025

📱 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/pTbwDx

Copy link

sonarqubecloud bot commented Jan 3, 2025

Copy link

codecov bot commented Jan 3, 2025

Codecov Report

Attention: Patch coverage is 93.54839% with 2 lines in your changes missing coverage. Please review.

Project coverage is 83.28%. Comparing base (5880bbb) to head (179a9d1).
Report is 6 commits behind head on develop.

Files with missing lines Patch % Lines
...libraries/designsystem/atomic/atoms/CounterAtom.kt 92.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4108   +/-   ##
========================================
  Coverage    83.27%   83.28%           
========================================
  Files         1884     1885    +1     
  Lines        49068    49098   +30     
  Branches      5760     5764    +4     
========================================
+ Hits         40862    40890   +28     
  Misses        6139     6139           
- Partials      2067     2069    +2     

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

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, just a small remark about a color!

modifier = Modifier.align(Alignment.Center),
text = countAsText,
style = textStyle,
color = Color.White,
Copy link
Member

Choose a reason for hiding this comment

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

According to Figma, you should use ElementTheme.colors.textOnSolidPrimary (which is White so will not touch the screenshot)

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's not exactly true, it's using Light/color/text/on-solid/primary for both Light and Dark theme, so I think it's clearer to use White directly...

Copy link
Member

Choose a reason for hiding this comment

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

ah yes ok, so ignore me

@ganfra ganfra enabled auto-merge January 3, 2025 17:19
@ganfra ganfra added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jan 3, 2025
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jan 3, 2025
@ganfra ganfra added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jan 6, 2025
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jan 6, 2025
@ganfra ganfra merged commit 54be31c into develop Jan 6, 2025
32 of 33 checks passed
@ganfra ganfra deleted the feature/fga/design_counter branch January 6, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-Misc For other changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants