Commit graph

1569 commits

Author SHA1 Message Date
Anna Buianova
854c7a773c Rubocop fixes (#1966) 2019-03-04 06:18:09 -08:00
dependabot[bot]
9226ca8be8 Bump skylight from 2.0.2 to 3.1.4 (#1959)
Bumps [skylight](https://github.com/skylightio/skylight-ruby) from 2.0.2 to 3.1.4.
- [Release notes](https://github.com/skylightio/skylight-ruby/releases)
- [Changelog](https://github.com/skylightio/skylight-ruby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/skylightio/skylight-ruby/compare/v2.0.2...v3.1.4)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-04 06:16:49 -08:00
dependabot[bot]
3dc28048ec Bump twilio-ruby from 5.15.1 to 5.21.0 (#1960)
Bumps [twilio-ruby](https://github.com/twilio/twilio-ruby) from 5.15.1 to 5.21.0.
- [Release notes](https://github.com/twilio/twilio-ruby/releases)
- [Changelog](https://github.com/twilio/twilio-ruby/blob/master/CHANGES.md)
- [Commits](https://github.com/twilio/twilio-ruby/compare/5.15.1...5.21.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-04 06:15:23 -08:00
Ben Halpern
044b088d4f
Switch satellite view to any: true for tags (#1956) 2019-03-03 18:55:39 -08:00
Ben Halpern
f280d9e266
Fix a couple things and modify dev digest logic (#1954) 2019-03-03 18:25:39 -08:00
Joao Bueno
70b7414a28 Add GitDocs to "🔑 Key App tech/services" (#1951)
I thought it was important to quote it ;)
2019-03-03 18:21:05 -08:00
Steve Layton
3cc0f27eb3 Remove stray forward slash in RSS feed builder (#1943)
closes #1942

- removed stray `/` from lines 17 and 18.
2019-03-02 07:50:57 -08:00
Dmitrii Krasnov
9375d2436f Fix articles feed not filtering articles by user/organization (#1941)
* Fix articles feed not filtering articles by user/organization
fix #1940

* add specs for articles fetching in articles#feed controller action
2019-03-02 07:48:55 -08:00
Glenn Carremans
bcce614a80 Last general linting sweep (#1947)
* Fixed HTML errors in /app/views/additional_content_boxes

* Fixed indentation

* Fixed linting error in /app/views/comments

* Fixed indentation in /app/views/html_variants

* Fixed HTML errors + Fixed indentation in /app/views/internal

* Fixed HTML errors + Fixed indentation in /app/views/layouts

* Fixed indentation in /app/views/mailers

* Fixed indentation in /app/views/moderations

* Fixed HTML errors + Fixed indentation in /app/views/notifications

* Fixed HTML errors in /app/views/pages

* Fixed HTML errors + Fixed indentation in /app/views/social_previews

* Fixed indentation in /app/views/stories

* Fixed indentation in /app/views/stripe_subscriptions

* Fixed indentation in /app/views/tags

* Fixed indentation in /app/views/users
2019-03-02 07:47:14 -08:00
Pavel Sušický
40e6078a32 add gifs to random_gif.rb (#1945) 2019-03-02 07:21:43 -08:00
Ben Halpern
c93bc48010
Fix issue with boosted article in email digest (#1936)
* Adjust email digest

* Fix for missing user.experience_level

* Fix direction of greater than

* Adjust tests for new criteria
2019-03-01 13:51:06 -08:00
Andy Zhao
b157190ef0 Add missing data for org milestone notifications (#1939)
* Remove duplicate line

* Add missing json_data for org notifications
2019-03-01 13:42:38 -08:00
Andy Zhao
8b8dbd0172 Add Milestone Notifications (#1920)
* Test milestone notifications

* Add initial milestone notifications

* Add extra milestone goalposts

* Move send reaction milestone

* Use proper twilio-video package version

* Add random giphys gifs to milestones

* Make images responsive and add addl gifs

* Add guard statement for older articles

* Update app/views/notifications/_milestone.html.erb

Link to Giphy page instead of source page

* Generate gifs via class and factor in aspect ratio

* Add border radius to gifs

Co-Authored-By: Zhao-Andy <andyzhao.zhao@gmail.com>
2019-03-01 12:25:45 -08:00
Glenn Carremans
e56cc57d8f Fix linting issues in app/views/videos (#1907) [ci skip] 2019-03-01 12:11:51 -05:00
Eugene Cheah
58f68b6602 Add SEND_LOGS_TO_TIMBER env var to control timber logging (#1933) [ci skip] 2019-03-01 12:07:32 -05:00
rhymes
996ca23ed1 Simplify ArticlesController#feed (#1932)
* Simplify ArticlesController#feed

There's unneeded complexity in the logic of the feed method, this way what separates each path should be clearer

* Update app/controllers/articles_controller.rb

Co-Authored-By: rhymes <rhymesete@gmail.com>
2019-03-01 07:32:59 -08:00
Anna Buianova
b1995fd980 Update reading button states after articles loaded (#1927) 2019-03-01 06:11:13 -08:00
Glenn Carremans
281330fe16 Fix linting issues in app/views/articles (#1848) 2019-02-28 17:23:06 -05:00
Mario See
16a8aaa6f3 quick exit if comment is on podcast ep (#1931)
via andy's suggestion
2019-02-28 13:33:27 -08:00
Miguel Piedrafita
eb37d75c85 Implement Blogcast liquid tag (#1891) 2019-02-28 15:51:20 -05:00
Ben Halpern
d33c607211
Add non-mod functionality to /mod (#1930) 2019-02-28 11:02:19 -08:00
Ben Halpern
b2e3320ea4
Slight modification in /mod for exp level stuff (#1929) 2019-02-28 10:22:30 -08:00
Ben Halpern
532903c688
Add experience level averaging to articles (#1922)
* Add experience level averaging to articles

* Adjust copy on /mod ratings page
2019-02-28 08:17:29 -08:00
Ali Spittel
704b7bce9c Feature/autosave editor (#1633)
* Add myself to core contributors

* add myself to the core contributors

* implement autosave in sessionStorage

* clear sessionstorage on save

* add new changes flag

* add clear  button and css for it

* add clear button functionality

* make clear session storage only run if save is successful

* update jest snapshot for autosave

* add a few tests

* add a few tests

* add test for clear button

* make autosave work for title, tags, and cover image

* remove console.log

* make clear button into a message instead

* move to button with no styling instead of span

* remove warning on refresh

* remove warning on refresh

* move to localstorage so that persists across tabs

* fix blip on change from HTML to JSX

* make confirm work properly

* fix css jump for v2 editor

* fix v2 editor height jump

* remove unused onKeyUp prop

* indent _v2_form.html.erb file

* indent v2 editor erb

* Update package.json with missing package
2019-02-28 07:00:58 -08:00
Ben Halpern
59cf1e5852
Add missing CloudinaryHelper inclusion in HtmlVariant (#1923)
* Add missing CloudinaryHelper inclusion in HtmlVariant

* Add test
2019-02-28 06:57:05 -08:00
Anna Buianova
8d60177d45 Remove old methods from reactions #1621 (#1924)
* Remove old methods from reactions

* Return the needed Reaction methods
2019-02-28 06:50:29 -08:00
Anna Buianova
875114395c Fix delayed job errors related to reactions #1621 (#1883)
* Add delayed_job_web to dev environment for debugging

* Add specs for the current Follow callbacks implementation

* Move follower touching to ActiveJob

* Spec for the touch followers job

* Move Follow#create_chat_channel to ActiveJob and make the job safe

* Add ActiveJob to send email notifications about follows

* Enqueue SendEmailNotificationJob after the follow is created

* Specs to wnsure jobs are enqueued on Follow creation

* Make CreateChatChannelJob queue name more specific

* Reaction specs for Reaction after_save callbacks logic

* Touch user job

* Call Users::TouchJob on reaction create

* Move updating reactable to a separate job

* Move busting reactable cache to a separate job

* Bust homepage cache after reaction save in a separate job

* Spec for enqueueing Users::TouchJob on reaction create

* Refactor Reactions::UpdateReactable job

* Fix observer spec
2019-02-27 16:19:01 -08:00
Ben Halpern
4ac36bbeff
Change OP to AUTHOR (#1919)
* Change OP to AUTHOR

* Make lowercase
2019-02-27 08:57:04 -08:00
Mario See
ae484fbead add username to author info (#1912)
in both sticky nav on the side and about the author section at the end of the article
2019-02-27 08:25:47 -08:00
Alexander
a1b5dfbe89 Add test for validation badge image (#1909) [ci skip] 2019-02-27 10:45:13 -05:00
Ben Halpern
f36b869228
Adjust article ranking algorithm to use crossposted_at where available (#1917) 2019-02-27 07:41:52 -08:00
Anna Buianova
32b20c6d95 Remove unused Follow methods (#1915) [ci skip] 2019-02-27 10:38:30 -05:00
Glenn Carremans
323c6628ca Fix linting issues in app/views/dashboards (#1854) [ci skip] 2019-02-26 17:38:23 -05:00
Adarsh
38066a5b1a Add OP badge on comments (#461) 2019-02-26 17:11:09 -05:00
Mario See
b3c439c390 Fix settings/mentorship SyntaxError (#1913) 2019-02-26 17:04:03 -05:00
Arnelle Balane
48e4299436 Fix linting issues in app/views/users (#1908) 2019-02-26 13:38:49 -05:00
Arnelle Balane
9c6a7ed453 Fix linting issues in app/views/stripe_subscriptions (#1905) [ci skip] 2019-02-26 13:34:10 -05:00
Glenn Carremans
992e2a404d Fix linting issues in app/views/podcast_episodes (#1898) [ci skip] 2019-02-26 13:28:40 -05:00
Arnelle Balane
d332bfca44 Fix linting issues in app/views/moderations (#1900) [ci skip] 2019-02-26 13:17:01 -05:00
Arnelle Balane
9f34763175 Fix linting issues in app/views/reading_list_items (#1902) [ci skip] 2019-02-26 13:16:07 -05:00
Arnelle Balane
4b87de6c8b Fix linting issues for app/views/tags (#1906) [ci skip] 2019-02-26 13:14:15 -05:00
Glenn Carremans
657be683ce Fix linting issues in app/views/pages (#1897) 2019-02-26 13:09:54 -05:00
Arnelle Balane
e02d95470e Fix linting issues in app/views/social_previews (#1903) [ci skip] 2019-02-26 11:59:22 -05:00
Arnelle Balane
ba7644dd29 Fix linting issues for app/views/stories (#1904) [ci skip] 2019-02-26 11:58:14 -05:00
Arnelle Balane
c861fad573 Fix linting issues for app/views/html_variants (#1872) [ci skip] 2019-02-26 11:56:26 -05:00
Andy Zhao
1fc33cdd10 Add missing argument for reaction notification (#1901) 2019-02-26 09:14:31 -05:00
Ben Halpern
d9e1ab2caa
Fix typo in badge show page and fix unrelated badge missing word (#1899) 2019-02-25 16:06:27 -08:00
Ben Halpern
e5a2b25871
Add additional streak badge rewarding (#1896) 2019-02-25 15:37:16 -08:00
Andy Zhao
5ace9a5fc9 Organization Notifications (#1762)
* Add spec for org reaction notification

* Add organization_id to notifications

* Add validations for user and org IDs

* Move comment json_data out of loop

* Use actual column names instead

* Add organization filters

* Remove extra text-align

* Add organization filtering

* Refactor to reduce complexity

* Add receiver argument to handle orgs

* Add has_many notifications for orgs

* Add follow notifications for orgs

* Add comment notifications for orgs

* Rename some tests for specificity

* Add mark org notifications as read functionality

* Add radix to parseInt

* Define json_data outside of loop

* Notify org followers of a new post as well

* Move test to proper location

* Add test for aggregated method

* Make send org reaction notification more readable

* Test the rest of the notification model

* Refactor tag adjustment spec

* Fix extra html
2019-02-25 14:25:37 -08:00
Glenn Carremans
5b9b1fe263 Fix linting issues in app/views/notifications (#1894) [ci skip] 2019-02-25 16:58:47 -05:00