Commit graph

12954 commits

Author SHA1 Message Date
depfu[bot]
33197e73e8
[js] Update cypress 13.1.0 → 13.2.0 (minor) (#20146)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-09-28 18:28:15 -04:00
Ben Halpern
c71b2b182f
Change profile image max size to 8 MB (#20183)
* Change profile image max size to 8 MB

* Stub the const for the sake of the test
2023-09-28 17:05:35 -04:00
Ben Halpern
777afeeacb
Adjust article_feed_success_score throttle time to 5 mins (#20181) 2023-09-28 15:27:37 -04:00
depfu[bot]
4ce013626b
[js] Update postcss 8.4.29 → 8.4.30 (patch) (#20177)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-09-28 13:37:36 -04:00
depfu[bot]
952ffaac4e
[js] Update eslint-plugin-cypress 2.12.1 → 2.15.1 (minor) (#20168)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
Co-authored-by: dukegreene <duke@forem.com>
2023-09-28 11:52:47 -04:00
Ben Halpern
e998e5bcac
Do not show suspended followers in aggregated siblings for notification (#20174) 2023-09-27 20:23:25 -04:00
depfu[bot]
40b4a83e06
[ruby] Update all development Bundler dependencies (2023-09-26) (#20127)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-09-27 16:25:47 -04:00
Ben Halpern
f50e3e7511
Add out-of-date notice to admin overview (#20172) 2023-09-27 10:13:47 -04:00
Ben Halpern
f753df3226
Add new feed experiments (#20171) 2023-09-27 08:21:21 -04:00
Ridhwana
ae9d1b5ace
Hide the buttons on the tag page (#20148)
* feat: step 1 - add the buttons to the html template

* refactor: renamed the class to be prepended with js-

* feat: add the js-tag-card class to the entire tag-card div

* feat: add the relevant data elements and tag-id to the tag-card div

* feat: add the required data elements for the top level js-tag-card

* feat: use @tag instead of tag

* refactor: rename the tag pack file

* refactor: rename the Tag file component

* feat: add a snackzone so that the snackbar can be added there

* feat: remove the follow-actions-button and the hide-actions-button from the tag pages so that it doesn't conflict with the 'followButtons' pack whne we need to add it

* spec: update the specs for tags

* chore: follow-action-button renamed to follow-tag-button and hide-action-button to hide-tag-button

* refactor: js-classes

* chore: add some comments

---------

Co-authored-by: Ben Halpern <bendhalpern@gmail.com>
2023-09-26 19:49:57 -04:00
Thomas Bnt
484821fe5e
fix: removed z-index on .reaction-button (#20165) 2023-09-26 19:08:06 -04:00
Rajat Talesra
b707712d73
Removed ordering of co-authors by id (#20162)
* Removed ordering of co-authors by id

* Updated logic

* Revert code

* Update app/decorators/article_decorator.rb

Co-authored-by: PJ <pj@forem.com>

---------

Co-authored-by: PJ <pj@forem.com>
2023-09-26 14:21:33 -04:00
PJ
1d4bcf5ca8
account for weirdly parsed code blocks in styling (#20167) 2023-09-26 14:20:10 -04:00
Ben Halpern
ceefd67d01
Update README.md core team (#20170) 2023-09-26 14:19:46 -04:00
Joshua Wehner
8216700858
Trusted user _can_ use moderator comment (#20158)
* Trusted user _can_ use moderator comment

* Update spec to confirm cannot create

* Trusted user is trusted

* Better mod template access
2023-09-26 10:24:37 -04:00
Joshua Wehner
2c138d86ef
Add or remove limited role via API (#20136)
* Refactor API user suspend, make room for more roles

* Handle adding limited

* Handle remove limited

* And swagger docs

* Update & refactor roles spec

* Remove old route

* Remove old specs
2023-09-26 09:57:14 -04:00
Dambar Pun
e5b4f6a7d0
rename to new name to avoid confusion (#20163)
Co-authored-by: Dambar Pun <dambarpun@Dambars-MacBook-Pro.local>
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2023-09-26 08:29:05 -04:00
Joshua Wehner
6a48b486ca
Onboarding: custom newsletter opt-in settings (#20114)
* Settings can process markdown into html

* Update Settings with new onboarding settings

* Async render onboarding newsletter step

* Tweak onboarding design

* Fix broken spec

* Better rendered component test

* Tweaks to match design

* Try to tweak design

* Try having a default state

* Tweak placeholder content

* Better await componentDidMount

* Continue to tweak the design

* ContentRenderer#process should always return Result

* Try more clarity in the partial

* Rubocop
2023-09-26 06:34:19 -04:00
Rajat Talesra
7110c69bb5
Minor gradient fix in onboarding tags step (#20169)
* Minor gradient fix

* Gradient update

* Code optimisation
2023-09-26 15:30:59 +05:30
PJ
47deeefe57
Optionally limit new users based on admin setting (#20149)
* create admin setting for new user status

* limiting on signup working 🎉

* update registration specs

* sort out OAuth registrations
2023-09-26 10:46:36 +01:00
Joshua Wehner
25d1cdd2e0
Tweak config to enable rails console requests (#20157) 2023-09-26 04:40:00 -04:00
Helio Cola
410b4c4ef7
Enqueue Ruby 3.2.0 base image builds in GHCR (#20156) 2023-09-25 11:32:00 -07:00
depfu[bot]
915b3eaca4
Update vault to version 0.18.1 (#20153)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-09-25 08:51:04 +01:00
Rajat Talesra
5fb94d372b
Reset password design and Signup page update for invite-only forems. (#20145)
* Private forem signup issue fix

* Minor design fixes

* Added click on logo

* Reset password design

* UX fix

* Updated dynamic contact

* Padding fix and test fix

* Complete translations

* Skipped flay test 'should show Feature Post button on an unfeatured post'
2023-09-22 14:49:31 +05:30
Josh Klar
2ae46a21b3
Developer Onboarding Simplification (#20077)
* readme: Remove redundant prerequisites section (already in install docs).

* readme: Link to both Linux and MacOS installation instructions.

* devxp: Track non-node/ruby devtool versions with rtx.

* devxp: Simplify MacOS system-level dependency installation with brew bundle.
2023-09-22 02:05:41 -07:00
Mac Siri
5dc7e889b9
Support devcontainers and GitHub codespace (#20126)
Co-authored-by: Josh Klar <jklar@forem.com>
2023-09-21 18:16:09 -04:00
Anna Buianova
61f3c517e1
Display post languages in the dashboard (#20137)
* Display post languages in the dashboard

* Added languages locales to several languages variations
2023-09-21 14:42:44 +03:00
Rajat Talesra
1d73f871f2
Janky bug fix (#20147) 2023-09-21 16:37:44 +05:30
depfu[bot]
1933f0445a
Update @cypress/code-coverage to version 3.12.1 (#20140)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-09-20 17:50:17 +01:00
Joshua Wehner
13f4aaa0fb
Username inputs for admin (#20123)
* Support username inputs on /admin/articles

* Support username input on tag admin moderator

* Support username input on admin community settings

* Support username input on admin mascot settings
2023-09-20 09:25:38 -04:00
depfu[bot]
8f5f9574db
[ruby] Update pghero 3.3.3 → 3.3.4 (patch) (#20096)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-09-20 08:59:26 -04:00
Rajat Talesra
54131cd94c
Move the digest email opt-in to the follow tags onboarding step (#20133)
* Removed intro slide and updated sequence

* Revert db change

* Initial save

* Design changes

* Mobile designs

* Added functionality

* Added tests

* Gradient effect added

* Added API call test
2023-09-20 17:55:29 +05:30
depfu[bot]
35c6c4bca7
[js] Update i18n-js 4.3.0 → 4.3.2 (patch) (#20135)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-09-19 19:38:51 -04:00
PJ
da73343540
Skip round robin mod notifications for limited users (#20128)
* return early if user is limited

* fix worker specs
2023-09-19 15:03:20 +01:00
depfu[bot]
45427e8547
Update eslint-plugin-import to version 2.28.1 (#20102)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-09-18 22:08:21 -07:00
Ben Halpern
4f8f828a44
New feed experiments for 9/18 (#20130) 2023-09-18 14:40:09 -07:00
PJ
67bb7a6e76
Revert "Bump sidekiq and sidekiq-unique-jobs dependencies in tandem" (#20132) 2023-09-18 13:27:08 -04:00
PJ
2a1c20b57f
Bump sidekiq and sidekiq-unique-jobs dependencies in tandem (#20131)
* bump sidekiq and sidekiq-unique-jobs in tandem

* ensure Articles::UpdatePageViewsWorker arg is a hash
2023-09-18 12:22:35 -04:00
Mai Irie
9332ef7123
Reduce Codecov's patch target to 60% (#20095)
* Reduce Codecov's patch target to 50%

* Update codecov.yml

After internal discussion, settled on 60% as the floor for the baseline.

* Code Cov note in PR template
2023-09-15 13:31:22 -04:00
PJ
90944bb36b
Skip feed events e2e specs (#20124) 2023-09-15 17:36:08 +01:00
Ben Halpern
cadebde66f
Add feed_success_score and other count tallies (#20106)
* Add initial feed events score

* Add feed events score

* Clean up code styles

* Adjust how tests are run

* Fix conflicts

* Update app/javascript/articles/Feed.jsx

* Add additional feed events tabulation queries for more reliable eventual consistency

* Add additional feed events tabulation queries for more reliable eventual consistency

* Fix test logic

* Updates from feedback
2023-09-15 12:02:26 -04:00
PJ
84a65f0a26
remove blocking attribute (#20116) 2023-09-15 10:35:35 -04:00
Ridhwana
aa201060e8
Override Tag Moderation Actions (#20088)
* feat: remove the validation for the article_id and tag_name to be unique on a tag_adjustment

* chore: remove unique index

* feat: update the validate_tag method to align with the removal of unique indexes on the table

* feat: do not allow removal and addition of tags that were added/removed by admins

* spec: add tests for the tag_adjustment_spec

* fix: update the validation of tags

* spec: article validation

* spec: test the action_panel helper

* chore: amend language

* add styles

* Empty commit
2023-09-15 15:06:58 +02:00
Joshua Wehner
c91a652245
Allow trusted users to see whether a user is suspended (#20061)
* Async append user suspended status pill

* Rubocop

* Relocate JS tests, for build & coverage

* Better error-handling for this controller

* Refactor HTML to render pill outside h1

* Continuing to tweak design

* JS class prepended
2023-09-15 08:44:31 -04:00
Joshua Wehner
6fe9d7d7a6
Allow org admins to add members as co-authors (#20008)
* Basics might be working?

* Stop propagating button clicks in autocomplete pills

* Better blank slate

* Better location to stop propagation

* Remove author_id from org co-authors

* Move UserStore and try testing it

* Remove extraneous comments

* OH... that's what that does!

* Very basic testing

* Re-organize javascripts

* Rename & re-org for testing

* Cleanup

* More tests

* Remove unnecessary nesting

* Coninuing to try to bump coverage

* Include /packs/ in code coverage metric

* Try tweaking jest coverage more?

We probably can't collect coverage from all of packs/* (because coverage is too low) but maybe we can try to opt-in for newer areas as we go?

* Relocate JS tests, for build & coverage

* User ID exception on search, not fetch

* Remove commented-out console.log

---------

Co-authored-by: Mac Siri <krairit.siri@gmail.com>
2023-09-15 08:12:41 -04:00
Ben Halpern
612c402887
Fix onboarding with implicit terms acceptance (#20117) 2023-09-14 16:02:34 -04:00
Rajat Talesra
c72c52dfdb
Removed intro slide and updated sequence (#20011)
* Removed intro slide and updated sequence

* Revert db change
2023-09-14 20:26:47 +05:30
Ridhwana
fb2978149d
Remove section from digest mailer (#20110)
* chore: remove listing related text

* feat: remove post-a-job

* Revert "feat: remove post-a-job"

This reverts commit e1c4cd449c328a43cc658882064a8312b71a18f1.
2023-09-14 14:31:15 +02:00
depfu[bot]
b4d41337f0
Update oj to version 3.16.1 (#20107)
Co-authored-by: depfu[bot] <23717796+depfu[bot]@users.noreply.github.com>
2023-09-14 15:04:47 +03:00
Duke Greene
7d1d0ff80b
comment out flaky specs and add comments for exploration/refactor (#20103)
* comment out flaky specs and add commments for exploration/refactor context

* comment out only the specs which call reload for now

* use it.skip rather than commenting out
2023-09-14 06:25:27 -04:00