-
Notifications
You must be signed in to change notification settings - Fork 21
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
Minor refactorings #942
Minor refactorings #942
Conversation
Signed-off-by: cosa65 <[email protected]>
Signed-off-by: cosa65 <[email protected]>
Signed-off-by: cosa65 <[email protected]>
Signed-off-by: cosa65 <[email protected]>
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
Page | Size (compressed) |
---|---|
global |
580.33 KB (🟡 +477 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Sixteen Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/data-management |
239.22 KB (🟡 +279 B) |
819.55 KB |
/experiments/[experimentId]/data-exploration |
516.46 KB (🟢 -3.46 KB) |
1.07 MB |
/experiments/[experimentId]/data-processing |
533.15 KB (🟢 -5.62 KB) |
1.09 MB |
/experiments/[experimentId]/plots-and-tables |
15.7 KB (🟡 +74 B) |
596.03 KB |
/experiments/[experimentId]/plots-and-tables/batch-differential-expression |
74.51 KB (🟡 +12 B) |
654.84 KB |
/experiments/[experimentId]/plots-and-tables/dot-plot |
489.54 KB (🟢 -5.75 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/embedding-categorical |
480.19 KB (🟢 -5.83 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/embedding-continuous |
481.9 KB (🟢 -5.82 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/frequency |
482.06 KB (🟢 -5.87 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/marker-heatmap |
581.51 KB (🟢 -3.39 KB) |
1.13 MB |
/experiments/[experimentId]/plots-and-tables/normalized-matrix |
170.74 KB (🟡 +92 B) |
751.07 KB |
/experiments/[experimentId]/plots-and-tables/trajectory-analysis |
483.66 KB (🟢 -5.82 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/violin |
511.62 KB (🟢 -5.75 KB) |
1.07 MB |
/experiments/[experimentId]/plots-and-tables/volcano |
485.31 KB (🟢 -5.83 KB) |
1.04 MB |
/repository |
108.79 KB (🟡 +159 B) |
689.12 KB |
/settings/profile |
25.64 KB (🟡 +138 B) |
605.97 KB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link
is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
@@ -124,7 +129,7 @@ const CellSetsTool = (props) => { | |||
const renderContent = () => { | |||
let operations = null; | |||
|
|||
if (numSelectedCellSetKeys > 0) { | |||
if (numSelectedCellSetKeys !== null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before, if you selected a cell class that was empty it wouldn't say "0 cells selected" because numSelectedCellSetKeys === 0
meant that nothing was shown.
I added null so that:
- nothing is selected --->
numSelectedCellSetKeys = null
- the are selected things but they have 0 cells --->
numSelectedCellSetKeys = 0
In this way, we can show "0 cells selected"
in case 2.
Signed-off-by: cosa65 <[email protected]>
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
Page | Size (compressed) |
---|---|
global |
580.33 KB (🟡 +477 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Sixteen Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/data-management |
239.22 KB (🟡 +279 B) |
819.55 KB |
/experiments/[experimentId]/data-exploration |
516.46 KB (🟢 -3.46 KB) |
1.07 MB |
/experiments/[experimentId]/data-processing |
533.15 KB (🟢 -5.62 KB) |
1.09 MB |
/experiments/[experimentId]/plots-and-tables |
15.7 KB (🟡 +74 B) |
596.03 KB |
/experiments/[experimentId]/plots-and-tables/batch-differential-expression |
74.51 KB (🟡 +12 B) |
654.84 KB |
/experiments/[experimentId]/plots-and-tables/dot-plot |
489.54 KB (🟢 -5.75 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/embedding-categorical |
480.19 KB (🟢 -5.83 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/embedding-continuous |
481.9 KB (🟢 -5.82 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/frequency |
482.06 KB (🟢 -5.87 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/marker-heatmap |
581.51 KB (🟢 -3.39 KB) |
1.13 MB |
/experiments/[experimentId]/plots-and-tables/normalized-matrix |
170.74 KB (🟡 +92 B) |
751.07 KB |
/experiments/[experimentId]/plots-and-tables/trajectory-analysis |
483.66 KB (🟢 -5.82 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/violin |
511.62 KB (🟢 -5.75 KB) |
1.07 MB |
/experiments/[experimentId]/plots-and-tables/volcano |
485.31 KB (🟢 -5.83 KB) |
1.04 MB |
/repository |
108.79 KB (🟡 +159 B) |
689.12 KB |
/settings/profile |
25.64 KB (🟡 +138 B) |
605.97 KB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link
is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
Signed-off-by: cosa65 <[email protected]>
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
Page | Size (compressed) |
---|---|
global |
580.34 KB (🟡 +485 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Sixteen Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/data-management |
239.22 KB (🟡 +282 B) |
819.56 KB |
/experiments/[experimentId]/data-exploration |
516.46 KB (🟢 -3.46 KB) |
1.07 MB |
/experiments/[experimentId]/data-processing |
533.15 KB (🟢 -5.61 KB) |
1.09 MB |
/experiments/[experimentId]/plots-and-tables |
15.7 KB (🟡 +74 B) |
596.04 KB |
/experiments/[experimentId]/plots-and-tables/batch-differential-expression |
74.51 KB (🟡 +12 B) |
654.85 KB |
/experiments/[experimentId]/plots-and-tables/dot-plot |
489.54 KB (🟢 -5.75 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/embedding-categorical |
480.19 KB (🟢 -5.83 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/embedding-continuous |
481.9 KB (🟢 -5.82 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/frequency |
482.06 KB (🟢 -5.87 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/marker-heatmap |
581.51 KB (🟢 -3.39 KB) |
1.13 MB |
/experiments/[experimentId]/plots-and-tables/normalized-matrix |
170.74 KB (🟡 +92 B) |
751.07 KB |
/experiments/[experimentId]/plots-and-tables/trajectory-analysis |
483.66 KB (🟢 -5.82 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/violin |
511.62 KB (🟢 -5.75 KB) |
1.07 MB |
/experiments/[experimentId]/plots-and-tables/volcano |
485.31 KB (🟢 -5.83 KB) |
1.04 MB |
/repository |
108.79 KB (🟡 +159 B) |
689.13 KB |
/settings/profile |
25.64 KB (🟡 +138 B) |
605.98 KB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link
is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
Signed-off-by: cosa65 <[email protected]>
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
Page | Size (compressed) |
---|---|
global |
580.34 KB (🟡 +491 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Sixteen Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
Page | Size (compressed) | First Load |
---|---|---|
/data-management |
239.22 KB (🟡 +282 B) |
819.57 KB |
/experiments/[experimentId]/data-exploration |
516.46 KB (🟢 -3.46 KB) |
1.07 MB |
/experiments/[experimentId]/data-processing |
533.15 KB (🟢 -5.61 KB) |
1.09 MB |
/experiments/[experimentId]/plots-and-tables |
15.7 KB (🟡 +74 B) |
596.04 KB |
/experiments/[experimentId]/plots-and-tables/batch-differential-expression |
74.51 KB (🟡 +12 B) |
654.85 KB |
/experiments/[experimentId]/plots-and-tables/dot-plot |
489.54 KB (🟢 -5.75 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/embedding-categorical |
480.19 KB (🟢 -5.83 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/embedding-continuous |
481.9 KB (🟢 -5.82 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/frequency |
482.06 KB (🟢 -5.87 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/marker-heatmap |
581.51 KB (🟢 -3.39 KB) |
1.13 MB |
/experiments/[experimentId]/plots-and-tables/normalized-matrix |
170.74 KB (🟡 +92 B) |
751.08 KB |
/experiments/[experimentId]/plots-and-tables/trajectory-analysis |
483.66 KB (🟢 -5.82 KB) |
1.04 MB |
/experiments/[experimentId]/plots-and-tables/violin |
511.62 KB (🟢 -5.75 KB) |
1.07 MB |
/experiments/[experimentId]/plots-and-tables/volcano |
485.31 KB (🟢 -5.83 KB) |
1.04 MB |
/repository |
108.79 KB (🟡 +159 B) |
689.13 KB |
/settings/profile |
25.64 KB (🟡 +138 B) |
605.98 KB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link
is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script>
tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 🎉 Global Bundle Size Decreased
DetailsThe global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster. Any third party scripts you have added directly to your app using the If you want further insight into what is behind the changes, give @next/bundle-analyzer a try! Three Pages Changed SizeThe following pages changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
Signed-off-by: cosa65 <[email protected]>
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 One Page Changed SizeThe following page changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
Signed-off-by: cosa65 <[email protected]>
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 One Page Changed SizeThe following page changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #942 +/- ##
=======================================
Coverage 85.62% 85.62%
=======================================
Files 558 558
Lines 10290 10290
Branches 2230 2230
=======================================
Hits 8811 8811
Misses 1423 1423
Partials 56 56 ☔ View full report in Codecov by Sentry. |
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 One Page Changed SizeThe following page changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 One Page Changed SizeThe following page changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
Signed-off-by: cosa65 <[email protected]>
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖 One Page Changed SizeThe following page changed size from the code in this PR compared to its base branch:
DetailsOnly the gzipped size is provided here based on an expert tip. First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If Any third party scripts you have added directly to your app using the Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. |
Description
Details
URL to issue
N/A
Link to staging deployment URL (or set N/A)
https://ui-martinfosco-ui54.scp-staging.biomage.net/
N/A
Links to any PRs or resources related to this PR
biomage-org#54
Integration test branch
master
Merge checklist
Your changes will be ready for merging after all of the steps below have been completed.
Code updates
Have best practices and ongoing refactors being observed in this PR
Manual/unit testing
Integration testing
You must check the box below to run integration tests on the latest commit on your PR branch.
Integration tests have to pass before the PR can be merged. Without checking the box, your PR
will not pass the required status checks for merging.
Documentation updates
Optional