Commit graph

7574 commits

Author SHA1 Message Date
Philip How
149ae12dd1
New badge display logic on user's profile (#20936)
* new badge display

* fix cypress

* fix cypress

* Fit grid to exact number

* change point at which badges shown on profile header to 7

---------

Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2024-05-09 11:48:07 -04:00
Ben Halpern
34df26c847
Put Algolia frontend behind feature flag (#20935) 2024-05-09 09:22:15 -04:00
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
Philip How
37c2fb167c
Fix support for adding social image to the Pages API (#20916)
* Fix support for adding social image to the pages api

* refactor£

* test for the test god
2024-05-06 09:29:19 -04:00
Ben Halpern
55701f4303
Fix Twitter/X consistency (#20918)
* Fix Twitter/X consistency

* Adjust tests

* Adjust test regex
2024-05-03 12:24:06 -04:00
Philip How
c32663f8e9
Fix #19037 (#20917) 2024-05-03 12:16:49 +00:00
Philip How
7c3e5b2b99
update style for new follower email (#20908) 2024-05-02 13:42:21 +00:00
Ben Halpern
1cc59e08e0
Include cached user in select (#20913)
* Include cached user in select

* Add tags
2024-05-02 06:33:14 -04:00
Ben Halpern
1b216d517d
Add field test for Digest article list design (#20912)
* Add field test for Digest article list design

* Add check for cached user
2024-05-01 16:42:09 -04:00
Darshan Padia
b62ef2b4b1
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
2024-05-01 14:58:40 -04:00
Ben Halpern
63fa1ee2e6
Pick winner in header field test (#20911) 2024-05-01 12:38:16 -04:00
Iasmim Pereira
67c48977db
Fix: copy to clipboard message (#20898)
* fix: copy to clipboard message

* chore: deletion of unused imports
2024-05-01 13:18:28 +00: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
91810ba5d7
Add new headers a/b test for digest mailer (#20881) 2024-04-22 14:44:18 -04: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
Ben Halpern
4d4cd87688
Declare winner in digest email subheader test (#20877) 2024-04-22 16:42:27 +00:00
Ben Halpern
154cd202b2
Add safe navigation to article.displayable_published_at.year (#20873) 2024-04-19 15:12:24 -04:00
Ben Halpern
a2b078e6de
Add Algoliasearch js client (#20871)
* Add Algolia client for future use if enabled

* Make key fixes

---------

Co-authored-by: Mac Siri <mac@forem.com>
2024-04-19 18:13:30 +00: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
Philip How
2129ae145b
Update style for new reply email (#20861)
* update style for new reply email

* Truncate and sanitize comment

* rubocop

* fix links, fix stop send when no content
2024-04-19 08:56:16 -04: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
99517df220
Add subheader a/b test to digest (#20864)
* Add subheader a/b test to digest

* 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 13:53:41 -04: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
Ben Halpern
9b15329110
Adjust digest rate if recent clicks tracked (#20838)
* Adjust digest rate if recent clicks tracked

* Fix issues

* Fix issues

* Fix issues

* Fiddle with tests

* Fix syntax

* Fiddle with tests

* Fiddle with tests

* Fiddle with tests

* Fiddle with tests

* Fiddle with tests

* Fiddle with tests

* Fiddle with tests

* Remove .env.test symlink (#20839)

* Update the mdx vscode extension (#20840)

* Update @cypress/code-coverage to version 3.12.30 (#20803)

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Mac Siri <mac@forem.com>

* Update ruby VSCode extensions for debugging (#20816)

The 'rebornix.Ruby' extension is deprecated. I replaced with the
'Shopify.ruby-lsp' extension since VSCode's Ruby docs pointed
users to ruby-lsp, see https://code.visualstudio.com/docs/languages/ruby.

* Update esbuild to version 0.19.12 (#20841)

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>

* Update eslint to version 8.57.0 (#20853)

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>

* fix: remove listings option from views/dashboards/_actions_mobile.html.erb (#20849)

Co-authored-by: Mac Siri <mac@forem.com>

* Update eslint-import-resolver-webpack to version 0.13.8 (#20854)

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>

* add timestamp to users roles table (#20844)

* Update eslint-plugin-import to version 2.29.1 (#20855)

Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>

* Adjust tests to account for clicks

* Adjust tests to account for clicks

---------

Co-authored-by: Mac Siri <mac@forem.com>
Co-authored-by: Meredith <meredith.edwards1771@gmail.com>
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Quaresma <j.quaresmasantos_98@hotmail.com>
Co-authored-by: Philip How <philip.j.how@gmail.com>
2024-04-10 10:39:15 -04:00
Gabriel Quaresma
58fa8d584c
fix: remove listings option from views/dashboards/_actions_mobile.html.erb (#20849)
Co-authored-by: Mac Siri <mac@forem.com>
2024-04-09 15:19:35 +00:00
Ben Halpern
35848e4582
Digest config (#20834) 2024-04-03 13:22:54 -04:00
Philip How
0d873a4554
Show "Resend Confirmation email" option on users profile when email not confirmed (#20831)
* Show reconfirmation option on users profile

* spec
2024-04-03 09:53:53 -04:00
Philip How
a0b68a6956
Ensure article score recalculation for all vomit status changes (#20813) 2024-04-02 08:17:54 -04:00
Ben Halpern
b6fa936e36
Customize ahoy email to track clicks async without redirect (#20809)
* Initial controller creation

* Ahoy custom clicks initial WIP

* Add test for success and failure

* Adjust some tests

* Adjust test

* Adjust tests and some code

* Update app/views/mailers/digest_mailer/digest_email.html.erb

* Remove s/t/u from safe params

* Add simple test

* Update app/controllers/ahoy/custom_email_clicks_controller.rb

Co-authored-by: Mac Siri <mac@forem.com>

* Change to just email clicks

* Email clicks controller test

---------

Co-authored-by: Mac Siri <mac@forem.com>
2024-04-01 15:05:04 -04:00
Alex Gwartney
75b7121b12
prevent switchHelpContext from triggering if the preview is open. (#20744)
Co-authored-by: Mac Siri <mac@forem.com>
2024-04-01 16:53:43 +00:00
Ben Halpern
09705dab68
Declare winner in digest count test (#20810) 2024-03-28 14:41:55 -04:00
Philip How
eb452078e3
Update confirmation email wording (#20806) 2024-03-28 11:10:26 -04:00
Makar
069530052f
typo fix on PR #20762 (#20804)
Co-authored-by: Mac Siri <mac@forem.com>
2024-03-28 13:06:10 +00:00
Anna Buianova
51316c747f
Comments count according to display rules in feed (#20753)
* Move calculating comments score from worker to a service

* Display displayed comments count in feed

* Recalculating displayed comments counts on article show (if needed)

* Rubocop fixes

* Fixed lambda
2024-03-28 12:12:05 +00:00
Makar
ec32a8e7cc
skip unnecessary history pushes and preserve intuitive forward/back (#20762) 2024-03-27 17:54:50 +00:00
Philip How
f6161780d9
Add test to mark profile as spam (#20800)
* add test to mark profile as spam

* rubocop

* move test
2024-03-27 17:30:32 +00:00
Anna Buianova
ed1b4045d3
Auto confirm flag reactions when spam role is assigned (#20797)
* Auto confirm flag reactions when spam role is assigned

* Renamed method according to its point

---------

Co-authored-by: Mac Siri <mac@forem.com>
2024-03-27 13:03:41 +00:00
Philip How
b0086c9171
Add mark as spam button on user profile for admins (#20794) 2024-03-25 10:30:16 -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
Anna Buianova
7d5650c3f1
Admin access to spam comments by url (#20775)
* Admin access to spam comments by url

* Fixed spec

* Fixed view spec
2024-03-22 08:40:36 -04:00
Mac Siri
7988af1628
Update PageViewRollup (#20785)
* Make sure time is beginning of day

* Use correct initial time
2024-03-21 22:37:33 +00:00
Anna Buianova
1008f0af7d
Automatically resolve spam reports when the offending user is marked as spam (#20781)
* Start resolving spam reports automatically after assigning spam role

* Specs for resolving spam reports + async resolving
2024-03-21 17:31:43 +00:00
Ben Halpern
c3c8b5f9c4
Small efficiency adjustments (#20782) 2024-03-21 10:42:37 -04:00