Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Fixed back button and seed phrase import padding#1207

Merged
tombeckenham merged 1 commit into
masterfrom
1206-bug-back-button-doesnt-appear-on-import
Jul 23, 2025
Merged

Fixed back button and seed phrase import padding#1207
tombeckenham merged 1 commit into
masterfrom
1206-bug-back-button-doesnt-appear-on-import

Conversation

@tombeckenham

Copy link
Copy Markdown
Contributor

Related Issue

Closes #1206

Summary of Changes

The back button is now shown if there is a screen to go back to but not otherwise.
Also fixed the padding on the seed phrase import

Need Regression Testing

  • Yes
  • No

Risk Assessment

  • Low
  • Medium
  • High

@github-actions

github-actions Bot commented Jul 23, 2025

Copy link
Copy Markdown

PR Summary

Improved the user experience by fixing the back button visibility logic and enhancing the password textarea styling. The back button now appears conditionally based on navigation history and import steps. Additionally, adjusted the padding in the password textarea for better text input visibility.

Changes

File Summary
src/ui/components/password/PasswordTextarea.tsx Added right padding (40px) to the password input textarea to prevent text from overlapping with any right-side elements. Maintained existing styling for font, color, and security display.
src/ui/views/Welcome/import-profile/index.tsx Enhanced back button visibility logic using location.key to determine navigation history. Added condition for IMPORT_STEPS.IMPORT state and refined navigation behavior. Back button now shows only when there's a valid history to go back to.

autogenerated by presubmit.ai

@tombeckenham
tombeckenham requested a review from zzggo July 23, 2025 05:36

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🚨 Pull request needs attention.

Review Summary

Commits Considered (1)
  • b98c662: Fixed back button and seed phrase import padding

Closes #1206

Files Processed (2)
  • src/ui/components/password/PasswordTextarea.tsx (1 hunk)
  • src/ui/views/Welcome/import-profile/index.tsx (4 hunks)
Actionable Comments (1)
  • src/ui/views/Welcome/import-profile/index.tsx [111-119]

    possible bug: "Unreachable code due to misplaced return statement"

Skipped Comments (1)
  • src/ui/components/password/PasswordTextarea.tsx [70-70]

    maintainability: "Remove unnecessary empty line in CSS properties"

Comment on lines +111 to 119
if (
activeTab === IMPORT_STEPS.GOOGLE_BACKUP ||
activeTab === IMPORT_STEPS.ALL_SET ||
activeTab === IMPORT_STEPS.IMPORT
) {
if (location.key !== 'default') {
navigate(-1);
}
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The return statement is placed after the closing brace of the if block, making it unconditional. This means the function will always return regardless of the conditions, potentially preventing the dispatch({ type: 'GO_BACK' }) from ever being called. Consider moving the return statement inside the nested if block.

@tombeckenham
tombeckenham merged commit 91c1192 into master Jul 23, 2025
7 of 9 checks passed
@tombeckenham
tombeckenham deleted the 1206-bug-back-button-doesnt-appear-on-import branch July 23, 2025 06:21
@github-actions github-actions Bot mentioned this pull request Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants