Commit graph

363 commits

Author SHA1 Message Date
Nick Taylor
689b933a2e
Upgraded all Storybook dependencies. (#6278) 2020-02-24 08:55:28 -06:00
dependabot-preview[bot]
b689e9c343
Bump honeybadger-js from 2.1.2 to 2.1.3 (#6266)
Bumps [honeybadger-js](https://github.com/honeybadger-io/honeybadger-js) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/honeybadger-io/honeybadger-js/releases)
- [Changelog](https://github.com/honeybadger-io/honeybadger-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/honeybadger-io/honeybadger-js/compare/v2.1.2...v2.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 09:03:47 -05:00
Nick Taylor
5e677daac1
Homepage feed components (#6052)
* wip - <PodcastArticle /> component.

* Added filler user avatar for other article types.

* Added <LoadingArticle /> component.

* wip

* wip on <Article /> component.

* Added <Article /> component to barrel file.

* Deleted assets from dummy storybook assets folder.

* Updated podcast article story avatar.

* More work on <Article /> component.

* Refactoring Storybook stories.

* Refactored so main component is just the <Article /> component.

* Added a missing video article property.

* Some refactoring of <Article /> component.

* Added Storybook knobs addon.

* Now <Article /> component supports an isBookmarked prop.

* Fixed podcast Storybook story.

* Made the knobs Storybook addon the first tab

* Added more <Article /> Storybook stories.

* More <Article /> component tweaks.

* Added publish time to <Article /> component stories.

* Made the timeAgo function compatible with Preact.

* Added loading="lazy" attribute to <img /> in <Article /> component.

* Added <Article /> Storybook story for past published date.

* Fixed publish date for <Article /> story data.

* Scrapped random avatars.

* Added snapshots for <Article /> component.

* Added snapshots for <LoadingArticle /> component.

* Now test article entities are shared.

* Fixed some wording of Storybook stories.

* Breaking up Article.jsx to make codeclimate happy.

* Now <Article /> component receives icon props.

* Added knobs for <Article /> icon props.

* Added *.stories.jsx to codeclimate exclusion list.

* Added **/*.stories.jsx to codeclimate exclusion list.

* Alright now we have the good glob for excluding Storybook from codeclimate 😆

* Added org headline changes from low hanging fruit PR.

* Updated <Article /> snapshot for org headline.
2020-02-19 11:39:13 -06:00
Nick Taylor
ee9b1f58b9
Enabled ERB support for webpacker (#6166) [deploy] 2020-02-19 08:58:37 -05:00
Nick Taylor
a7dc893f50
Updates to Storybook for home page makeover. (#6130) 2020-02-18 08:42:37 -06:00
dependabot-preview[bot]
88bddc13e8
Bump jsdom from 16.1.0 to 16.2.0 (#6111) 2020-02-17 12:07:08 -05:00
dependabot-preview[bot]
de87cb5dc4
Bump honeybadger-js from 2.1.1 to 2.1.2 (#6113)
Bumps [honeybadger-js](https://github.com/honeybadger-io/honeybadger-js) from 2.1.1 to 2.1.2.
- [Release notes](https://github.com/honeybadger-io/honeybadger-js/releases)
- [Changelog](https://github.com/honeybadger-io/honeybadger-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/honeybadger-io/honeybadger-js/compare/v2.1.1...v2.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-17 09:43:55 -05:00
dependabot-preview[bot]
31908e84bd
Bump pusher-js from 5.0.3 to 5.1.1 (#6112) 2020-02-17 09:16:35 -05:00
dependabot-preview[bot]
247f4295eb
Bump husky from 4.2.1 to 4.2.3 (#6114) 2020-02-17 09:11:40 -05:00
Nick Taylor
3a46635c34
Configure husky/lint-staged for *.scss files. (#6089) 2020-02-16 16:55:37 -05:00
dependabot-preview[bot]
0962f6656c
Bump twilio-video from 2.0.1 to 2.1.0 (#5990) 2020-02-10 13:48:26 -05:00
dependabot-preview[bot]
665fd822eb
Bump honeybadger-js from 2.1.0 to 2.1.1 (#5986) 2020-02-10 13:44:04 -05:00
dependabot-preview[bot]
bdf0888590
Bump redoc-cli from 0.9.5 to 0.9.6 (#5988)
Bumps [redoc-cli](https://github.com/Redocly/redoc) from 0.9.5 to 0.9.6.
- [Release notes](https://github.com/Redocly/redoc/releases)
- [Changelog](https://github.com/Redocly/redoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Redocly/redoc/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-10 09:33:24 -05:00
dependabot-preview[bot]
22c643669a
Bump jsdom from 15.2.1 to 16.1.0 (#5845) [deploy]
Bumps [jsdom](https://github.com/jsdom/jsdom) from 15.2.1 to 16.1.0.
- [Release notes](https://github.com/jsdom/jsdom/releases)
- [Changelog](https://github.com/jsdom/jsdom/blob/master/Changelog.md)
- [Commits](https://github.com/jsdom/jsdom/compare/15.2.1...16.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-05 17:05:31 -05:00
dependabot-preview[bot]
1b79b03874
Bump eslint-config-prettier from 6.9.0 to 6.10.0 (#5850) 2020-02-04 15:47:30 -05:00
dependabot-preview[bot]
95b1bd832b
Bump eslint-plugin-react from 7.18.0 to 7.18.3 (#5851) 2020-02-04 15:29:17 -05:00
dependabot-preview[bot]
4a3411f33a
Bump honeybadger-js from 2.0.2 to 2.1.0 (#5849) 2020-02-03 12:05:07 -05:00
dependabot-preview[bot]
951f917d88
Bump lint-staged from 10.0.3 to 10.0.7 (#5852) 2020-02-03 10:29:06 -05:00
dependabot-preview[bot]
52ecb94837
Bump @storybook/addons from 3.4.11 to 3.4.12 (#5843) 2020-02-03 10:27:41 -05:00
dependabot-preview[bot]
bf9ede94bf
Bump eslint-plugin-import from 2.20.0 to 2.20.1 (#5844) 2020-02-03 10:27:23 -05:00
Nick Taylor
cd25f9adfc Downgrade Storybook for Webpack compatibility (#5783) 2020-01-28 16:37:25 -05:00
dependabot-preview[bot]
a4765003a4 Bump codemirror from 5.50.2 to 5.51.0 (#5742)
Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.50.2 to 5.51.0.
- [Release notes](https://github.com/codemirror/CodeMirror/releases)
- [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codemirror/CodeMirror/compare/5.50.2...5.51.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 12:51:16 -05:00
dependabot-preview[bot]
d42fda0692 Bump twilio-video from 2.0.0 to 2.0.1 (#5743)
Bumps [twilio-video](https://github.com/twilio/twilio-video.js) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/twilio/twilio-video.js/releases)
- [Changelog](https://github.com/twilio/twilio-video.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/twilio/twilio-video.js/compare/2.0.0...2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 12:50:41 -05:00
dependabot-preview[bot]
c3f8d5b520 Bump @github/clipboard-copy-element from 1.1.1 to 1.1.2 (#5746) 2020-01-27 06:45:00 -05:00
dependabot-preview[bot]
7f1c3f3580 Bump husky from 4.0.10 to 4.2.1 (#5749)
Bumps [husky](https://github.com/typicode/husky) from 4.0.10 to 4.2.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v4.0.10...v4.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-27 06:43:09 -05:00
dependabot-preview[bot]
85de645453 Bump lint-staged from 10.0.0 to 10.0.2 (#5750) 2020-01-27 06:40:25 -05:00
Jacob Herrington
3e99fb527f Add StimulusJS and Refactor Internal article_script (#5539) deploy]
* Add StimulusJS 1.1.1

Because:
- Internal will likely need more interactivity going forward
- Vanilla JS and jQuery are great, but aren't quite as organized as we
might like
- Stimulus fits our model of what internal should be (imo)
- Adopting Preact or something with templating would require rewriting a
bunch of erb (that is currently working just fine)

Stimulus is a JavaScript framework that directly compliments turbolinks
and the approach vanilla Rails takes to JavaScript. I've set it up to
specifically be used in the internal views where we are currently using
jQuery and vanilla JS. I think we should chip away at the vanilla JS
currently in place with this, which appears to be both scalable and
pragmatic exactly the sort of tool we want for building our internal
tools.

* Replace crufty article JS with Stimulus

I'm swapping out some of the stuff going on in article_script.erb with
some StimulusJS, it seems like a good test case for Stimulus.

This lets us organize the code a little more intentionally and hopefully
fixes a small performance complaint that Michael had.

* Rename uncommunicative methods

* Add unit tests for Stimulus classes

* Move Stimulus code to javascript/internal
2020-01-24 16:00:24 -05:00
Nick Taylor
7d93594447 Fix package.json name. (#5668) 2020-01-23 10:26:58 -05:00
rhymes
09cf6719eb Use honeybadger.js from npm (#5643)
rails-assets.org is often down, and apparently has been down intermittently since yesterday.

In addition to this the only thing the gem does is literally to add `honeybadger.js` to the assets path:

```ruby
gem_path.join('app/assets').each_child.to_a
```

Hence we can ditch the gem and use the library directly.
2020-01-22 08:22:51 -05:00
dependabot-preview[bot]
cde25ec8d1 Bump husky from 4.0.7 to 4.0.10 (#5593) 2020-01-20 15:02:34 -05:00
dependabot-preview[bot]
2c8ee69b1a Bump eslint-plugin-react from 7.17.0 to 7.18.0 (#5595)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.17.0 to 7.18.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.17.0...v7.18.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 13:31:38 -05:00
rhymes
af302b511d Remove git add from lint staged (#5607) 2020-01-20 11:34:32 -05:00
dependabot-preview[bot]
57d2e5b8a8 Bump jest-axe from 3.2.0 to 3.3.0 (#5594)
Bumps [jest-axe](https://github.com/nickcolley/jest-axe) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/nickcolley/jest-axe/releases)
- [Changelog](https://github.com/nickcolley/jest-axe/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nickcolley/jest-axe/compare/v3.2.0...v3.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 08:15:49 -05:00
dependabot-preview[bot]
8a853aa44f Bump lint-staged from 9.5.0 to 10.0.0 (#5592)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.5.0 to 10.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v9.5.0...v10.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-20 08:14:20 -05:00
dependabot-preview[bot]
8f87f02978 Bump eslint-plugin-import from 2.19.1 to 2.20.0 (#5479) [deploy]
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.19.1 to 2.20.0.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases)
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.19.1...v2.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-14 12:05:48 -05:00
dependabot-preview[bot]
0c305c3347 Bump husky from 3.1.0 to 4.0.7 (#5482) [deploy]
Bumps [husky](https://github.com/typicode/husky) from 3.1.0 to 4.0.7.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v3.1.0...v4.0.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 16:18:02 -06:00
dependabot-preview[bot]
1fed89ed02 Bump redoc-cli from 0.9.4 to 0.9.5 (#5481)
Bumps [redoc-cli](https://github.com/Redocly/redoc) from 0.9.4 to 0.9.5.
- [Release notes](https://github.com/Redocly/redoc/releases)
- [Changelog](https://github.com/Redocly/redoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Redocly/redoc/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 16:10:45 -06:00
dependabot-preview[bot]
1c2a0816f6 Bump codemirror from 5.50.0 to 5.50.2 (#5363) 2020-01-06 16:23:12 -05:00
dependabot-preview[bot]
277c496d4c Bump eslint-config-prettier from 6.7.0 to 6.9.0 (#5284) 2019-12-30 12:10:13 -05:00
dependabot-preview[bot]
d213cbf0a6 Bump jest-fetch-mock from 3.0.0 to 3.0.1 (#5283) 2019-12-30 10:22:48 -05:00
dependabot-preview[bot]
b5db5b19a9 Bump jest-fetch-mock from 2.1.2 to 3.0.0 (#5207) 2019-12-26 15:29:06 -05:00
dependabot-preview[bot]
d1cb715858 Bump codemirror from 5.49.2 to 5.50.0 (#5209) 2019-12-26 14:02:22 -05:00
dependabot-preview[bot]
eb8f0a005c Bump twilio-video from 1.20.0 to 2.0.0 (#5208) 2019-12-26 13:54:43 -05:00
dependabot-preview[bot]
92dbbd2873 Bump marked from 0.7.0 to 0.8.0 (#5125) 2019-12-16 13:27:26 -05:00
dependabot-preview[bot]
ecada63c30 Bump redoc-cli from 0.9.2 to 0.9.4 (#5126)
Bumps [redoc-cli](https://github.com/Redocly/redoc) from 0.9.2 to 0.9.4.
- [Release notes](https://github.com/Redocly/redoc/releases)
- [Changelog](https://github.com/Redocly/redoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Redocly/redoc/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-16 11:09:31 -05:00
Mac Siri
83e1313b1a
Expand Lint-staged's file coverage (#5109) [ci skip] 2019-12-13 16:28:31 -05:00
dependabot-preview[bot]
65d38c4501 Bump eslint-plugin-import from 2.18.2 to 2.19.1 (#5042) 2019-12-09 16:57:22 -05:00
dependabot-preview[bot]
6f6f453e6c Bump eslint-plugin-react from 7.16.0 to 7.17.0 (#4978) 2019-12-02 13:56:30 -05:00
dependabot-preview[bot]
bd8f746f1f Bump lint-staged from 9.4.3 to 9.5.0 (#4974)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.4.3 to 9.5.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v9.4.3...v9.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-02 08:56:11 -05:00
Jacob Herrington
7d0aeeefe5 Improve the clarity of the docs and fix Prettier config (#4899)
* Improve format and clarity of the docs [ci skip]

While this change produces a lot of git noise by enacting what seems
like an arbitrary linewrap on most of the files in the documentation it
will result in better version control and tracking of the changes in the
documentation.

For example, as it currently stands, if one was to make a
PR to move a comma in a sentence because each paragraph in most of the
files is on a single line, that small change would look in the git
history like the author had modified the entire paragraph. In reality,
this author just moved a comma.

This change also includes a significant number of modifications to the
more article-esque docs. Many of these docs were written in a sort of
stream-of-conciousness and aren't as easy to read as they could be.
Hopefully this is the first of several readability changes. If we could
get these docs to a more accessible reading level, we would probably see
an increase in contributions. :)

* Delegate markdown wrapping to Prettier

* Add linewrapping explanation in the docs [ci skip]
2019-11-26 08:40:53 -05:00