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

fixed: wallet tab redirect and coinlist ui scroll height#1199

Merged
zzggo merged 5 commits into
devfrom
1198-bug-fresh-install-not-redirecting-to-welcome-page-and-ui-height-issue-on-frontpage
Jul 22, 2025
Merged

fixed: wallet tab redirect and coinlist ui scroll height#1199
zzggo merged 5 commits into
devfrom
1198-bug-fresh-install-not-redirecting-to-welcome-page-and-ui-height-issue-on-frontpage

Conversation

@zzggo

@zzggo zzggo commented Jul 21, 2025

Copy link
Copy Markdown
Collaborator

Closes #1198

Related Issue

Closes #1198

Summary of Changes

Need Regression Testing

  • Yes
  • No

Risk Assessment

  • Low
  • Medium
  • High

Additional Notes

Screenshots (if applicable)

@github-actions

github-actions Bot commented Jul 21, 2025

Copy link
Copy Markdown

PR Summary

Enhanced wallet initialization flow by improving the welcome page redirection logic for fresh installations and fixed UI layout issues. Updated the private route component to handle tab-based navigation more effectively and adjusted the wallet tab's height constraints for better content display.

Changes

File Summary
src/ui/components/PrivateRoute.tsx Updated private route component to handle tab-based navigation differently. Added conditional logic to either redirect to welcome page or open it in a new tab based on UI type. Improved loading state handling.
src/ui/views/Dashboard/wallet-tab.tsx Changed wallet tab container height from fixed height: '100%' to minHeight: '100%' to better accommodate content and prevent scroll issues.
src/ui/views/SortHat.tsx Enhanced routing logic for fresh installations to properly redirect to welcome page in both popup and tab modes. Updated conditional checks to ensure consistent navigation behavior.

autogenerated by presubmit.ai

@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)
  • 902661c: fixed: wallet tab redirect and coinlist ui scroll height

Closes #1198

Files Processed (2)
  • src/ui/views/Dashboard/wallet-tab.tsx (1 hunk)
  • src/ui/views/SortHat.tsx (2 hunks)
Actionable Comments (1)
  • src/ui/views/SortHat.tsx [23-24]

    possible issue: "Early return might skip necessary initialization"

Skipped Comments (2)
  • src/ui/views/Dashboard/wallet-tab.tsx [66-66]

    enhancement: "Dynamic height could cause layout instability"

  • src/ui/views/SortHat.tsx [39-46]

    maintainability: "Complex conditional logic could be simplified"

Comment thread src/ui/views/SortHat.tsx Outdated
Comment on lines +23 to +24
setTo('/unlock');
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 early return after setTo('/unlock') could lead to skipping important initialization logic. Consider whether any cleanup or state updates need to be performed before returning.

…come-page-and-ui-height-issue-on-frontpage

Closes #1198

@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.

LGTM!

Review Summary

Commits Considered (1)
  • c219687: Merge branch 'dev' into 1198-bug-fresh-install-not-redirecting-to-welcome-page-and-ui-height-issue-on-frontpage

Closes #1198

Files Processed (0)
Actionable Comments (0)
Skipped Comments (0)

@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.

LGTM!

Review Summary

Commits Considered (1)

Closes #1198

Files Processed (1)
  • src/ui/views/SortHat.tsx (1 hunk)
Actionable Comments (0)
Skipped Comments (1)
  • src/ui/views/SortHat.tsx [39-44]

    possible issue: "Potential race condition in wallet initialization check"

@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)
  • c057f20: Update private route so that it opens welcome page in a tab

Closes #1198

Files Processed (1)
  • src/ui/components/PrivateRoute.tsx (2 hunks)
Actionable Comments (1)
  • src/ui/components/PrivateRoute.tsx [53-58]

    possible issue: "Missing error handling for tab opening operation"

Skipped Comments (1)
  • src/ui/components/PrivateRoute.tsx [47-49]

    readability: "Unnecessary code comment that restates the obvious"

Comment on lines +53 to +58
if (uiType.isTab) {
return <Navigate to="/welcome" replace />;
} else {
openInternalPageInTab('welcome');
return null;
}

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 openInternalPageInTab call could potentially fail, but there's no error handling. Consider wrapping this in a try-catch block to handle potential failures gracefully and provide feedback to the user if the tab fails to open.

@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.

LGTM!

Review Summary

Commits Considered (1)

Closes #1198

Files Processed (1)
  • src/ui/views/Dashboard/wallet-tab.tsx (1 hunk)
Actionable Comments (0)
Skipped Comments (1)
  • src/ui/views/Dashboard/wallet-tab.tsx [66-66]

    enhancement: "Layout container might not fill available space properly"

@zzggo
zzggo merged commit 6a30fa2 into dev Jul 22, 2025
4 checks passed
@zzggo
zzggo deleted the 1198-bug-fresh-install-not-redirecting-to-welcome-page-and-ui-height-issue-on-frontpage branch July 22, 2025 01:19
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.

[BUG] Fresh install not redirecting to welcome page and ui height issue on frontpage

2 participants