Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Break down ExperimentDetails container into (mostly) simple components #2807

Closed
johngruen opened this issue Aug 21, 2017 · 1 comment
Closed
Assignees

Comments

@johngruen
Copy link
Contributor

In order to support the ongoing storybook work on the site, we should break down ExperimentPage Container into simple components.

lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 14, 2017
- Moved ExperimentRowCard and UpdateList components into subdirectories

- Extracted IncompatibleAddons as a component from ExperimentPage

- Webpack config to extract static/app/app.js.css from component imports

- Storybook config changes to use frontend/src/app/**/{ComponentName}/stories.jsx files

- Mocha test command changes use frontend/src/app/**/{ComponentName}/tests.js

- Hacks to frontend/tasks/pages.js to ignore scss imports

- Hacks to test-setup.js to ignore scss imports

See also:
https://gist.github.com/chuckharmston/01e5b7a16ba9b771863cbb8b2de64138

Issue mozilla#2807
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 14, 2017
- Moved ExperimentRowCard and UpdateList components into subdirectories

- Extracted IncompatibleAddons as a component from ExperimentPage

- Webpack config to extract static/app/app.js.css from component imports

- Storybook config changes to use frontend/src/app/**/{ComponentName}/stories.jsx files

- Mocha test command changes use frontend/src/app/**/{ComponentName}/tests.js

- Hacks to frontend/tasks/pages.js to ignore scss imports

- Hacks to test-setup.js to ignore scss imports

See also:
https://gist.github.com/chuckharmston/01e5b7a16ba9b771863cbb8b2de64138

Issue mozilla#2807
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 14, 2017
- Moved ExperimentRowCard and UpdateList components into subdirectories

- Extracted IncompatibleAddons as a component from ExperimentPage

- Webpack config to extract static/app/app.js.css from component imports

- Storybook config changes to use frontend/src/app/**/{ComponentName}/stories.jsx files

- Mocha test command changes use frontend/src/app/**/{ComponentName}/tests.js

- Hacks to frontend/tasks/pages.js to ignore scss imports

- Hacks to test-setup.js to ignore scss imports

See also:
https://gist.github.com/chuckharmston/01e5b7a16ba9b771863cbb8b2de64138

Issue mozilla#2807
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 15, 2017
- Storybook now also finds stories in frontend/src/app/**/stories.js

- `npm run test` now also finds tests in frontend/src/app/**/tests.js

- New /static/app/app.js.css stylesheet built from Sass styles imported
  by components

- Hacks to ignore .scss imports when using component modules outside
  Webpack for static page build & tests

- Update flowconfig to ignore .scss imports

- Small eslint upgrade so CLI matches gulp-eslint

Issue mozilla#2807
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 15, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 15, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 15, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 15, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 15, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 15, 2017
@ghost ghost added this to the Sprint 32 milestone Sep 18, 2017
lmorchard added a commit that referenced this issue Sep 22, 2017
* Tweaks to support component directory bundles

- Storybook now also finds stories in frontend/src/app/**/stories.js

- `npm run test` now also finds tests in frontend/src/app/**/tests.js

- New /static/app/app.js.css stylesheet built from Sass styles imported
  by components

- Hacks to ignore .scss imports when using component modules outside
  Webpack for static page build & tests

- Update flowconfig to ignore .scss imports

- Small eslint upgrade so CLI matches gulp-eslint

* Reorganize ExperimentRowCard component into bundle directory

* Reorganize UpdateList component into bundle directory

* Begin to extract IncompatibleAddons component from ExperimentPage container

* Rename stories.jsx -> stories.js; See also: airbnb/javascript#985 (comment)

* Quick & dirty revision to Storybook docs to incorporate new component bundle proposal

Issue #2807
@lmorchard lmorchard self-assigned this Sep 26, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 26, 2017
…tory, move IncompatibleAddons subcomponent into the bundle
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 26, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 27, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
…tory, move IncompatibleAddons subcomponent into the bundle
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Sep 28, 2017
@ghost ghost modified the milestones: Sprint 32, Sprint 33 Oct 2, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 9, 2017
…tory, move IncompatibleAddons subcomponent into the bundle
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 9, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 9, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 9, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 9, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 9, 2017
meandavejustice pushed a commit that referenced this issue Oct 10, 2017
#2891)

* Quick linting fix for gulpfile

* Issue #2807: Move ExperimentPage container into a bundle directory, move IncompatibleAddons subcomponent into the bundle

* Issue #2807: Move ExperimentPage tests into bundle directory

* Fix linting errors in ExperimentPage tests

* Issue #2807: Try extracting TestpilotPromo and adding flowtype annotations to MainInstallButton

* Issue #2807: Reorganize subcomponents & tests used only by ExperimentPage

* Issue #2807: More ExperimentPage test lint fixes

* Issue #2807: Quick experiment install fix

* Ensure ExperimentPage-test.js is removed after rebase
@ghost ghost modified the milestones: Sprint 33, Sprint 34 Oct 11, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 23, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 23, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 24, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 24, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 25, 2017
…nstant since it never changes; switch ExperimentPage to mount() from shallow() in tests; stop testing component state since it moved into subcomponents and markup should be enough to reflect functionality;
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 25, 2017
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 26, 2017
Issue mozilla#2807: Progress toward extracting DetailsOverview and DetailsDescription

PROGRESS

Issue mozilla#2807: MORE PROGRESS

Issue mozilla#2807: Move privacyScrollOffset from state and into a constant since it never changes; switch ExperimentPage to mount() from shallow() in tests; stop testing component state since it moved into subcomponents and markup should be enough to reflect functionality;

Issue mozilla#2807: EVEN MORE PROGRESS
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 26, 2017
Issue mozilla#2807: Progress toward extracting DetailsOverview and DetailsDescription

PROGRESS

Issue mozilla#2807: MORE PROGRESS

Issue mozilla#2807: Move privacyScrollOffset from state and into a constant since it never changes; switch ExperimentPage to mount() from shallow() in tests; stop testing component state since it moved into subcomponents and markup should be enough to reflect functionality;

Issue mozilla#2807: EVEN MORE PROGRESS
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 26, 2017
Issue mozilla#2807: Progress toward extracting DetailsOverview and DetailsDescription

PROGRESS

Issue mozilla#2807: MORE PROGRESS

Issue mozilla#2807: Move privacyScrollOffset from state and into a constant since it never changes; switch ExperimentPage to mount() from shallow() in tests; stop testing component state since it moved into subcomponents and markup should be enough to reflect functionality;

Issue mozilla#2807: EVEN MORE PROGRESS
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 26, 2017
- Extract DetailHeader, DetailOverview, and DetailDescription from
  ExperimentDetail component

- Add flow type annotations to ExperimentPage and new sub-components

- Subtitle related properties optional in Warning component

- Reformatted components with `prettier --single-quote`

- Move privacyScrollOffset from state and into a constant since it never changes

- Switch ExperimentPage tests from shallow() to mount() to test sub-components

- Stop testing component state since it moved into subcomponents and
  markup should be enough to reflect functionality

Issue mozilla#2807
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 26, 2017
- Extract DetailHeader, DetailOverview, and DetailDescription from
  ExperimentDetail component

- De-dupe measurements section into single component, repeated for
  responsive layout

- Add flow type annotations to ExperimentPage and new sub-components

- Subtitle related properties optional in Warning component

- Reformatted components with `prettier --single-quote`

- Move privacyScrollOffset from state and into a constant since it never changes

- Switch ExperimentPage tests from shallow() to mount() to test sub-components

- Stop testing component state since it moved into subcomponents and
  markup should be enough to reflect functionality

Issue mozilla#2807
lmorchard added a commit to lmorchard/testpilot that referenced this issue Oct 31, 2017
- Extract DetailHeader, DetailOverview, and DetailDescription from
  ExperimentDetail component

- De-dupe measurements section into single component, repeated for
  responsive layout

- Add flow type annotations to ExperimentPage and new sub-components

- Subtitle related properties optional in Warning component

- Reformatted components with `prettier --single-quote`

- Move privacyScrollOffset from state and into a constant since it never changes

- Switch ExperimentPage tests from shallow() to mount() to test sub-components

- Stop testing component state since it moved into subcomponents and
  markup should be enough to reflect functionality

Issue mozilla#2807
meandavejustice pushed a commit that referenced this issue Oct 31, 2017
- Extract DetailHeader, DetailOverview, and DetailDescription from
  ExperimentDetail component

- De-dupe measurements section into single component, repeated for
  responsive layout

- Add flow type annotations to ExperimentPage and new sub-components

- Subtitle related properties optional in Warning component

- Reformatted components with `prettier --single-quote`

- Move privacyScrollOffset from state and into a constant since it never changes

- Switch ExperimentPage tests from shallow() to mount() to test sub-components

- Stop testing component state since it moved into subcomponents and
  markup should be enough to reflect functionality

Issue #2807
@lmorchard
Copy link
Contributor

PR #2990 has been merged, so let's call this one finally done and open new issues for anything further that needs doing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants