Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Private information dialog#81

Merged
hamorillo merged 3 commits intotrunkfrom
adam/GRA-594
Jul 29, 2025
Merged

Private information dialog#81
hamorillo merged 3 commits intotrunkfrom
adam/GRA-594

Conversation

@AdamGrzybkowski
Copy link
Contributor

Description

This PR adds the PrivateInformationDialog to the Share screen.

Additionally, I've extracted common dialog components and the dialog itself to the :design module.

private_info_dialog

Testing Steps

  1. Launch the app
  2. Go to Share tab
  3. Tap on the private section title
  4. Confirm the dialog is shown
  5. Tap "Got it"
  6. Confirm it's gone

@AdamGrzybkowski AdamGrzybkowski added the enhancement New feature or request label Jul 25, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a private information dialog to the Share screen that explains how email and phone numbers are shared via QR code only and not stored publicly. The PR also extracts common dialog components to the design module for reusability.

  • Adds PrivateInformationDialog component with explanatory text and "Got it" button
  • Makes the private contact info section title clickable to trigger the dialog
  • Extracts common dialog components (GravatarDialog, DialogTitle, DialogText, PrimaryButton) to the design module
  • Updates AboutAppDialog to use the new shared dialog components

Reviewed Changes

Copilot reviewed 15 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
SharePrivateContactInfo.kt Makes section title clickable to show dialog
PrivateInformationDialog.kt New dialog component explaining private information handling
ShareViewModel.kt Adds state management for dialog visibility
ShareUiState.kt Adds dialog visibility flag to UI state
ShareScreen.kt Integrates dialog into screen composition
ShareEvent.kt Adds events for dialog show/dismiss
AboutAppDialog.kt Refactored to use extracted dialog components
design/components/dialog/ New shared dialog components
design/components/button/PrimaryButton.kt New shared button component
Test files Updated tests for new functionality
strings.xml Added dialog text strings

# Conflicts:
#	homeUi/src/main/kotlin/com/gravatar/app/homeUi/presentation/home/share/ShareScreen.kt
#	homeUi/src/main/kotlin/com/gravatar/app/homeUi/presentation/home/share/ShareUiState.kt
#	homeUi/src/main/kotlin/com/gravatar/app/homeUi/presentation/home/share/ShareViewModel.kt
#	homeUi/src/main/res/values/strings.xml
#	homeUi/src/test/kotlin/com/gravatar/app/homeUi/presentation/home/share/ShareViewModelTest.kt
Copy link

@hamorillo hamorillo left a comment

Choose a reason for hiding this comment

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

🚀

@hamorillo hamorillo merged commit c8fda59 into trunk Jul 29, 2025
10 of 11 checks passed
@hamorillo hamorillo deleted the adam/GRA-594 branch July 29, 2025 08:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants