Commit graph

2388 commits

Author SHA1 Message Date
Anna Buianova
f79b3cb12a Fixed rubocop issues, new .rubocop_todo.yml (#3255)
* Fixed rubocop issues, new .rubocop_todo.yml

* Refined and fixed indentation
2019-06-21 14:26:39 -04:00
Andy Zhao
cf8b4e37d3 Add context data to comment notifications (#3258)
* Add db relationship for comment and notifications

* Use delete instead of destroy

* Add comment's ancestors' data

* Delete descendant notification data appropriately

* Update notifications for comments up the tree as well

* Update descendant notifications appropriately

* Fix apostrophe edge case

* Make ancestor_data method private
2019-06-21 14:26:19 -04:00
Ben Halpern
e46bd26223
Fix logic and adjust copy for tag rewarding (#3251)
* Fix logic and adjust copy for tag rewarding

* Check for whether published
2019-06-20 20:28:33 -04:00
dependabot-preview[bot]
1639773832 Bump focus-visible from 4.1.5 to 5.0.0 (#3208) [ci skip]
Bumps [focus-visible](https://github.com/WICG/focus-visible) from 4.1.5 to 5.0.0.
- [Release notes](https://github.com/WICG/focus-visible/releases)
- [Commits](https://github.com/WICG/focus-visible/compare/v4.1.5...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 18:18:18 -04:00
cyrillefr
cf3f997c98 Move HtmlVariantTrial.create delay calls to ActiveJob (#3173) (#3239) 2019-06-20 18:14:20 -04:00
dependabot-preview[bot]
35f3e3b1db Bump jquery-rails from 4.3.3 to 4.3.5 (#3196)
Bumps [jquery-rails](https://github.com/rails/jquery-rails) from 4.3.3 to 4.3.5.
- [Release notes](https://github.com/rails/jquery-rails/releases)
- [Changelog](https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/jquery-rails/compare/v4.3.3...v4.3.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 17:40:46 -04:00
Andy Zhao
4ca7197696 Delete a comment's title if it is deleted (#3249)
* Remove cursor pointer for notification cards

* Delete the comment title if deleted

* Update title to use comment's title
2019-06-20 15:48:21 -04:00
Mac Siri
8ec4e338ed Update RssReader's liquid & youtube parsing logic (#3229)
* Loosen up Liquid::Variable

* Improve RssReader's youtube id detection

* Revert "Loosen up Liquid::Variable"

This reverts commit fd385c6649a9e0ca3786588a29a3ff2b8fe98218.

* RSS: Wrap liquid variable in backtick

* User inner_html intead of text
2019-06-20 15:26:39 -04:00
Mac Siri
de2bf910fd
Update doc on statement_timeout errors (#3248) [ci skip] 2019-06-20 13:36:40 -04:00
Thanawat Senawat
6fc17a29cb Feature/reading list loadmore button (#3221)
* Add Load More Button to Reading List

* Set state showLoadMoreButton is false
2019-06-20 13:33:02 -04:00
Jess Lee
f00c28adf0 Update internal's listings buffer text (#3247) 2019-06-20 13:18:00 -04:00
Andy Zhao
1e61634499 Add backend functionality for muting users you follow (#3240)
* Add backend func. for muting users you follow

* Remove comment

* Add validations and update default value

* Send notifications to followers with all_articles
2019-06-20 11:28:50 -04:00
Mario See
abbc3e85d6 Manage listings as organization admin (#3228)
* adjust validations to allow org admins to edit listings

also adjusted presented elements based on bumped_at dates and published boolean status

* allow org admins to edit listings under diff user_id

adjust statement in edit so that it has to be admin not just member

* pluck via attribute not string of attribute name

* update policy for org admins

* make authorizing org admin for listing private

* update classified listing spec

user_id is required for classified listing
2019-06-20 09:39:54 -04:00
Jess Lee
464d37310e add buffered checkbox to individual articles (#3238) 2019-06-20 09:34:03 -04:00
dependabot-preview[bot]
7fbaadd100 Bump recaptcha from 4.14.0 to 5.0.0 (#3191) [ci skip]
Bumps [recaptcha](https://github.com/ambethia/recaptcha) from 4.14.0 to 5.0.0.
- [Release notes](https://github.com/ambethia/recaptcha/releases)
- [Changelog](https://github.com/ambethia/recaptcha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ambethia/recaptcha/compare/v4.14.0...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-19 19:09:33 -04:00
Jess Lee
f4097714af Add missing Dev Listing logo (#3237) 2019-06-19 18:52:57 -04:00
rhymes
d74aa46bc5 Add article pro stats button in dashboard (#3230) 2019-06-19 10:13:18 -04:00
Ben Halpern
d2a78f051f
Remove hardcoded image from chat channel images (#3235) 2019-06-19 10:12:58 -04:00
rhymes
55634ad68f Display stats for organization article (#3232)
There was a bug where the frontend was not passing the organization id to the backend, and thus the fetching of the stats failed for organization articles.

This also adds a bit of error handling for `fetch` API
2019-06-19 09:17:35 -04:00
rhymes
6ce6b265df Fixed a couple of queries (#3233) 2019-06-19 09:17:03 -04:00
cyrillefr
c413cf8235 Move HtmlVariantSuccess.create delay calls to ActiveJob (#3173)
- add AJ job + job spec
  - refactor call
2019-06-18 21:36:33 -04:00
Anna Buianova
a3e246a327 Fix mention validation when validating an empty instance (#3188)
* Fix mention validation when validating an empty instance

* Fix NotifyMailer spec
2019-06-18 21:36:01 -04:00
Mazen Touati
b284c1e9df Allow stackoverflow subcommunities profiles (#3215) 2019-06-18 21:35:16 -04:00
Anna Buianova
24328417ab Don't try to register webhook when twitch returns empty data (#3219) 2019-06-18 21:34:06 -04:00
rhymes
2bf54edb9c Pro: History (#3220)
* Add base history support

* Add tags and ranking and make it work

* Fix styling

* Add article title and text excerpt to the index

* Add pagination support

* Debounce the search to 300ms

* Show history only to pro users

* Use routing helpers instead of hardcoding

* Raise the page size to 100

* Remove console log

* A bit of regrouping
2019-06-18 14:58:24 -04:00
Mario See
9e616de9f8 Listings Dashboard (#3014)
* init wip react components

* wip add dashboard to listing views

- create a html.erb view to hold listing/dashboard with javascript_pack_tag
- create listingDashboard.jsx in packs
- create listingDashboard component and dashboard folder with smaller components
- added view to controller and routes

* slowly adding some formatting

adjusted styling, info

* remove listing body from dashboard

* add some styling and adjust info

* wip adding org listings

* wip multi org in dashboard

* adjust for multi org

* add styling and better multi org support

* comment out bump and delete -- save for upcoming PR

* reduce lines

* listing form has link to listings dashboard instead of listings

* adjust header boxes flex direction for mobile

* fix organization id query

* WIP testing

needs more rigorous tests

* finalize tests
2019-06-18 14:52:59 -04:00
Anna Buianova
bd3125bcfd Update slack channel name (#3218) 2019-06-18 14:47:53 -04:00
Clara
351c1425bd Changed timestamp to creation of notifiable instead of notification itself (#3076) 2019-06-17 18:26:44 -04:00
dependabot-preview[bot]
1b794eb59c Bump @storybook/addon-actions from 5.1.3 to 5.1.8 (#3205) [ci skip]
Bumps [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/addons/actions) from 5.1.3 to 5.1.8.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/v5.1.8/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v5.1.8/addons/actions)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 16:52:37 -04:00
Mazen Touati
38f1eec56d Fix typos in Dockerfile (#3214) [ci skip] 2019-06-17 16:51:11 -04:00
dependabot-preview[bot]
b50f16d38e Bump @storybook/addon-links from 5.1.3 to 5.1.8 (#3210) [ci skip]
Bumps [@storybook/addon-links](https://github.com/storybookjs/storybook/tree/HEAD/addons/links) from 5.1.3 to 5.1.8.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/v5.1.8/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v5.1.8/addons/links)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 16:48:08 -04:00
dependabot-preview[bot]
c557d5c0fb Bump eslint-config-prettier from 4.3.0 to 5.0.0 (#3209) [ci skip]
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 4.3.0 to 5.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v4.3.0...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 16:44:54 -04:00
dependabot-preview[bot]
0f5e4d0d64 Bump inline_svg from 1.4.0 to 1.5.0 (#3193) [ci skip]
Bumps [inline_svg](https://github.com/jamesmartin/inline_svg) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/jamesmartin/inline_svg/releases)
- [Changelog](https://github.com/jamesmartin/inline_svg/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jamesmartin/inline_svg/compare/v1.4.0...v1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 16:43:49 -04:00
dependabot-preview[bot]
f9746e79fe Bump front_matter_parser from 0.2.0 to 0.2.1 (#3192) [ci skip]
Bumps [front_matter_parser](https://github.com/waiting-for-dev/front_matter_parser) from 0.2.0 to 0.2.1.
- [Release notes](https://github.com/waiting-for-dev/front_matter_parser/releases)
- [Changelog](https://github.com/waiting-for-dev/front_matter_parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/waiting-for-dev/front_matter_parser/compare/v0.2.0...v0.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 16:19:50 -04:00
dependabot-preview[bot]
13c811e1a7 Bump preact-compat from 3.18.5 to 3.19.0 (#3207) [ci skip]
Bumps [preact-compat](https://github.com/developit/preact-compat) from 3.18.5 to 3.19.0.
- [Release notes](https://github.com/developit/preact-compat/releases)
- [Commits](https://github.com/developit/preact-compat/compare/3.18.5...3.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 16:01:58 -04:00
dependabot-preview[bot]
0a58dc9322 Bump husky from 2.4.0 to 2.4.1 (#3206) [ci skip]
Bumps [husky](https://github.com/typicode/husky) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v2.4.0...v2.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 15:58:01 -04:00
dependabot-preview[bot]
ecea8b67a8 Bump @storybook/addons from 5.1.3 to 5.1.8 (#3213) [ci skip]
Bumps [@storybook/addons](https://github.com/storybookjs/storybook/tree/HEAD/lib/addons) from 5.1.3 to 5.1.8.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/v5.1.8/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v5.1.8/lib/addons)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 15:55:33 -04:00
dependabot-preview[bot]
ce9d80fcaa Bump babel-eslint from 10.0.1 to 10.0.2 (#3211) [ci skip]
Bumps [babel-eslint](https://github.com/babel/babel-eslint) from 10.0.1 to 10.0.2.
- [Release notes](https://github.com/babel/babel-eslint/releases)
- [Commits](https://github.com/babel/babel-eslint/compare/v10.0.1...v10.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 15:24:54 -04:00
dependabot-preview[bot]
aa676bc10e Bump fog-aws from 3.5.0 to 3.5.1 (#3199)
Bumps [fog-aws](https://github.com/fog/fog-aws) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/fog/fog-aws/releases)
- [Changelog](https://github.com/fog/fog-aws/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fog/fog-aws/compare/v3.5.0...v3.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 14:55:49 -04:00
briwa
deb83f71a8 fix(article): <hr> should be visible in night theme (#3202) 2019-06-17 14:54:53 -04:00
dependabot-preview[bot]
2108de5052 Bump lint-staged from 8.2.0 to 8.2.1 (#3212) [ci skip]
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.2.0 to 8.2.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.2.0...v8.2.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 14:54:27 -04:00
dependabot-preview[bot]
250bd2171d Bump parallel_tests from 2.29.0 to 2.29.1 (#3194) [ci skip]
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 2.29.0 to 2.29.1.
- [Release notes](https://github.com/grosser/parallel_tests/releases)
- [Commits](https://github.com/grosser/parallel_tests/compare/v2.29.0...v2.29.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 14:27:58 -04:00
dependabot-preview[bot]
5f5ae5567e Bump twilio-ruby from 5.23.1 to 5.24.0 (#3201) [ci skip]
Bumps [twilio-ruby](https://github.com/twilio/twilio-ruby) from 5.23.1 to 5.24.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.23.1...5.24.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 14:18:57 -04:00
dependabot-preview[bot]
02afb169a5 Bump rubocop-rails from 2.0.0 to 2.0.1 (#3189) [ci skip]
Bumps [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/rubocop-hq/rubocop-rails/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop-rails/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop-rails/compare/v2.0.0...v2.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 14:04:57 -04:00
dependabot-preview[bot]
53711cd168 Bump capybara from 3.22.0 to 3.24.0 (#3195) [ci skip]
Bumps [capybara](https://github.com/teamcapybara/capybara) from 3.22.0 to 3.24.0.
- [Release notes](https://github.com/teamcapybara/capybara/releases)
- [Changelog](https://github.com/teamcapybara/capybara/blob/master/History.md)
- [Commits](https://github.com/teamcapybara/capybara/compare/3.22.0...3.24.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 14:04:15 -04:00
dependabot-preview[bot]
36c04c114e Bump airbrake from 9.2.1 to 9.2.2 (#3190) [ci skip]
Bumps [airbrake](https://github.com/airbrake/airbrake) from 9.2.1 to 9.2.2.
- [Release notes](https://github.com/airbrake/airbrake/releases)
- [Changelog](https://github.com/airbrake/airbrake/blob/master/CHANGELOG.md)
- [Commits](https://github.com/airbrake/airbrake/compare/v9.2.1...v9.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 14:03:18 -04:00
Ben Halpern
d55a392bed
Add organization liquid tag (#3203) 2019-06-17 13:47:42 -04:00
dependabot-preview[bot]
cef523b2c8 Bump webdrivers from 3.9.1 to 4.0.1 (#3198) [ci skip]
Bumps [webdrivers](https://github.com/titusfortner/webdrivers) from 3.9.1 to 4.0.1.
- [Release notes](https://github.com/titusfortner/webdrivers/releases)
- [Changelog](https://github.com/titusfortner/webdrivers/blob/master/CHANGELOG.md)
- [Commits](https://github.com/titusfortner/webdrivers/compare/v3.9.1...v4.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 13:40:57 -04:00
dependabot-preview[bot]
0e27320b3a Bump spring from 2.0.2 to 2.1.0 (#3197) [ci skip]
Bumps [spring](https://github.com/rails/spring) from 2.0.2 to 2.1.0.
- [Release notes](https://github.com/rails/spring/releases)
- [Changelog](https://github.com/rails/spring/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/spring/compare/v2.0.2...v2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 13:37:36 -04:00
Tyler VanBlargan
f05cdd3b72 Add Date to Link Liquid Tag (#3126) [ci ski] 2019-06-17 12:14:39 -04:00