Commit graph

160 commits

Author SHA1 Message Date
Mac Siri
4bc9020956 Implement comment preview feature (#223)
* Create #preview endpoint for CommentController

* Create comment preview button WIP

* Implement preview feature for reply comment W

* Style preview button CSS WIP

* Style preview button CSS WIP

* Tweak markdown toggle logic and add styling

* Update comment feature spec

* Add error handling for comment preview & fix lint

* Extract handleCommentPreview into it's own file

* Adjust functionality for comment preview [WIP]

* Modify comment preview functionality and CSS

* Adjust code style based on linter
2018-04-24 14:30:52 -04:00
Nick Taylor
21b24f12fe Enabled source maps for local front-end development. (#225) 2018-04-23 13:49:02 -04:00
Ben Halpern
1d1f4036fc
Update email subjects split test (#221) 2018-04-19 14:07:18 -04:00
Ben Halpern
bbeed70ada
Add AMA to main sidebar (#219) 2018-04-18 15:17:05 -04:00
Mac Siri
02ab21726d Create "invalid token" page for EmailSubscriptionController (#218)
* Update email-unsubscription expiration to 31 days

* Create invalid_token template

* Fix lint
2018-04-18 13:19:08 -04:00
Jess Lee
c185ff28d5 Update twitter share copy (#217)
* Update twitter share copy

* remove space

* fix typo
2018-04-17 17:33:38 -07:00
Mac Siri
18f0003187 Use JSON instead of FormData for comment-creation (#216)
* Use JSON instead of FormData for comment-creation

* Fix lint
2018-04-17 17:32:45 -07:00
Mac Siri
0f35939906 Update chat app's features (#204)
* Update chat.scss --skip-ci

* Fix height issue

* Add highlighting

* Implement bannged user handling for chat

* Add scroll obsever

* Limit initial messages load count & max messages

* Add new message alert when scrolled

* Add link to usernames in chat

* Implement channel clearing feature

* Update parserOptions

* Implement banning feature for chat app WIP

* Add policy for ChatChannelsController

* Fix arugment error

* Update user_not_authorized to handle JSON request

* Update specs for updated user_not_authorized

* Update font-weight for windows os
2018-04-16 13:20:12 -07:00
Ben Halpern
610ae3da22
Fix home page login buttons (#209) 2018-04-13 19:14:36 -07:00
Andy Zhao
12adea7b83 Andy/misc/small adjustments (#208)
* Fix bad user_id error handling

* Remove spam user from index and remove old path
2018-04-13 19:09:02 -07:00
Ben Halpern
936a724ead
Update sidebar to add links and challenge (#207)
* Update sidebar to add links and challenge

* Add link on latest podcast sidebar header

* Add hover underline to sidebar widget links
2018-04-13 13:12:35 -07:00
Andy Zhao
db4b7caa0e Andy/misc/add tests for tag edit (#205)
* Redirect non logged in users

* Explictly return true when successfully updated

* Add tests for edit and update actions for tags
2018-04-12 15:12:38 -07:00
Ben Halpern
80de5a96a8
Modify copy and style of comment signin cta (#202) 2018-04-11 15:17:12 -07:00
Andy Zhao
073e5444ac Add tag moderation feature (#201)
* Fix edge case for tag admin update

* Change single quotes to double quotes

* Add MVP of tag edit page

* Update rubocop version

* Use actual hex colors since vars broke

* Add enabling tag moderators via admin panel

* Remove unused boolean and variables

* Add a description for scholars

* Remove unintended method

* Update auth to work correctly

* Update boolean properly
2018-04-11 15:16:49 -07:00
Jess Lee
08c24609b1 add requirements to attend workshop (#200) 2018-04-11 13:00:46 -07:00
Mac Siri
84122959bf Update unsubscribed page's copy and css (#199)
* Update unsubscribed page's copy and css

* Create view spec for email_subscriptions/unsubscribe

* Update unsubscribed's page copy

* Prevent search-engine crawlers
2018-04-10 15:02:20 -07:00
Mac Siri
0ea3f38dbf Implement one-click-unsubscribe (#192)
* Implement one-click-unsubscribe feature WIP

* Adjust email subscription page's css

* Add mobile scss

* Apply subscription logic to other email type

* Add back default email footer

* Create EmailSubscriptions request spec
2018-04-09 14:05:45 -07:00
Nick Taylor
d67c2437bc Dx/add prettier code (#188)
* Added prettier for front-end code formatting.

* Prettier runs on JSX too now

Modified supported extensions for running prettier.

* Added some documentation in the README about prettier, husky and lint-staged.

* package-lock.json updated.

* Keep lint-staged package-manager agnostic (#196)

* Remove code-breaking comma
2018-04-09 14:05:18 -07:00
Andy Zhao
f0b3e65ca4 Verify CSRF token for reads_controller (#184) 2018-04-06 08:35:57 -07:00
Ben Halpern
02cff623e4
Adjust non-tag state for onboarding suggestions (#190)
* Change onboarding limit

* Adjust non-tag state for onboarding suggestions
2018-04-06 08:35:05 -07:00
Andy Zhao
cd26bc0223 Remove invalid emoji (#185) 2018-04-05 14:19:45 -07:00
Ben Halpern
61c0a4cdaa
Change onboarding limit (#186) 2018-04-05 14:17:01 -07:00
Andy Zhao
deb63ab643 Add Save Articles Page to Onboarding (#182)
* Add MVP of onboarding articles

* Lint and fix unfollow all button bug

* Update onboarding tests

* Fix typo and adjust when saveAll request gets sent

* Set default to always save all articles

* Fix when request is sent for follows/saves

* Check for article length when for initial request

* Add a loading indicator for follows page

* Prevent multiple follow/save requests

* Update tests

* Add some hover and click effects

* Adjust onboarding test and suggested articles
2018-04-05 11:41:28 -07:00
Mac Siri
1bf80860ed Add Skylight's Performance badge to README (#179) 2018-04-04 16:13:47 -07:00
Mac Siri
8003191a4e Create Chat app (#175)
* Setup Pusher gem

* Create ChatChannel and Message model

* Create ChatChannelController

* Add back fix-db-schema-conflicts gem

* Add pusher-js package

* Add validations on Message & ChatChannel models

* Update Route

* Create MessageController

* Update ChatChannelController

* Create Chat app WIP

* Extract messenger render to Message Component

* Implement live chat WIP

* Implement live chat WIP (2)

* Add style and scrollToBottom feature for chat

* Create getUserDataAndCsrfToken function

* Add feature toggle to the new live chat

* Clean up ChatChannelsController & create spec

* Update ChatChannel spec

* Update Message spec

* Create MessagesController spec & refactor

* Clean up Chat app

* Fix lint

* Add character limit to Message
2018-04-04 14:19:57 -07:00
Jess Lee
943c3b392f Jess/update sponsors page (#177)
* add link to community sponsors

* update sponsor copy and logos
2018-04-04 09:03:12 -07:00
Andy Zhao
8bedbcb501 Fix typo (#174) 2018-04-03 19:32:26 -07:00
Ben Halpern
9be7516435 Modify min height for sponsor images 2018-04-03 13:13:54 -07:00
Ben Halpern
d88cdf7690 Merge branch 'master' of github.com:thepracticaldev/dev.to_core 2018-04-03 07:54:33 -07:00
Ben Halpern
403ff6b45c
Add comment join CTA (#168) 2018-04-02 17:52:17 -04:00
Ben Halpern
05255d7566 Add comment join CTA 2018-04-02 14:41:03 -07:00
Ben Halpern
815cf1fddb
Add featured true to test (#167)
* Add sponsors and a couple small changes

* Add featured true to test
2018-04-02 15:24:47 -04:00
Ben Halpern
27bc174753
Add sponsors and a couple small changes (#166) 2018-04-02 14:47:34 -04:00
Ben Halpern
b4695151a8
Add featured clause to email logic for non-following (#163)
* Change loop in email_digest to find_each

* Add featured clause to email logic for non-following
2018-03-30 12:18:24 -04:00
Ben Halpern
ae7b8efc8b
Change loop in email_digest to find_each (#162) 2018-03-30 11:58:00 -04:00
Andy Zhao
7c843ba354 Prevent Less than 1 day old accounts from Following Other Users (#159)
* Show empty array of users for potential spammers

* Use user columns for better accuracy and perf

* Use user instead of identity for flagging

* Fix boolean

* Add page skipping logic for young accounts

* Fix test and show team to follow for spammers

* Fix broken link

* Remove page skip logic for back button
2018-03-29 17:12:30 -04:00
Ben Halpern
c8ae0d08c3
Modify digest email copy and add rescue (#161)
* Modify digest email copy

* Rescue failure in digest email
2018-03-29 17:10:25 -04:00
Ben Halpern
ac9713b4ce
Adjust email digest copy and subject (#160)
* Adjust email copy in digest

* Adjust email digest subject
2018-03-28 18:14:55 -04:00
Ben Halpern
ca9ff7b1b8
Change email deliverer name for digest (#158)
* Modify dev digest email copy/style

* Change email deliverer name for digest
2018-03-28 16:23:26 -04:00
Ben Halpern
5f44bb200f
Modify dev digest email copy/style (#157) 2018-03-28 16:19:01 -04:00
Ben Halpern
4f1c771b55
Modify fresh date to be a few days ago rather than a month ago (#154) 2018-03-28 15:51:14 -04:00
Mac Siri
5f1bcf15a4 Improve RssReader's nbsp parsing (#155) 2018-03-28 15:48:56 -04:00
Ben Halpern
4fa675d792
Update email logic to not get own articles (#153)
* Add where published true clause in email logic

* Update email logic to not get own articles

* Customize email digest subject
2018-03-27 16:18:29 -04:00
Ben Halpern
a06b907536
Add where published true clause in email logic (#152) 2018-03-27 15:55:43 -04:00
Ben Halpern
99fd30fa25
Modify email digest and create rake task (#151) 2018-03-27 15:21:59 -04:00
Mac Siri
9d32af7b6c Implement periodic email digest (#123)
* Create EmailDigest WIP

* Add email_digest_periodic to User model

* Add email digest setting to notification

* Draft thoughts (?)  WIP

* Implement EmailDigest's features

* Remove hard-coded email digest vars

* Create spec for EmailDigest

* Fix something

* Temp work

* Run migration & Yarn

* Move email logic out of EmailDigest

* Improve email logic

* Improve EmailLogic'specs

* Update copy

* Change positive_reactions_count limit

For non-followed articles we should have a higher limit. So this change modifies that.
2018-03-27 13:29:08 -04:00
Ben Halpern
c1b0d08c59
Update follow suggestions logic and add taggable to users (#147) 2018-03-26 13:14:24 -04:00
Ben Halpern
760e78377f
Add reaction CTA (hidden by default) (#146) 2018-03-26 12:20:07 -04:00
Nick Taylor
6a8df8c8dd Add (P)react Storybook. (#142) 2018-03-26 11:56:32 -04:00
Ben Halpern
447a134604
Authenticate users first in /dashboard (#145) 2018-03-26 11:50:16 -04:00