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

[Compound] Implement dialogs #1043

Merged
merged 6 commits into from
Aug 11, 2023

Conversation

jmartinesp
Copy link
Member

@jmartinesp jmartinesp commented Aug 9, 2023

Changes:

  • Makes TextButton padding smaller when it doesn't have an icon.
  • Move AlertDialogContent to theme/components to make it part of the 'platform components' instead of having it as a custom component.
  • Update designs to match Figma.

Closes element-hq/compound#202.

Note: this PR only covers simple dialogs, and doesn't try to implement dialogs containing lists since the work on lists is paused. Also, this PR does not handle 'disabled' state for buttons since I couldn't verify the behavior needed, so this will be added in a separate PR in the future.

@jmartinesp jmartinesp changed the title Implement dialogs following Compound tokens [Compound] Implement dialogs Aug 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

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

@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Patch coverage: 85.71% and project coverage change: -0.01% ⚠️

Comparison is base (fa51f6e) 56.88% compared to head (2a397ec) 56.88%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1043      +/-   ##
===========================================
- Coverage    56.88%   56.88%   -0.01%     
===========================================
  Files          997      997              
  Lines        25392    25321      -71     
  Branches      5117     5078      -39     
===========================================
- Hits         14444    14403      -41     
+ Misses        8703     8692      -11     
+ Partials      2245     2226      -19     
Files Changed Coverage Δ
...ibraries/designsystem/components/ProgressDialog.kt 66.17% <ø> (ø)
...ignsystem/components/dialogs/ConfirmationDialog.kt 57.89% <ø> (-5.01%) ⬇️
...ies/designsystem/components/dialogs/ErrorDialog.kt 51.85% <ø> (-8.94%) ⬇️
...ies/designsystem/components/dialogs/RetryDialog.kt 47.22% <ø> (-6.75%) ⬇️
...tem/theme/components/previews/DatePickerPreview.kt 69.23% <ø> (ø)
...tem/theme/components/previews/TimePickerPreview.kt 70.00% <ø> (ø)
...io/element/android/libraries/theme/ElementTheme.kt 43.75% <0.00%> (-0.94%) ⬇️
...esignsystem/theme/components/AlertDialogContent.kt 75.27% <85.71%> (ø)
.../libraries/designsystem/theme/components/Button.kt 74.66% <100.00%> (+0.51%) ⬆️

... and 1 file with indirect coverage changes

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

@jmartinesp jmartinesp force-pushed the chore/jme/compound-platform-components-dialog branch from bb6fb6f to 9ef3d4e Compare August 9, 2023 13:35
@jmartinesp jmartinesp marked this pull request as ready for review August 10, 2023 07:41
@jmartinesp jmartinesp requested a review from a team as a code owner August 10, 2023 07:41
@jmartinesp jmartinesp requested review from bmarty, a team and julioromano and removed request for a team and bmarty August 10, 2023 07:41
@sonarcloud
Copy link

sonarcloud bot commented Aug 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link

@julioromano julioromano left a comment

Choose a reason for hiding this comment

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

LGTM!

@jmartinesp jmartinesp added this pull request to the merge queue Aug 11, 2023
Merged via the queue into develop with commit a77b598 Aug 11, 2023
@jmartinesp jmartinesp deleted the chore/jme/compound-platform-components-dialog branch August 11, 2023 12:45
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.

Implement Dialogs in Android
2 participants