Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback changes and fixes #615

Merged
merged 12 commits into from
Dec 3, 2024
Merged

Conversation

wniestroj
Copy link
Collaborator

Simulations sidebar - no layout options selected by default
Simulations sidebar - selecting both layouts deselects both options
Navigation - Fix pkpd version overlap navigation buttons on high scales
Simulation page - fix plots get smaller after each resize/sidebar collapse; Fix height of plots on ultra wide resolutions; Fix simulation Sidebar view for high scales
Simulation page - fix plots box having wrong dimensions on first plot render
Global - Input width and table height adjustments for scales up to 200%
Project page - Disable edit button on shared projects
Simulation page - Add confirmation box to removing plot

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.70%. Comparing base (18209ee) to head (c668b2d).
Report is 2 commits behind head on ui-enhancements.

Additional details and impacted files
@@               Coverage Diff                @@
##           ui-enhancements     #615   +/-   ##
================================================
  Coverage            76.70%   76.70%           
================================================
  Files                  117      117           
  Lines                 5705     5705           
================================================
  Hits                  4376     4376           
  Misses                1329     1329           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eatyourgreens eatyourgreens self-assigned this Dec 3, 2024
Copy link
Collaborator

@eatyourgreens eatyourgreens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see the toolbar for simulation plots now, but it's missing the option to edit the plot axes.

A plot of simulation output, with a legend and the plot toolbar. The toolbar has controls to zoom and reset the plot axes, but no option to edit the axes.

Here's production (on the main branch.) The toolbar should have options to reset the axes, edit the axes, and remove the plot. It might also be worth checking the new design with plots that have y-axes defined for both the left and righthand sides of the plot. I think the new container might cut off the righthand y-axis.

The plot toolbar in production, including options to reset the axes, edit the axes, and delete the plot.

@wniestroj
Copy link
Collaborator Author

@eatyourgreens I struggled to find this case, however, I believe I have. What I found is that for wide viewports (over 2500 width), when there are supposed to be three columns, but only two plots are displayed, the widths or the positioning of plots was off making the plots overlap. I have refactored it so that there cannot be more columns then plots - so if only one plot is displayed, there will be only one column, two columns for two plots

@eatyourgreens
Copy link
Collaborator

@wniestroj I can still see the bug on a screen with four plots. Zooming out, then back in again, fixes it.

Screen.Recording.2024-12-03.at.11.43.44.mov

@eatyourgreens
Copy link
Collaborator

Happy for this to be merged, though, if you want to look at the plot width separately.

@wniestroj
Copy link
Collaborator Author

wniestroj commented Dec 3, 2024

@eatyourgreens Could you provide me with a path to recreate a view with horizontal scroll visible for the four plots? In this merge request I have added a useEffect that is triggered whenever the number of the plots changes, firing up the resize event. This should resize the plots whenever a plot is added/removed, but for me it always sets the correct width whenever the plots are rendered for the first time as well and I wasn't able to recreate this issue.

I have added additional dependencies to that useEffect for data length and model, hopefully it should fix this issue. Would you be able to retest it, as I cannot recreate this issue?

If that will not fix the issue, I will revert those changes and merge this request, so that other fixes can be tested and I'll get back to that one with another merge request

@eatyourgreens
Copy link
Collaborator

@wniestroj I'm not seeing that bug now.All I've been doing is loading the app, selecting a project, then opening the Simulations tab.

Screen.Recording.2024-12-03.at.13.02.17.mov

@wniestroj
Copy link
Collaborator Author

wniestroj commented Dec 3, 2024

@eatyourgreens Awesome, glad to hear that. On another note - on the last video it seems like the scroll from the project's page is overflowing the viewport creating a scroll on the whole page - is that correct, or is this just an issue when recording a screen (I have similar issue whenever I'm recording the screen using Nimbus addon to chrome). If the scroll if overflowing - could you provide me with your resolution and the scale of your browser, so that I could reproduce this issue?

@eatyourgreens
Copy link
Collaborator

That scroll is always there, even if I'm not recording the screen. I'm on a fairly wide display: 1920 by 1080.

Copy link

sonarqubecloud bot commented Dec 3, 2024

Copy link

sonarqubecloud bot commented Dec 3, 2024

Quality Gate Failed Quality Gate failed for 'pkpdapp-team_pkpdapp_frontend'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
3.3% Duplication on New Code (required ≤ 3%)
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@martinjrobins martinjrobins merged commit 579a09c into ui-enhancements Dec 3, 2024
10 of 11 checks passed
@martinjrobins martinjrobins deleted the feedback-changes-and-fixes branch December 3, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants