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

Feature/ui size improvements #634

Merged
merged 20 commits into from
May 4, 2020
Merged

Conversation

acepace
Copy link
Contributor

@acepace acepace commented Apr 29, 2020

What is this?

Improves on #633 by reducing size.
Develop = 3.4MiB
Lodash optimization = 3.35MiB
forteawesome optimization = 3.26MiB

@codecov
Copy link

codecov bot commented Apr 29, 2020

Codecov Report

Merging #634 into develop will increase coverage by 0.86%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #634      +/-   ##
===========================================
+ Coverage    56.73%   57.60%   +0.86%     
===========================================
  Files          115      116       +1     
  Lines         3874     3892      +18     
===========================================
+ Hits          2198     2242      +44     
+ Misses        1676     1650      -26     
Impacted Files Coverage Δ
monkey/monkey_island/cc/environment/test_aws.py 100.00% <0.00%> (ø)
monkey/monkey_island/cc/environment/__init__.py 73.07% <0.00%> (+5.76%) ⬆️
monkey/monkey_island/cc/auth.py 51.42% <0.00%> (+8.57%) ⬆️
monkey/common/cloud/aws/aws_instance.py 77.27% <0.00%> (+29.54%) ⬆️
monkey/monkey_island/cc/environment/aws.py 100.00% <0.00%> (+43.75%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa21e86...fc46eec. Read the comment docs.

@acepace
Copy link
Contributor Author

acepace commented Apr 29, 2020

Down to 2.39MiB
Not bad for 2 hours of work.

@acepace acepace changed the title Feature/ui size improvements [WIP] Feature/ui size improvements Apr 29, 2020
Comment on lines -3 to +8
"es2015",
"stage-0",
"react"
[
"@babel/preset-env",
{
"useBuiltIns": "entry"
}
],
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you tell me more about this change? preset-env by default parses into es2015 and what did stage-0 do ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

stage-0 and es2015 were what babelrc transpiled into. All modern browsers already support it so there's nothing to transpire.
babel/preset-env lets babel target using browserslist (see change in package.json), which I defined to all browsers in use (0.25% and up). So not es2015.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Debug output shows that currently this means the following results

Using targets:
{
"chrome": "49",
"edge": "18",
"firefox": "73",
"ie": "11",
"ios": "12",
"opera": "66",
"safari": "12.1",
"samsung": "10.1"
}

@acepace
Copy link
Contributor Author

acepace commented Apr 30, 2020

@ShayNehmad the build fails because I added react validation to eslint.
I can revert the react validation or change the eslint warning level.

@acepace
Copy link
Contributor Author

acepace commented Apr 30, 2020

@VakarisZ the two PTH icons are 1100x1100. Think it's ok to resize them or just to reformat them as 8bit colors rather than 32b, like the rest of the icons?

Copy link
Contributor

@VakarisZ VakarisZ left a comment

Choose a reason for hiding this comment

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

Good job!
Why didn't you delete the old icons?

@VakarisZ VakarisZ merged commit 9470ba9 into guardicore:develop May 4, 2020
@acepace acepace deleted the feature/UI_games branch May 11, 2020 07:23
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