Skip to content

feat(contacts): view contact page [PERA-4122]#375

Merged
yasin-ce merged 5 commits intocontacts/04-listfrom
contacts/05-view
Apr 25, 2026
Merged

feat(contacts): view contact page [PERA-4122]#375
yasin-ce merged 5 commits intocontacts/04-listfrom
contacts/05-view

Conversation

@yasin-ce
Copy link
Copy Markdown
Collaborator

@yasin-ce yasin-ce commented Apr 24, 2026

Description

  • `ViewContactScreen` redesigned: avatar, truncated header address, copyable full address with inline QR icon.
  • NFD lookup surfaced as its own section (via `useNfdForAddressQuery`).
  • Share + edit buttons wired through `useNavigationHeader`.
  • New i18n keys under `contacts.view_contact.*` including `nfd_label`.

Related Issues

Checklist

  • Have you tested your changes locally?
  • Have you reviewed the code for any potential issues?
  • Have you documented any necessary changes in the project's documentation?
  • Have you added any necessary tests for your changes?
  • Have you updated any relevant dependencies?

Additional Notes

Stacked on #374. `ViewContactScreen.spec.tsx` expanded from 1 → 8 tests: rendering, empty view, NFD resolution, QR sheet open, share success, edit navigation, share-rejection swallowing.

- Redesigned ViewContactScreen: avatar, name + short address, full
  address with copy, QR trigger, NFD label when resolved.
- Share + edit buttons live in the navigation header via
  useNavigationHeader.
- Reuses ContactQRBottomSheet for the QR modal.
- Removed ViewContactHeaderButtons component + route headerRight wiring.
- i18n: contacts.view_contact.account_address.
@yasin-ce
Copy link
Copy Markdown
Collaborator Author

Screenshot_20260424_040855

@yasin-ce yasin-ce marked this pull request as ready for review April 24, 2026 03:05
Comment thread apps/mobile/src/modules/contacts/screens/ViewContactScreen/styles.ts Outdated
Comment thread apps/mobile/src/modules/contacts/screens/ViewContactScreen/styles.ts Outdated
Comment thread apps/mobile/src/modules/contacts/screens/ViewContactScreen/ViewContactScreen.tsx Outdated
Comment thread apps/mobile/src/modules/contacts/screens/ViewContactScreen/ViewContactScreen.tsx Outdated
Comment thread apps/mobile/src/modules/contacts/screens/ViewContactScreen/ViewContactScreen.tsx Outdated
Comment thread apps/mobile/src/modules/contacts/screens/ViewContactScreen/ViewContactScreen.tsx Outdated
Comment thread apps/mobile/src/modules/contacts/screens/ViewContactScreen/ViewContactScreen.tsx Outdated
…play per review

- Extract ViewContactScreen logic into useViewContactScreen hook with
  explicit result type (selectedContact, NFD lookup, QR visibility,
  share/edit handlers).
- Replace CopyableText + PWText composition with AddressDisplay
  (addressFormat='full', displayType='address-only', showCopy=false).
- Use PWTouchableIcon for header share/edit and the inline QR icon so
  they get proper hit areas and feedback.
- Remove redundant style comments.
@yasin-ce yasin-ce merged commit a98cfe8 into contacts/04-list Apr 25, 2026
4 of 6 checks passed
@yasin-ce yasin-ce deleted the contacts/05-view branch April 25, 2026 00:11
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.

2 participants