Commit graph

1414 commits

Author SHA1 Message Date
Ben Halpern
152f4a52ea
Remove unnecessary queries (#1717)
* filter unnecessary queries

* Adjust article query in a couple places

* Replace tagged_with in main tag query

* Cache_tagged_with additional queries

* Modify test

* Modify cached_tagged_with to account for single tags

* Add cached_tagged_with in a few more places
2019-02-02 21:40:34 -04:00
rhymes
2019621ca1 Add default locale to i18n fallbacks (#1714) 2019-02-02 19:49:14 -04:00
Ali GOREN
4e09a95dae Fixes logn text doesn't wrap bug. #1710 (#1715) 2019-02-02 17:35:59 -04:00
Ben Halpern
522ac7a1f8
Add GoCD to sponsors (#1709)
* Add GoCD to sponsors

* Modify logo
2019-02-01 19:29:39 -04:00
Jess Lee
af2915b086 Fix Banisher Updates (#1704)
* delete activity before updating username

* fix linting

* remove unnecssary return
2019-02-01 17:10:17 -04:00
Sean
05eaa704d9 Correct grammar and punctuation in API Key docs (#1708)
Correct grammar and punctuation in 'Getting API Keys for Dev Environment' [skip ci]
2019-02-01 16:13:58 -04:00
Andrew Bone
9e8fbff5df Add --theme-container-color (#1706)
* Add --theme-container-color

Initial pass adding `--theme-container-color` for theming

* Add --theme-container-color

Initial pass adding `--theme-container-color` for theming
2019-02-01 12:29:31 -04:00
Ben Halpern
cbb96bb7b8
Change issue level to be more intuitive (#1690) 2019-01-31 16:20:01 -04:00
Jess Lee
d36418a62a Clear profile cache on banish (#1702)
* save spam username as old username

* keep old username for reference
2019-01-31 15:38:01 -04:00
Nick Taylor
32bf541ffd Upgrade husky config (#1686) [ci skip] 2019-01-31 12:01:31 -05:00
rhymes
aad0a3fc97 Fix bug where comment template is undefined instead of empty string (#1700)
Closes #1698
2019-01-31 08:24:42 -05:00
Ben Halpern
493e6fe796
Modify cache on home page (#1695) 2019-01-30 17:56:05 -05:00
Ben Halpern
be7fb2cdf0
Fix linting (#1694) 2019-01-30 16:01:23 -05:00
rhymes
f90815fc91 Activate eslint-plugin-jsx-a11y (#1688) 2019-01-30 15:15:25 -05:00
Greg Brimble
2eeb63ef21 Frontend Profile fields match backend maxlength (#1691) 2019-01-30 15:11:34 -05:00
Ben Halpern
d7665fcc3f
Add comment template to post (#1692)
* add myself to the core contributors

* add comment template

* merge upstream

* make sure the template re-appears for top level comments after submission

* make interface admin only

* Adjust comment template form

* Fix merge conflicts

* Remove unnecessary comment template from json
2019-01-30 13:32:34 -05:00
Mac Siri
2b779d15c6 Fix inconsistent specs (#1674)
* Force test colors in Travis

* Fix inconsistent analytic spec

* Fix local inconsistent specs

* Remove JS

*  Remove JS from spec
2019-01-30 11:50:42 -05:00
Andy Zhao
21859700c2 Rename notification arguments (#1684)
* Add a comment about notifiable

* Rename argument from notifiable to comment

* Use badge_achievement as argument

* Use reaction instead of notifiable

* Use mention instead of notifiable

* Add a comment for context

* Use tag adjustment instead of notifiable
2019-01-30 11:47:49 -05:00
Ben Halpern
58c8c6a4b1
Modify cache key for article-sticky-nav-articles (#1683) 2019-01-29 15:19:04 -05:00
Jess Lee
d5b8454738 stop using active record method on a non-active record object (#1676) 2019-01-29 15:02:02 -05:00
Jess Lee
f50247f089 Fix conditional so super admins can ban older spammers (#1651)
* allow superadmins to band old spammers

* enhance flash notification and show all new users

* fix confirm dialog
2019-01-29 15:01:04 -05:00
Ben Halpern
7c7c39149c
Modify cache keys for well-trafficked views. (#1681)
* Add cache to sidebar sticky to make it stick longer

* Add last_article_at and last_comment_at

* Clean up schema.rb
2019-01-29 13:27:22 -05:00
Ben Halpern
043a21494c
Modify sidebar cache (#1675) 2019-01-29 11:52:44 -05:00
Andy Zhao
f5f206e40e Render codespans properly in markdown (#1678)
* Explain test properly

* Add tests for codespan parsing

* Add codespan parsing logic
2019-01-29 11:52:18 -05:00
Anna Buianova
4073b869d6 Add erb_lint (#1657) [ci skip] 2019-01-29 11:47:32 -05:00
Juan Manuel Ramallo
49c9b5bc87 [Emojis in Markdown] (#1653)
- Adds the ability to add emojis using colons 😂 🎉
- The emoji conversion is added to the markdown parser labor
- When no emoji is found with the alias, same text is returned
- No assets added (no emoji images), so this will only be supported when the browser supports emojis (https://blog.getemoji.com/post/57054354336/which-browsers-support-emoji)
- Emoji conversion logic is out of markdown parser labor
- Adds its own spec
2019-01-28 16:28:59 -05:00
Ben Halpern
ea63374408
Add below-article html variant (#1669)
* Add below-article html variant

* Fix tests for variant number

* Fix stories show tests for html_variants
2019-01-28 14:31:43 -05:00
Ben Halpern
1cdbfe3af1
Remove hardcoded values in streak reward (#1671) 2019-01-28 14:14:45 -05:00
Ben Halpern
561882d9d5
Add writing streak badge rewarding algorithm (#1670)
* Add 4 week streak badge rewarding algorithm

* Modify badge message

* Fix typo
2019-01-28 13:46:00 -05:00
dependabot[bot]
55e0c02581 Bump codemirror from 5.42.2 to 5.43.0 (#1664) [ci skip]
Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.42.2 to 5.43.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.42.2...5.43.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 13:29:45 -05:00
dependabot[bot]
94de21db3d Bump eslint-plugin-import from 2.14.0 to 2.15.0 (#1661) [ci skip]
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.14.0 to 2.15.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.14.0...v2.15.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 13:20:58 -05:00
dependabot[bot]
3664af6280 Bump eslint-plugin-jsx-a11y from 6.1.2 to 6.2.0 (#1662) [ci skip]
Bumps [eslint-plugin-jsx-a11y](https://github.com/evcohen/eslint-plugin-jsx-a11y) from 6.1.2 to 6.2.0.
- [Release notes](https://github.com/evcohen/eslint-plugin-jsx-a11y/releases)
- [Changelog](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evcohen/eslint-plugin-jsx-a11y/compare/v6.1.2...v6.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 12:45:53 -05:00
dependabot[bot]
668fb9ae9a Bump sitemap_generator from 6.0.1 to 6.0.2 (#1658) [ci skip]
Bumps [sitemap_generator](https://github.com/kjvarga/sitemap_generator) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/kjvarga/sitemap_generator/releases)
- [Changelog](https://github.com/kjvarga/sitemap_generator/blob/master/CHANGES.md)
- [Commits](https://github.com/kjvarga/sitemap_generator/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 12:33:19 -05:00
dependabot[bot]
1087e4f847 Bump web-console from 3.5.1 to 3.7.0 (#1659) [ci skip]
Bumps [web-console](https://github.com/rails/web-console) from 3.5.1 to 3.7.0.
- [Release notes](https://github.com/rails/web-console/releases)
- [Changelog](https://github.com/rails/web-console/blob/master/CHANGELOG.markdown)
- [Commits](https://github.com/rails/web-console/compare/v3.5.1...v3.7.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 12:25:16 -05:00
dependabot[bot]
8c93e93b35 Bump prettier from 1.16.0 to 1.16.1 (#1665) [ci skip]
Bumps [prettier](https://github.com/prettier/prettier) from 1.16.0 to 1.16.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.16.0...1.16.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 12:24:06 -05:00
dependabot[bot]
7936755cb6 Bump eslint-config-prettier from 3.6.0 to 4.0.0 (#1666) [ci skip]
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 3.6.0 to 4.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v3.6.0...v4.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 12:23:31 -05:00
dependabot[bot]
9fb592c3b7 Bump jsdom from 13.1.0 to 13.2.0 (#1667) [ci skip]
Bumps [jsdom](https://github.com/jsdom/jsdom) from 13.1.0 to 13.2.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/13.1.0...13.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 12:21:35 -05:00
dependabot[bot]
823d0ac8e6 Bump libhoney from 1.10.1 to 1.11.0 (#1660)
Bumps [libhoney](https://github.com/honeycombio/libhoney-rb) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/honeycombio/libhoney-rb/releases)
- [Commits](https://github.com/honeycombio/libhoney-rb/compare/v1.10.1...v1.11.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 10:09:39 -05:00
Mario See
1404f0da5e adjust width calculations (#1652) 2019-01-26 13:08:32 -05:00
Andrew Bone
613d3d49c3 Coding style consistency (stackblitz liquid tag) (#1649)
* Style consistancy

Make style more consistent with other liquid tags

* Style consistency

Make style more consistent with other liquid tags

* Style consistency

Make style more consistent with other liquid tags

* rubocop compliance

* rubocop compliance
2019-01-25 12:03:01 -05:00
Andrew Bone
5f5beabcab Make initializeUserSidebar shorter (#1640)
Make initializeUserSidebar() shorter to meet codeclimate requirements.
2019-01-24 18:42:19 -05:00
Ben Halpern
049a7b7b73
Fix article taken redirect issue (#1645) 2019-01-24 18:16:35 -05:00
Ben Halpern
5b77b779a3
Comment muting tweaks (#1646) 2019-01-24 18:16:13 -05:00
Andy Zhao
c4677071a7 Mute notifications for a comment thread (#1636)
* Use idempotent update instead of toggle

* Update editor guide with new comment instructions

* Render the settings button on page load

* Add settings button to comment dropdown

* Update styles to properly render

* Add comment mute function and settings page

* Clean up erb spacing

* Remove unneccessary user_id param

* Add receive_notifications for policy spec

* Update name for accuracy

* Add request spec for comments_mute

* Remove unused permitted attributes

* Add actually used permitted attributes
2019-01-24 17:20:38 -05:00
Jess Lee
9d72091f42 add mailchimp unsub when deleting or banishing user (#1644) 2019-01-24 16:14:10 -05:00
Ben Halpern
a0d90874a9
Move org admin privilege check into controller (#1642) 2019-01-24 13:35:39 -05:00
Ben Halpern
ea2eead9e3
Remove unnecessary save from follows controller (#1638) 2019-01-23 17:58:05 -05:00
Ben Halpern
2e667d0810
Lower number of comments showing on first page of article show (#1637) 2019-01-23 17:57:51 -05:00
Jess Lee
0eb5402926 Delete User Functionality (#1615)
* add full delete route and update banisher

* add user deletion spec

* enhance styling

* remove availability if banned from mentorship

* add specs

* do not show banned mentors

* delete addiional associations

* include more associations for deletion

* simplify activity deletion wtih delete_all
2019-01-23 16:57:32 -05:00
Vinicius Stock
ec2ce5d6e6 Upgrade rubocop and fix offenses (#1635) 2019-01-23 16:12:03 -05:00