Jarek Radosz
a8567d409d
DEV: Clean up chat-message-reaction ( #27465 )
...
* remove an unused service injection (and sort the rest)
* remove unused prop
* inline an arg check
* remove an unnecessary `?.` operator
* sort element attributes
2024-06-13 15:12:56 +02:00
Jarek Radosz
5361c3704d
FIX: Don't modify `FloatKitInstance`s arrays unless needed ( #27462 )
2024-06-13 12:44:38 +02:00
Loïc Guitaut
c790c57415
DEV: Show parameters on a service contract failure
...
Now, when calling `StepsInspector#error` on a contract failure, the
output will contain the parameters provided to the contract.
2024-06-13 12:19:26 +02:00
David Battersby
47540fb4e0
FEATURE: chat drawer navigation improvement ( #27419 )
...
This change replaces the chat drawer tabs with new drawer routes for channels, direct messages and threads.
The main objective is to improve navigation within drawer, now that we have separation of chat sections in drawer.
2024-06-13 13:17:12 +04:00
Kelv
3ae2e039c3
DEV: remove composer.modal_cancel translation key ( #27445 )
2024-06-13 16:44:36 +08:00
Brendan Bell
0a2926ae03
DEV: Introduce users:exists rake task ( #27163 )
...
Checks if a user exists for given email address
2024-06-13 08:04:02 +01:00
Alan Guo Xiang Tan
ae1d8c50da
DEV: Add ability to log a warning when Sidekiq job runs for too long ( #27446 )
...
This commits introduces the `sidekiq_report_long_running_jobs_minutes`
global setting which allows a site administrator to log a warning in the
Rails log when a Sidekiq job has been running for too long.
The warning is logged with the backtrace of the thread that is
processing the Sidekiq job to make it easier to figure out what a
sidekiq job is stuck on.
2024-06-13 14:24:44 +08:00
dependabot[bot]
8058344f8e
Build(deps): Bump ruby-readability from 0.7.0 to 0.7.1 ( #27460 )
...
Bumps [ruby-readability](https://github.com/iterationlabs/ruby-readability ) from 0.7.0 to 0.7.1.
- [Commits](https://github.com/iterationlabs/ruby-readability/commits )
---
updated-dependencies:
- dependency-name: ruby-readability
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 13:34:59 +08:00
dependabot[bot]
201606f012
Build(deps): Bump sass-embedded from 1.77.4 to 1.77.5 ( #27459 )
...
Bumps [sass-embedded](https://github.com/sass-contrib/sass-embedded-host-ruby ) from 1.77.4 to 1.77.5.
- [Commits](https://github.com/sass-contrib/sass-embedded-host-ruby/compare/v1.77.4...v1.77.5 )
---
updated-dependencies:
- dependency-name: sass-embedded
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 13:34:46 +08:00
dependabot[bot]
07b6be154c
Build(deps-dev): Bump chrome-launcher from 1.1.1 to 1.1.2 ( #27458 )
...
Bumps [chrome-launcher](https://github.com/GoogleChrome/chrome-launcher ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/GoogleChrome/chrome-launcher/releases )
- [Changelog](https://github.com/GoogleChrome/chrome-launcher/blob/main/changelog.md )
- [Commits](https://github.com/GoogleChrome/chrome-launcher/commits )
---
updated-dependencies:
- dependency-name: chrome-launcher
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 13:34:34 +08:00
Martin Brennan
e94ab11477
DEV: Allow for setting a message with SiteSetting.set_and_log ( #27447 )
...
When we turn on settings automatically for customers,
we sometimes use `.set_and_log` which will make a staff
action log for the site setting change. This is fine, but
there is no context for customers.
This change allows setting a message with `.set_and_log`, which
will be stored in the `details` column of the staff action log
created, which will show up on `/admin/logs/staff_action_logs`
---------
Co-authored-by: Kelv <kelv@discourse.org>
2024-06-13 14:59:49 +10:00
dependabot[bot]
dee71f5918
Build(deps-dev): Bump parser from 3.3.2.0 to 3.3.3.0 ( #27461 )
...
Bumps [parser](https://github.com/whitequark/parser ) from 3.3.2.0 to 3.3.3.0.
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/whitequark/parser/compare/v3.3.2.0...v3.3.3.0 )
---
updated-dependencies:
- dependency-name: parser
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 12:42:33 +08:00
Ted Johansson
a5df029be3
FIX: Email::Sender expects type to be a string ( #27463 )
...
In #26642 we introduced a change that re-attaches securely uploaded images in the digest e-mail. However, this change assumed that the type argument to the Email::Sender constructor would be a symbol, but when it is coming from the UserEmail job it is a string. This PR fixes that.
2024-06-13 11:53:25 +08:00
Alan Guo Xiang Tan
1f4aa343d8
DEV: Move spec file to right folder ( #27449 )
...
Spec file is not being run because it was in the wrong folder.
2024-06-13 06:38:03 +08:00
Jarek Radosz
9f681ad65e
FIX: Check for textarea presence ( #27457 )
...
This mirrors `ChatThreadComposer.blur`
Co-authored-by: Leonardo Mosquera <ldmosquera@gmail.com>
2024-06-12 23:37:19 +02:00
Joffrey JAFFEUX
b0e4b906ad
Revert "FIX: Properly close user-card after page transition ( #27423 )" ( #27456 )
...
This reverts commit 1ecfc397d3
.
2024-06-12 21:11:44 +02:00
Sérgio Saquetim
9668592aab
DEV: Introduce a value transformer front-end plugin API ( #27090 )
...
This commit introduces the `valueTransformer`API to safely override values defined in Discourse.
Two new plugin APIs are introduced:
- `addValueTransformerName` which allows plugins and theme-components to add a new valid transformer name if they want to provide overridable values;
- `registerValueTransformer` to register a transformer to override values.
It also introduces the function `applyValueTransformer` which can be imported from `discourse/lib/transformer`. This function marks the desired value as overridable and applies the transformer logic.
How does it work?
## Marking a value as overridable:
To mark a value as overridable, in Discourse core, first the transformer name must be added to `app/assets/javascripts/discourse/app/lib/transformer/registry.js`. For plugins and theme-components, use the plugin API `addValueTransformerName` instead.
Then, in your component or class, use the function `applyValueTransformer` to mark the value as overridable and handle the logic:
- example:
```js
export default class HomeLogo extends Component {
@service session;
@service site;
...
get href() {
return applyValueTransformer("home-logo-href", getURL("/"));
}
```
## Overriding a value in plugins or themes
To override a value in plugins, themes, or TCs use the plugin API `registerValueTransformer`:
- Example:
```js
withPluginApi("1.34.0", (api) => {
api.registerValueTransformer("example-transformer", ({ value }) => {
return "new-value";
});
});
```
2024-06-12 15:21:52 -03:00
dependabot[bot]
e5dac3b422
Build(deps-dev): Bump puppeteer-core from 22.10.1 to 22.11.0 ( #27454 )
...
Bumps [puppeteer-core](https://github.com/puppeteer/puppeteer ) from 22.10.1 to 22.11.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases )
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json )
- [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-core-v22.10.1...puppeteer-core-v22.11.0 )
---
updated-dependencies:
- dependency-name: puppeteer-core
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 16:22:01 +02:00
dependabot[bot]
f6f787317b
Build(deps-dev): Bump sass from 1.77.4 to 1.77.5 ( #27455 )
...
Bumps [sass](https://github.com/sass/dart-sass ) from 1.77.4 to 1.77.5.
- [Release notes](https://github.com/sass/dart-sass/releases )
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sass/dart-sass/compare/1.77.4...1.77.5 )
---
updated-dependencies:
- dependency-name: sass
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 16:21:35 +02:00
dependabot[bot]
f65f4184a6
Build(deps-dev): Bump @embroider/webpack in the embroider group ( #27453 )
...
Bumps the embroider group with 1 update: [@embroider/webpack](https://github.com/embroider-build/embroider/tree/HEAD/packages/webpack ).
Updates `@embroider/webpack` from 4.0.2 to 4.0.3
- [Release notes](https://github.com/embroider-build/embroider/releases )
- [Changelog](https://github.com/embroider-build/embroider/blob/main/CHANGELOG.md )
- [Commits](https://github.com/embroider-build/embroider/commits/HEAD/packages/webpack )
---
updated-dependencies:
- dependency-name: "@embroider/webpack"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: embroider
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 16:19:13 +02:00
Loïc Guitaut
ed49f41d92
FIX: Use the proper i18n argument name
2024-06-12 11:11:02 +02:00
Ted Johansson
6be4ef59fa
DEV: Replace old field_type text column with field_type_enum integer column ( #27448 )
...
Follow up to: #27444 . In that PR we added a new integer column for UserField#field_type and populated the data based on the old text field.
In this PR we drop the old text column and swap in the new integer (enum) column.
2024-06-12 16:41:02 +08:00
Kelv
7e31a8104d
DEV: remove bootbox dependency ( #27443 )
2024-06-12 15:56:17 +08:00
Ted Johansson
5963c03643
DEV: Change UserField#field_type to an ActiveRecord enum ( #27444 )
...
Currently this column is a text column, but by right should only take on one of the values text, confirm, dropdown, multiselect. We can convert this to an ActiveRecord enum instead.
This PR adds a new integer column (field_type_enum) and populates it based on the existing text column (field_type) and adds an alias to replace the latter with the former.
2024-06-12 15:30:13 +08:00
Sam
dc8249c08a
FEATURE: align with /filter and allow multiple category search ( #27440 )
...
This introduces the syntax of
`category:a,b,c` which will search across multiple categories.
Previously there was no way to allow search across a wide selection of
categories.
2024-06-12 16:06:04 +10:00
Alan Guo Xiang Tan
be4f1e3350
PERF: Cache `hostname` in `DiscourseLogstashLogger` ( #27442 )
...
Logging events happen all the time. No need for us to keep running code
to fetch the hostname when it doesn't change between deploys.
2024-06-12 13:34:07 +08:00
Guhyoun Nam
30f369fffe
FIX: fix Webhook events filter 'loadMore' not taking params ( #27403 )
...
After working on the Webhook events filter by Status, I noticed that the 'Delivered' and 'Failed' options do not take the status param when loading more than fifty Webhook events. It causes to load all Webhook events regardless of its status after the first load.
This PR is adding webhook events status for the filter to the param when loading more than fifty Webhook events.
2024-06-11 20:17:47 -05:00
Alan Guo Xiang Tan
0b8e6e7d1d
DEV: Fix broken `discourse_ip_info_spec` ( #27439 )
...
This is a follow-up to 781a5f60ea
2024-06-12 07:51:45 +08:00
dependabot[bot]
cbc0076d74
Build(deps-dev): Bump rubocop-rspec_rails from 2.29.0 to 2.29.1 ( #27438 )
...
Bumps [rubocop-rspec_rails](https://github.com/rubocop/rubocop-rspec_rails ) from 2.29.0 to 2.29.1.
- [Release notes](https://github.com/rubocop/rubocop-rspec_rails/releases )
- [Changelog](https://github.com/rubocop/rubocop-rspec_rails/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rspec_rails/compare/v2.29.0...v2.29.1 )
---
updated-dependencies:
- dependency-name: rubocop-rspec_rails
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 01:07:29 +02:00
Alan Guo Xiang Tan
781a5f60ea
DEV: Move RSpec test file into test folder ( #27437 )
...
Test was not being run because it was in the wrong folder
2024-06-12 06:58:44 +08:00
dependabot[bot]
09fc40500e
Build(deps-dev): Bump rubocop-factory_bot from 2.26.0 to 2.26.1 ( #27434 )
...
Bumps [rubocop-factory_bot](https://github.com/rubocop/rubocop-factory_bot ) from 2.26.0 to 2.26.1.
- [Release notes](https://github.com/rubocop/rubocop-factory_bot/releases )
- [Changelog](https://github.com/rubocop/rubocop-factory_bot/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-factory_bot/compare/v2.26.0...v2.26.1 )
---
updated-dependencies:
- dependency-name: rubocop-factory_bot
dependency-type: indirect
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:54:00 +02:00
dependabot[bot]
ed13f675eb
Build(deps): Bump rexml from 3.2.9 to 3.3.0 ( #27435 )
...
Bumps [rexml](https://github.com/ruby/rexml ) from 3.2.9 to 3.3.0.
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.2.9...v3.3.0 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: indirect
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:53:48 +02:00
dependabot[bot]
1800ea57ae
Build(deps): Bump ember-resolver from 12.0.0 to 12.0.1 ( #27432 )
...
Bumps [ember-resolver](https://github.com/ember-cli/ember-resolver ) from 12.0.0 to 12.0.1.
- [Release notes](https://github.com/ember-cli/ember-resolver/releases )
- [Changelog](https://github.com/ember-cli/ember-resolver/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ember-cli/ember-resolver/compare/v12.0.0...v12.0.1 )
---
updated-dependencies:
- dependency-name: ember-resolver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:49:16 +02:00
dependabot[bot]
e4d4c966e6
Build(deps-dev): Bump puppeteer-core from 22.10.0 to 22.10.1 ( #27431 )
...
Bumps [puppeteer-core](https://github.com/puppeteer/puppeteer ) from 22.10.0 to 22.10.1.
- [Release notes](https://github.com/puppeteer/puppeteer/releases )
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json )
- [Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-core-v22.10.0...puppeteer-core-v22.10.1 )
---
updated-dependencies:
- dependency-name: puppeteer-core
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:48:40 +02:00
dependabot[bot]
48cb7cb1a7
Build(deps-dev): Bump the embroider group with 4 updates ( #27428 )
...
Bumps the embroider group with 4 updates: [@embroider/compat](https://github.com/embroider-build/embroider/tree/HEAD/packages/compat ), [@embroider/core](https://github.com/embroider-build/embroider/tree/HEAD/packages/core ), [@embroider/macros](https://github.com/embroider-build/embroider/tree/HEAD/packages/macros ) and [@embroider/webpack](https://github.com/embroider-build/embroider/tree/HEAD/packages/webpack ).
Updates `@embroider/compat` from 3.5.1 to 3.5.2
- [Release notes](https://github.com/embroider-build/embroider/releases )
- [Changelog](https://github.com/embroider-build/embroider/blob/main/CHANGELOG.md )
- [Commits](https://github.com/embroider-build/embroider/commits/HEAD/packages/compat )
Updates `@embroider/core` from 3.4.10 to 3.4.11
- [Release notes](https://github.com/embroider-build/embroider/releases )
- [Changelog](https://github.com/embroider-build/embroider/blob/main/CHANGELOG.md )
- [Commits](https://github.com/embroider-build/embroider/commits/HEAD/packages/core )
Updates `@embroider/macros` from 1.16.2 to 1.16.3
- [Release notes](https://github.com/embroider-build/embroider/releases )
- [Changelog](https://github.com/embroider-build/embroider/blob/main/CHANGELOG.md )
- [Commits](https://github.com/embroider-build/embroider/commits/HEAD/packages/macros )
Updates `@embroider/webpack` from 4.0.1 to 4.0.2
- [Release notes](https://github.com/embroider-build/embroider/releases )
- [Changelog](https://github.com/embroider-build/embroider/blob/main/CHANGELOG.md )
- [Commits](https://github.com/embroider-build/embroider/commits/HEAD/packages/webpack )
---
updated-dependencies:
- dependency-name: "@embroider/compat"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: embroider
- dependency-name: "@embroider/core"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: embroider
- dependency-name: "@embroider/macros"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: embroider
- dependency-name: "@embroider/webpack"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: embroider
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:48:04 +02:00
dependabot[bot]
fd0a16ddb5
Build(deps-dev): Bump webpack from 5.91.0 to 5.92.0 ( #27429 )
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.91.0 to 5.92.0.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.91.0...v5.92.0 )
---
updated-dependencies:
- dependency-name: webpack
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:46:44 +02:00
dependabot[bot]
ddd6919c7c
Build(deps-dev): Bump ember-qunit from 8.0.2 to 8.1.0 ( #27430 )
...
Bumps [ember-qunit](https://github.com/emberjs/ember-qunit ) from 8.0.2 to 8.1.0.
- [Release notes](https://github.com/emberjs/ember-qunit/releases )
- [Commits](https://github.com/emberjs/ember-qunit/compare/v8.0.2...v8.1.0 )
---
updated-dependencies:
- dependency-name: ember-qunit
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 00:46:08 +02:00
Jarek Radosz
1ecfc397d3
FIX: Properly close user-card after page transition ( #27423 )
2024-06-11 20:00:20 +02:00
Discourse Translator Bot
312cf18428
Update translations ( #27425 )
2024-06-11 19:49:30 +02:00
Kris
f95d80af26
UX: update "all tags" to "remove filter" for tag breadcrumb dropdown ( #27424 )
2024-06-11 13:21:09 -04:00
chapoi
dc2be1a9bd
UX: add active highlight for breadcrumb navigation ( #27422 )
2024-06-11 18:29:44 +02:00
Discourse Translator Bot
74e7bed7d5
Update translations ( #27417 )
2024-06-11 17:20:39 +02:00
Kris
ebc23b348f
UX: restrict mobile tooltip width to prevent horizontal overflow ( #27420 )
2024-06-11 10:37:42 -04:00
Kris
e44025b687
UX: improve login modal on very narrow screens in desktop mode ( #27405 )
2024-06-11 09:53:58 -04:00
Arkshine
29460e1422
DEV: Provide a safe agent in check_crawler_limits()
2024-06-11 14:02:46 +02:00
Arkshine
30ae313dec
DEV: Apply suggested changes
2024-06-11 14:02:46 +02:00
Arkshine
1fffb236b2
FIX: crawler requests exceptions for non UTF-8 user agents with invalid bytes
2024-06-11 14:02:46 +02:00
Jarek Radosz
b757275c1e
DEV: Remove `modKeysPressed` ( #27408 )
...
It was added when removing `{{action}}` modifiers from the app, but we already had `wantsNewWindow` so use that instead.
2024-06-11 13:59:59 +02:00
David Battersby
fb11ab5895
FIX: new chat from url flaky fix ( #27414 )
...
The order of chat direct message groups can sometimes place usernames in an unexpected order, this change tests multiple combinations of usernames and accepts them no matter what order they are in.
2024-06-11 14:13:08 +04:00
Alan Guo Xiang Tan
27efa2d8b7
DEV: Increment attempts for ce91767b90
( #27413 )
...
If we don't increment attempts, we will retry forever.
2024-06-11 16:05:38 +08:00