Commit graph

1862 commits

Author SHA1 Message Date
Ben Halpern
583a772d52
Add inbox guidelines to users (#2473) 2019-04-17 15:49:48 -04:00
Mario See
dd78c5eb29 Release Open Inbox (#2468)
* unhide connect and add clearer messages

* update userDetails snapshot
2019-04-17 12:46:12 -04:00
Andy Zhao
4e8787f606 Convert underscores in article slugs properly (#2472) 2019-04-17 12:35:37 -04:00
rhymes
f17d0f34e1 Update framework defaults to match those in Rails 5.1 (#2309)
* Enable all Rails 5.0 defaults, except for CSRF mitigations

* Enable all Rails 5.1 defaults

* Enable per_form_csrf_tokens

* Enable forgery_protection_origin_check

* Avoid replacing the CSRF in the comment form

Each form now has its own CSRF in addition to the global one.
I've left in place the setInterval

* Restore per_form_csrf_tokens to false
2019-04-17 12:21:15 -04:00
rhymes
7d3fb0c0b5 Enable random order for specs (#2466) [ci skip] 2019-04-17 11:30:23 -04:00
Edison Yap
3d12535272 #118 Allow users to embed Medium posts with Liquid Tags (#1161)
* Add ability to embed Medium URL as liquid tag

- Added new liquid tag - "{% medium https://medium.com}"
- Added a scraper - `MediumArticleRetrievalService` which crawls the
given Medium URL for informations needed for the liquid tag

* Add Medium logo in rendered liquid tag
2019-04-17 10:13:38 -04:00
Ben Halpern
8b6b7f733b
Allow API to return top articles (#2469)
* Allow API to return top articles

* Add pagination to top articles api index
2019-04-16 21:31:43 -04:00
Tim Lange
bf68782374 REF: React eslint (#2432) 2019-04-16 17:28:19 -04:00
Mario See
c6ee9fe3b4 Add Console message ascii art (#2392) [ci skip] 2019-04-16 16:47:27 -04:00
Ben Halpern
d45f2c5898
Adjust badge streak copy (#2467) 2019-04-16 16:41:16 -04:00
Conor Souhrada
9be054d3dc Wrap Moderater::MergeUser#update_social in a transaction (#2281) 2019-04-16 14:52:35 -04:00
rhymes
3b60a59ef8 Move exporting into a job (#2299) 2019-04-16 14:01:00 -04:00
Tim Lange
d39d30b8fd Fix comment preview loading in nightmode (#2454) [ci skip] 2019-04-16 13:51:42 -04:00
rhymes
8e6ca966ed Switch from chromedriver-helper to webdrivers (#2465) [ci skip] 2019-04-16 13:46:23 -04:00
rhymes
859e0bc606 Cleanup a bit the Gemfile (#2463)
* Enable pry only in development and test

* Explicitly put sdoc in the doc group

* rb-fsevent is not used explicitly

* Removed shortcut gem derailed

* fix-db-schema-conflicts is not needed in test mode

* memory_profiler is only used by derailed_benchmarks

* erb_lint is only needed in development

* vcr is only needed in tests

* Sinatra is not needed in tests

* Revert "Enable pry only in development and test"

This reverts commit ee15411a6949370d3c181d50616d0545ec09bd86.
2019-04-16 10:45:24 -04:00
rhymes
53381b9c0d Delete jquery.highlighttextarea (#2462) 2019-04-15 16:22:59 -04:00
dependabot[bot]
ee3b2d9dc4 Bump parallel_tests from 2.27.1 to 2.28.0 (#2441) [ci skip]
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 2.27.1 to 2.28.0.
- [Release notes](https://github.com/grosser/parallel_tests/releases)
- [Commits](https://github.com/grosser/parallel_tests/compare/v2.27.1...v2.28.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 14:46:38 -04:00
dependabot[bot]
c6a1d2dc06 Bump octokit from 4.13.0 to 4.14.0 (#2443)
Bumps [octokit](https://github.com/octokit/octokit.rb) from 4.13.0 to 4.14.0.
- [Release notes](https://github.com/octokit/octokit.rb/releases)
- [Changelog](https://github.com/octokit/octokit.rb/blob/master/RELEASE.md)
- [Commits](https://github.com/octokit/octokit.rb/compare/v4.13.0...v4.14.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 14:28:14 -04:00
Tim Lange
1d40c19866 UX: Liquid Tags Nightmode (#2459) 2019-04-15 14:23:12 -04:00
Ben Halpern
d76a37a6fe
Add GA_FETCH_RATE ENV var to ease rate limiting (#2461) 2019-04-15 14:11:55 -04:00
Tim Lange
d1535e0400 UX: Twitter Liquid Tag Nightmode (#2460) 2019-04-15 13:52:22 -04:00
Ben Halpern
61182b0a69
Allow seo_boostable to better handle nil (#2458) 2019-04-15 13:12:19 -04:00
Andy Zhao
dffdac3ad1 Add a blank href attribute if blank (#2457) 2019-04-15 13:10:54 -04:00
Ben Halpern
e389757aa4
Modify sidebar seo-boostable cache (#2455)
* Modify sidebar seo-boostable cache

* Modify score needed
2019-04-15 12:20:44 -04:00
rhymes
bf33490b04 Removed csv_shaper, bourbon and share_meow_client (#2450)
None of these gems seems to be in usage
2019-04-15 12:05:08 -04:00
Ben Halpern
78f8eb6dbe
Fix seo_boostable for latest (#2451) 2019-04-15 10:48:53 -04:00
dependabot[bot]
dea0ac785a Bump eslint-plugin-import from 2.16.0 to 2.17.1 (#2440) [ci skip]
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.16.0 to 2.17.1.
- [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.16.0...v2.17.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 10:25:09 -04:00
Ben Halpern
4b1b137c0f
Fix/augment dashboard and article view count issues (#2449) 2019-04-15 10:24:38 -04:00
dependabot[bot]
a4b36a361a Bump prettier from 1.16.4 to 1.17.0 (#2439) [ci skip]
Bumps [prettier](https://github.com/prettier/prettier) from 1.16.4 to 1.17.0.
- [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.4...1.17.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 10:21:11 -04:00
rhymes
cb0f78bdca Add short description for gems (#2447) 2019-04-15 10:08:26 -04:00
dependabot[bot]
c120e3c2c9 Bump puma from 3.12.0 to 3.12.1 (#2442)
Bumps puma from 3.12.0 to 3.12.1.

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 08:44:18 -04:00
dependabot[bot]
08f5827875 Bump validate_url from 1.0.6 to 1.0.8 (#2444)
Bumps [validate_url](https://github.com/perfectline/validates_url) from 1.0.6 to 1.0.8.
- [Release notes](https://github.com/perfectline/validates_url/releases)
- [Commits](https://github.com/perfectline/validates_url/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-15 08:43:46 -04:00
Andrew Brown
1168b926c7 be able to sort dashboard articles (#1837) (#2337)
* be able to sort dashboard articles (#1837)

* remember to escape order clause is arel (#1837)

* add back in missing character for created_at (#1837)

* use case statement to avoid threat of injection (#1837)

* write specs to ensure sorting works for dashboard articles (#1837)

* add publish sort options, refactor sort options into articles helper (#1837)

* refactor to use model scope (#1837)
2019-04-15 08:30:09 -04:00
Tim Lange
826340cffd UX: Fixed dev badge in nightmode (#2431) 2019-04-14 12:04:28 -04:00
Ali Spittel
b1dde2c6f6 Feature/pink mode - make text grey (#2429)
* tweak purple

* move text to grey?

* Update application.html.erb
2019-04-14 11:10:52 -04:00
Tim Lange
81c28886c8 UX: Several improvements for chat in nightmode (#2430)
* UX: Several improvements for chat in nightmode

* FIX: Some react refactoring

* FIX: Fixed failing react tests
2019-04-14 11:05:58 -04:00
Yaroslav Barkovskiy
e2503ec1c2 Fix colon emoji in codeblock (#2216) (#2360) 2019-04-13 16:16:36 -04:00
rhymes
1d9ef3afa7 Fix community name (#2415)
* Add community_qualified_name helper for the homepage

* Fix more community names
2019-04-13 16:12:21 -04:00
Anna Buianova
d27874adc9 Move estimating user default language to ActiveJob (#2373)
* Move estimating user language logic to a service object

* Call a service from a User#estimate_default_language!

* ActiveJob for estimating default user language

* Call ActiveJob from the User#estimate_default_language

* Handle nil user email when estimating default language

* Switch user.estimate_default_language_without_delay! to estimate_default_language! in specs
2019-04-13 15:54:22 -04:00
Mario See
fc318acd97 allow codesandbox to accept runonclick (#2381)
* allow codesandbox to accept runonclick

- runonclick=1 lets the user load the codesandbox when they decide
- added runonclick tests to spec

* documentation to editor_guide
2019-04-13 15:53:28 -04:00
Princess Oluebube Egbuna
445a41d8ee Fix typo on community moderation guideline page (#2394)
This commit fixes two grammatical errors on the community moderation guideline page.
2019-04-13 14:26:31 -04:00
Desi Rottman
803771d081 remove Product Roadmap link from TOC (#2423)
it looks like the Product Roadmap section of the Read Me was removed at 65bdaa86f3 (diff-04c6e90faac2675aa89e2176d2eec7d8), so that anchor was broken. this removes the link from the Table Of Contents.
2019-04-13 13:26:24 -04:00
Ben Halpern
dec44cd34e
Move themes config into separate partial and add logo theme-ability (#2427)
* Remove honeycomb code from config.ru

* Modify pink theme and minor other theme adjustments

* Fix schema
2019-04-13 13:11:18 -04:00
Ali Spittel
409c280c10 pinkify DEV (#2425) 2019-04-13 11:25:02 -04:00
Desi Rottman
92eab3aa49 Fix grammar error in "thumbsdown" description (#2391) [ci skip] 2019-04-12 11:49:44 -04:00
Tim Lange
6daec136bf UX: Fix draft in nightmode (#2382) 2019-04-12 10:30:42 -04:00
Anna Buianova
25cafaae8c Add missing indexes to comments table (#2413) 2019-04-12 06:18:06 -04:00
Ben Halpern
a0b205330c
Add fragment cache to tag page (#2403)
* Add fragment cache to tag page

* Add whether user is logged in to cache key
2019-04-12 01:29:49 -04:00
Ben Halpern
9578a15579
Remove unnecessary map functions in stories controller (#2402) 2019-04-12 01:10:08 -04:00
Ben Halpern
c68228cda6
Add sidebar condition for homepage cache (#2404) 2019-04-12 01:06:41 -04:00