Percy's frontend web application, built with Ember.
Clone or download
maprules1000 Make Builds Polling and Infinity Scrolling Play Nice (#901)
* WIP

* Rename infinity model builds and remove WIP code

* Update builds infinity model pagination cursor selection

* Update builds polling refresh call and render local builds

* Remove unused div to fix page object selectors

* Rename infinity builds model in tests

* Make buildNumber explicit since mirage isn't great at counting

* Abstract infinity scroll limit to const in build model

* Add a way to control the infinity loader rendering

* Update infinity loader test to look for new rendering logic

* Fix project acceptance test in percy

* Refactor and simplify sorting and cleaning of builds

* Fix missing builds in project container integration test on percy

* Refactor sort and clean builds to not drop build #1

* Add explicit test to make sure a build is present

* Fix project acceptance test

* Refactor ordering and cleaning logic

* Incorporate pr feedback

* Add test to make sure polling works
Latest commit 915c5be Nov 19, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.buildkite Fix test command & existing test failures (#823) Oct 9, 2018
.github Add pull request template (#540) May 16, 2018
app Make Builds Polling and Infinity Scrolling Play Nice (#901) Nov 19, 2018
bin Fix test command & existing test failures (#823) Oct 9, 2018
config Update tests to use new test helpers (#884) Nov 8, 2018
mirage [WIP] PVP switch UI (#863) Nov 1, 2018
public Webhook configuration UI (#845) Oct 19, 2018
server Add prettier so it automatically fixes styles pre-commit (#166) Jul 30, 2017
tests Make Builds Polling and Infinity Scrolling Play Nice (#901) Nov 19, 2018
utils Fix Sentry deploy script (#690) Aug 31, 2018
.bowerrc Upgraded ember-cli clean app. Mar 3, 2015
.dockerignore Move docker build configs to percy-web. Sep 21, 2016
.editorconfig Upgrade ember-data and other packages. Mar 27, 2015
.ember-cli Upgraded ember-cli clean app. Mar 3, 2015
.eslintignore [Ember upgrade - Part 3] Upgrade Ember (#826) Oct 18, 2018
.eslintrc.js [Ember upgrade - Part 3] Upgrade Ember (#826) Oct 18, 2018
.gitignore Fix test command & existing test failures (#823) Oct 9, 2018
.prettierignore TailwindCSS (#566) Jun 5, 2018
.prettierrc.js Add prettierrc file (#425) Jun 28, 2018
.stylelintrc Stylelint implementation and scss conversion (#240) Nov 9, 2017
.template-lintrc.js [Ember upgrade - Part 3] Upgrade Ember (#826) Oct 18, 2018
.travis.yml [Ember upgrade - Part 3] Upgrade Ember (#826) Oct 18, 2018
.watchmanconfig Upgrade ember to 1.13. Jan 23, 2016
Dockerfile Fix Buildkite Container Build Process (#880) Nov 7, 2018
LICENSE Update license. Feb 20, 2016
Makefile Fix test command & existing test failures (#823) Oct 9, 2018
README.md [Ember upgrade - Part 3] Upgrade Ember (#826) Oct 18, 2018
bower.json replace ember-remarkable with showdown (#829) Oct 11, 2018
dependencies.yml try update dependencies.yml to 2.0 (#674) Aug 20, 2018
docker-compose.yml Remove PERCY_PROJECT (#732) Sep 19, 2018
ember-cli-build.js [Ember upgrade - Part 3] Upgrade Ember (#826) Oct 18, 2018
package.json Update ember-sinon from ^2.2.0 to 3.0.0 (#895) Nov 14, 2018
testem.js Upgrade to Ember 3 (#467) Apr 1, 2018
yarn.lock upgrade ember-percy to get the latest @percy/agent (#903) Nov 16, 2018

README.md

percy-web

Build status

Percy's frontend web application, built with Ember.

Setup

First, install yarn.

Then, run:

yarn

Run server

PERCY_DEV_MIRAGE=yes yarn run start

Then, access http://localhost:4200

Using local API server

Edit /etc/hosts to add a local hostname (required):

# Add this to /etc/hosts:
127.0.0.1  dev.percy.local

Then, run:

yarn run start

Using the production API

First, add the dev.percy.local hostname above. Then, two environment variables must be set:

export PERCY_WEB_AUTH_TOKEN=...
export PERCY_WEB_API_HOST=https://percy.io

yarn run start

PERCY_WEB_AUTH_TOKEN is a full-access user token, different than the normal project PERCY_TOKEN.

Then, access http://dev.percy.local:4200

Run tests

yarn test

Or, visit http://dev.percy.local:4200/tests.

Or, to run in ember test --server mode:

yarn run test:server

Run tests locally with Percy enabled

PERCY_TOKEN=... PERCY_BRANCH=local yarn test

Update to a new ember.js version

  • Determine the version of Ember Percy's is currently using from the ember-cli package version in yarn.lock.

  • Determine the latest Ember release.

  • Read the changelog to review changes between the source version and target version.

  • View the release notes for each version between the source and target. If there are any unusual notes for an upgrade step, follow them.

  • Update using the Setup and Project Update notes for the current release.

  • When running the ember-init, use d to do a diff on each file. Most changes can be ignored (n). The package.json will have a few packages that need to have version numbers updated. Do these manually one by one. ember-cli-qunit doesn't need to be added.

  • Run yarn install.

  • Run yarn run test and make sure all tests pass. There might be deprecation warnings and breakages to fix.

  • After a CI build, ensure that the same number of screenshots have been taken, and that no unexpected visual diffs are present.