Skip to content

fix(social): pin profile onboarding actions to the bottom - #38032

Merged
aganglada merged 2 commits into
mainfrom
fix/social-onboarding-bottom-ctas
Oct 23, 2026
Merged

aganglada merged 2 commits into
mainfrom
fix/social-onboarding-bottom-ctas

Conversation

@andrewchra

@andrewchra andrewchra commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Social profile onboarding showed Connect X account and Create profile manually above a large gap. The screen already pads for the home indicator, and the marketing moment added that same inset again, so the actions sat one inset too high.

The marketing moment now reads safe-area insets from context. The intro screen clears the top and bottom insets it already accounts for, so the actions rest just above the home indicator. The headline and trade card stay above them.

Changelog

CHANGELOG entry: Fixed social onboarding actions sitting above the bottom of the screen

Related issues

Fixes: none. Layout correction from design review, with no tracked issue.

Manual testing steps

Feature: social profile onboarding actions

  Scenario: intro actions sit at the bottom of the screen
    Given the social experience is enabled
    And the user has not finished profile onboarding

    When the user opens social profile onboarding
    Then "Connect X account" and "Create profile manually" sit just above the home indicator
    And the headline and trade illustration remain above the actions

  Scenario: later onboarding steps keep their continue action
    Given the user is on the intro step

    When the user chooses "Create profile manually"
    Then the username step shows its continue action at the bottom of the screen

Screenshots/Recordings

Before

Onboarding actions floating above the bottom of the screen

After

Onboarding actions resting just above the home indicator

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

For performance guidelines and tooling, see the Performance Guide.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Made with Cursor


Note

Low Risk
UI layout change in a shared marketing component with targeted inset logic and unit test coverage; no auth or data handling impact.

Reviewed by Cursor Bugbot for commit a432f12. Bugbot is set up for automated code reviews on this repo. Configure here.

The intro screen already insets for the home indicator, and the marketing
moment added that inset again, so the actions sat above a second gap.

Co-authored-by: Cursor <cursoragent@cursor.com>
@andrewchra andrewchra added the team-social-ai Social & AI team label Oct 22, 2026
@andrewchra andrewchra self-assigned this Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@github-actions github-actions Bot added size-S pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. labels Oct 22, 2026
@andrewchra
andrewchra marked this pull request as ready for review October 22, 2026 13:51
@andrewchra
andrewchra requested a review from a team as a code owner October 22, 2026 13:51
@andrewchra andrewchra removed the pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. label Oct 22, 2026
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Smart E2E Test Selection

Selected E2E tags

SmokeMoney
SmokePerps
SmokeWalletPlatform
SmokeConfirmations

AI Confidence: 80

E2E reasoning

Expand to read

The PR makes three changes:

  1. MarketingMoment.tsx — A UI layout fix: uses useSafeAreaInsets() to filter out edges that already have zero insets, preventing double-padding when a parent screen already accounts for safe area. Also adds a testID to the SafeAreaView body element for testability.

  2. MarketingMoment.test.tsx — Unit test updates covering the new safe area edge filtering behavior. Comment-only change to SocialProfileOnboardingView.tsx (no functional change).

  3. SocialProfileOnboardingView.tsx — Comment-only change explaining why top/bottom insets are zeroed. No functional code change.

Impact analysis:

  • MarketingMoment is consumed by: Card flows (CardWelcome, OrderCompleted, Onboarding/Complete → SmokeMoney), Perps (PerpsGTMModal → SmokePerps), Rewards (VipSplashScreenLayout), and SocialLeaderboard.
  • The safe area fix is a corrective layout change — it prevents double-padding on devices with notches/home indicators. This could affect visual layout in Card and Perps onboarding/welcome screens.
  • Per tag dependency rules: SmokePerps requires SmokeWalletPlatform (Trending section) and SmokeConfirmations (Add Funds deposits are on-chain transactions). SmokeMoney requires SmokeWalletPlatform when touching wallet home/actions entry.
  • No critical files (controllers, engine, auth, navigation) were touched.
  • No E2E smoke spec files or shared test infrastructure were changed.
  • The change is low risk — purely a UI layout correction with good unit test coverage.

Performance reasoning

Expand to read

The changes are limited to safe area inset handling in a UI component (MarketingMoment) and a comment-only change in SocialProfileOnboardingView. These are minor layout corrections that do not affect rendering performance, data loading, or any performance-sensitive code paths. No performance test tags are warranted.

View run

Comment thread app/components/UI/MarketingMoment/MarketingMoment.tsx Outdated
Use the safe-area component instead of inset padding in style, and turn off
edges the surrounding screen already zeroed.

Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

Copy link
Copy Markdown

@aganglada
aganglada enabled auto-merge October 22, 2026 16:42
@aganglada
aganglada added this pull request to the merge queue Oct 22, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 22, 2026
@aganglada
aganglada added this pull request to the merge queue Oct 23, 2026
Merged via the queue into main with commit a7d8f1c Oct 23, 2026
198 of 200 checks passed
@aganglada
aganglada deleted the fix/social-onboarding-bottom-ctas branch October 23, 2026 08:42
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 23, 2026
@metamask-ci metamask-ci Bot added the release-8.19.0 Issue or pull request that will be included in release 8.19.0 label Oct 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-8.19.0 Issue or pull request that will be included in release 8.19.0 size-S team-social-ai Social & AI team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants