Fixes #288: Added Dropdown for BeadExplorer and BeadExplorer/Network trends for smaller screens#328
Fixes #288: Added Dropdown for BeadExplorer and BeadExplorer/Network trends for smaller screens#328parthdude07 wants to merge 30 commits into
Conversation
78b5d38 to
bec9528
Compare
There was a problem hiding this comment.
Pull request overview
This pull request adds responsive dropdown navigation for the BeadExplorer and Network Trends sections to improve usability on smaller screens (issue #288). The changes introduce mobile-friendly select dropdowns that replace the horizontal tab navigation on small screens.
- Adds dropdown selectors that appear on mobile/small screens (hidden on medium+ screens)
- Hides desktop tab navigation on small screens while showing it on medium+ screens
- Implements state management for active tab selection at the Dashboard level
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| dashboard/src/components/Dashboard/Dashboard.tsx | Adds activeTab state management and dropdown in Card headerExtra for mobile BeadExplorer navigation |
| dashboard/src/components/BeadsTab/Trends/TrendsTab.tsx | Adds mobile dropdown for Network Trends sub-tabs (hashrate, latency, etc.) with responsive visibility |
| dashboard/src/components/BeadsTab/MinedSharesExplorer.tsx | Converts to controlled component accepting activeTab props, hides DashboardHeader on mobile |
| dashboard/src/components/BeadsTab/DashboardHeader.tsx | Splits into mobile dropdown and desktop tab views with responsive visibility classes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0b42a9a to
3429e53
Compare
parthdude07
left a comment
There was a problem hiding this comment.
Implemented some suggestions from Copilot
3429e53 to
4a3be6b
Compare
priyashuu
left a comment
There was a problem hiding this comment.
Commits must be signed to be merged. Please also include a PR description for future reference.
|
@priyashuu i had made the changes |
priyashuu
left a comment
There was a problem hiding this comment.
Please make sure to sign your older commits. Unsigned commits cannot be merged.
75327bf to
5f9a6f6
Compare
|
Hi @priyashuu , I’ve now signed the older commits as requested. |
|
@mcelrath @priyashuu |
Please address and resolve the issues with the failed CI tests. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <nav className="mb-px flex flex-wrap gap-x-6" aria-label="Tabs"> | ||
| {/* --- Mobile View: Dropdown --- */} | ||
| {/* Using ! to force responsive behavior against external overrides */} | ||
| <div className="block md:!hidden py-4"> |
There was a problem hiding this comment.
The !important modifier on responsive classes (md:!hidden, md:!block) indicates underlying specificity issues. Consider refactoring the conflicting global styles instead of using !important, which can make future styling changes more difficult and error-prone.
There was a problem hiding this comment.
You can avoid using the !important modifier by leveraging Tailwind’s responsive utilities. For example, instead of block md:!hidden, you could use:sm:block max-md:hidden lg:hidden
|
Please address the copilot suggestions. |
3820b4f to
26c7edb
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@priyashuu can you once review this |
sure |
| {/* Navigation Area */} | ||
| <div className="border-b border-gray-800"> | ||
| {/* Mobile View: Dropdown (Hidden on small screens and up) */} | ||
| <div className="sm:hidden mb-4 px-2"> |
There was a problem hiding this comment.
@priyashuu the dropdown for network subtab is show for smaller screens only below sm
thanks for review @priyashuu . for i had changed the break points to |
You can try that, but my suggestion would be to remove the dropdown on md screens altogether. The dropdown should ideally only trigger on small screens and below. |
|
@priyashuu sorry but i had used |
|
@priyashuu had you reviewed the code?? |
|
@priyashuu i had made the requested changes and now the UI looks more consistent than before no unused space btw . can you please review the code changes. thanks |
Screencast.from.2026-02-07.14-57-53.webm@priyashuu Can you check this changes please and suggest any changes if required . thanks |
|
hey @parthdude07 , is there any update on this pr? |
|
@priyashuu my midsems are ongoing. Will raise PR soon. |
|
Hey @parthdude07, do you have any updates on this PR? |
@priyashuu will raise the PR by EOD. |
|
Screencast from 2026-03-16 10-08-58.webm |
priyashuu
left a comment
There was a problem hiding this comment.
Here are some suggestions for the UI:
- In the future, we are removing the “BEADS EXPLORER” section, so you need to change the tab name from “Beads Explorer” to “Braid Visualization”. You can check the
constants.tsfile under the tabs constants.
- Also, you added a new sidebar, but we already have an existing sidebar for the navbar. Can you match your design with the existing one instead?





📱 Description
This PR addresses UI responsiveness issues in the dashboard header to ensure smooth rendering across mobile and desktop devices.
fixes #288
🛠 Key Changes
< sm) while retaining the tab layout for desktop.< sm) while retaining the tab layout for desktop.