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

Modified the global default viewport size for the app back to the original size #10579

Merged

Conversation

aptrons22
Copy link
Contributor

@aptrons22 aptrons22 commented Jun 1, 2022

Overview:

I have added V8 configuration details for the default app size to be the original size.
Closes #10513

Changelog:

Edited default app window width and height in V8 config migration

Review requests:

In the app you will see the original default app size.

Risk assessment:

Low

@aptrons22 aptrons22 requested a review from a team as a code owner June 1, 2022 21:52
@aptrons22 aptrons22 requested review from jerader and removed request for a team June 1, 2022 21:52
@aptrons22 aptrons22 linked an issue Jun 1, 2022 that may be closed by this pull request
1 task
@aptrons22 aptrons22 self-assigned this Jun 1, 2022
@codecov
Copy link

codecov bot commented Jun 1, 2022

Codecov Report

Merging #10579 (a1f04ec) into edge (9f16650) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #10579      +/-   ##
==========================================
- Coverage   73.83%   73.82%   -0.01%     
==========================================
  Files        2141     2146       +5     
  Lines       57638    57944     +306     
  Branches     5848     5953     +105     
==========================================
+ Hits        42555    42780     +225     
- Misses      13846    13902      +56     
- Partials     1237     1262      +25     
Flag Coverage Δ
app 71.44% <100.00%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
app-shell/src/config/migrate.ts 91.66% <100.00%> (+0.75%) ⬆️
app/src/organisms/Devices/RobotOverview.tsx 55.55% <0.00%> (-11.12%) ⬇️
app/src/organisms/Devices/RecentProtocolRuns.tsx 73.91% <0.00%> (-7.34%) ⬇️
...ms/Devices/ProtocolRun/SetupPipetteCalibration.tsx 92.85% <0.00%> (-7.15%) ⬇️
...ms/Devices/RobotSettings/RobotSettingsAdvanced.tsx 42.30% <0.00%> (-5.20%) ⬇️
...rc/organisms/Devices/RobotOverviewOverflowMenu.tsx 97.61% <0.00%> (-2.39%) ⬇️
...dTab/AdvancedTabSlideouts/FactoryResetSlideout.tsx 64.40% <0.00%> (-2.26%) ⬇️
...organisms/Devices/ProtocolRun/ProtocolRunSetup.tsx 87.93% <0.00%> (-2.07%) ⬇️
...src/organisms/Devices/ProtocolRun/SetupLabware.tsx 91.34% <0.00%> (-0.85%) ⬇️
app/src/organisms/Devices/ModuleCard/hooks.tsx 83.54% <0.00%> (-0.02%) ⬇️
... and 15 more

@aptrons22 aptrons22 changed the title 10513 Modified the global reset the default viewport size for the app back to the original size 10513 Modified the global default viewport size for the app back to the original size Jun 2, 2022
@aptrons22 aptrons22 changed the title 10513 Modified the global default viewport size for the app back to the original size Modified the global default viewport size for the app back to the original size Jun 2, 2022
ui: {
...MOCK_CONFIG_V7.ui,
width: 1024,
minWidth: 600,
Copy link
Contributor

Choose a reason for hiding this comment

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

this line is unnecessary as minWidth from v7 is already set to 600

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback I have made all of the corrections. Now ready for review.

ui: {
...prevConfig.ui,
width: 1024,
minWidth: 600,
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment here about not including the minWidth in this migration as it's left unchanged

Comment on lines 141 to 143
ui: ConfigV7['ui'] & {
minWidth: number
}
Copy link
Contributor

Choose a reason for hiding this comment

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

the ui key is unchanged between v7 and v8, so these three lines should be unnecessary

Copy link
Contributor

@vabruzzo vabruzzo left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Copy link
Contributor

@b-cooper b-cooper left a comment

Choose a reason for hiding this comment

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

📏 📐

@aptrons22 aptrons22 merged commit 40c0e09 into edge Jun 3, 2022
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.

Global: Reset the default viewport size for the App
3 participants