dependabot[bot]
6764134001
Build(deps): Bump erubi from 1.12.0 to 1.13.0 ( #27497 )
...
Bumps [erubi](https://github.com/jeremyevans/erubi ) from 1.12.0 to 1.13.0.
- [Changelog](https://github.com/jeremyevans/erubi/blob/master/CHANGELOG )
- [Commits](https://github.com/jeremyevans/erubi/compare/1.12.0...1.13.0 )
---
updated-dependencies:
- dependency-name: erubi
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-17 14:55:38 +02:00
dependabot[bot]
44701c1da7
Build(deps): Bump public_suffix from 5.0.5 to 5.1.0 ( #27496 )
...
Bumps [public_suffix](https://github.com/weppos/publicsuffix-ruby ) from 5.0.5 to 5.1.0.
- [Changelog](https://github.com/weppos/publicsuffix-ruby/blob/main/CHANGELOG.md )
- [Commits](https://github.com/weppos/publicsuffix-ruby/compare/v5.0.5...v5.1.0 )
---
updated-dependencies:
- dependency-name: public_suffix
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-17 14:55:31 +02:00
Kris
0a99407bfb
UX: always show image preview controls, improve spacing ( #27489 )
2024-06-17 08:43:43 -04:00
dependabot[bot]
d1f1e93f3f
Build(deps-dev): Bump mocha from 2.3.0 to 2.4.0 ( #27495 )
...
Bumps [mocha](https://github.com/freerange/mocha ) from 2.3.0 to 2.4.0.
- [Changelog](https://github.com/freerange/mocha/blob/main/RELEASE.md )
- [Commits](https://github.com/freerange/mocha/compare/v2.3.0...v2.4.0 )
---
updated-dependencies:
- dependency-name: mocha
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-17 14:31:25 +02:00
dependabot[bot]
3a282f4442
Build(deps-dev): Bump rouge from 4.2.1 to 4.3.0 ( #27494 )
...
Bumps [rouge](https://github.com/rouge-ruby/rouge ) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/rouge-ruby/rouge/releases )
- [Changelog](https://github.com/rouge-ruby/rouge/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rouge-ruby/rouge/compare/v4.2.1...v4.3.0 )
---
updated-dependencies:
- dependency-name: rouge
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-17 14:30:57 +02:00
dependabot[bot]
e51ef6ac37
Build(deps): Bump zeitwerk from 2.6.15 to 2.6.16 ( #27493 )
...
Bumps [zeitwerk](https://github.com/fxn/zeitwerk ) from 2.6.15 to 2.6.16.
- [Changelog](https://github.com/fxn/zeitwerk/blob/main/CHANGELOG.md )
- [Commits](https://github.com/fxn/zeitwerk/compare/v2.6.15...v2.6.16 )
---
updated-dependencies:
- dependency-name: zeitwerk
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-17 14:30:38 +02:00
dependabot[bot]
ba27735760
Build(deps): Bump net-imap from 0.4.12 to 0.4.13 ( #27498 )
...
Bumps [net-imap](https://github.com/ruby/net-imap ) from 0.4.12 to 0.4.13.
- [Release notes](https://github.com/ruby/net-imap/releases )
- [Commits](https://github.com/ruby/net-imap/compare/v0.4.12...v0.4.13 )
---
updated-dependencies:
- dependency-name: net-imap
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-17 14:22:02 +02:00
Jarek Radosz
516d14d59b
DEV: Further refactor of card-contents-base ( #27487 )
...
* remove `boundCardClickHandler`
* remove jQuery usage
* explicitly pass `event` into `_positionCard()`
* move `_positionCard()` calls into the mixin
* inline variables
* remove `!target` check
* merge nested `if`s
* remove unnecessary `return`
* update the `_showCallback` comment
* move computed props below basic props
* `let` -> `const`
2024-06-14 23:27:29 +02:00
Jarek Radosz
c9f8708c42
DEV: Update Gemfile.lock to include darwin-24 ( #27488 )
...
(aka macOS Sequoia)
2024-06-14 22:25:02 +02:00
Kris
3a31c47d37
UX: remove padding to fix mobile thread date pinning ( #27470 )
2024-06-14 13:50:27 -04:00
Kris
e245bf2a18
UX: highlight "no subcategories" as active dropdown option ( #27478 )
2024-06-14 13:50:13 -04:00
Daniel Waterworth
63e8c79e2f
FIX: Make edit categories sidebar modal work more intuitively ( #27111 )
...
* Load search results in displayed order so that when more categories are loaded on scroll, they appear at the end,
* Limit the number of subcategories that are shown per category and display 'show more' links,
2024-06-14 11:37:32 -05:00
Jarek Radosz
831b1fee36
DEV: Minor cleanup of user-card code ( #27436 )
2024-06-14 18:21:17 +02:00
Renato Atilio
49fdccbb1d
FIX: restrict a href protocols on form template description ( #27472 )
2024-06-14 11:39:43 -03:00
David Taylor
fb259acd52
DEV: Introduce callback-based native class syntax for modifyClass ( #27324 )
...
This allows modifyClass to be used like this:
```
api.modifyClass(
"model:topic",
(Superclass) =>
class extends Superclass {
static someStaticMethod() {
return `${super.someStaticMethod()} modified`;
}
someFunction() {
return `${super.someFunction()} modified`;
}
get someGetter() {
return `${super.someGetter} modified`;
}
}
);
```
One limitation, which is the same as the old object-literal syntax, is that native class fields and constructors cannot be modified.
`@tracked` properties can be overriden, because the decorator turns them into getters/setters.
There is no need to pass a `pluginId` any more. Changes are automatically rolled back as part of test cleanup 🎉
2024-06-14 14:39:23 +01:00
dependabot[bot]
739855b750
Build(deps-dev): Bump the embroider group with 2 updates ( #27476 )
...
Bumps the embroider group with 2 updates: [@embroider/compat](https://github.com/embroider-build/embroider/tree/HEAD/packages/compat ) and [@embroider/core](https://github.com/embroider-build/embroider/tree/HEAD/packages/core ).
Updates `@embroider/compat` from 3.5.2 to 3.5.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/compat )
Updates `@embroider/core` from 3.4.11 to 3.4.12
- [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 )
---
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
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-14 15:27:34 +02:00
Osama Sayegh
4aea12fdcb
DEV: Allow fetching specific site settings and introduce a service for updating site settings ( #27481 )
...
This commit adds ability to fetch a subset of site settings from the `/admin/site_settings` endpoint so that it can be used in all places where the client app needs access to a subset of the site settings.
Additionally, this commit also introduces a new service class called `UpdateSiteSetting` that encapsulates all the logic that surrounds updating a site setting so that it can be used to update site setting(s) anywhere in the backend. This service comes in handy with, for example, the controller for the flags admin config area which may need to update some site settings related to flags.
Internal topic: t/130713.
2024-06-14 13:07:27 +03:00
dependabot[bot]
86e768f9e9
Build(deps): Bump sanitize from 6.1.0 to 6.1.1 ( #27475 )
...
Bumps [sanitize](https://github.com/rgrove/sanitize ) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/rgrove/sanitize/releases )
- [Changelog](https://github.com/rgrove/sanitize/blob/main/HISTORY.md )
- [Commits](https://github.com/rgrove/sanitize/compare/v6.1.0...v6.1.1 )
---
updated-dependencies:
- dependency-name: sanitize
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-14 11:00:42 +02:00
dependabot[bot]
ebef269d62
Build(deps-dev): Bump lefthook from 1.6.15 to 1.6.16 ( #27477 )
...
Bumps [lefthook](https://github.com/evilmartians/lefthook ) from 1.6.15 to 1.6.16.
- [Release notes](https://github.com/evilmartians/lefthook/releases )
- [Changelog](https://github.com/evilmartians/lefthook/blob/master/CHANGELOG.md )
- [Commits](https://github.com/evilmartians/lefthook/compare/v1.6.15...v1.6.16 )
---
updated-dependencies:
- dependency-name: lefthook
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-14 11:00:21 +02:00
dependabot[bot]
e2d2c071ce
Build(deps-dev): Bump rspec-expectations from 3.13.0 to 3.13.1 ( #27480 )
...
Bumps [rspec-expectations](https://github.com/rspec/rspec-expectations ) from 3.13.0 to 3.13.1.
- [Release notes](https://github.com/rspec/rspec-expectations/releases )
- [Changelog](https://github.com/rspec/rspec-expectations/blob/main/Changelog.md )
- [Commits](https://github.com/rspec/rspec-expectations/compare/v3.13.0...v3.13.1 )
---
updated-dependencies:
- dependency-name: rspec-expectations
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-14 10:59:16 +02:00
dependabot[bot]
a4cb84c779
Build(deps): Bump nokogiri from 1.16.5 to 1.16.6 ( #27482 )
...
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri ) from 1.16.5 to 1.16.6.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases )
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/v1.16.6/CHANGELOG.md )
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.16.5...v1.16.6 )
---
updated-dependencies:
- dependency-name: nokogiri
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-14 15:50:14 +10:00
David McClure
f2daea8556
Update getting started guide ( #27483 )
...
- Remove image
- Move “if you need to get back here” blurb below main checklist
- Note that each checklist item is a section in the doc
- Add nudge to create a topic in the “Discuss ideas” section
- Move “please join meta” blurb into email configuration section
- Fix a typo and remove some trailing whitespace
2024-06-13 22:33:59 -04:00
Kris
e92323c81e
UX: replace "all subcategories" with "remove filter", reorder tag dropdown ( #27473 )
2024-06-13 17:10:25 -04:00
Kris
c2417ffc47
UX: make tag filter color consistent with category filters ( #27474 )
2024-06-13 16:45:00 -04:00
Mark Reeves
1a917c5e5e
FEATURE: Capture 28 day interval request stats ( #27471 )
2024-06-13 16:02:28 -04:00
Daniel Waterworth
a1d881f625
DEV: Add test to ensure /categories/search doesn't return secret categories ( #27469 )
2024-06-13 12:17:15 -05:00
Gabriel Grubba
93c2ae585c
FEATURE: Add tag_group option in `/filter` ( #27427 )
...
* FEATURE: Add tag_group option in `/filter`
* DEV: Update tag_group_filter in `/filter` to use SQL
* DEV: Add guardian to `/filter` by tag_group
* DEV: remove unused code
* DEV: Update tag_group filter implementation
* DEV: Add tests to tag_group filter
2024-06-13 14:03:49 -03:00
Jan Cernik
d7ece61252
UX: Rename FAQ to Guidelines ( #27451 )
2024-06-13 12:09:53 -03:00
Jarek Radosz
fe00796027
DEV: Minor refactor of chat models ( #27467 )
...
* remove default prop values where they're being set in constructor
* replace some `||` operators in constructors with `??` so the fallback boolean values are actually used
2024-06-13 17:07:31 +02:00
Jarek Radosz
b289351a3f
DEV: Minor refactor of tooltip and menu services ( #27466 )
...
* use `TrackedSet` instead of `@tracked []`
* correct return type annotations
* move code to outside Promise blocks where possible
* fix an outdated comment
2024-06-13 16:43:28 +02:00
David Battersby
3b653a918e
FEATURE: show my threads from muted chat channels ( #27468 )
...
We should show threads from muted channels in the My Threads area so that users can easily access their followed threads.
2024-06-13 18:39:35 +04:00
Loïc Guitaut
ce069edc34
DEV: Upgrade rubocop-discourse to 3.8.1
2024-06-13 15:27:54 +02:00
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