Commit graph

2111 commits

Author SHA1 Message Date
Anna Buianova
24bdfb1ef5 Remove unused ModerationService (#2805) [ci skip] 2019-05-13 16:16:06 -04:00
Ben Halpern
01d0ff8c1d
Finalize archived posts in dashboard (#2817) 2019-05-13 16:11:46 -04:00
Kobe Raypole
2dc7f914ac Move async user methods to ActiveJob (#2696) 2019-05-13 16:02:40 -04:00
Jess Lee
f6b59e56bf Update internal reports buttons type (#2816) [ci skip] 2019-05-13 15:59:19 -04:00
Dana Scheider
b2a8f69f83 Allow archiving of posts (#2798)
* This commit adds the "archived" attribute to the Article model, which will
enable users to automatically filter archived articles/drafts from appearing
on their dashboard. It also adds an ellipsis menu with a link to archive the
article. I've also moved the Mute Notifications button into the ellipsis menu
as well.

* Add ellipsis menu and make it work

* Fix logic error

* Hide ellipsis menus when you click elsewhere on the body

* Extract function to remove duplication

* Ensure that menu is hidden when the ellipsis button is clicked on an open menu

* Ensure that archiving post button works and that 'archived' param is accepted by the controller

* Enable link to toggle showing/hiding archived articles

* Make 'mute' and 'archive' buttons in ellipsis dropdown list work

* Refactor to make Code Climate happy

* Minor JS refactors
2019-05-13 15:40:52 -04:00
Ben Halpern
ab344801db
Fix localstorage key (#2815) 2019-05-13 15:27:42 -04:00
dependabot[bot]
e54d4c915d Bump counter_culture from 2.2.1 to 2.2.2 (#2812)
Bumps [counter_culture](https://github.com/magnusvk/counter_culture) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/magnusvk/counter_culture/releases)
- [Changelog](https://github.com/magnusvk/counter_culture/blob/master/CHANGELOG.md)
- [Commits](https://github.com/magnusvk/counter_culture/compare/v2.2.1...v2.2.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-13 14:19:23 -04:00
dependabot[bot]
9448ebb8d1 Bump intersection-observer from 0.6.0 to 0.7.0 (#2806) [ci skip]
Bumps [intersection-observer](https://github.com/w3c/IntersectionObserver) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/w3c/IntersectionObserver/releases)
- [Commits](https://github.com/w3c/IntersectionObserver/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-13 13:26:17 -04:00
dependabot[bot]
14245f1edf Bump jsdom from 15.0.0 to 15.1.0 (#2807) [ci skip]
Bumps [jsdom](https://github.com/jsdom/jsdom) from 15.0.0 to 15.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.0.0...15.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-13 12:36:13 -04:00
dependabot[bot]
59c9634de1 Bump webdrivers from 3.8.0 to 3.9.1 (#2814) [ci skip]
Bumps [webdrivers](https://github.com/titusfortner/webdrivers) from 3.8.0 to 3.9.1.
- [Release notes](https://github.com/titusfortner/webdrivers/releases)
- [Changelog](https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md)
- [Commits](https://github.com/titusfortner/webdrivers/compare/v3.8.0...v3.9.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-13 12:34:03 -04:00
dependabot[bot]
b73bbe9139 Bump capybara from 3.18.0 to 3.19.1 (#2809) [ci skip]
Bumps [capybara](https://github.com/teamcapybara/capybara) from 3.18.0 to 3.19.1.
- [Release notes](https://github.com/teamcapybara/capybara/releases)
- [Changelog](https://github.com/teamcapybara/capybara/blob/master/History.md)
- [Commits](https://github.com/teamcapybara/capybara/compare/3.18.0...3.19.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-13 12:33:30 -04:00
dependabot[bot]
bde0e6eb92 Bump rubocop from 0.67.2 to 0.69.0 (#2810) [ci skip]
Bumps [rubocop](https://github.com/rubocop-hq/rubocop) from 0.67.2 to 0.69.0.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.67.2...v0.69.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-13 12:31:59 -04:00
Ben Halpern
c7d7d55460
[WIP] Move both v1 and v2 editor to v2 preact-driven editor (#2797)
* Initial work on v2

* Initial changes merger

* Work to finalize v1/v2 editor adjustments

* Clean up styling

* Fiddle with form margins

* Fix some tests

* Change video

* skip a couple tests

* Modify tests to work with new code
2019-05-13 12:27:36 -04:00
dependabot[bot]
c1aa5de7c8 Bump rubocop-rspec from 1.32.0 to 1.33.0 (#2811)
Bumps [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec) from 1.32.0 to 1.33.0.
- [Release notes](https://github.com/rubocop-hq/rubocop-rspec/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-rspec/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-rspec/compare/v1.32.0...v1.33.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-13 10:05:50 -04:00
dependabot[bot]
7e66183dac Bump brakeman from 4.5.0 to 4.5.1 (#2813)
Bumps [brakeman](https://github.com/presidentbeef/brakeman) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/presidentbeef/brakeman/releases)
- [Changelog](https://github.com/presidentbeef/brakeman/blob/master/CHANGES.md)
- [Commits](https://github.com/presidentbeef/brakeman/compare/v4.5.0...v4.5.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-13 10:05:25 -04:00
Maurice
e639f376ee Fix link to FAQ on information page (#2796) 2019-05-11 13:26:55 -04:00
Ben Halpern
e4f6e00e29
Fix issue where user was not present on home page sometimes (#2793) 2019-05-10 19:42:18 -04:00
Ben Halpern
f0871346f7
Add security and faq pages as generatable via the Page model (#2792) 2019-05-10 16:20:40 -04:00
Glenn Carremans
85e517a821 Fix SpotifyTag (#2791)
- Fix regex for playlist.
- Remove user embed.
- Fix embed height.
2019-05-10 16:18:55 -04:00
Bolarinwa Balogun
d4b882753c Add Fetch Now to RSS Settings (#2770)
* Add Fetch Now to RSS Settings

* Resolve issues raised
2019-05-10 15:47:32 -04:00
Bolarinwa Balogun
ad61beedc2 Fix Empty Message for Archive List (#2789) 2019-05-10 15:06:40 -04:00
Mohammadjavad Raadi
bfda378ff8 Docs: Add themeable styling documentation using SASS mixins (#2780) 2019-05-10 12:55:16 -04:00
Kobe Raypole
509c7a3388 Move async article methods to ActiveJob (#2647) 2019-05-10 12:52:00 -04:00
Alireza Zekavat Fetrat
e53ca14bdc Fix broken gitdoc links (#2781) 2019-05-10 11:26:10 -04:00
cyrillefr
ecdbee64ab Move tag adjustment notification to Active Jobs (#2654) 2019-05-10 11:06:29 -04:00
rhymes
4e256e509e Close an open tag and cleanup spaces (#2782) 2019-05-10 09:09:40 -04:00
Mario See
62578e4a59 Utilize ERB template in SpotifyTag (#2753) [ci skip] 2019-05-09 19:45:19 -04:00
Mario See
86d8128dd9 Utilize ERB template in CodepenTag (#2748) [ci skip] 2019-05-09 19:33:59 -04:00
Ben Halpern
b645942dd2
Add loading='lazy' attribute to some images (#2776) 2019-05-09 16:37:06 -04:00
Mario See
e0d4329089 Utilize ERB template in SoundcloudTag (#2752) [ci skip] 2019-05-09 16:17:03 -04:00
Ben Halpern
995d4eb1e2
Add pagination to listings (#2775) 2019-05-09 14:58:26 -04:00
derekenos
5f63a7d253 Enable Escape key to close opened listing modal (#2768) 2019-05-09 14:21:35 -04:00
Mario See
e0284eb30d Utilize ERB template in BlogcastTag (#2754) [ci skip] 2019-05-09 14:13:19 -04:00
Mario See
7568037cf8 Utilize ERB template in SpeakerdeckTag (#2750) [ci skip] 2019-05-09 13:54:42 -04:00
Mario See
84eb7ceb75 Utilize ERB template in Instagram liquid tag (#2749) [ci skip] 2019-05-09 13:20:22 -04:00
Bolarinwa Balogun
5581fd6ff7 Fix Negative Number Beside Discuss in Article (#2772) 2019-05-09 12:47:36 -04:00
Mario See
20a50fb0f8 Utilize ERB template in Youtube/Vimeo liquid tag (#2728) [ci skip] 2019-05-09 12:44:00 -04:00
rhymes
e626002260 Add alternative texts to images (#2771) [ci skip] 2019-05-09 11:16:03 -04:00
rhymes
4e591fea1c Show localized date/time on hover for articles/comments (#2722)
* Add article decorator published_timestamp

* Use time HTML5 element and refactor date in partial

* Add published_timestamp to Article

Adding `published_timestamp` to the homepage we can then use JS to render the full timestamp localized for the user.

We've also added the timestamp to the index and the API

* Display article published timestamp on hover

* Use time also in the article show page

* Add timestamp to bottom articles as well

* Remove published_timestamp from index because it is not used

* Fix broken specs

* Add more article dates specs

* Refactor date initializers
2019-05-09 11:05:17 -04:00
rhymes
260fe901b8 Refactor Comments::BustCacheJob to use a service (#2655) 2019-05-09 10:10:37 -04:00
Mohammadjavad Raadi
b8a544f4e7 Refactor sass themeable style (#2767) 2019-05-08 15:07:49 -04:00
Andy Zhao
b1d8786436 Add specs for classified listings creation (#2769) [ci skip] 2019-05-08 15:01:33 -04:00
Mario See
b6ab47c016 Codesandbox Liquid tag render to utilize ActionController (#2747) [ci skip] 2019-05-08 13:07:26 -04:00
Mario See
767029bc10 JS Fiddle Liquid tag render to utilize ActionController (#2746) [ci skip] 2019-05-08 13:05:07 -04:00
rhymes
f2a0314298 Make reading list button hover effect compatible with a11y (#2759) [ci skip] 2019-05-08 12:46:39 -04:00
derekenos
0690479bb9 Fix Algolia creds documentation URL (#2766) [ci skip] 2019-05-08 10:46:18 -04:00
Alireza Zekavat Fetrat
c7b0c1c023 Refactor sass themeable style (#2762) [ci skip] 2019-05-08 10:18:48 -04:00
Ben Halpern
d730e8cb9a
Change social image strings to environment variable (#2763) 2019-05-08 09:31:44 -04:00
Bolarinwa Balogun
d3c929d00a Fix cursor flicker on article card border (#2760) 2019-05-08 08:51:22 -04:00
rhymes
2e55b9d82f Add a few listings to the seeds file (#2761) 2019-05-08 08:49:52 -04:00