Commit graph

1783 commits

Author SHA1 Message Date
Bolarinwa Balogun
33d82a2c63 Allow emoji in pinned repo description (#3663) 2019-08-09 14:20:00 -04:00
Mac Siri
3b32b29937 Update core API endpoints to support access_token (#3644)
* Update specs for doorkeeper test

* Add bang

* Create #authenticate

* Create /api/articles/ endpoint

* Update specs

* Update me.json.jbuilder

* Fix typo and spacing

* Support pagination for #me

* Update #authenticate! to support cookies

* Make per_page a param

* Disable method-complexity check

* Enable refresh_token

* Create /api/users/me endpoint
2019-08-08 15:55:23 -03:00
Михаил Проказин
84df7e51f4 Fix comments overlap bug on IE and Edge (#3553) [ci skip] 2019-08-08 12:25:47 -04:00
Bolarinwa Balogun
4dd90c5dd1 Fix upload overlap with editor/help page (#3640)
* Fix upload overlap with editor/help page

* Update test snapshot
2019-08-07 15:35:28 -04:00
Bolarinwa Balogun
f1492fa2bd Resolve error with code blocks in numbered lists (#3633) 2019-08-07 10:37:59 -04:00
raquelcps
b37522a45c Allow CodePen usernames to be up to 30 characters long (#3592) [ci skip] 2019-08-06 16:41:00 -04:00
Bolarinwa Balogun
eb132f3dc2 Improve Error Message for malformed Github Repo Links (#3608)
* Improve Error Message for malformed Github Repo Links

* Add test
2019-08-06 10:39:49 -04:00
5358533139 Add hackers.town to allowed Mastodon instances (#3642) 2019-08-06 10:37:35 -04:00
Jess Lee
67b044da19 Update content policy and faqs about sponsorship (#3634)
* add affiliate link disclosure to content policy

* point ppl to partnerships page instead of peters email

* update broken licensing link
2019-08-05 16:41:17 -04:00
rhymes
b6b450747e Re-enable hello dev in console (#3615) [ci skip] 2019-08-05 15:37:30 -04:00
rhymes
4689cdd266 Collection: remove optional user and add tests (#3383) 2019-08-02 10:15:04 -04:00
Mac Siri
9a2c856dd4
Update Complexity linters (#3507) [ci skip] 2019-08-01 16:38:27 -04:00
Anna Buianova
f9da88b006 Moved send_mention_notification to ActiveJob (#3566) 2019-08-01 16:35:25 -04:00
rhymes
1c2ff71de8 Fix podcasts episodes surrogate key and add "/podcasts" (#3577) 2019-08-01 12:14:25 -04:00
Anna Buianova
fabaeb5461 Introduced published field to podcasts (#3593)
* Published field for podcasts

* Add podcasts migration

* More specs for podcasts availability

* Show published in podcasts internal

* Update schema.rb with db:migrate
2019-08-01 09:29:13 -04:00
Andy Zhao
96449fcc8f Add organization membership functionality to internal (#3541) 2019-07-31 14:38:36 -04:00
João Pedro Raskopf
5d13752e34 Show article edit date in dashboard (#3325) 2019-07-31 14:13:24 -04:00
Ben Halpern
5d380f93cb
Track success of DEV Shop ads (#3589)
* Add basic display ad event tracking

* Finalize client-side eventlistening functionality
2019-07-31 13:44:47 -04:00
Mac Siri
3071ac8c76 Implement Doorkeeper gem (#3504)
* Add doorkeeper gem

* Generate files with Doorkeeper's generator

* Create Doorkeeper tables

* Add new associations to User

* Update associations

* Remove confusing schemas

* Change oauth2_provider name
2019-07-31 10:30:58 -04:00
Ben Halpern
b837f5b43d
Add more partnership pricing info (#3585) 2019-07-30 22:10:54 -04:00
rhymes
816c062ea0 Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
Mazen Touati
bb6fe4495a Escape HTML in the notifications view (#3243) 2019-07-30 14:24:23 -04:00
rhymes
8f5706fcc1 Remove all old membership code, see 97040ab6 (#3575) 2019-07-30 12:33:50 -04:00
dependabot-preview[bot]
653b74b39b Bump feedjira from 2.2.0 to 3.0.0 (#3560)
* Bump feedjira from 2.2.0 to 3.0.0

Bumps [feedjira](https://github.com/feedjira/feedjira) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/feedjira/feedjira/releases)
- [Changelog](https://github.com/feedjira/feedjira/blob/master/CHANGELOG.md)
- [Commits](https://github.com/feedjira/feedjira/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update Feedjira's usage of parse
2019-07-30 10:10:56 -04:00
Bolarinwa Balogun
7f125f18df Fix Video Duration to include hours (#3572) 2019-07-30 09:10:49 -04:00
Anna Buianova
f5709ce2d8 Fix failing algolia jobs (#3578)
* Fix algolia sync when destroying comments

* Fix algolia jobs when destroying a user
2019-07-30 08:47:40 -04:00
Ben Halpern
710c1d9e7b
Allow for the sending of arbitrary broadcasts (#3569) 2019-07-29 17:10:49 -04:00
Mario See
36535e546d Listing Dashboard: Handle expired listings (#3442)
* wip filter active and expired listings

* add published attribute to listings json

* add expired class to listings row

* filter through state

* make span button tabbable

* remove unused state

* update snapshot test

* add indicator and styles for expired

* linting errors

* clean up link

* remove function argument

* Update listingDashboard snapshot
2019-07-29 12:42:32 -04:00
Mario See
197cd562ed Bump organization listings with organization credits (#3489)
* add org to update listing if bumping

* add credits redirect

* remove unnecessary auth

* fix auth and separate transaction

* update spec to match additional bump logic
2019-07-29 11:57:15 -04:00
Bolarinwa Balogun
b21a7c9230 Fix out of place clipboard-copy icon (#3551) [ci skip] 2019-07-29 10:27:18 -04:00
Ben Halpern
ee00b460bf Add getunopenedchatchannels to onboardingredirect (#3565) 2019-07-29 09:33:36 -04:00
Yelena Gruner
a135076f62 Added overflow-x: auto to comments.scss (#3552) [ci skip] 2019-07-29 09:16:34 -04:00
cyrillefr
fb1915c1be Move delayed algoliasearch tasks to Active Jobs (#3486)
- refactor calls to use built-in algolia Active Job
  - add spec
2019-07-29 08:58:27 -04:00
Anna Buianova
3de1bdad02 Podcast ownership (#3546)
* Podcast#admins

* Start with /internal/podcasts

* Adding and removing podcast admin roles

* Improve podcasts internal section

* Fix podcast updating

* More internal podcasts specs

* Podcasts internal link
2019-07-29 08:32:49 -04:00
Andy Zhao
9f34dcd0eb Make window.currentUser available globally (#3550) 2019-07-26 19:26:47 -04:00
Ben Halpern
640ada4948
Tiny adjustments to copy and functionality of onboarding (#3549) 2019-07-26 16:56:44 -04:00
Ali Spittel
52c60ce37e Feature/refactored onboarding (#3333)
* set up refactored onboarding

* create onboarding page

* add in first slide and change slide functionality

* fix test suite

* profile refactor

* profile refactor

* refactor to api

* add checkbox fields

* add checkbox fields

* remove puts

* add basic css

* add styling

* add redirect

* hide back and next at first and last slides

* test refactored onboarding

* test refactored onboarding

* remove article edits

* Fix schema

* Add deleted file back in

* Add default value for checked_t&c column

* Adjust HTML structure to keep nav buttons in place

* Fix ESLint issues on Onboarding.jsx file

* Handling for undefined or empty followedTags on getUserTags

* Fix codeclimate issues

* Fix codeclimate issues

* Fix more codeclimate issues

* Fix more codeclimate issues

* Update Onboarding snapshots

* Uncheck the CoC and T&C checkboxes on render

* Update snapshots

* Return false instead of raising error

* Update spec to use new onboarding

* Redirect to onboarding if haven't seen it yet

* Prevent redirect to onboarding from /signout_confirm

* Use assign_attributes instead of saving twice

* Move COC and T&C checkbox page to second slide

* Add 'go back to original page' functionality

* Reuse ready prototype logic

* Keep track of the last visited onboarding page

* Fix email subscription bug

* Fix overflow issue for tags page

* Remove height to prevent page container scrolling

* Check for CoC and T&C for displaying onboarding

* Add InstantClick redirect and preserve referrer in client

* Fix async update + check by using localStorage

* Turn off onboarding for tests

* Finalize design for onboarding

* Finalize design for onboarding

* Make bulk follows during onboarding

* Fix bulk follow test
2019-07-26 15:53:32 -04:00
Leonel Elimpe
6cc0d125b5 Remove duplicate css property (#3543) [ci skip] 2019-07-26 13:34:27 -04:00
Anna Buianova
7c1917f5f7 Don't hide podcasts if they have reachable episodes (#3532)
* Don't hide podcasts if they have reachable episodes
Recheck episodes' reachability after the podcast status is set to
unreachable

* Update db/schema.rb

* Fix GetEpisodesJob specs

* Fix stories spec

* Episodes are reachable even if the podcast is unreachable

* Improve the Podcast.reachable query

* Fix podcasts root page spec

* Add index concurrently
2019-07-26 11:33:31 -04:00
Andy Zhao
0133cf1d81 Refactor the Spotify playlist option (#3539) 2019-07-25 16:14:12 -04:00
HKrogstie
2f9e581098 Remove double string escape by removing stip_tags from title (#3531)
* Remove double string escape by removing stip_tags from title

The field is escaped in views/articles/_liquid.html.erb

* Use sanitize for article title in liquid tag spec, add test

* Fix wrong comments

* Add tag to see that they are kept through rendering of liquid tags

* Fix error in test

* Try hack for sanitizing the way rails does it

* Use CGI.escapeHTML to keep tags in liquid tag link titles
2019-07-24 20:48:26 -04:00
Haseeb Elahi
33cb8050e7 Improve milestone notification's language (#3533) [ci skip] 2019-07-24 12:03:11 -04:00
rhymes
1e72749cc0 Remove unnecessary pluck calls (#3534) [ci skip] 2019-07-24 12:01:09 -04:00
Kitten King
6290451273 Fix Typos (#3510) 2019-07-22 12:56:48 -04:00
Andy Zhao
e604bf729c Use each instead of find_each to preserve order (#3519) 2019-07-22 11:24:57 -04:00
Mario See
ed35ab71a5 Open "buy credits" link in new tab in creating listings (#3506)
* open in new tab

* add no opener and no referrer rel to links opening in new tab
2019-07-22 08:08:36 -07:00
Anna Buianova
95a9e13922 Remove logic relying on old podcast status (#3505) 2019-07-19 09:30:51 -04:00
Ali GOREN
36189e94af Add share to hacker news link (#3297) [ci skip] 2019-07-18 11:30:39 -04:00
Anna Buianova
445bb0952c Open a page in a new tab w/o warning when playing a podcast #2958 (#3499) 2019-07-18 09:51:08 -04:00
Andy Zhao
33302d9a0d Use each instead of find_each to keep order (#3501) 2019-07-17 17:01:11 -04:00