Commit graph

1836 commits

Author SHA1 Message Date
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
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
Jan Keromnes
a4484021e8 Ensure Gitpod init always succeeds (#2379) 2019-04-11 12:31:50 -04:00
Ben Halpern
f0d2dfff84
Remove honeycomb code from config.ru (#2378) 2019-04-11 11:58:13 -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
rhymes
b7b5232835 Rubocop: regenerate todo and fix RSpec/FilePath (#2358)
* Regenerate rubocop todo

* Fix RSpec/FilePath
2019-04-10 12:17:05 -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