Skip to content

Amaan taking over for Peterson - Improve button layout for responsive design - #4711

Merged
one-community merged 7 commits into
developmentfrom
peterson-improve-button-layout-for-responsive-design
Jul 28, 2026
Merged

Amaan taking over for Peterson - Improve button layout for responsive design#4711
one-community merged 7 commits into
developmentfrom
peterson-improve-button-layout-for-responsive-design

Conversation

@peterson337

Copy link
Copy Markdown
Contributor

Description

This PR was opened to implement an improvement in the layout of user permission management.

Related PRS (if any):

None.

Main changes explained:

The PermissionsManagement.module.css component has been modified to fix the bug.

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as admin user
  5. go to other links → permission management
  6. Reduce the browser window, and the buttons that are beside the list should move below the list.

Screenshots or videos of changes:

Uploading After my fix.mp4…

Note:

None.

@peterson337 peterson337 added the do not review Do not review or look at code without full context label Jan 15, 2026
@netlify

netlify Bot commented Jan 15, 2026

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 14b40f2
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69682eca0239a300082f48ac
😎 Deploy Preview https://deploy-preview-4711--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@sonarqubecloud

Copy link
Copy Markdown

@one-community one-community added High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible and removed do not review Do not review or look at code without full context labels Jul 1, 2026
@AmaanSyed09 AmaanSyed09 changed the title peterson-improve-button-layout-for-responsive-design Amaan taking over for Peterson - Improve button layout for responsive design Jul 7, 2026
- Fix header layout overflow and visibility issues on small screens
- Prevent navbar from disappearing after React hydration (collapse issue)
- Improve responsive spacing and alignment across header sections
@netlify

netlify Bot commented Jul 7, 2026

Copy link
Copy Markdown

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 944b1de
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6a67767598bd7300073914af
😎 Deploy Preview https://deploy-preview-4711--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@AmaanSyed09

Copy link
Copy Markdown
Contributor

Fix responsive header and button layout issues at ~916px breakpoint

  • Fixed layout breaking at smaller screen sizes, where navbar and header content were getting cut off
  • Improved responsiveness so buttons (Add New Role / Manage User Permissions) stay properly aligned and visible
  • Fixed issue where the navbar would briefly show correctly, then disappear due to Reactstrap collapse behavior after page load
  • Adjusted header styling so timer, owner message, and navigation stay properly visible and don’t overlap or overflow
  • Improved overall spacing and responsiveness for better behavior on tablet and smaller desktop screens

Before:

PR.4711.before.mov

After:

PR.4711.demo.mov

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

Hi Amaan,

I tested this PR locally.

The Permission Management page is working fine, and the responsive button layout is behaving as expected when reducing the browser width. The buttons move properly below the list.

The header is also working fine now, and the navbar/header content stays visible without overlapping or getting cut off.

PR.4711.mov

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

Hi Amaan,

I ran and tested the PR locally.

Verified

  • Responsive screen even as screen size is decreasing
    • The buttons stay aligned and visible as they go underneath the components
    • THe navbar tab doesn't overlap
Recording.2026-07-12.000434.mp4

Issue

  • Not sure what happened on my end, but I don't see a log table underneath the User Roles component.

    Image

@AmaanSyed09

Copy link
Copy Markdown
Contributor

Hi @kzou55
Thanks for checking. I retested this after making sure the backend was on the development branch, and the log table is displaying correctly beneath the User Roles component on my end. I wasn't able to reproduce the issue shown in your screenshot. If you're still seeing it, could you let me know your browser, viewport size, and whether there are any console errors? That would help me investigate further.

…design, manually resolve Header, OwnerMessage, and Permissions Management merge conflicts, and preserve responsive layout behavior
@kzou55

kzou55 commented Jul 13, 2026

Copy link
Copy Markdown

Hi Amaan,

I realized(thought I checked both last time), but I just rechecked again and I can actually see the log table when I'm in my owner account.
image

It's only when I'm in admin I don't see the log table. Is that intended?

@AmaanSyed09

Copy link
Copy Markdown
Contributor

Re-reviewed the PR and merged the latest development branch into this feature branch. Resolved all merge conflicts in the Header, OwnerMessage, and Permissions Management components, preserved the intended responsive behavior, and addressed the responsive layout regression that appeared during the merge. Re-tested the affected functionality across desktop and mobile viewports, verified the Permissions Management page and navigation behavior, and confirmed the previously reported issue could not be reproduced with the backend running on the latest development branch. This PR is ready for another review.

@AmaanSyed09

Copy link
Copy Markdown
Contributor

Hi @kzou55
Thanks for checking again!

I followed the original PR instructions, which specify testing with the Dev Admin account. Based on those instructions, I verified the implementation using that account and confirmed the functionality described in the PR.

The difference in behavior between the Owner and Admin accounts wasn't mentioned in the original issue or PR description, so I left that behavior unchanged.

@kzou55

kzou55 commented Jul 13, 2026

Copy link
Copy Markdown

Hi @AmaanSyed09 ,

Just to double check/clarify, you can see the log table when you're in your Admin account?

Because I can't see it when I'm in my admin account but can when I'm in my owner account. I originally tested on my admin account following the original testing instruction.

@AmaanSyed09

AmaanSyed09 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Hi @kzou55

Yes, that's what I observed as well. The log table is visible for the Owner role but not for the Admin role. I didn't change any permission access in this PR, so that behavior remained as it was before.

While testing, I initially used an Owner account and was able to change the role to Administrator. After switching to Administrator for testing, I wasn't able to change it back to Owner. Is there a recommended way to restore the Owner role for testing?

If possible, could you also change my account back to the Owner role? I currently no longer have permission to do that myself. Thanks!

image

@iAbhi001

Copy link
Copy Markdown

Hi @AmaanSyed09 and @kzou55,

I checked out this PR and tested it locally to help clear up the bottlenecks and move this review forward.

1. The Log Table Issue (Admin vs. Owner)

@kzou55 I can confirm that I do not see the log table when logged in as an Admin either. Amaan is correct here—this is existing backend permission behavior on the development branch, not a visual layout regression caused by this PR.

2. Mobile Layout Regressions (Surface Duo / 540px Viewports)

While the desktop and tablet adjustments look solid, the new CSS rules introduce a layout breaking bug on smaller mobile viewports (see image_6d5922.png):

  • Navigation Overlay: The expanded hamburger menu utilizes an absolute layout that sits directly on top of the user roles table instead of pushing the page content downwards.
  • Inline Text Compression: Inside the expanded dark menu card, the navigation links (Task Edit Suggestion (2), Dashboard, Timelog, etc.) are entirely compressed into a single horizontal string without padding, margins, or list-stacking structure.
image

3. Restoring Owner Role for Testing

@AmaanSyed09 to get your account back to an Owner role for local testing, you don't have to wait for someone to change it in the UI. You can manually update your local database:

  1. Open your terminal/MongoDB GUI (like Compass).
  2. Find your user document in the database.
  3. Manually edit the role string field from "Administrator" back to "Owner".

Once the mobile menu layout and spacing on smaller viewports are cleaned up, this will be ready for a final green light!

@iAbhi001 iAbhi001 assigned iAbhi001 and unassigned iAbhi001 Jul 14, 2026
@iAbhi001
iAbhi001 self-requested a review July 14, 2026 04:37

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

Hi @AmaanSyed09 and @kzou55,

I checked out the branch and tested it locally to help clear up the bottlenecks regarding the UI layout and the log table.

1. The Log Table Issue (Admin vs. Owner)

@kzou55: I can confirm that the log table is completely hidden when logged in as an Admin, but it is visible when logged in as an Owner. This matches the native behavior of the current backend development branch. Amaan is correct here—this is controlled by pre-existing role-based permission rules on the backend, not a visual layout bug introduced by this PR.

2. Mobile UI Layout Regressions (Surface Duo / 540px Viewports)

While the structural fixes look great at the larger 916px breakpoint, testing on a smaller mobile layout width of 540px (such as the Surface Duo) reveals two critical UI regressions when the navigation menu is expanded (refer to image_6d5922.png):

  • Navigation Menu Overlay: The expanded mobile dropdown menu uses a layout setting that forces it to sit directly on top of the user roles table rather than dynamically pushing the rest of the page document flow downward. This completely blocks viewability and access to the top portion of the table elements.
  • Inline Text Compression: Inside the expanded dark navigation card, the primary links (Task Edit Suggestion (2), Dashboard, Timelog, Reports) are entirely compressed together into a single horizontal string of text. The menu items lack the necessary flex-direction, list-stacking structure, margins, or horizontal padding required to render cleanly on narrower viewports.

For More Details and Screenshots, Read my Original Comment in the Conversation

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

Hi Amaan,

I retested this PR locally.

At smaller screen widths, the navigation menu appears cramped and overlaps the User Roles table. I also noticed that the header structure has changed compared with the previous version.

Additionally, there is unusual responsive behavior between 1199 px and 1200 px. At this breakpoint, the header layout changes suddenly and displays a large empty dark area, causing the navigation and profile elements to appear misaligned.

Could you please review the header and navigation responsiveness across these screen widths?

Image Image Image

@AmaanSyed09

Copy link
Copy Markdown
Contributor

Addressed the requested responsive layout updates for the Permissions Management page and pushed the latest changes.

Changes made:

  • Updated the Header responsive layout for the Permissions Management page.
  • Preserved the desktop navigation experience on larger screen widths.
  • Adjusted the responsive breakpoints to improve the transition between desktop and mobile layouts.
  • Refined the responsive navigation behavior and layout to improve usability across different viewport widths.
  • Ensured the expanded mobile navigation remains functional and the page content stays accessible across supported screen sizes.

Testing performed:

  • Tested the page across multiple viewport widths, including mobile, tablet, and desktop.
  • Verified the desktop layout remains intact on larger screen sizes.
  • Verified the responsive navigation transitions correctly across breakpoints.
  • Verified the hamburger menu and navigation dropdowns function correctly on smaller screen sizes.
  • Confirmed the Permissions Management page remains functional and accessible after the responsive layout updates.

Please let me know if any additional adjustments or edge cases should be addressed.

PR.4711.demo.mov

@AmaanSyed09

Copy link
Copy Markdown
Contributor

Addressed the remaining SonarQube issues and pushed the latest changes.

Changes made:

  • Consolidated duplicate CSS selector definitions in Header.module.css.
  • Removed the unused debugging useEffect from Header.jsx.
  • Verified the responsive Header behavior remains unchanged after the cleanup.

DeepighaJ
DeepighaJ previously approved these changes Jul 24, 2026

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

Tested the PR locally and the permission management page loads as expected in different responsive dimensions.
The buttons that are beside the list move below the list as expected.
Image
Image
Image
Image

@iAbhi001
iAbhi001 self-requested a review July 24, 2026 18:35
iAbhi001
iAbhi001 previously approved these changes Jul 24, 2026

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

Hi @AmaanSyed09,

I tested this PR locally across different responsive dimensions.

Verified that the Permission Management page loads and behaves as expected across various screen sizes.

Confirmed that the buttons beside the list cleanly wrap and move below the list when reducing the viewport width.

Everything looks good on my end! Approving the changes.

Image Image Image

kzou55
kzou55 previously approved these changes Jul 24, 2026

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

Hi Amaan,

I ran and tested the PR locally again.

Verified

@AmaanSyed09
AmaanSyed09 dismissed stale reviews from kzou55, iAbhi001, and DeepighaJ via 944b1de July 27, 2026 15:17
@sonarqubecloud

Copy link
Copy Markdown

@AmaanSyed09

Copy link
Copy Markdown
Contributor

Merged the latest development into this branch, resolved the merge conflict in Header.module.css, verified the responsive layout works as expected after the merge, and all checks are now passing. During verification, I observed a "The resource you are trying to access is not found." toast caused by a GET /api/meetings request returning a 404. This behavior is reproducible on the current development branch as well and is unrelated to the changes in this PR. Ready for re-review.

@one-community

Copy link
Copy Markdown
Member

Thank you all, merging!

@one-community
one-community merged commit 6d0266f into development Jul 28, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants