Commit graph

1285 commits

Author SHA1 Message Date
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
Brandon Lyons
bab2b8bcfe Fixed spacing typo (#2388) [ci-skip] 2019-04-11 17:49:01 -04:00
Alissa
4eadd21854 Update community moderation copy [ci skip] 2019-04-11 17:41:38 -04:00
Andy Zhao
d1241d3c16 Touch profile_updated_at when updating social usernames (#2386)
* Use better description for test

* Test for new profile_updated_at touches

* Touch profile_updated_at when removing an auth

* Touch profile_updated_at when authing w/ new social username
2019-04-11 16:32:45 -04:00
Kushagra Gour
8f03f87087 settings.scss: Fix color contrast in text colors (#2372)
The text colour of the alert messages was failing the accessible colour contrast requirement of 4.5:1.
2019-04-11 16:32:06 -04:00
Tim Lange
e3aefb7b18 UX: Fixed no results found in nightmode (#2384) 2019-04-11 16:30:33 -04:00
Tim Lange
696b90ec32 UX: Fixed figcaption in nightmode (#2383) 2019-04-11 16:30:13 -04:00
Jess Lee
6629404ad9 Community Moderation Page (#2364)
* add more copy about bulk updating

* add the new file whooops
2019-04-11 15:40:35 -04:00
rhymes
5782ffd7e0 Use published scope for articles (#2374)
* Use published scope for articles

* Fix variable name

* The sequencing in the union query matters

* Fix spec

* Restore a published: true condition

* This test is actually misleading due to the union

* Revert this change, not sure why it's not a relation

* Fix useless diff
2019-04-11 13:18:26 -04:00
rhymes
a09bf20503 Remove unused attr_reader (#2376) [ci skip] 2019-04-11 12:47:15 -04:00
Andy Zhao
8ef611f879 Remove Honeycomb from the app (#2366)
* Remove Honeycomb related gems

* Remove Honeycomb related code from controllers

* Remove Honeycomb from RSS Reader

* Remove Honeycomb related files

* Remove Honeycomb related tests

* Remove leftover Honeycomb methods
2019-04-11 10:49:35 -04:00
Jess Lee
f637d9e02b Manage tag and community mod lists in Mailchimp (#2362)
* add moderation email list columns

* automate tag moderator mailing list

* reorder logic for tag mod list

* add community mod list

* remove trusted privileges when reverting a user to a regular member

* automatically make tag mods community mods

* fix merge conflicts

* add community view

* make methods less complex based on code climate sugggestion

* add specs

* refactor tag moderator module

* fix spec
2019-04-10 14:45:06 -04:00
Tim Lange
1c285ba2c5 UX: Fixed comment preview in darkmode (#2363) 2019-04-10 14:44:00 -04:00
Tim Lange
cd34243a14 UX: Made sloan transparent -> now working in night theme (#2353)
* UX: Made sloan transparent -> now working in night theme

* FIX: Added fallback for color
2019-04-10 11:01:40 -04:00
Mario See
4ca70f202e add phpc.social to mastodon list (#2352) 2019-04-10 10:58:05 -04:00
rhymes
d0441bb456 Enable Rails/TimeZone cop (#2334) [ci skip] 2019-04-09 15:38:28 -04:00
Jess Lee
de76f3722f Do not require author for note to display (#2350) 2019-04-09 15:13:27 -04:00
Tim Lange
6c6a4516df Improve footer's width (#2166) 2019-04-09 14:17:41 -04:00
Ben Halpern
81c44b7bfa
Only set cache control header on videos index page (#2346) 2019-04-08 20:13:35 -04:00
Andy Zhao
53d3091f73 Add single article functionality to articles analytics (#2339)
* Add specs for single article functionality

* Add single article functionality

* Use article_id instead of single_article_id

* Add published: true when querying for one article

* Use article_id in specs oops
2019-04-08 19:57:13 -04:00
Anna Buianova
f1d371c670 Set users email to nil instead of blank (#2305)
* Set users email to nil instead of blank

* Remove uniqueness validation duplication for users

* Fix organization following test in case the name contains quotes
2019-04-08 19:12:56 -04:00
Ben Halpern
27e7d5c3b9
Remove unnecessary queries from user save (#2342)
* Remove unnecessary queries from user save

* Fix test and modify follow suggestions query
2019-04-08 19:05:58 -04:00
cyrillefr
4fd66372dc Enable Layout/AlignParameters (#2340)
Check if the parameters on a multi-line method call or definition are aligned.

Resolves: #2021
2019-04-08 18:47:34 -04:00