feat: Add reusable Back to Top button for improved navigation [Issue: #326]#377
feat: Add reusable Back to Top button for improved navigation [Issue: #326]#377abdullahxyz85 wants to merge 9 commits into
Conversation
|
@abdullahxyz85 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @Priyanshu-byte-coder , please add the label: gssoc:approved and level: intermediate. Review and merge it 🙏 |
|
Three separate features bundled in one PR — needs splitting. Also has a rendering bug. 1. Split into focused PRs This PR adds three unrelated things:
Each should be a separate PR so they can be reviewed, merged, and reverted independently. 2. Duplicate stats grid in The diff adds a new 3. The The individual features look well-implemented — just split them into three separate PRs. |
|
@Priyanshu-byte-coder Now u can merge it! Everything is ok and working fine! |
|
@Priyanshu-byte-coder I was working on diff trend issue as well, and there was little bug remaining, i fixed it now |
@Priyanshu-byte-coder I am splitting it today! |
|
Closing to reopen as separate, isolated feature PRs for proper review |
Summary [Issue: #326 ]
Implements a floating "Back to Top" button that improves user experience by providing quick navigation to the top of long pages. The button appears after scrolling down and smoothly scrolls users back to the top when clicked.
Motivation
Users need to manually scroll back to the top after navigating through long sections/pages. A floating Back to Top button enhances navigation and improves overall user experience, particularly on long dashboard pages.
What's Changed
New Component
src/components/BackToTopButton.tsx- Reusable floating button component with:Integration
src/app/providers.tsx- Added BackToTopButton to root Providers component so it appears on all pagesImplementation Details
Features
✅ Floating Button
✅ Scroll Detection
✅ Smooth Scrolling
scroll-behavior: smoothVisual Overview:
Checklist
npx tsc --noEmit)Closes: #326