Oskar Janusz
39daa21add
Update Copy for Orgs Call-to-action Box ( #11534 )
2020-11-23 10:15:34 +01:00
Marcy Sutton
b9ae58816f
Accessibility: initial onboarding fixes ( #11408 )
...
Co-authored-by: ludwiczakpawel <ludwiczakpawel@gmail.com>
2020-11-20 11:13:39 -05:00
Molly Struve
e454772128
Update trusted role email Subject ( #11519 )
2020-11-20 09:54:21 -06:00
Mac Siri
07287fa2bb
Replace podcast bar helpers with image_tag ( #11502 )
2020-11-20 09:45:56 -05:00
Molly Struve
a07070e8bc
Update copy and links in Mod Sidebar ( #11507 )
2020-11-19 19:15:04 -06:00
Andy Zhao
827c9aa77c
Fix Facebook Login profile image download failure ( #11478 )
...
* Send a new request and use link in response for profile img
* Use fallback option and make method private
* Refactor and use constant template string
* Stub image_url method for tests
* Fix tests and mock response object properly
* Fix tests and mock response object properly
* Stub response for tests
* Refactor a bit and move into helper method
* Undo everything I did. today I will watch facebook burn.
* Use more foolproof string to gsub
2020-11-19 16:18:09 -05:00
Molly Struve
cd0b90c67b
Update Trusted User Email Copy ( #11505 )
2020-11-19 14:54:06 -06:00
Ben Halpern
4ecb7121e8
Fix menu dropdown disable issue ( #11498 )
...
* Fix menu dropdown disable issue
* Initial base work
* Remove wrongfully-included files
2020-11-19 13:55:29 -05:00
Ben Halpern
c837834d6a
Remove under-used growth tab ( #11495 )
2020-11-19 10:53:36 -05:00
Jacob Herrington
77a35b378f
Fix seed values for ProfileFields ( #11481 )
...
These were all defaulting to "left_sidebar" which interfered with my
work some and doesn't really reflect how these will probably be used.
2020-11-19 09:13:49 -06:00
Manasa
b015690f4f
Podcast ownership join table (MLH Fellowship #81 ) ( #11410 )
...
* added podcast_ownership route
* added podcast_ownership table
* added podcast_ownership controller and pundit policy
* fixed codeclimate
* removed controller and pundit policy
* codeclimate
* codeclimate
* schema.rb
* schema.rb
* schema.rb
* user.rb
* made the suggested changes
* added validations
* fixed build error
* changed name to owned_podcasts
* added validation and tests
* added tests
* added tests
* changed spec
* added factory
* added factory
* merge conflict
* factory
* factory
* factory
* modified spec file
* modified spec file
* fix build error
* added class_name
* adjusted m2m relations
* made suggested changes
* fixed build error
* added subject
* schema
* ran migration
* removed index:true from singular fields
* changed schema file
* set index: false
2020-11-19 12:41:17 +01:00
Jacob Herrington
24b47029dd
Fix comment phrasing ( #11480 )
2020-11-18 21:52:33 -06:00
ludwiczakpawel
70706d0a62
Comments UI update ( #11283 )
...
* tooltips 1.0.1
* tooltips 1.0.1
* init
* .
* drop not needed files
* .
* init
* init
* .
* comments
* border
* missing bits
* build comment JS
* .
* .
* specs
* sloan avatar fix
* bunch of fixes
* specs and fixes
* specs
* .
* swap order of links
* contrast
* js for dropdown
* icons
* op-author
* three dots icon
* reverts
* test: capybara- make sure that we click the dropdown before clicking on edit
* permalink --> link
* tiny fixes
* aria-label on form
* proper alt on user's avatar
* aria has popup
* use UL > LI instead of DIV
* add aria-labels to dropdown items
* another aria-label
* better links: nav
* contrast
Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
2020-11-18 18:21:19 -05:00
Molly Struve
fd8f83dc7d
Feature:Backend Username Search Endpoint for Mention Completion ( #11479 )
...
* Feature:Backend Username Search Endpoint for Mention Completion
* ensure user is authenticated to use usernames endpoint
* update spec with authaa
2020-11-18 16:43:59 -06:00
Akash Srivastava
2ee5ea69bd
Added published date as editable in admin articles list/show ( #11124 )
...
* Added published date as editable in admin articles list/show
* Added requests spec for articles published date update
2020-11-18 10:40:13 -06:00
Robin Gagnon
4fabc3a5e6
fix: Add hidden navigation link to article HTML ( #11465 )
2020-11-18 14:50:19 +01:00
Nick Taylor
8fabccec4e
Add Preact dev tools to development bundles ( #11459 )
...
* Now Preact dev tools are injected into development bundles.
* Updated frontend debugging documentation.
* Updated frontend debugging documentation wording.
2020-11-18 14:20:58 +01:00
rhymes
cbc461a850
Refactor RssReader and Feeds::Import common parts: take 1 ( #11412 )
...
* Extract Feeds::CheckMediumReplyItem service
* Extract Feeds::CheckItemPreviouslyImported
* Clarified comment on Feeds::CheckItemMediumReply (thanks @maestromac)
* Refactor a bit to be more Rubeyeyey
2020-11-18 14:17:53 +01:00
Nick Taylor
ed7f4561e3
Fixed <Snackbar /> component displayName property. ( #11460 )
2020-11-18 06:41:00 -05:00
Vaidehi Joshi
59ea42a372
Add community_emoji to SiteConfig ( #11450 )
...
* Add optional community_emoji to SiteConfig
* Remove hardcoded emojis, favor community_emoji instead
* Remove remaining hardcoded emojis
* Validate community_emoji field when updated
2020-11-17 14:02:04 -08:00
Fernando Valverde
449cf89737
Uses template literals to more clearly interpolate a complex string in buildArticleHTML.js ( #11457 )
2020-11-17 14:45:32 -06:00
Ben Halpern
f5670e6fa2
Add username to profile more info button ( #11451 )
...
* Add username to profile more info button
* Update spec/requests/user/user_profile_spec.rb
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
Co-authored-by: rhymes <rhymes@hey.com>
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
2020-11-17 10:07:47 -05:00
Ben Halpern
f3a69bbd84
Allow Forems to specify which domains are allowed for registration ( #11442 )
...
* Allow authors to restrict which emails can sign up
* Add form and tests
* Check for email presence in allowed email flow
* Fix test domains
* Fix codeclimate issue
2020-11-17 08:43:46 -05:00
Molly Struve
6aa41bfba2
Optimization:Only Check Past Day for DataUpdateScript failures ( #11448 )
2020-11-17 06:39:58 -06:00
Molly Struve
cf619caf70
Refactor: Remove more_tag_weight_more_random_experiment ( #11447 )
2020-11-16 15:48:45 -06:00
Ben Halpern
eaf3403091
Fix document.body.getElementById is not a function ( #11446 )
2020-11-16 16:21:52 -05:00
rhymes
f9506affb5
Use faster JS selection methods ( #11409 )
...
* Add JS tips section to frontend documentation
* Replace document.getElementsByTagName('body') with document.body
* Replace querySelectorAll with faster selecting methods where appropriate
* Replace querySelector with faster selecting methods where appropriate
* Fix typo
* Fix forEach and getElementsByClassName
* Change querySelector* to faster methods in erb files
* Change querySelector* to faster methods in ruby files
* Fix runkit tag
* Various fixes
* Update app/assets/javascripts/initializers/initializeEllipsisMenu.js
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
* Update app/assets/javascripts/utilities/slideSidebar.js
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
* Commenting out flaky spec
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2020-11-16 17:35:50 +01:00
Rafi
eab507604d
Removing data-testid from Article component ( #10249 )
2020-11-16 10:23:44 -05:00
rhymes
700c62c416
Fix small ERB linting issues ( #11438 )
...
* Fix Layout/LineLength
* Fix Style/StringConcatenation and Lint/FloatComparison
* Fix Lint/DuplicateHashKey
2020-11-16 16:15:37 +01:00
Damla Köksal
a7dd143064
Fixed the scroll bar problem in Safari ( #11387 )
...
* Fixed the scroll bar problem in Safari
* #11387 requested changes done
2020-11-16 12:48:51 +01:00
irmela
9af120561c
Make markup for dashboard ellipsis menu more consistent ( #10764 )
...
* Make markup for dashboard ellipsis menu more consistent
* Rename js-dashboard-row-more to js-ellipsis-menu
2020-11-15 14:26:37 +01:00
rhymes
910f79e04e
Remove wrong datadog metric in Feeds::Import ( #11405 )
2020-11-13 16:11:02 -05:00
Jacob Herrington
94fe355dae
Add system spec for profile fields ( #11398 )
...
* Add system spec for profile fields
* Use FeatureFlag wrapper over Flipper
2020-11-13 14:51:42 -06:00
Andy Zhao
97e6c2295d
Filter by tags of reading list items not tags you follow ( #11394 )
...
* Filter by tags of reading list items not tags followed
* Sort the reading list tags
2020-11-13 10:45:32 -05:00
Ben Halpern
992dc54b0f
Simplify admin config permissions and add links to help pages ( #11362 )
...
* Simplify admin and add links to help pages
* Add line
* Add line
* Update app/views/layouts/admin.html.erb
* Update app/controllers/admin/configs_controller.rb
* Move svg to own file
2020-11-13 09:56:13 -05:00
rhymes
33dccc7997
Move badges_area template in proper place and refactor the partial ( #11400 )
...
* Move badges_area template in proper place and refactor the partial
* Fix badge show routing
2020-11-13 14:23:50 +01:00
Alex
99c3fb276d
Auto generate mascot accounts ( #11380 )
...
* Auto generate mascot accounts
* Refactor to remove extra query
* Update registration specs
* Fix search query spec
* Fix reaction specs
* Create with bang and raise error
2020-11-12 16:33:16 -05:00
ludwiczakpawel
2225fe9999
Footer UI update ( #11337 )
...
* tooltips 1.0.1
* tooltips 1.0.1
* footer redesign
* missed spots
* color
* revert class renaming
* spacing fix
* spacing fix
* Update app/views/layouts/_footer.html.erb
Co-authored-by: Michael Kohl <me@citizen428.net>
Co-authored-by: Michael Kohl <me@citizen428.net>
2020-11-12 15:11:08 -05:00
Julianna Tetreault
0ee74d1e26
Validate Image URLs in SiteConfig ( #11299 ) [deploy]
...
* Adds image URL validation to image URLs in configs_controller.rb
* Adds additional image URLs to #valid_image_url in configs_controller.rb
* Adds tests around valid image URLs to configs_spec.rb
* WIP: sets strict conditions for before_action
* WIP: comments out unused code for draft PR
* WIP: cleans up configs_controller.rb for draft PR review
* Renames constant to more explicit IMAGE_FIELDS in configs_controller.rb
* Removes unnecessary comments from admin/configs_spec.rb
* Checks for matching keys in params and IMAGE_FIELDS in configs_controller
* Refactors #valid_image_urls and #valid_image_url in ConfigsController (THANK U, ANDY)
* Refactors image-related code and error messages in Admin::ConfigsController
* Renames expected_image_url to invalid_image_url and removes useless test
* Fix: update the tests to contain valid image urls so that they pass the validation.
* Adjusts tests & VALID_URL regex to validate images rather than image-specific URL
* Replaces $ with \z per Rhymes suggestion and feedback
* Adds accidentally removed code
Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
2020-11-12 12:02:07 -07:00
Molly Struve
60b7572f5c
Feature:Send Alerts for Failed DataUpdateScripts to Datadog ( #11381 )
2020-11-12 10:59:54 -06:00
Ben Halpern
badefcabeb
Developer experience/security: Make dev/test blow up if current_user is used erroneously ( #11237 )
...
* Let dev/test blow up if current_user is used erroneously
* Fix logic
* Fix click-to-edit permissions
* Change test to check for new behavior
* linting
* Edit tests
* Change test
* Clean up implementation
* Update comment
* Fix instance vars
* Update app/controllers/concerns/caching_headers.rb
* Merge origin and add request_store gem
2020-11-12 11:54:23 -05:00
Molly Struve
40ecfd6f0f
Refactor:Replace Production Check with Average Metrics ( #11096 )
2020-11-12 10:03:10 -06:00
Josh Puetz
2223e5468b
Email login always on ( #11307 )
...
* Starting out
* Building away...
* Hooking buttons up
* Hook Auth Provider buttons to Array Field
* trying to fix NoNameError
* Remains InviteOnlyMode disable and tests
* Smashing remaining tasks
* Last of tasks
* add tests
* Complete specs and tests 😅
* Fix bug
* Additional guard
* pass event to functions
* Position Email Auth first
* Fix bug in Email Auth Modal
* Fix spacing issue
* Update docs for adminModal.js
* Show/hide Enabled Indicator with Enable/Undo buttons
* Complete Auth Providers functionality
* Only update `allow_email_password_registration` from admin
* Remove duplicated methods
* Some refactoring around fact that Email Login is now always on (#11382 )
* Fix merge (again!)
Co-authored-by: Arit Amana <msarit@gmail.com>
Co-authored-by: Arit Amana <32520970+msarit@users.noreply.github.com>
2020-11-12 09:32:58 -06:00
Ridhwana
178b0a32f0
Remove information route and add a temporary redirect to /about for SEO purposes ( #11373 )
...
* chore: remove information route and add redirect
* chore: update messaging
* fix: remove additional path referenced
2020-11-12 10:02:58 -05:00
ludwiczakpawel
ab34b37c49
Badges area on profile ( #11384 )
...
* tooltips 1.0.1
* tooltips 1.0.1
* badges size
* badges size
* .
* button style
* pawel messing with controllers
* math is stupid
* good boys write docs
* typos
2020-11-12 15:53:14 +01:00
ludwiczakpawel
df9ec8ccd5
Profile image loading glitch fix ( #11389 )
...
* tooltips 1.0.1
* tooltips 1.0.1
* profile image fix
* profile image fix
2020-11-12 15:52:49 +01:00
Robin Gagnon
1a3f2739f8
feat: Preload links on focus ( #11377 )
...
* feat: Preload links on focus
* Add explaining comment for link preload on focus
* Reformat comment
* Remove focus event listener removal
2020-11-12 09:16:04 -05:00
rhymes
f8f3795b88
Remove mascot from JS template for modals ( #11388 )
2020-11-12 14:58:50 +01:00
rhymes
1bb53651b0
Replace calls to Flipper with FeatureFlag ( #11386 )
2020-11-12 14:15:33 +01:00
ludwiczakpawel
de5a22ecf7
Profile UI update ( #11357 )
...
* tooltips 1.0.1
* tooltips 1.0.1
* profile layout
* fix
* whoops
* better github repos
* spec
* brining back doc, and making liitle fixes
* button placement, stats styling
* rename
2020-11-12 08:47:04 +01:00