Commit graph

1127 commits

Author SHA1 Message Date
Andy Zhao
bfcc40779a Remove some unnecessary CSS (#1263) 2018-12-05 10:39:21 -05:00
Andy Zhao
b61ac4ce16 Add guard clause to hotfix some 500s (#1258) 2018-12-05 09:56:44 -05:00
Rozie
37fc82c409 change save button background (#1261) 2018-12-05 09:56:20 -05:00
Martin Riedel
9fb2cd8d16 Add infosec.exchange to mastodon whitelist. (#1262)
* Add infosec.exchange to mastodon whitelist.

* fix codeclimate error

alignment was off;
tab instead of spaces has been used;
2018-12-05 09:55:02 -05:00
Tim Krueger
f016ee3b7f Add two German instances (#1260)
'ruhr.social' and 'chaos.social' are two mastodon instances hosted in Germany.
2018-12-05 09:11:14 -05:00
Ben Halpern
6b96201265
[WIP] Allow mods to remove tags and send user notification (#1252)
* Initial tag adjustments

* Finalize tag adjustments and tag adjustments controller

* Fix schema.rb

* Finalize tag removal logic

* Adjust edge cases/tests for tag adjustment moderation

* Adjust tag adjustments spec
2018-12-04 16:45:32 -05:00
Andrew Bone
aefec87214 Shrink bookmark icon for smaller devices (#1237)
Make the bookmark icon just slightly larger than the font size
2018-12-04 15:30:52 -05:00
Mario See
c5e9f010d4 /connect channel members profile pic fix (#1255)
* update channelDetails, its test, and snapshots

* spacing

* spacing

* spacing

* label spacing

* label spacing

* label spacing

* snapshot update

* refactor implementation

* spacing fix

* styling and small changes

channelDetails
- added small profile image to channel users
- moved "Recently Active Members" below the channel description and above the channel users

Styling
- mostly in relation to channelDetails
- Leave Channel area styled similar to deleting account (lots of red)
- created connect folder in stylesheets where _channel-detials.scss is located
- chat.scss imports _channel-details.scss

* spacing

* update testing and snapshots

* fixed functionality, tests and styling

* leave button update

* show message for empty group

* limit users in channel and show message for empty group

* remove extra period

* change limit from 12 to 11

* show members header

* hide members h3

* increase channel details user limit, increase user object profile pic index

* remove return

* add members header

* Revert "add members header"

This reverts commit 200c6a7f83e3a958cf4199ee295e6a3809249abe.

* limit to 25
2018-12-04 15:00:49 -05:00
Michael Kohl
ffd24f791e Add Mastodon URL to profile (#1137) 2018-12-04 13:24:53 -05:00
Richard Kichenama
7d79b29b6c Night/Dark mode (#1104)
*  implement night theme through css filters

* 🐛 and video

* ♻️ simplify selector
2018-12-04 13:23:25 -05:00
Ty Hopp
39fc832801 Adjust gist embed styles for readability on mobile browsers (#1251)
* Adjust gist embed styles for readability on mobile browsers

* Remove gist embed css from articles.scss

* Add gist embed css to correct gist tag scss file
2018-12-04 08:53:24 -05:00
Brett Stevenson
57f2e40379 Modify user settings notification styling (#994) 2018-12-03 19:38:22 -05:00
Mario See
8b05f6b45b connect channel details (#1247)
* update channelDetails, its test, and snapshots

* spacing

* spacing

* spacing

* label spacing

* label spacing

* label spacing

* snapshot update

* refactor implementation

* spacing fix

* styling and small changes

channelDetails
- added small profile image to channel users
- moved "Recently Active Members" below the channel description and above the channel users

Styling
- mostly in relation to channelDetails
- Leave Channel area styled similar to deleting account (lots of red)
- created connect folder in stylesheets where _channel-detials.scss is located
- chat.scss imports _channel-details.scss

* spacing

* update testing and snapshots

* fixed functionality, tests and styling

* leave button update

* show message for empty group

* limit users in channel and show message for empty group

* remove extra period

* change limit from 12 to 11

* show members header

* hide members h3
2018-12-03 19:29:38 -05:00
Jacob Herrington
6b8bc3d932 Remove redundant installation steps [skip ci] (#1148)
I feel like this instruction is redundant due to the presence of
63acd40521/bin/setup (L22)
2018-12-03 15:37:40 -05:00
Mario See
1ba9c98c5a connect channel invites (#1201)
* update channelDetails, its test, and snapshots

* spacing

* spacing

* spacing

* label spacing

* label spacing

* label spacing

* snapshot update

* refactor implementation

* spacing fix

* styling and small changes

channelDetails
- added small profile image to channel users
- moved "Recently Active Members" below the channel description and above the channel users

Styling
- mostly in relation to channelDetails
- Leave Channel area styled similar to deleting account (lots of red)
- created connect folder in stylesheets where _channel-detials.scss is located
- chat.scss imports _channel-details.scss

* spacing

* update testing and snapshots

* fixed functionality, tests and styling

* leave button update
2018-12-03 13:05:29 -05:00
Andy Zhao
92cea23fcd Fix a few notification bugs (#1232)
* Remove notifications synchronously on unpublish and destroy

* Asynchronously remove reaction notifications for article

* Remove all associated notifications when destroyed

* Fix edge case for reaction notifications

* Load new comment_box file instead of old one

* Delete legacy views

* Remove unused private declaration

* Use casecmp.zero? instead of downcase for speed, and use @user

* Add friendly error message for notifications

* Use delete all and not destroy b/c no callbacks
2018-12-03 12:35:35 -05:00
dependabot[bot]
f9c52f6700 Bump jest-fetch-mock from 1.7.5 to 2.0.1 (#1242) [ci skip]
Bumps [jest-fetch-mock](https://github.com/jefflau/jest-fetch-mock) from 1.7.5 to 2.0.1.
- [Release notes](https://github.com/jefflau/jest-fetch-mock/releases)
- [Commits](https://github.com/jefflau/jest-fetch-mock/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-03 12:29:20 -05:00
dependabot[bot]
1bc8eae36a Bump prettier from 1.15.2 to 1.15.3 (#1241) [ci skip]
Bumps [prettier](https://github.com/prettier/prettier) from 1.15.2 to 1.15.3.
- [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.15.2...1.15.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-03 12:29:00 -05:00
dependabot[bot]
5c8597d781 Bump pry from 0.11.3 to 0.12.2 (#1243) [ci skip]
Bumps [pry](https://github.com/pry/pry) from 0.11.3 to 0.12.2.
- [Release notes](https://github.com/pry/pry/releases)
- [Changelog](https://github.com/pry/pry/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pry/pry/compare/v0.11.3...v0.12.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-03 12:28:32 -05:00
dependabot[bot]
9444e6d943 Bump bourbon from 1.4.0 to 5.1.0 (#1244) [ci skip]
Bumps [bourbon](https://github.com/thoughtbot/bourbon) from 1.4.0 to 5.1.0.
- [Release notes](https://github.com/thoughtbot/bourbon/releases)
- [Changelog](https://github.com/thoughtbot/bourbon/blob/master/CHANGELOG.md)
- [Commits](https://github.com/thoughtbot/bourbon/compare/v1.4.0...v5.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-03 12:28:03 -05:00
dependabot[bot]
641d7f6efa Bump httparty from 0.16.0 to 0.16.3 (#1246) [ci skip]
Bumps [httparty](https://github.com/jnunemaker/httparty) from 0.16.0 to 0.16.3.
- [Release notes](https://github.com/jnunemaker/httparty/releases)
- [Changelog](https://github.com/jnunemaker/httparty/blob/master/Changelog.md)
- [Commits](https://github.com/jnunemaker/httparty/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-03 12:24:04 -05:00
Ben Halpern
f400b42e38
Add anti-follow language (#1233) 2018-11-30 18:08:51 -05:00
Ben Halpern
651ab3ce35
Add point weights for tag follows (#1229)
* Add point weights for tag follows

* Adjust num articles to initially show up on home page

* Fix schema.rb

* Adjust follow policy spec

* Adjust dashboard styling for follow points form
2018-11-30 15:36:58 -05:00
Ben Halpern
b51042f035
Fix readinglist issue (#1231) 2018-11-30 15:36:20 -05:00
Andrew Bone
f13d9e01a8 Move menu background down 8 pixels (#1227)
Fix for issues #1160 and #1213
2018-11-30 15:26:10 -05:00
Jess Lee
b7dd7d5ce0 update coc for clarity (#1224) 2018-11-30 14:23:22 -05:00
Andy Zhao
32ed3ced11 Fix raw tag (#1215)
* Fix raw tag

* Remove constant first to prevent warning
2018-11-29 15:18:24 -05:00
Jason Yu
3af90f1d0e remove punctuations in header anchor links (#1219)
* remove punctuations in header anchor links

* remove punctuations first

* added test case for punctuation headings
2018-11-29 15:16:09 -05:00
Andy Zhao
8b9aa98f64 Add retry in case sign in failed for whatever reason (#1221) 2018-11-29 13:39:48 -05:00
Ben Halpern
011e267769
Update mentor matching page (#1218)
* Update mentor matching page

* Update mentorship relationship spec
2018-11-28 19:02:47 -05:00
Andy Zhao
74e63e2aa4 Add Support Chrome and other browsers for anchor jumps (#1217)
* Support Chrome and other browsers

* Make title div always above article body

* Only show margin when figcaption is used below markdown
2018-11-28 18:37:03 -05:00
Ben Halpern
6f7e5b875f
Check if article.path in resave articles (#1216) 2018-11-28 15:53:29 -05:00
Mike Chen
7ce311834f Fix errant scroll behavior on /new when using keyboard scrolling (#1203)
Disable textarea resize and window scroll method when doing anything
that does not actually modify the textarea contents (e.g. arrow keys,
pgup/pgdn).

Fixes #1109
2018-11-28 14:57:21 -05:00
Francisco Delgado
2d4d469e86 Refactor/onboarding (#1083)
* Refactor Onboarding

- use ternary for simple if-else cases (to reduce lines of code)
- remove unecessary trailing else clause
- destructure state variables
- add a consistent return eg null when nothing is rendered
- use prevState callback when new state depends on previous state
- use switch case when toggling onboarding screens, constants easier to read imo.

* Add rest of refactor

* Remove destructure to meet 25 line minumum from codeclimate.

* Remove duplicate calls to indexOf.

* Remove duplicate calls to indexOf in handleSaveArticle.

* Refactor handleCheckUser

* Update snapshot

* Address PR review comments.

* Revert "Update snapshot"

This reverts commit e17e915286fb621ffca745b28193b7ba63dbc498.

* Update snapshot

* Add back if clause

* Update refactor
2018-11-28 10:21:26 -05:00
Christine Yen
cff6b5d589 Add Honeycomb gem and initial instrumentation (#695)
* Add basic Honeycomb initializers

* Add some basic instrumentation, capture basic IDs

* Correctly alphabetize Gemfile, embed env in dataset names

* Actually reorder Gemfile because I can read

* Add custom tracing instrumentation to RssReader

* Improve timing/tracing info in RssReader

* Even make sure Errors show up in trace if possible

* Make sure we capture this as Rails traffic

* Swap in dev/test Libhoney::Clients as appropriate

* Move context-snagging bits into lib/instrumentation.rb

* Merging Gemfile lines seems to be my Achilles heel
2018-11-28 10:08:27 -05:00
Maksim Litvinov
f2f889af77 Replace long string with array and join (#795) 2018-11-28 09:20:13 -05:00
Ben Halpern
1672098388
Removing clear notifications attempt (#1209)
* Removing clear notifications dealy

* Fix user_id issue
2018-11-27 18:29:50 -05:00
Ben Halpern
db6232adf3
Add initial ios push notifications to server (#1207)
* Add initial push notification logic for iOS

* Adjust notification form css

* Clean up schema.rb

* Add mark-all-as-read functionality for ios notifications

* Update app/models/notification.rb

Fix `find` to `find_by`

Co-Authored-By: benhalpern <bendhalpern@gmail.com>
2018-11-27 17:40:43 -05:00
dependabot[bot]
13280c24ef [Security] Bump rails from 5.1.6 to 5.1.6.1 (#1208)
Bumps [rails](https://github.com/rails/rails) from 5.1.6 to 5.1.6.1. **This update includes security fixes.**
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v5.1.6...v5.1.6.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-27 17:40:24 -05:00
Anna Buyanova
48dbe55d05 Remove database.yml from the repo (#1162)
* Remove database.yml file from the repo, fixes #478

* Update dev.to docs

* Switch to the bullet list for the database.yml docs
2018-11-27 16:42:10 -05:00
dependabot[bot]
a9a23ca79d Bump rouge from 3.2.1 to 3.3.0 (#1191) [ci skip]
Bumps [rouge](https://github.com/jneen/rouge) from 3.2.1 to 3.3.0.
- [Release notes](https://github.com/jneen/rouge/releases)
- [Changelog](https://github.com/jneen/rouge/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jneen/rouge/compare/v3.2.1...v3.3.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-27 16:41:30 -05:00
dependabot[bot]
93fb8f95ce Bump uglifier from 4.1.19 to 4.1.20 (#1193) [ci skip]
Bumps [uglifier](https://github.com/lautis/uglifier) from 4.1.19 to 4.1.20.
- [Release notes](https://github.com/lautis/uglifier/releases)
- [Changelog](https://github.com/lautis/uglifier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lautis/uglifier/compare/v4.1.19...v4.1.20)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-27 16:39:23 -05:00
dependabot[bot]
4448455555 Bump rspec-rails from 3.8.0 to 3.8.1 (#1195) [ci skip]
Bumps [rspec-rails](https://github.com/rspec/rspec-rails) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/rspec/rspec-rails/releases)
- [Changelog](https://github.com/rspec/rspec-rails/blob/master/Changelog.md)
- [Commits](https://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 13:28:13 -05:00
dependabot[bot]
5813854df4 Bump jest-fetch-mock from 1.7.4 to 1.7.5 (#1187) [ci skip]
Bumps [jest-fetch-mock](https://github.com/jefflau/jest-fetch-mock) from 1.7.4 to 1.7.5.
- [Release notes](https://github.com/jefflau/jest-fetch-mock/releases)
- [Commits](https://github.com/jefflau/jest-fetch-mock/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 13:13:27 -05:00
dependabot[bot]
10081c4719 Bump marked from 0.5.1 to 0.5.2 (#1190) [ci skip]
Bumps [marked](https://github.com/markedjs/marked) from 0.5.1 to 0.5.2.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](https://github.com/markedjs/marked/compare/v0.5.1...v0.5.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 13:06:17 -05:00
dependabot[bot]
1fd7bbd62b Bump codemirror from 5.41.0 to 5.42.0 (#1188) [ci skip]
Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.41.0 to 5.42.0.
- [Release notes](https://github.com/codemirror/CodeMirror/releases)
- [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codemirror/CodeMirror/compare/5.41.0...5.42.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 13:05:28 -05:00
dependabot[bot]
5e83a86c98 Bump husky from 1.1.4 to 1.2.0 (#1189) [ci skip]
Bumps [husky](https://github.com/typicode/husky) from 1.1.4 to 1.2.0.
- [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/v1.1.4...v1.2.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 12:57:33 -05:00
dependabot[bot]
3f6c7837ef Bump parallel_tests from 2.26.0 to 2.27.0 (#1192) [ci skip]
Bumps [parallel_tests](https://github.com/grosser/parallel_tests) from 2.26.0 to 2.27.0.
- [Release notes](https://github.com/grosser/parallel_tests/releases)
- [Commits](https://github.com/grosser/parallel_tests/compare/v2.26.0...v2.27.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 12:57:13 -05:00
dependabot[bot]
ac6e223260 Bump bullet from 5.8.1 to 5.9.0 (#1194) [ci skip]
Bumps [bullet](https://github.com/flyerhzm/bullet) from 5.8.1 to 5.9.0.
- [Release notes](https://github.com/flyerhzm/bullet/releases)
- [Changelog](https://github.com/flyerhzm/bullet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flyerhzm/bullet/compare/5.8.1...5.9.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 12:56:13 -05:00
dependabot[bot]
c6bd699f6c Bump lint-staged from 8.0.5 to 8.1.0 (#1186) [ci skip]
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 8.0.5 to 8.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v8.0.5...v8.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 12:54:05 -05:00