Commit graph

1137 commits

Author SHA1 Message Date
Andrew Bone
d387f1a35f Add alt attributes for landing page images (#1272)
* Add alt tag

`alt` tag is blank at @Zhao-Andy's request

* Added alt tag

`alt` tag is blank at @Zhao-Andy's request

* Added alt tag

Added `alt` tag for a11y compliance
2018-12-07 12:24:33 -05:00
Conlin Durbin
121d0b1561 Add "radical.town" to Mastodon list (#1279) 2018-12-07 11:56:34 -05:00
Tomas Zemanovic
01a334735f Update badges.html.erb (#1266)
updated the Font Awesome badge accordingly to their page
2018-12-07 10:33:07 -05:00
Anna Buyanova
7b1c4084a8 Basic feature specs for the stories (#1269)
* Added stories feature specs

* Structure feature specs

* Spec for the articles by tag page

* Disable example length for feature specs

* Spec for clicking "week" button on the tag page
2018-12-07 10:32:38 -05:00
Andy Zhao
fbe586497b Synchronously bust cache after save for comments (#1275) 2018-12-07 10:16:46 -05:00
Nick Taylor
86e55c2b6d Added toot.cafe to Mastodon whitelist (#1268) 2018-12-06 14:08:55 -05:00
Jess Lee
f96bc7c6f3 Revert banisher (#1274)
* remove stalebot from milestone issues

* simplify banisher
2018-12-06 13:44:53 -05:00
Anna Buyanova
9cb4eea43e Update rubocop_todo (#1270) [ci skip] 2018-12-06 08:03:37 -05:00
Ben Halpern
20c237d1be
Fix css z-index style bug on series indicator (#1265) 2018-12-05 15:12:25 -05:00
Ben Halpern
e0d1d749fc
Various internal functionality adjustments (#1264) 2018-12-05 13:28:46 -05:00
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