Commit graph

1307 commits

Author SHA1 Message Date
Jess Lee
55fb04b714 show coupon codes (#2503) 2019-04-22 08:27:02 -04:00
Nick Taylor
1ca5177044 Disabled no-console for where we currently log an error. (#2502) 2019-04-20 09:20:08 -04:00
Tim Lange
aa9d33cab6 Condense 'ask me anything' to 'ama' (#2428) [ci skip] 2019-04-19 13:17:46 -04:00
Ben Halpern
56c55d047d
Add user_signed_in? to cache key for styles (#2498) 2019-04-19 12:57:40 -04:00
Nick Taylor
27ea00e152 Fix some frontend linting issues (#2495) [ci skip] 2019-04-19 10:58:21 -04:00
Caleb Meredith
42606d3a49 Fix <br/> in footer. (#2491) 2019-04-18 16:02:14 -04:00
Ben Halpern
4319d86c06
Remove extra param and add message for prefill (#2487)
* Remove extra param and add message for prefill

* Fix test for /new non-logged-in

* Fix /new test
2019-04-18 15:34:50 -04:00
Ali Spittel
fd20c8e1da Make Cards Change Dynamically and add Reader/Follower Charts (#2488)
* use API data

* Update schema.rb

* work on proCharts

* change to fetch

* remove console log

* add week month infinity dates

* linter tweaks

* change chart labels

* make cards change dynamically as well

* add april 1st disclaimer comment

* add reader and follower charts

* Update schema.rb
2019-04-18 14:59:13 -04:00
Ben Halpern
308f7a74e7
Add nav buttons to pwa desktop (#2484) 2019-04-18 11:35:00 -04:00
Ali Spittel
b374975edd Feature/filtered charts (#2482)
* use API data

* Update schema.rb

* work on proCharts

* change to fetch

* remove console log

* add week month infinity dates

* linter tweaks

* change chart labels
2019-04-18 11:21:25 -04:00
Andy Zhao
9b1ef3938a Add caching for historical data (#2476)
* Add low-level caching for historical data

* Rename method
2019-04-18 09:43:30 -04:00
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
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
53381b9c0d Delete jquery.highlighttextarea (#2462) 2019-04-15 16:22:59 -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
Ben Halpern
78f8eb6dbe
Fix seo_boostable for latest (#2451) 2019-04-15 10:48:53 -04:00
Ben Halpern
4b1b137c0f
Fix/augment dashboard and article view count issues (#2449) 2019-04-15 10:24:38 -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
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
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
Ben Halpern
8c740b77ac
Add additional fragment caching to home page (#2401) 2019-04-12 00:42:28 -04:00
rhymes
0d24dee4f0 Use touch a little bit less (#2395) 2019-04-11 23:43:54 -04:00
yasmeen roumie
c373a6a2e9 Fix typos (#2396) 2019-04-11 22:12:18 -04:00