Skip to content

PKDPX-31#592

Closed
wniestroj wants to merge 107 commits intomasterfrom
PKPDX-31
Closed

PKDPX-31#592
wniestroj wants to merge 107 commits intomasterfrom
PKPDX-31

Conversation

@wniestroj
Copy link
Copy Markdown
Collaborator

image
image
image

wniestroj and others added 30 commits September 19, 2024 14:13
…m LoadData.tsx, Added handle for onCancel on dataset edition
PKPDX-12 Add 'Previous' and 'Cancel' buttons
`setPrimaryCohort` has been replaced by `setGroupColumn`.
Co-authored-by: Jim O'Donnell <james.odonnell@dtc.ox.ac.uk>
perf: only simulate when on simulation page
eatyourgreens and others added 25 commits November 21, 2024 10:53
update aria-label to more specific label

Co-authored-by: Jim O'Donnell <james.odonnell@dtc.ox.ac.uk>
# Conflicts:
#	frontend-v2/src/features/main/Sidebar.tsx
…to PKPDX-29

# Conflicts:
#	frontend-v2/src/features/main/Sidebar.tsx
…ndow.resize event; added additional plot widths
- Remove dummy data for secondary parameters.
- Update `useParameters` for the case where we haven't defined any intervals yet.
Store time interval units as objects with conversion factors, symbols, and unit IDs.
…on sidebar collapsible sections to be collapsed by default; Dislpay Parameter input below the slider
* PKPDX-29 Add headers to results tables

* Remove unnecessary quotation mark

* Fix plots being constantly resized when changing layout

* Fix plots being constantly resized when changing layout

* Added controlling of plots width in dependence to resolution/scale

* PKPDX-30 Added collapsible sidebar, added animations for main content and simulations sidebar

* Refactor of collapsible sidebar, added context controlling the classes and expansion of sidebar

* Revert div to box

* fix: merge conflict

* Update frontend-v2/src/features/main/Sidebar.tsx

update aria-label to more specific label

Co-authored-by: Jim O'Donnell <james.odonnell@dtc.ox.ac.uk>

* Changed aria-label for main navigation; added resizing of plots on window.resize event; added additional plot widths

* Refactored plot widths to be calucalated on container width; Simulation sidebar collapsible sections to be collapsed by default; Dislpay Parameter input below the slider

---------

Co-authored-by: Jim O'Donnell <james.odonnell@dtc.ox.ac.uk>
Fix a couple of small TS errors in the `Simulations` component.
Run a type check, install, and build for the frontend in the CI pipeline.
Bump outdated packages with `yarn upgrade-interactive`.
- New Django model, `TimeInterval`, representing time intervals for secondary parameters.
- Update the combined model serialiser so that  it can save `model.time_intervals`.
- Update the OpenAPI schema in the backend and frontend.
- Update the React app to use the new OpenAPI models.
Normalise all Results times to hours, for the time being.
Add `variable.lower_threshold` and `variable.upper_threshold` to the variable model, so that thresholds are saved in the app database.
Pull data-fetching logic out of the `ThresholdsTable` component and into custom hooks.
- Store display units for variable thresholds separately from variable units.
- Normalise threshold units to `pmol/L` in the Results tables.
Return empty arrays by default from `useUnits` and `useVariables`.
# Conflicts:
#	frontend-v2/src/App.tsx
#	frontend-v2/src/features/simulation/Simulations.tsx
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.55%. Comparing base (5fcc2cf) to head (d4eeb10).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #592      +/-   ##
==========================================
+ Coverage   76.26%   76.55%   +0.28%     
==========================================
  Files         108      111       +3     
  Lines        5591     5651      +60     
==========================================
+ Hits         4264     4326      +62     
+ Misses       1327     1325       -2     

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

@sonarqubecloud
Copy link
Copy Markdown

@sonarqubecloud
Copy link
Copy Markdown

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

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
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

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