Ben Halpern
b3b0eafe76
Implement MVP frontend for Algolia search ( #20909 )
...
* Add proper frontend for Algolia search
* Update app/models/concerns/algolia_searchable/searchable_comment.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update app/models/concerns/algolia_searchable/searchable_article.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Fix formatting
* Fix: copy to clipboard message (#20898 )
* fix: copy to clipboard message
* chore: deletion of unused imports
* Pick winner in header field test (#20911 )
* Updated the twitter icon to X icon - solved icon issue #20356 (#20910 )
* changed the twitter icon to X icon in assets/images/twitter.svg
* Changed the twitter icon to X in assets/images/twitter.svg
* Add field test for Digest article list design (#20912 )
* Add field test for Digest article list design
* Add check for cached user
* Include cached user in select (#20913 )
* Include cached user in select
* Add tags
* update style for new follower email (#20908 )
* Fix #19037 (#20917 )
* Add alternate returns for html
* Remove console log
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Iasmim Pereira <100351576+IasmimCristina@users.noreply.github.com>
Co-authored-by: Darshan Padia <darshanpadia5@gmail.com>
Co-authored-by: Philip How <philip.j.how@gmail.com>
2024-05-06 15:20:53 -04:00
Ben Halpern
1287c343b6
Add search branding option ( #20902 )
...
* Add search branding option
* Change search test
2024-04-29 14:02:47 -04:00
Mac Siri
7890944a9d
Add AlgoliaSearchable to Comment ( #20899 )
...
* Add AlgoliaSearchable to Comment
* Improve test
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Refinement
* Fix broken spec
* Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-26 17:30:00 +00:00
Mac Siri
d5ba407629
Add AlgoliaSearchable to Article ( #20892 )
...
* Add AlgoliaSearchable to Article
* Remove comments
* Fix spec
2024-04-26 12:59:13 +00:00
Ben Halpern
7a604e8f4a
Increment Algolia search frontend ( #20891 )
...
* Increment Algolia search frontend
* Increment Algolia search frontend
* Update @cypress/code-coverage to version 3.12.36 (#20887 )
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
* Update ahoy.js to version 0.4.4 (#20889 )
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
* Add AlgoliaSearchable to Tag (#20888 )
* Add AlgoliaSearch::SearchableTag
* Refactor
* Update app/models/concerns/algolia_searchable/searchable_tag.rb
* Add AlgoliaSearchable to Podcast (#20890 )
* Create AlgoliaSearchable::SearchablePodcastEpisode
* Refactor
* Remove pre-mature methods
* Add sort replicas
---------
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Mac Siri <mac@forem.com>
2024-04-25 13:19:28 +00:00
Mac Siri
1895237c24
Add AlgoliaSearchable to Podcast ( #20890 )
...
* Create AlgoliaSearchable::SearchablePodcastEpisode
* Refactor
* Remove pre-mature methods
2024-04-24 15:14:10 +00:00
Mac Siri
755939733d
Add AlgoliaSearchable to Tag ( #20888 )
...
* Add AlgoliaSearch::SearchableTag
* Refactor
* Update app/models/concerns/algolia_searchable/searchable_tag.rb
2024-04-24 14:41:58 +00:00
Philip How
3ceb9a178a
Allow some badges to be awarded multiple times ( #20876 )
...
* Add migration, update badgeachievements model and admin view to set flag on badges
* Show multiple badges on profile
* update factory
* badge model validation
* safe navigation to badge?
* add null: false to migratrion
2024-04-23 16:33:43 -04:00
Mac Siri
c44a2dcdb0
Add AlgoliaSearchable for Organization ( #20883 )
...
* Add algolia for org
* Add test
* Remove redundant path
2024-04-23 19:35:53 +00:00
Ben Halpern
f4c48fc83b
Add new article billboard locations ( #20878 )
...
* Initial work
* Add new billboard locations
* Clean up formatting
2024-04-22 13:58:39 -04:00
Mac Siri
d587ba962d
Add AlgoliaSearchable for User ( #20869 )
...
* Add AlgoliaSearchable::SearchableUser
* Update spec
* Refactor
* Refactor
* Add more test
* Refactor
* Update seeder to clear Algolia index if it exist
* All Algolia directly in update_score
* Fix broken spec
* Remove new queue
* Account for more user statuses
* Remove unncessary test for now
2024-04-19 14:03:04 +00:00
Mac Siri
74be076907
Add Algoliasearch-rails gem ( #20866 )
...
* Add Algoliasearch-rails gem
* Remove comment
* Add specs
* Add cache gem
2024-04-16 13:45:54 +00:00
Ben Halpern
cbae624b5e
Add billboards to digest emails ( #20862 )
...
* Initial bb work
* Add billboards to digest
* Clean up tests and formatting
* Clean up tests and formatting
2024-04-15 12:01:00 -04:00
Philip How
6b8c363487
Prioritize spam label over suspended, add to async profile check ( #20790 )
...
* Prioritize spam label over suspended, add to async profile check
* fix jest
2024-03-25 10:15:35 -04:00
Ben Halpern
a30b86a025
Allow billboards to target specific pages with "fixed bottom" placement ( #20748 )
...
* Add page fixed bottom billboard
* Add page fixed bottom billboard
* Fix schema
2024-03-15 14:32:30 -04:00
Philip How
57c0078bd6
Allow admins to change reputation modifier ( #20766 )
...
* Allow admins to change reputation modifier
* locale + rubocop
2024-03-15 10:46:19 -04:00
Philip How
751e9d70d2
Show ⚠️ icon on /admin when an article is not indexed on search engines ( #20713 )
...
* Add in icon when an article is not indexed on admin
* tests
* rubocop
* rubocop
2024-03-05 21:34:20 +00:00
Ben Halpern
f88784cc35
Add configuration for admins to specify compliant email strategies ( #20663 )
...
* Add configuration for admins to specify compliant email strategies
* Add keys for test
2024-02-21 08:27:26 -08:00
Daniel M Brasil
406e3fec4d
Rremove de-indexing From Accounts With No Comments ( #20660 )
...
* remove de-indexing from accounts that have no comments
* add specs for Article#skip_indexing?
2024-02-21 10:54:02 +00:00
Ben Halpern
d8ed35a94e
Unwrap user before passing to field_test ( #20667 )
2024-02-20 16:28:52 -08:00
Ben Halpern
223fb9cbfb
Add a/b test for feed style on new users ( #20664 )
...
* Add a/b test for feed style on new users
* Add current_user check
* Adjust to not look for current_user right away
* Move field test to the right place
2024-02-20 15:43:28 -08:00
Ben Halpern
6ef9a83252
Make mobile runtime banner optional ( #20637 )
...
* Remove runtime banner
* Show/hide runtime banner setting
* Update app/views/layouts/application.html.erb
* Update app/views/layouts/application.html.erb
* Update app/views/layouts/application.html.erb
2024-02-16 10:45:41 -08:00
Ben Halpern
097057a8dc
New a/b tests for Feb 14 ( #20632 )
2024-02-14 15:57:41 -05:00
Ben Halpern
8eb41eef8e
Record billboard signup conversions ( #20629 )
...
* Record billboard signup conversions
* Update app/models/billboard_event.rb
* Modify click tracking
2024-02-14 14:18:57 -05:00
Ben Halpern
205aee8c78
Add billboard for bottom of page with allowance to delay until after reading is finished. ( #20616 )
...
* Add delayed behavior
* Add special behavior to billboards
* Fix order for test
* Test clicking outside element when close event is present
* Update app/javascript/packs/billboardAfterRenderActions.js
2024-02-13 11:56:32 -05:00
Ben Halpern
2f9769a89d
Add new sidebar billboard locations and remove legacy campaign area ( #20562 )
...
* Add new sidebar billboard locations
* Remove some specs
* Remove campaign tests
* Adjust tag-allowed billboards
* Fix up targeting functionality
* Fix sidebar third render
2024-02-08 16:55:48 +00:00
Anna Buianova
07ffb2e3be
Removed spammers from followers list ( #20603 )
...
* Remove spam and suspended users from followers list (api and dashboards)
* Fixed the api followers endpoint
* Fixed issue with follower_ids query
2024-02-08 13:57:15 +00:00
Ben Halpern
e26b27c7fa
New a/b test for Feb 5 (and add a variable too a hardcoded value) ( #20588 )
...
* Fix AudienceSegmentRefreshAllWorker args issue
* New a/b test for Feb 5 (and add a variable too a hardcoded value)
2024-02-05 15:46:03 +00:00
Anna Buianova
7125a62db0
Changed logic for hiding and displaying low-quality marker for comments based on their score ( #20581 )
...
* Specs for revised comments thresholds
* Changed thresholds for low quality comments
* Added specs for comments page
* Fixed /comments and related specs
* Reorganized code for comments trees
* Specs for podcasts episodes comments
* Refactored Comments::Tree
* Refactored Comments::Tree + added specs
* Made build_sort_query private
2024-02-05 09:27:24 -05:00
Ben Halpern
ee29318126
Add a/b test for which comments to show in feed ( #20332 )
...
* Add a/b test for which comments to show in feed
* Adjust figure
* Started at
* Move scope placement around
* Add tests for different comments_variants passed
* Fix typo
2024-01-29 12:18:50 -05:00
Ben Halpern
6d669c8a5c
Add new feed experiment for Jan 26 ( #20563 )
...
* Add a/b tests for Jan 26
* Fix feed lever
* Update config/field_test.yml
* Update config/field_test.yml
* Update app/models/articles/feeds.rb
2024-01-26 16:53:26 -05:00
Anna Buianova
a4d9b4f0d1
Hide low score comments on user profile ( #20556 )
2024-01-25 16:06:50 +00:00
Ben Halpern
d86689f63d
Allow pages to render .txt requests ( #20547 )
...
* Allow pages to render .txt requests
* Adjust routes
2024-01-22 11:12:22 -05:00
Ben Halpern
66f3ae71b5
Adjust comment notification logic ( #20534 )
...
* Adjust comment notification logic
* Update spec/models/comment_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update spec/models/comment_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* Update spec/models/comment_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-17 12:22:50 -05:00
Ben Halpern
16ff57c2ff
Add HTML customization to admin ( #20531 )
...
* Add HTML customization to admin
* Update spec/requests/stories_index_spec.rb
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-17 12:12:22 +00:00
Ben Halpern
ae2371d9a4
Add configuration for admins to determine whether to show cookie banner ( #20517 )
...
* Cookie banner admin config (wip)
* GA4 consent mode based on cookie acceptance
* Fix i18n
* Merge upstream
* Adjust heading
2024-01-15 18:22:17 +00:00
Anna Buianova
539844165f
Avoid sending follow notifications from spammers ( #20526 )
2024-01-15 16:50:21 +00:00
Philip How
33fd9836be
Add CSS as pages template option ( #20512 )
...
* add css as pages option
* don't forget schema
* fix test
* add api support
2024-01-12 15:35:38 +00:00
Ben Halpern
b0e3a512bb
Delay and modify follow logic to remove spammers ( #20505 )
...
* Delay and modify follow logic to remove spammers
* Fix tests
* Change comment
* Update spec/models/notification_spec.rb
Co-authored-by: Anna Buianova <lightallloy@gmail.com>
* Update spec/models/notification_spec.rb
Co-authored-by: Anna Buianova <lightallloy@gmail.com>
---------
Co-authored-by: Anna Buianova <lightallloy@gmail.com>
2024-01-10 14:35:12 +00:00
Philip How
7d47ffef78
Remove calls to trigger round robin notifications ( #20506 )
...
* remove calls to trigger round robin notifications
* remove tests
2024-01-10 13:44:57 +00:00
Ben Halpern
8e532c848a
Nullify published_at if absurdly far in the future ( #20504 )
2024-01-08 16:57:38 +00:00
Ben Halpern
04d4b2340d
Add downstream score effects from spam role ( #20498 )
...
* Add downstream score effects from spam role
* Move async score calc down low
* Add tests
* Add stub
* Fix typo
* No need for guard
* No need for guard
2024-01-08 16:25:28 +00:00
Ben Halpern
108d753d68
Add articles clickbait_score as factor in final feed ordering ( #20493 )
...
* Add articles clickbait_score
* Add attributes
* Fix field test config
2024-01-05 09:37:53 -05:00
Ben Halpern
e376e2b887
Add cookie requirement option for billboards ( #20486 )
...
* Add cookie requirement for billboards
* Clean up tests
* Fix up tests
* Adjust tests
* Adjust tests
2024-01-03 16:33:08 +00:00
Anna Buianova
473594f192
Match spam role with existing suspended actions ( #20477 )
...
* Started matching spam and suspended roles
* Match spam and suspended roles in most cases
* Fixed check_suspended for unauthenticated users
2023-12-27 20:12:50 +00:00
Ben Halpern
f0673648c2
Add preferred_article_ids to billboards ( #20437 )
...
* Add preferred_article_ids to billboards
* Adjust query
* Refactor method
* Refactor method
* Fix input type
* Add feature flag
2023-12-18 19:20:56 +00:00
Philip How
2ff439da80
Improve abuse reports UX ( #20433 )
...
* change to buttons + updates to styles
* add expand/collapse all and increase number of displayed entries
* fix a11y
* fix show route + order vomits by users first
---------
Co-authored-by: Mac Siri <mac@forem.com>
2023-12-13 15:31:09 +00:00
Anna Buianova
1eeaa34e98
Added spam role ( #20434 )
...
* Added spam role
* Fixed role spec
2023-12-11 14:27:22 +00:00
Ben Halpern
9eaff67318
Update styling and refine features for analytics page ( #20410 )
...
* Update styling and refine features for analytics page
* Remove follower reference from js
* Update html
* Adjust test
2023-11-30 16:07:16 -05:00
Ben Halpern
6c45945b11
Add recommended articles to feed experiment (Nov 27 experiment) ( #20399 )
...
* Add recommended articles to feed experiment
* remove changes to initial copy
* Adjust query to account for null
2023-11-29 18:22:18 +00:00