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

Update changelog presentation #7394

Merged
merged 4 commits into from
Jan 9, 2025
Merged

Conversation

kl
Copy link
Contributor

@kl kl commented Dec 20, 2024


This change is Reviewable

@kl kl added the Android Issues related to Android label Dec 20, 2024
Copy link

linear bot commented Dec 20, 2024

@kl kl force-pushed the update-changelog-presentation-droid-1634 branch 2 times, most recently from 8750c27 to 16442d7 Compare December 20, 2024 12:55
Copy link
Contributor

@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.

Reviewed 20 of 20 files at r1, 1 of 1 files at r2.
Reviewable status: 19 of 21 files reviewed, 2 unresolved discussions (waiting on @kl)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/notificationbanner/NotificationData.kt line 42 at r2 (raw file):

    ) : this(
        AnnotatedString(title),
        message?.let { NotificationMessage.Text(AnnotatedString(it)) },

This is just a general comment about clickable text, but any reason we did use an icon as for external links instead of the clickable text?


android/app/src/main/kotlin/net/mullvad/mullvadvpn/usecase/NewChangelogNotificationUseCase.kt line 18 at r2 (raw file):

    operator fun invoke() =
        combine(
                userPreferencesRepository.preferencesFlow,

Do we need to consider ALWAYS\_SHOW\_CHANGELOG or do we already do that in the repository? Maybe that property is not longer relevant?

Copy link
Contributor Author

@kl kl 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: 19 of 21 files reviewed, 2 unresolved discussions (waiting on @Pururun)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/notificationbanner/NotificationData.kt line 42 at r2 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

This is just a general comment about clickable text, but any reason we did use an icon as for external links instead of the clickable text?

We already have one clickable icon in that view (the X to close the notification), so maybe strange to have more?


android/app/src/main/kotlin/net/mullvad/mullvadvpn/usecase/NewChangelogNotificationUseCase.kt line 18 at r2 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

Do we need to consider ALWAYS\_SHOW\_CHANGELOG or do we already do that in the repository? Maybe that property is not longer relevant?

Good question!

Copy link
Contributor Author

@kl kl 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: 19 of 23 files reviewed, 2 unresolved discussions (waiting on @Pururun)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/usecase/NewChangelogNotificationUseCase.kt line 18 at r2 (raw file):

Previously, kl (Kalle Lindström) wrote…

Good question!

Removed in latest commit

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 20 files at r1, 2 of 2 files at r4, 2 of 2 files at r5.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @kl and @Pururun)


android/lib/resource/src/main/res/values/strings.xml line 179 at r5 (raw file):

    </string>
    <string name="new_changelog_notification_title">NEW VERSION INSTALLED</string>
    <string name="new_changelog_notification_message">Click here to see what\'s new.</string>

See other comment regarding curly apostrophes

Code quote:

what\'s

android/lib/resource/src/main/res/values/strings.xml line 392 at r5 (raw file):

    <string name="share">Share…</string>
    <string name="app_info">App info</string>
    <string name="changelog_title">What\'s new</string>

I believe this string is incorrect since we should only use curly apostrophes (). We also shouldn't need the backslash.

For example see this previous issue: https://linear.app/mullvad/issue/DROID-1290

Code quote:

What\'s new

Copy link
Contributor

@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.

Reviewed 2 of 2 files at r4, 2 of 2 files at r5, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @kl)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/notificationbanner/NotificationData.kt line 42 at r2 (raw file):

Previously, kl (Kalle Lindström) wrote…

We already have one clickable icon in that view (the X to close the notification), so maybe strange to have more?

Right I did not considered the close button, in that case it is all good!


android/app/src/main/kotlin/net/mullvad/mullvadvpn/usecase/NewChangelogNotificationUseCase.kt line 11 at r5 (raw file):

import net.mullvad.mullvadvpn.repository.UserPreferencesRepository

class NewChangelogNotificationUseCase(

This should considered if we actually have anything in the changelog. Should probably not notify if we have an empty changelog.

@Rawa Rawa force-pushed the update-changelog-presentation-droid-1634 branch from 6c095d7 to e66061b Compare December 23, 2024 09: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: 18 of 25 files reviewed, 3 unresolved discussions (waiting on @albin-mullvad, @kl, and @Pururun)


android/lib/resource/src/main/res/values/strings.xml line 179 at r5 (raw file):

Previously, albin-mullvad wrote…

See other comment regarding curly apostrophes

Fixed, but we need to notify desktop team since they use the wrong apostrophes on these strings.


android/lib/resource/src/main/res/values/strings.xml line 392 at r5 (raw file):

Previously, albin-mullvad wrote…

I believe this string is incorrect since we should only use curly apostrophes (). We also shouldn't need the backslash.

For example see this previous issue: https://linear.app/mullvad/issue/DROID-1290

Fixed, but we need to notify desktop team since they use the wrong apostrophes on these strings.

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: 18 of 25 files reviewed, 3 unresolved discussions (waiting on @albin-mullvad and @Pururun)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/usecase/NewChangelogNotificationUseCase.kt line 11 at r5 (raw file):

Previously, Pururun (Jonatan Rhodin) wrote…

This should considered if we actually have anything in the changelog. Should probably not notify if we have an empty changelog.

Fixed

Pururun
Pururun previously approved these changes Jan 8, 2025
Copy link
Contributor

@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.

Reviewed 2 of 7 files at r6, 24 of 29 files at r8, 9 of 9 files at r9, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @albin-mullvad)

@Rawa Rawa force-pushed the update-changelog-presentation-droid-1634 branch from c519016 to 8ef9492 Compare January 8, 2025 08:42
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.

Reviewed 6 of 20 files at r1, 1 of 2 files at r4, 2 of 2 files at r5, 2 of 7 files at r6, 4 of 29 files at r8, 5 of 9 files at r9, 26 of 26 files at r10, all commit messages.
Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @albin-mullvad and @kl)


android/app/src/main/proto/user_prefs.proto line 8 at r10 (raw file):

message UserPreferences {
  bool is_privacy_disclosure_accepted = 1;
  int32 version_code_for_latest_shown_changelog_notification = 2;

Maybe can be a bit simpler name
last_shown_changelog_version_code
or
version_code_for_last_shown_changelog


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/AppInfoScreen.kt line 106 at r10 (raw file):

    Column(modifier = Modifier.padding(bottom = Dimens.smallPadding).animateContentSize()) {
        ChangelogRow(navigateToChangelog)
        HorizontalDivider(color = Color.Transparent)

Why do we add a transparent Divider? 🙃


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ChangelogScreen.kt line 65 at r10 (raw file):

    ChangelogScreen(
        uiState.value,
        onBackClick = { navController.navigateUp() },

navController::navigateUp

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.

Reviewed 1 of 1 files at r11.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @albin-mullvad and @kl)


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/AppInfoScreen.kt line 106 at r10 (raw file):

Previously, Rawa (David Göransson) wrote…

Why do we add a transparent Divider? 🙃

Fixed


android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ChangelogScreen.kt line 65 at r10 (raw file):

Previously, Rawa (David Göransson) wrote…

navController::navigateUp

Fixed

@Rawa Rawa force-pushed the update-changelog-presentation-droid-1634 branch from 4f858dd to 42a0760 Compare January 8, 2025 09:48
Copy link
Contributor Author

@kl kl 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: 42 of 46 files reviewed, 3 unresolved discussions (waiting on @albin-mullvad, @Pururun, and @Rawa)


android/app/src/main/proto/user_prefs.proto line 8 at r10 (raw file):

Previously, Rawa (David Göransson) wrote…

Maybe can be a bit simpler name
last_shown_changelog_version_code
or
version_code_for_last_shown_changelog

Done.

@Rawa Rawa force-pushed the update-changelog-presentation-droid-1634 branch from b5197c6 to b123ec8 Compare January 8, 2025 14:48
@Rawa Rawa requested a review from albin-mullvad January 8, 2025 14:48
Rawa
Rawa previously approved these changes Jan 8, 2025
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.

Reviewed 1 of 1 files at r12, 3 of 3 files at r13, 7 of 7 files at r14, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @albin-mullvad)

@Rawa Rawa force-pushed the update-changelog-presentation-droid-1634 branch from b123ec8 to 536b69f Compare January 8, 2025 14:51
@Rawa Rawa requested a review from olmoh January 8, 2025 14:53
Copy link
Collaborator

@olmoh olmoh 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 r15, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

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 1 of 7 files at r14, 3 of 3 files at r15, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@Rawa Rawa force-pushed the update-changelog-presentation-droid-1634 branch from 536b69f to 4120402 Compare January 9, 2025 09:54
@Rawa Rawa merged commit af60655 into main Jan 9, 2025
32 checks passed
@Rawa Rawa deleted the update-changelog-presentation-droid-1634 branch January 9, 2025 09:56
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