Skip to content

refactor(contacts): organize add address step (LIVE-33919) - #20272

Draft
deepyjr wants to merge 2 commits into
developfrom
refactor/contacts-LIVE-33919-organize-add-address-step
Draft

refactor(contacts): organize add address step (LIVE-33919)#20272
deepyjr wants to merge 2 commits into
developfrom
refactor/contacts-LIVE-33919-organize-add-address-step

Conversation

@deepyjr

@deepyjr deepyjr commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    - Add Address internal file organization and public Flow API imports

📝 Description

This stacked refactor keeps the Add Address behavior unchanged while making the step easier to navigate and maintain.

Address entry, currency selection, and flow state files now live in dedicated folders. Existing AddressName, Completion, and model folders remain in place. The root contains only public barrels, and the package public API is unchanged.

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

Copilot AI review requested due to automatic review settings July 31, 2026 09:45
@github-actions

Copy link
Copy Markdown
Contributor

Web Tools Build Status

Build Status Deployment
Web Tools Build ⏭️ Skipped
Native Storybook Build ⏭️ Skipped
React Storybook Build ⏭️ Skipped

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Refactors the Contacts “Add Address” step by reorganizing internal files into responsibility-based folders (AddressEntry, CurrencySelection, Flow, etc.) while keeping the package’s public API stable via updated barrel exports.

Changes:

  • Moved Add Address implementation files into dedicated subfolders and rewired internal imports accordingly.
  • Centralized flow/session types into Flow/types.ts and updated consumers to import from the new location.
  • Split Address Entry into View / ViewModel / container components and added/updated unit tests to match the new structure.

Reviewed changes

Copilot reviewed 18 out of 25 changed files in this pull request and generated no comments.

Show a summary per file
File Description
features/flow/contacts/src/steps/AddAddress/web.ts Updates web barrel exports to the new folder layout.
features/flow/contacts/src/steps/AddAddress/native.ts Updates native barrel exports to the new folder layout.
features/flow/contacts/src/steps/AddAddress/model/ports.ts Retargets type import to Flow/types.
features/flow/contacts/src/steps/AddAddress/index.ts Keeps public API stable while pointing exports to new internal paths.
features/flow/contacts/src/steps/AddAddress/Flow/useAddAddressFlowViewModel.web.test.ts Fixes imports after folder reorg.
features/flow/contacts/src/steps/AddAddress/Flow/useAddAddressFlowViewModel.ts Fixes imports after folder reorg.
features/flow/contacts/src/steps/AddAddress/Flow/types.ts New centralized type definitions for Add Address flow/session/view models.
features/flow/contacts/src/steps/AddAddress/CurrencySelection/useAddAddressCurrencySelectionViewModel.web.test.tsx Fixes imports after folder reorg.
features/flow/contacts/src/steps/AddAddress/CurrencySelection/useAddAddressCurrencySelectionViewModel.ts Updates imports to new featureFlags, model, and Flow/types locations.
features/flow/contacts/src/steps/AddAddress/Completion/ContactsAddAddressCompletion.web.tsx Updates type import to Flow/types.
features/flow/contacts/src/steps/AddAddress/AddressName/types.ts Updates type import to Flow/types.
features/flow/contacts/src/steps/AddAddress/AddressEntry/useContactsAddAddressEntryViewModel.web.ts New web Address Entry view model extracted into AddressEntry/.
features/flow/contacts/src/steps/AddAddress/AddressEntry/useContactsAddAddressEntryViewModel.web.test.ts Updates imports and keeps web Address Entry behavior covered by tests.
features/flow/contacts/src/steps/AddAddress/AddressEntry/useContactsAddAddressEntryViewModel.native.ts Updates imports to Flow/types (logic retained).
features/flow/contacts/src/steps/AddAddress/AddressEntry/ContactsAddAddressPlaceholderView.native.tsx Moves placeholder view into AddressEntry/ and updates type import.
features/flow/contacts/src/steps/AddAddress/AddressEntry/ContactsAddAddressPlaceholderView.native.test.tsx Adds coverage for the moved native placeholder view.
features/flow/contacts/src/steps/AddAddress/AddressEntry/ContactsAddAddressEntryView.web.tsx New web “View” component for Address Entry UI.
features/flow/contacts/src/steps/AddAddress/AddressEntry/ContactsAddAddressEntryView.native.tsx New native “View” component for Address Entry UI.
features/flow/contacts/src/steps/AddAddress/AddressEntry/ContactsAddAddressEntry.web.types.ts Updates web types to import from Flow/types and new folder structure.
features/flow/contacts/src/steps/AddAddress/AddressEntry/ContactsAddAddressEntry.web.tsx New web container wiring ViewModel → View.
features/flow/contacts/src/steps/AddAddress/AddressEntry/ContactsAddAddressEntry.types.ts Updates native types to import from Flow/types.
features/flow/contacts/src/steps/AddAddress/AddressEntry/ContactsAddAddressEntry.native.tsx New native container wiring ViewModel → View.
features/flow/contacts/src/steps/AddAddress/AddressEntry/ContactsAddAddressEntry.native.test.tsx Updates imports after moving types to Flow/types.
features/flow/contacts/README.md Documents the new Add Address folder layout.
.changeset/tidy-address-flow.md Adds a patch changeset for the internal reorg.

Copilot AI review requested due to automatic review settings July 31, 2026 09:52
@deepyjr
deepyjr force-pushed the refactor/contacts-LIVE-33919-organize-add-address-step branch from c2c67e0 to 23959ea Compare July 31, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 18 out of 25 changed files in this pull request and generated no new comments.

@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Rsdoctor Bundle Diff Analysis

Found 7 projects in monorepo, 7 projects with changes.

📊 Quick Summary
Project Total Size Change
desktop-main 2.3 MB -
desktop-preloader 7.1 KB -
desktop-renderer 80.7 MB -
desktop-webviewDappPreloader 36.9 KB -
desktop-webviewPreloader 200.0 B -
desktop-workers 36.8 KB -
mobile 261.4 MB -
📋 Detailed Reports (Click to expand)

📁 desktop-main

Path: rsdoctor/desktop-main/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 2.3 MB - -
📄 JavaScript 2.2 MB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 135.3 KB - -

📁 desktop-preloader

Path: rsdoctor/desktop-preloader/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 7.1 KB - -
📄 JavaScript 5.3 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 1.8 KB - -

📁 desktop-renderer

Path: rsdoctor/desktop-renderer/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 80.7 MB - -
📄 JavaScript 29.3 MB - -
🎨 CSS 183.2 KB - -
🌐 HTML 1.8 KB - -
📁 Other Assets 51.2 MB - -

📁 desktop-webviewDappPreloader

Path: rsdoctor/desktop-webviewDappPreloader/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 36.9 KB - -
📄 JavaScript 36.9 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 desktop-webviewPreloader

Path: rsdoctor/desktop-webviewPreloader/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 200.0 B - -
📄 JavaScript 200.0 B - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 desktop-workers

Path: rsdoctor/desktop-workers/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 36.8 KB - -
📄 JavaScript 36.8 KB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 0 B - -

📁 mobile

Path: rsdoctor/mobile/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 261.4 MB - -
📄 JavaScript 110.4 MB - -
🎨 CSS 0 B - -
🌐 HTML 0 B - -
📁 Other Assets 151.0 MB - -

Generated by Rsdoctor GitHub Action

@live-github-bot

live-github-bot Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Desktop Bundle Checks

Comparing d9ddb84 against 5148f12.

✅ Previous issues have all been fixed.

Mobile Bundle Checks

Comparing d9ddb84 against 0636166.

Copilot AI review requested due to automatic review settings August 3, 2026 07:38
@deepyjr
deepyjr force-pushed the refactor/contacts-LIVE-33919-organize-add-address-step branch from 23959ea to 6d413dd Compare August 3, 2026 07:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 23 out of 27 changed files in this pull request and generated no new comments.

@sonarqubecloud

sonarqubecloud Bot commented Aug 3, 2026

Copy link
Copy Markdown

Copilot AI review requested due to automatic review settings August 3, 2026 08:25
@deepyjr
deepyjr force-pushed the refactor/contacts-LIVE-33919-organize-add-address-step branch from 6d413dd to 201bdd3 Compare August 3, 2026 08:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 23 out of 27 changed files in this pull request and generated no new comments.

@deepyjr
deepyjr force-pushed the refactor/contacts-LIVE-33919-organize-add-address-step branch from 201bdd3 to d174f25 Compare August 3, 2026 09:11
Copilot AI review requested due to automatic review settings August 3, 2026 09:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 26 changed files in this pull request and generated no new comments.

@deepyjr
deepyjr force-pushed the refactor/contacts-LIVE-33919-organize-add-address-step branch from d174f25 to ad4ccc5 Compare August 3, 2026 09:37
Copilot AI review requested due to automatic review settings August 3, 2026 09:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 26 changed files in this pull request and generated no new comments.

@deepyjr
deepyjr force-pushed the refactor/contacts-LIVE-33919-organize-add-address-step branch from ad4ccc5 to d1ed681 Compare August 3, 2026 11:42
Copilot AI review requested due to automatic review settings August 3, 2026 11:42
@deepyjr
deepyjr force-pushed the refactor/contacts-LIVE-33919-organize-add-address-step branch from d1ed681 to c598cbb Compare August 3, 2026 11:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 26 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 3, 2026 11:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 22 out of 26 changed files in this pull request and generated no new comments.

Base automatically changed from feat/contacts-LIVE-33919-render-address-label-desktop to develop August 3, 2026 14: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.

2 participants