determined icon indicating copy to clipboard operation
determined copied to clipboard

fix: Update action bar row layout in UserManagement page

Open thiagodallacqua-hpe opened this issue 1 year ago • 6 comments
trafficstars

Ticket

ET-299

Description

The user management page had a broken layout for the "add user" button on mobile view. This PR intends to fix that.

Test Plan

  • Log in as an admin
  • go to the "Admin" management page from the dropdown menu (that should take you to the user management page)
  • enable mobile view (from the terminal console, there is a "desktop" button on the top-left corner, that toggles the view mode)
  • the UI should have the "add user" button showing below the filters

Screenshot 2024-08-27 at 16 31 49

Checklist

  • [ ] Changes have been manually QA'd
  • [ ] New features have been approved by the corresponding PM
  • [ ] User-facing API changes have the "User-facing API Change" label
  • [ ] Release notes have been added as a separate file under docs/release-notes/ See Release Note for details.
  • [ ] Licenses have been included for new code which was copied and/or modified from any external code

thiagodallacqua-hpe avatar Aug 23 '24 19:08 thiagodallacqua-hpe

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 50.55%. Comparing base (ddca766) to head (78d0596). Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9862      +/-   ##
==========================================
- Coverage   54.60%   50.55%   -4.05%     
==========================================
  Files        1259      949     -310     
  Lines      157329   128683   -28646     
  Branches     3619     3620       +1     
==========================================
- Hits        85903    65059   -20844     
+ Misses      71293    63491    -7802     
  Partials      133      133              
Flag Coverage Δ
harness ?
web 54.36% <100.00%> (-0.01%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
webui/react/src/pages/Admin/UserManagement.tsx 83.78% <100.00%> (-0.06%) :arrow_down:

... and 313 files with indirect coverage changes

codecov[bot] avatar Aug 23 '24 19:08 codecov[bot]

Deploy Preview for determined-ui ready!

Name Link
Latest commit 78d0596cb984fae17bbddd3650cff61a8a60b2d0
Latest deploy log https://app.netlify.com/sites/determined-ui/deploys/66ff052bf9034d0008475ed9
Deploy Preview https://deploy-preview-9862--determined-ui.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 site configuration.

netlify[bot] avatar Aug 23 '24 19:08 netlify[bot]

@alexjdetermined could you take a look at this approach and give us your thought please 🙏

thiagodallacqua-hpe avatar Aug 26 '24 19:08 thiagodallacqua-hpe

can we fix the horizontal scroll issue?

Screen.Recording.2024-08-23.at.12.19.22.PM.mov also can we confirm with a designer and a product manage if its a good approach to fix the ticket issue r? not sure if we wanna show add user button in new line.

I believe that this is an animation from the browser, I've tested locally and got that animation too, but, no scroll is being kept...

I've already asked for validation from @alexjdetermined about the design changes

thiagodallacqua-hpe avatar Aug 26 '24 21:08 thiagodallacqua-hpe

I believe that this is an animation from the browser, I've tested locally and got that animation too, but, no scroll is being kept...

i dont think so. It doesn't bounce, i can just scroll horizontally.

keita-determined avatar Aug 26 '24 21:08 keita-determined

I've updated the behavior for the mobile view, that's the best I could do before getting anything back from the design team... cc @alexjdetermined

thiagodallacqua-hpe avatar Aug 27 '24 19:08 thiagodallacqua-hpe

image the issue is still present

could you share which screen-size are you using there?! because I've checked the mobile breakpoints and it's all fine

Screenshot 2024-09-19 at 18 26 08 Screenshot 2024-09-19 at 18 27 49 Screenshot 2024-09-19 at 18 28 01 ![Screenshot 2024-09-18 at 15 31 30](https://github.com/user-attachments/assets/e5552dca-1c11-4f0b-b03a-bf8d93949315) Screenshot 2024-09-19 at 18 28 10

thiagodallacqua-hpe avatar Sep 19 '24 21:09 thiagodallacqua-hpe

that needs to be desktop mode instead of mobile. i think It should need the same treatment as mobile.

keita-determined avatar Sep 19 '24 22:09 keita-determined

that needs to be desktop mode instead of mobile. i think It should need the same treatment as mobile.

so, this is the smallest desktop breakpoint

image

thiagodallacqua-hpe avatar Sep 20 '24 13:09 thiagodallacqua-hpe

that needs to be desktop mode instead of mobile. i think It should need the same treatment as mobile.

so, this is the smallest desktop breakpoint

image

on desktop 800 x 950

on mobile image

keita-determined avatar Sep 23 '24 17:09 keita-determined

I've added a breakpoint var for "big tablets" that should cover everything now...

Screenshot 2024-09-23 at 17 49 09

thiagodallacqua-hpe avatar Sep 23 '24 20:09 thiagodallacqua-hpe

can we move add user button to the bottom (the same row as status select) in tablet view to make all views consistent?

keita-determined avatar Sep 23 '24 21:09 keita-determined

can we move add user button to the bottom (the same row as status select) in tablet view to make all views consistent?

IMHO, for such "larger" mobile breakpoints it would make a bit too much for the inputs... it would look unnecessarily big, no?! @alexjdetermined

thiagodallacqua-hpe avatar Sep 24 '24 11:09 thiagodallacqua-hpe

I've investigated thoroughly, I honestly don't know what breakpoint is it that you found that new edge case, but, here's a before and after my last change (I've increased the max-width for the tablet-large variable to 1023px, which means that it will cover every screen size up to that screen size, which is just 1px less than the desktop view).

BEFORE

https://github.com/user-attachments/assets/3601f405-fc8b-41ef-97b1-832fa6044b25

AFTER

https://github.com/user-attachments/assets/18f71564-30aa-47f5-8063-9f98437bcbf1

thiagodallacqua-hpe avatar Sep 30 '24 18:09 thiagodallacqua-hpe

@alexjdetermined, could you please provide a mockup/wireframe for us here...

thiagodallacqua-hpe avatar Sep 30 '24 19:09 thiagodallacqua-hpe

mostly looks good to me. only concern is that only 4 letters are visible in the search field and texts in the select boxes are truncated in a certain viewport. it wouldn't be visible if we add one more button.

image

I've changed the minmax for the selects to have a min of min-content, that should solve that issue, but, at the cost of reducing the width of the search input... but, I guess that we should get something from @alexjdetermined for that perhaps. cc @keita-determined

thiagodallacqua-hpe avatar Oct 03 '24 20:10 thiagodallacqua-hpe

@keita-determined wouldn't a better solve for this be to have the menu switch to mobile mode at tablet sizes? looking at the rest of the table, is the content readable?

ashtonG avatar Oct 03 '24 20:10 ashtonG

@keita-determined wouldn't a better solve for this be to have the menu switch to mobile mode at tablet sizes? looking at the rest of the table, is the content readable?

Your suggestion is to use mobile view in the tablet size viewport, right? that sounds good to me

keita-determined avatar Oct 03 '24 21:10 keita-determined