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

Improve changelog dialog #5177

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Conversation

Pururun
Copy link
Contributor

@Pururun Pururun commented Sep 21, 2023

  • Replace hardcoded font sizes and colors
  • Place it within AppTheme so that corner radius are the same as other dialogs.
  • Make it scrollable
  • Change some text styles to be more in line with design

This change is Reviewable

@Pururun Pururun requested review from Rawa and sabercodic September 21, 2023 13:01
@linear
Copy link

linear bot commented Sep 21, 2023

@Pururun Pururun added the Android Issues related to Android label Sep 21, 2023
@Pururun Pururun force-pushed the fix-changelogdialogs-corner-radius-droid-331 branch 2 times, most recently from 6753e57 to 6fd9c4b Compare September 21, 2023 15:18
Copy link
Collaborator

@albin-mullvad albin-mullvad left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Pururun)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/ChangelogDialog.kt line 73 at r1 (raw file):

private fun ChangeListItem(text: String) {

    ConstraintLayout {

Did you consider switching from ConstraintLayout when cleaning up the code? @Rawa has shared some good reasons for why it might be good to avoid ConstraintLayout and instead work with more Compose-native Composables. Not saying saying it's a must for this PR though!

Code quote:

ConstraintLayout

Copy link
Contributor Author

@Pururun Pururun left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @Rawa)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/ChangelogDialog.kt line 73 at r1 (raw file):

Previously, albin-mullvad wrote…

Did you consider switching from ConstraintLayout when cleaning up the code? @Rawa has shared some good reasons for why it might be good to avoid ConstraintLayout and instead work with more Compose-native Composables. Not saying saying it's a must for this PR though!

No I did not, but I think it would be good idea :)

@Pururun Pururun force-pushed the fix-changelogdialogs-corner-radius-droid-331 branch 2 times, most recently from 1f1bc76 to 7d39084 Compare September 21, 2023 20:12
Copy link
Contributor

@Rawa Rawa left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @albin-mullvad and @Pururun)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/ChangelogDialog.kt line 73 at r1 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

No I did not, but I think it would be good idea :)

Yeah, usually ConstraintLayout is overkill in compose, there are places were it makes sense but most things are possible to accomplish without them.

Copy link
Contributor

@sabercodic sabercodic left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @albin-mullvad and @Pururun)

Copy link
Collaborator

@albin-mullvad albin-mullvad left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/ChangelogDialog.kt line 73 at r1 (raw file):

Previously, Rawa (David Göransson) wrote…

Yeah, usually ConstraintLayout is overkill in compose, there are places were it makes sense but most things are possible to accomplish without them.

Nice improvement! Just make sure it looks the same as before.

Copy link
Contributor Author

@Pururun Pururun left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/ChangelogDialog.kt line 73 at r1 (raw file):

Previously, albin-mullvad wrote…

Nice improvement! Just make sure it looks the same as before.

It actually looks better (more in line with design...)

Copy link
Collaborator

@albin-mullvad albin-mullvad left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/ChangelogDialog.kt line 73 at r1 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

It actually looks better (more in line with design...)

I don't doubt that! 😄 To clarify, I mean specifically that the bullet list gets correctly formatted, for example when an items break multiple lines such as this:

* This is a long changelist item
  covering mutiple lines according
  to the design spec.
* This is a long changelist item
covering mutiple lines which is
not according to the design spec.

Copy link
Contributor Author

@Pururun Pururun left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/dialog/ChangelogDialog.kt line 73 at r1 (raw file):

Previously, albin-mullvad wrote…

I don't doubt that! 😄 To clarify, I mean specifically that the bullet list gets correctly formatted, for example when an items break multiple lines such as this:

* This is a long changelist item
  covering mutiple lines according
  to the design spec.
* This is a long changelist item
covering mutiple lines which is
not according to the design spec.

Ah I understand. Yes I checked that it was formatted according to design. :)

@mullmat
Copy link
Contributor

mullmat commented Sep 22, 2023

Corner radius on the change log dialog looks wrong, what radius is defined? 😃

@Pururun
Copy link
Contributor Author

Pururun commented Sep 25, 2023

Corner radius on the change log dialog looks wrong, what radius is defined? 😃

Fixed in: #5186

@Pururun Pururun force-pushed the fix-changelogdialogs-corner-radius-droid-331 branch from 7d39084 to 47dc7df Compare September 25, 2023 09:21
- Replace hardcoded font sizes and colors
- Place it within AppTheme so that corner radius are the same as other dialogs.
- Make it scrollable
- Change some text styles to be more in line with design
- Improve changelog items
@Pururun Pururun force-pushed the fix-changelogdialogs-corner-radius-droid-331 branch from 47dc7df to c98aaf4 Compare September 25, 2023 09:23
@Pururun Pururun merged commit 4dc2a35 into main Sep 25, 2023
12 checks passed
@Pururun Pururun deleted the fix-changelogdialogs-corner-radius-droid-331 branch September 25, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Issues related to Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants