fix: dead Log In button, missing rel, window.location nav, missing AbortController - #595
Closed
MarvyNwaokobia wants to merge 1 commit into
Closed
Conversation
…window.location nav, missing AbortController - LabsCrypt#562: Remove non-functional Log In button from Navbar; WalletButton is the sole auth entry point - LabsCrypt#560: Add rel="noopener noreferrer" to Stellar Expert external link in ActivityHistory to prevent reverse-tabnabbing - LabsCrypt#561: Replace window.location.href with useRouter().push in NotificationDropdown and close dropdown on navigate - LabsCrypt#563: Add AbortController to activity page useEffect; pass signal to fetch and abort on tab change / unmount to prevent stale-response races Closes LabsCrypt#560 Closes LabsCrypt#561 Closes LabsCrypt#562 Closes LabsCrypt#563 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
|
Closing in favor of a new PR with proper issue linking. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes four independent frontend issues in a single PR:
Closes #560
Closes #561
Closes #562
Closes #563
Log Inbutton had noonClickorhrefand was never wired to any auth flow.WalletButtonis the sole auth entry point, so the orphaned button is removed.rel="noopener noreferrer"to Stellar Expert link in ActivityHistory: The external explorer anchor hadtarget="_blank"withoutrel, exposing the app to reverse-tabnabbing. Fixed inActivityHistory.tsx. A grep confirmed all othertarget="_blank"links in the codebase already carry the correctrel.window.location.hrefwithrouter.pushin NotificationDropdown: The "View All Activity" button was forcing a full-page reload, discarding SPA state (wallet context, React Query cache, SSE connection). Now usesuseRouter().push('/activity')fromnext/navigationand closes the dropdown before navigating.fetchActivityinside theuseEffecthad no abort signal, so rapidly switching tabs or unmounting mid-flight left stale in-flight requests that could racesetEvents/setHasMore. AnAbortControlleris now created in the effect, its signal passed tofetch, andabort()called on cleanup.AbortErroris silently ignored.Files changed
frontend/src/components/Navbar.tsxfrontend/src/components/dashboard/ActivityHistory.tsxfrontend/src/components/NotificationDropdown.tsxfrontend/src/app/activity/page.tsxTest plan
window.opener