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

GH-1675: total requests modified readout (& summary refactors) #392

Merged
merged 141 commits into from Jun 11, 2019
Merged
Changes from 1 commit
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
b64fdae
Remove old Plus banner/logo
wlycdgr Mar 20, 2019
68378c6
Merge branch 'develop' into GH-1593_and_GH-1594/UpgradePlus-banner-an…
wlycdgr Apr 8, 2019
a131dfb
Add green upgrade banner to Summary component
wlycdgr Apr 8, 2019
26953b0
Merge branch 'develop' into GH-1593_and_GH-1594/UpgradePlus-banner-an…
wlycdgr Apr 12, 2019
8e409d6
Add upgrade banner class
wlycdgr Apr 12, 2019
a8f4602
Fix classNames -> className typo
wlycdgr Apr 12, 2019
cd6148a
Implement CSS for green upgrade banner
wlycdgr Apr 12, 2019
208fcd4
Display smaller upgrade banner in summary view when on detailed tab
wlycdgr Apr 12, 2019
dd1de6f
Adjust position of smaller upgrade banner upwards a little to avoid o…
wlycdgr Apr 12, 2019
ec59226
Add gold subscriber icon to display when a subscribed user is signed in
wlycdgr Apr 12, 2019
b3a380b
Finish implementation of plus upgrade banner and gold icon display lo…
wlycdgr Apr 14, 2019
4e0af1e
Remove debug code and redundant variable from Summary#render
wlycdgr Apr 14, 2019
901e06e
Refactor Summary#render for clarity
wlycdgr Apr 15, 2019
5c861d9
Add green upgrade banner and gold plus icon SVGs for expanded view
wlycdgr Apr 15, 2019
d4dedb3
Add expanded view upgrade banner div stub to Header#render. Refactor …
wlycdgr Apr 15, 2019
c9eb688
Merge branch 'develop' into GH-1593_and_GH-1594/UpgradePlus-banner-an…
wlycdgr Apr 16, 2019
499051f
Display gold icon in expanded view if user is a logged-in subscriber
wlycdgr Apr 16, 2019
6273e6e
Stub click on badge in expanded view
wlycdgr Apr 16, 2019
8c8b7fd
Replicate dev behavior of badge clicking in Header in expanded view
wlycdgr Apr 16, 2019
8e7abf1
Rename upgrade banner / gold plus badge click handler for clarity
wlycdgr Apr 16, 2019
dbdea1e
Add badge CSS classes to extended view badges. These need updating
wlycdgr Apr 16, 2019
9aedc21
Correct subscriber redirect path for gold plus icon click handler in …
wlycdgr Apr 16, 2019
43b5e81
Update badge CSS
wlycdgr Apr 16, 2019
4cc227b
Tweak CSS for expanded view upgrade banner and gold plus icon to spec
wlycdgr Apr 16, 2019
8c4a316
Remove reference to non-extant state.header from header container map…
wlycdgr Apr 16, 2019
740f61b
Implement show/hide logic for header upgrade banner and gold plus icon
wlycdgr Apr 16, 2019
5ebbd1e
Factor kebab div out to const for clarity in Header#render
wlycdgr Apr 16, 2019
d0c3b4f
Tweak gold plus icon expanded view SVG to make sure Plus is more cent…
wlycdgr Apr 16, 2019
6035749
Finish clarity refactor of Summary#render
wlycdgr Apr 16, 2019
a0170de
Nudge summary content down in expert view so green upgrade banner can…
wlycdgr Apr 16, 2019
8534297
Adjust positioning of simple/detailed view upgrade banners and gold i…
wlycdgr Apr 17, 2019
2a43fa9
Add click handling for simple and detailed view upgrade banner and go…
wlycdgr Apr 17, 2019
dfb9596
Switch between upgrade banner and gold icon in Summary view on sign i…
wlycdgr Apr 17, 2019
1f31716
Merge branch 'develop' into GH-1593_and_GH-1594/UpgradePlus-banner-an…
IAmThePan Apr 18, 2019
10631ab
Decompose totalTrackersBlockedAndPageLoadTime in Summary#render
wlycdgr Apr 18, 2019
be447e7
Remove duplication from return of Summary#render
wlycdgr Apr 18, 2019
069fca6
Merge branch 'GH-1593_and_GH-1594/UpgradePlus-banner-and-logo' of git…
wlycdgr Apr 18, 2019
c38b4b5
Fix Summary view display in Midnight theme on Detailed tab. Realign g…
wlycdgr Apr 18, 2019
ce7158b
Display subscriber badge in header in gold in Midnight theme
wlycdgr Apr 19, 2019
80a1736
Add upgrade banner text to locale strings file. Remove SVG upgarde te…
wlycdgr Apr 19, 2019
26c6ab0
Finalize CSS for upgrade banner text. Delete duplicate upgrade banner…
wlycdgr Apr 19, 2019
de6aa6b
Convert 'upgrade to' text in the green banner from SVG to text for sm…
wlycdgr Apr 19, 2019
c7a43ee
Make sure upgrade banner or subscriber badge display in the hamburger…
wlycdgr Apr 19, 2019
1873388
Stub out Requests Modified readout. Begin to specify CSS, click handler.
wlycdgr Apr 22, 2019
977b610
Swap locale string in for stub for Requests Modified
wlycdgr Apr 22, 2019
4517abc
Display the Requests Modified total in the spec shade of blue
wlycdgr Apr 22, 2019
ad9da95
Add tooltip for Requests Modified readout
wlycdgr Apr 22, 2019
86abd20
Adjust expert mode Summary view CSS so everything fits nicely with th…
wlycdgr Apr 22, 2019
7d5c5cd
Tweak Summary condensed view CSS so everything fits nicely with the n…
wlycdgr Apr 22, 2019
3ce8e6b
Position Requests Modified tooltip correctly in Condensed version of …
wlycdgr Apr 22, 2019
44c8b5c
Remove unusued click handler from Summary. Make Requests Modified rea…
wlycdgr Apr 22, 2019
b69cb7b
Merge in develop after resolving conflicts
wlycdgr Apr 28, 2019
ae24d6d
Remove smart blocking from Requests Modified total. Update tooltip co…
wlycdgr Apr 29, 2019
979165f
Merge branch 'develop' into GH-1675_TrackerListBreakdown-TotalCount
wlycdgr May 1, 2019
8ae8d7c
Remove obsolete abPause code in Summary and related files
wlycdgr May 2, 2019
d36ae0d
Update PauseButton snapshots to reflect removal of abPause code
wlycdgr May 2, 2019
7ef5f82
Remove abPause css from _summary.scss
wlycdgr May 2, 2019
ea44cee
Remove this.pauseLeft property from PauseButton
wlycdgr May 2, 2019
e02077b
Clean up PauseButton dropdown container JSX and CSS
wlycdgr May 2, 2019
7f79415
Update failing PauseButton test snapshot to reflect removal of abPaus…
wlycdgr May 2, 2019
7f3e45a
Remove abPause CSS from _ghostery_features partial
wlycdgr May 2, 2019
0983485
Refactor PauseButton#render
wlycdgr May 3, 2019
87a1cd5
Begin removal of abPause CSS
wlycdgr May 5, 2019
6c83c7e
Continue removing abPause CSS
wlycdgr May 5, 2019
212434c
Remove dropdown abPause CSS from pause button css
wlycdgr May 6, 2019
f743ef5
Further clean up pause button css
wlycdgr May 6, 2019
12e691e
Refactor Summary scss towards modified BEM structure
wlycdgr May 6, 2019
0a23283
Continue CSS refactor for Summary and sub-components
wlycdgr May 6, 2019
63c03e0
Refactor CliqzFeatures out to a generic CliqzFeature building block c…
wlycdgr May 7, 2019
da976b3
Remove CliqzFeatures
wlycdgr May 7, 2019
0204bed
Work to generalize GhosteryFeatures out to GhosteryFeature. CSS and J…
wlycdgr May 9, 2019
d6db970
Finish implementation of GhosteryFeature. Remove GhosteryFeatures.
wlycdgr May 9, 2019
7119fc5
Merge in develop
wlycdgr May 11, 2019
5ecba97
Fix typo & comment placement error
wlycdgr May 13, 2019
efd5d67
Update prop name in CliqzFeature
wlycdgr May 13, 2019
a29bbfd
Rewrite feature-name string interpolation in CliqzFeature
wlycdgr May 13, 2019
db38c79
Send the right data to ad block and smart block Cliqz features
wlycdgr May 13, 2019
292fd5b
Clean up CliqzFeature
wlycdgr May 13, 2019
5c55d73
Cleanup Summary#render
wlycdgr May 13, 2019
b74837f
Break up Summary#render with render helper functions
wlycdgr May 13, 2019
a1df93d
Factor donut and page host readout rendering to render helpers in Sum…
wlycdgr May 13, 2019
1b6c65b
Factor sbBlocked, sbAllowed, sbAdjust, and totalTrackersBlockedCount …
wlycdgr May 13, 2019
9487eb2
Factor antiTrackUnsafe, adBlockBlocked, and totalTrackersFound out to…
wlycdgr May 13, 2019
3fc59a9
Continue refactor of Summary
wlycdgr May 13, 2019
ecd3139
Factor out rendering of GhosteryFeature components to generic render …
wlycdgr May 13, 2019
6a9fff3
Clean up Summary.jsx
wlycdgr May 15, 2019
7ec35c1
Remove unused Custom button handling code from Summary#clickSitePolicy
wlycdgr May 15, 2019
5634995
Clean up CliqzFeature
wlycdgr May 15, 2019
fa1d0df
Comment public CliqzFeature methods. Refactor _getCount helpers.
wlycdgr May 15, 2019
64a3a2b
Doc GhosteryFeature#handleClick. Remove redundant check for paused or…
wlycdgr May 15, 2019
f6250e9
Make semantic constants for whitelist and blacklist site policy states
wlycdgr May 15, 2019
606fc0f
Etend the user of BLACKLIST and WHITELIST globals to Summary. Update …
wlycdgr May 15, 2019
3692dad
Fix page host text alignment
wlycdgr May 15, 2019
65e48a7
Fix page host readout display logic bug
wlycdgr May 15, 2019
e5b6df2
Fix bug that kept GhosteryFeature button text from rendering
wlycdgr May 16, 2019
c5f368c
Make progress towards fixing Trust button CSS
wlycdgr May 16, 2019
3b9a24c
Refactor CSS for GhosteryFeatureButtons
wlycdgr May 16, 2019
04d1242
Modify GhosteryFeature#render to account for CSS updates to GhosteryF…
wlycdgr May 16, 2019
ed4dd1b
Create shared helper classes SASS file. Use these glasses in Ghostery…
wlycdgr May 19, 2019
a428570
Add Foundation button class back to Ghostery Feature button element.
wlycdgr May 22, 2019
e6f1159
Fix text color in Ghostery Feature Buttons. Make sure ghostery featur…
wlycdgr May 29, 2019
069ae5d
Implement BEM CSS for Cliqz Feature icon and count elements
wlycdgr May 29, 2019
a465084
Implement BEM CSS for CliqzFeature feature-name element
wlycdgr May 29, 2019
68f4b54
Implement BEM CSS for stats nav button
wlycdgr Jun 1, 2019
da4ea2e
Implement BEM CSS for green upgrade banner
wlycdgr Jun 2, 2019
0f569c3
Finish and debug BEM CSS for green upgrade banner
wlycdgr Jun 3, 2019
44110b0
Move upgrade banner css to its own partial
wlycdgr Jun 3, 2019
6516f1c
Implement BEM CSS for subscriber badge
wlycdgr Jun 3, 2019
40001d3
Update classes in the JSX for the trackers blocked and requests modif…
wlycdgr Jun 3, 2019
46d7a94
Implement BEM CSS for Donut Graph component
wlycdgr Jun 4, 2019
d5ef546
Convert total tracker count display in Condensed view to BEM
wlycdgr Jun 4, 2019
39c07b6
Fix hover state and feature_name element CSS for CliqzFeature. Clean …
wlycdgr Jun 4, 2019
7187b39
Debug and cleanup CliqzFeature component and its SCSS partial
wlycdgr Jun 5, 2019
896ea62
Uncomment mouseleave handler in Tooltip
wlycdgr Jun 5, 2019
a6f8079
Move GhosteryKVReadout CSS to SummaryPageStat
wlycdgr Jun 6, 2019
c561a55
Clean up page stat render helpers in Summary. Remove GhosteryKVReadou…
wlycdgr Jun 6, 2019
a1aff4d
Finalize summary page host container element and summary page host bl…
wlycdgr Jun 6, 2019
d0cb6fb
Finalize summary page stats container, page stat container, and page …
wlycdgr Jun 6, 2019
ddc3cbd
Simplify CliqzFeature CSS. Reorganize partial based on block-level mo…
wlycdgr Jun 9, 2019
346102d
Fix typo
wlycdgr Jun 9, 2019
09100a0
Rename _ghostery_features partial to _ghostery_feature
wlycdgr Jun 9, 2019
f87c273
Ghostery Feature button alignment and styling fixes. Centered page st…
wlycdgr Jun 9, 2019
3ac3533
Fix Trust button tooltip
wlycdgr Jun 9, 2019
9428034
Fix alignment for ghostery features tooltips in expert mode
wlycdgr Jun 10, 2019
4f4359e
Remove silly placeholder name in pause button CSS. Fix summary vertic…
wlycdgr Jun 10, 2019
0564e52
Fix ghostery feature tooltip alignment in condensed view
wlycdgr Jun 10, 2019
8e2a117
Fix cliqz feature state change notifications bug
wlycdgr Jun 10, 2019
5fe0d0f
Finish fixing and organizing tooltip CSS for trust, restrict, pause, …
wlycdgr Jun 10, 2019
caace4a
Nudge cliqz icons up in expert view
wlycdgr Jun 10, 2019
fe16a44
Finalize requests modified page stat tooltip CSS
wlycdgr Jun 10, 2019
7aad2c3
Finalize total tracker count tooltip CSS
wlycdgr Jun 10, 2019
e52c373
Finalize css for donut number tooltip
wlycdgr Jun 10, 2019
f024579
Make donut category tooltips show again
wlycdgr Jun 10, 2019
0e84e9e
Restore Foundation formatting to donut category tooltips
wlycdgr Jun 10, 2019
1052d93
Update pause button snapshots and tests to reflect code updates
wlycdgr Jun 10, 2019
25d13d1
Merge branch 'develop' into GH-1675_TrackerListBreakdown-TotalCount
wlycdgr Jun 10, 2019
522397e
Fix typo in panel.scss. Remove double header in ghostery_feature.scss…
wlycdgr Jun 10, 2019
870b9c8
Remove count from Cliqz Features, replace with ON/OFF indicator (#393)
IAmThePan Jun 10, 2019
e7a8adc
Remove commented out code from GhosteryFeature
wlycdgr Jun 11, 2019
d7c9559
Make CliqzFeature-specific locale string keys for CliqzFeature status…
wlycdgr Jun 11, 2019
8d54958
Merge branch 'develop' into GH-1675_TrackerListBreakdown-TotalCount
jsignanini Jun 11, 2019
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Add upgrade banner text to locale strings file. Remove SVG upgarde te…

…xt. Replace it with a text span.
  • Loading branch information
wlycdgr committed Apr 19, 2019
commit 80a1736740290bc0cf03e36cb0af90d624ca5e93
@@ -2130,6 +2130,9 @@
"subscription_submit_issue": {
"message": "Submit Issue"
},
"subscription_upgrade_to": {
"message": "Upgrade to"
},
"panel_stats_menu_cumulative": {
"message": "Cumulative"
},
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<svg width="128" height="23" viewBox="0 0 128 23" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="a" x1="0.9088099670410156" x2="0" y1="0" y2="1">
<stop offset="0" stop-color="#9ECC42"/>
<stop offset="1" stop-color="#429321"/>
</linearGradient>
</defs>
<g fill="none" fill-rule="evenodd">
<path fill="url(#a)" d="M132 0l-7.8 10.2 9.635 12.6H0V0h132z" transform="translate(-6)"/>
<path fill="#FFF" d="M 88.66 8.249 C 88.09 8.182 87.77 7.896 87.602 7.543 C 87.518 7.358 87.552 7.258 87.77 7.241 C 89.165 7.09 90.425 6.384 91.567 6.334 C 92.424 6.3 93.163 6.569 93.567 7.728 C 93.919 8.736 93.634 9.71 93.062 10.601 C 92.222 11.911 90.408 13.171 88.207 13.591 C 87.821 13.658 87.451 13.591 87.166 13.423 C 86.696 14.347 86.191 15.456 85.603 16.85 C 85.536 17.018 85.452 17.018 85.334 16.9 C 85.099 16.649 84.931 16.145 85.184 15.238 C 85.62 13.708 87.199 10.55 88.661 8.248 L 88.66 8.249 Z M 102.688 15.895 C 102.14 16.575 101.332 17.102 100.555 17.102 C 99.463 17.102 99.026 16.414 99.161 15.439 C 98.573 16.229 97.682 17.086 96.741 17.019 C 96.185 16.979 95.881 16.688 95.752 16.276 C 95.246 16.688 94.598 17.036 93.919 17.018 C 92.76 16.985 92.139 16.178 92.525 14.364 C 93.146 11.441 95.062 8.4 96.775 6.619 C 97.027 6.35 97.262 6.317 97.498 6.535 C 97.985 6.972 98.086 7.594 97.884 8.383 C 97.364 10.45 95.482 12.466 93.986 13.44 C 93.314 15.086 93.13 16.48 93.886 16.548 C 94.416 16.592 95.105 16.085 95.701 15.365 C 95.734 15.108 95.798 14.841 95.885 14.582 C 96.255 13.474 97.111 11.827 98.203 10.298 C 98.338 10.114 98.506 10.13 98.64 10.282 C 99.01 10.836 98.926 11.592 98.32 12.55 C 97.817 13.336 97.379 14.162 97.01 15.02 C 96.658 15.842 96.708 16.447 97.094 16.48 C 97.75 16.531 98.674 15.355 99.581 13.894 C 100.639 12.18 101.126 11.021 101.664 10.298 C 101.832 10.063 101.95 10.03 102.084 10.198 C 102.336 10.5 102.47 11.239 102.067 12.079 C 101.697 12.835 100.857 14.095 100.471 14.952 C 100.034 15.91 100.101 16.615 100.706 16.582 C 101.238 16.556 101.855 15.922 102.407 15.107 C 102.305 14.478 102.447 13.811 102.857 13.474 C 103.058 13.306 103.193 13.373 103.21 13.642 C 103.226 13.776 103.226 13.91 103.243 14.045 C 103.932 13.104 104.688 12.012 105.175 11.155 C 105.259 10.5 105.427 10.181 105.78 9.862 C 106.15 9.526 106.536 9.458 106.687 9.61 C 106.855 9.778 106.771 9.962 106.553 10.349 C 106.486 10.449 106.435 10.55 106.368 10.668 C 106.25 12.214 106.57 13.524 106.519 14.683 C 106.486 15.338 106.368 16.044 105.763 16.447 C 106.889 16.027 107.594 15.019 108.014 14.112 C 108.098 13.927 108.266 13.978 108.334 14.112 C 108.401 14.263 108.384 14.7 108.098 15.221 C 107.502 16.318 106.373 17.02 105.125 17.069 C 104.178 17.101 103.263 16.864 102.688 15.895 L 102.688 15.895 Z M 87.653 12.482 C 88.157 11.542 88.627 10.769 89.064 9.996 C 89.534 9.19 89.702 8.602 89.702 8.148 C 90.812 7.828 92.492 6.955 92.844 7.879 C 93.298 9.055 91.416 11.777 87.653 12.482 L 87.653 12.482 Z M 94.289 12.718 C 96.59 10.853 97.531 8.165 97.313 8.03 C 97.094 7.896 95.851 9.76 94.692 11.911 C 94.544 12.173 94.41 12.442 94.289 12.718 L 94.289 12.718 Z M 105.125 11.842 C 104.548 12.896 103.813 13.989 103.058 15.062 C 103.356 16.214 103.932 17.029 104.588 16.831 C 105.502 16.552 105.204 13.432 105.125 11.842 L 105.125 11.842 Z"/>
</g>
</svg>
@@ -463,9 +463,12 @@ class Summary extends React.Component {
(plusSubscriber && <ReactSVG path="/app/images/panel/gold-plus-icon.svg" className="gold-plus-icon" />) ||
(
(is_expert && <ReactSVG path="/app/images/panel/green-upgrade-banner-small.svg" className="green-upgrade-banner" />) ||
<ReactSVG path="/app/images/panel/green-upgrade-banner.svg" className="green-upgrade-banner" />
<ReactSVG path="/app/images/panel/green-upgrade-banner-no-text.svg" className="green-upgrade-banner" />
)
}
{!plusSubscriber && !is_expert &&
<span className="text">{t('subscription_upgrade_to')}</span>
}
</div>
);

@@ -207,15 +207,21 @@
border: 1px lightgray solid;
border-radius: 5px 0 0 5px;
}
.green-upgrade-banner {
.base-badge {
@extend %pointer;
position: absolute;
}
.green-upgrade-banner {
@extend .base-badge;
left: 0;
top: 10px;
}
.green-upgrade-banner text {
font-family: "Open Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
font-size: 13px;
}
.gold-plus-icon {
@extend %pointer;
position: absolute;
@extend .base-badge;
left: 10px;
top: 11px;
}
ProTip! Use n and p to navigate between commits in a pull request.