This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate ui to match Test Pilot updates
- apply new styles - handle some scss errors(waiting on sasstools/sass-lint#70 to silence some of the incorrect errors) - get l10n up to date with template changes - update client tests to pass - fixes #441
- Loading branch information
Showing
66 changed files
with
849 additions
and
854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
testpilot/frontend/static-src/app/templates/experiment-list-page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export default ` | ||
<div> | ||
<div class="blue"> | ||
<header data-hook="header-view"></header> | ||
<div class="centered-banner"> | ||
<div class="copter-wrapper"> | ||
<div class="copter fly-up"></div> | ||
</div> | ||
<div class="intro-text"> | ||
<h2 data-l10n-id="experimentListPageHeader">Welcome to Firefox Test Pilot!</h2> | ||
<p data-l10n-id="experimentListPageSubHeader">We're always trying out new features in Firefox. <br> Pick any of the tests below to see what we're working on!</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="content-wrapper"> | ||
<div data-hook="experiment-list"></div> | ||
</div> | ||
<footer id="main-footer" class="content-wrapper"> | ||
<div data-hook="footer-view"></div> | ||
</footer> | ||
</div> | ||
`; |
109 changes: 57 additions & 52 deletions
109
testpilot/frontend/static-src/app/templates/experiment-page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,67 @@ | ||
export default ` | ||
<div class="page"> | ||
<section id="details" data-hook="experiment-page"> | ||
<header data-hook="main-header"></header> | ||
<div class="details-header-wrapper"> | ||
<div class="details-header"> | ||
<h1 data-hook="title"></h1> | ||
<span class="now-active" data-hook="now-active" data-l10n-id="nowActive">Now Active</span> | ||
<div class="idea-controls"> | ||
<button data-l10n-id="giveFeedback" data-hook="feedback" id="feedback-button" class="button primary">Give Feedback</button> | ||
<button data-hook="uninstall" id="uninstall-button" class="button neutral"><span class="state-change-inner"></span><span data-l10n-id="disableExperimentTransition" class="transition-text">Disabling...</span><span data-l10n-id="disableExperiment" class="default-text">Disable <span data-hook="title"></span></span></button> | ||
<button data-hook="install" id="install-button" class="button primary"><span class="state-change-inner"></span><span data-l10n-id="enableExperimentTransition" class="transition-text">Enabling...</span><span data-l10n-id="enableExperiment" class="default-text">Enable <span data-hook="title"></span></span></button> | ||
<span class="user-count"></span> | ||
<span data-hook="install-count"></span> | ||
</div> | ||
<section id="details" data-hook="experiment-page"> | ||
<div class="blue"> | ||
<header data-hook="header-view"></header> | ||
</div> | ||
<div class="spacer"></div> | ||
<div class="details-header-wrapper"> | ||
<div class="details-header content-wrapper"> | ||
<h1 data-hook="title"></h1> | ||
<span class="now-active" data-hook="now-active" data-l10n-id="nowActive">Now Active</span> | ||
<div class="experiment-controls"> | ||
<button data-l10n-id="giveFeedback" data-hook="feedback" id="feedback-button" class="button primary">Give Feedback</button> | ||
<button data-hook="uninstall" id="uninstall-button" class="button secondary"><span class="state-change-inner"></span><span data-l10n-id="disableExperimentTransition" class="transition-text">Disabling...</span><span data-l10n-id="disableExperiment" class="default-text">Disable <span data-hook="title"></span></span></button> | ||
<button data-hook="install" id="install-button" class="button default"><span class="state-change-inner"></span><span data-l10n-id="enableExperimentTransition" class="transition-text">Enabling...</span><span data-l10n-id="enableExperiment" class="default-text">Enable <span data-hook="title"></span></span></button> | ||
<span data-hook="install-count"></span> | ||
<span class="user-count"></span> | ||
</div> | ||
</div> | ||
<div data-hook="details"> | ||
<div class="details-content"> | ||
</div> | ||
<div data-hook="details"> | ||
<div class="details-content content-wrapper"> | ||
<div class="details-overview"> | ||
<img data-hook="thumbnail" src="" width="260" height="260"> | ||
<section data-hook="measurements-container" class="measurement"> | ||
<h3 data-l10n-id="measurements">Measurements</h3> | ||
<p data-l10n-id="measurementsDisclaimer" class="disclaimer">All data is collected anonymously and used only to help us improve this test.</p> | ||
<div data-hook="measurements-html"></div> | ||
<a data-l10n-id="experimentPrivacyNotice" data-hook="privacy-notice-url"><span data-hook="title"></span> Privacy Notice</a> | ||
</section> | ||
<section> | ||
<h3 data-l10n-id="contributorsHeading">Brought to you by</h3> | ||
<ul class="contributors"></ul> | ||
</section> | ||
<section> | ||
<h3 data-l10n-id="detailsHeading">Details</h3> | ||
<table class="stats"> | ||
<tr data-hook="version-container"> | ||
<td data-l10n-id="version">Version</td> | ||
<td> | ||
<span data-hook="version"></span> | ||
<a data-l10n-id="changelog" data-hook="changelog-url">changelog</a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td data-l10n-id="lastUpdate">Last Update</td> | ||
<td data-hook="modified-date"></td> | ||
</tr> | ||
<tr> | ||
<td data-l10n-id="contribute">Contribute</td> | ||
<td><a data-hook="contribute-url"></a></td> | ||
</tr> | ||
</table> | ||
</section> | ||
<div class="experiment-icon-wrapper"> | ||
<img class="experiment-icon" data-hook="thumbnail"></img> | ||
</div> | ||
<div class="details-sections"> | ||
<section data-hook="measurements-container" class="measurement"> | ||
<h3 data-l10n-id="measurements">Measurements</h3> | ||
<p data-l10n-id="measurementsDisclaimer" class="disclaimer">All data is collected anonymously and used only to help us improve this test.</p> | ||
<div data-hook="measurements-html"></div> | ||
<a class="privacy-policy" data-l10n-id="experimentPrivacyNotice" data-hook="privacy-notice-url"><span data-hook="title"></span> Privacy Notice</a> | ||
</section> | ||
<section> | ||
<h3 data-l10n-id="contributorsHeading">Brought to you by</h3> | ||
<ul class="contributors"></ul> | ||
</section> | ||
<section> | ||
<h3 data-l10n-id="detailsHeading">Details</h3> | ||
<table class="stats"> | ||
<tr data-hook="version-container"> | ||
<td data-l10n-id="version">Version</td> | ||
<td> | ||
<span data-hook="version"></span> | ||
<a data-l10n-id="changelog" data-hook="changelog-url">changelog</a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td data-l10n-id="lastUpdate">Last Update</td> | ||
<td data-hook="modified-date"></td> | ||
</tr> | ||
<tr> | ||
<td data-l10n-id="contribute">Contribute</td> | ||
<td><a data-hook="contribute-url"></a></td> | ||
</tr> | ||
</table> | ||
</section> | ||
</div> | ||
</div> | ||
<div class="details-description"></div> | ||
</div> | ||
</div> | ||
</section> | ||
<div data-hook="main-footer"></div> | ||
</div> | ||
<footer id="main-footer" class="content-wrapper"> | ||
<div data-hook="footer-view"></div> | ||
</footer> | ||
</section> | ||
`; |
25 changes: 8 additions & 17 deletions
25
testpilot/frontend/static-src/app/templates/header-view.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
export default ` | ||
<section class="navbar"> | ||
<div data-hook="active-user" id="expanded-branding"> | ||
<div class="wrapper"> | ||
<header> | ||
<div class="firefox-logo"></div> | ||
<h1 data-l10n-id="siteName">Test Pilot</h1> | ||
<p data-l10n-id="headerSubtitle" class="subtitle">The innovative community where new Ideas for Firefox are tested.</p> | ||
</header> | ||
<div class="town-background"></div> | ||
<div data-hook="settings"></div> | ||
</div> | ||
</div> | ||
<div data-hook="inactive-user" id="tabzilla"> | ||
<a data-l10n-id="mozilla" href="https://www.mozilla.org/">Mozilla</a> | ||
</div> | ||
</section> | ||
`; | ||
<header id="main-header" class="content-wrapper" data-hook="active-user"> | ||
<h1> | ||
<span class="firefox-logo"></span> | ||
<span data-hook="title"></span> | ||
</h1> | ||
<div data-hook="settings"></div> | ||
</header> | ||
`; |
Oops, something went wrong.