Commit Graph
59992 Commits
Author SHA1 Message Date
Renato Atilio 20f5b3f754 UX: move Quote whole post from main toolbar to more menu (#33366) 2025-06-27 06:52:33 -03:00
Renato Atilio 88b37a715a DEV: ensure retries do not re-set attempts=0 (#33365) 2025-06-27 06:51:10 -03:00
Gary Pendergast f1e9723e96 FIX: Unclaim reviewables when an action modal is cancelled. (#33377)
When a modal is opened as part of a reviewable action, we automatically mark a reviewable as claimed, so that other site staff won't accidentally start working on that reviewable. If the modal is cancelled out of, however, we weren't removing the claimed flag.
2025-06-27 16:16:37 +10:00
Sam d9174e7435 FIX: add missing last read sort order to full page search (#33376)
- Also fixes alias resolution
2025-06-27 14:30:59 +10:00
Gary Pendergast fcb943fa70 FIX: Use libv8-node-24.1.0.0-x86_64-darwin when needed. (#33372) 2025-06-27 11:08:46 +10:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 5c4ed56d4b Build(deps-dev): Bump @swc/core from 1.12.6 to 1.12.7 (#33371)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.12.6 to
1.12.7.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/swc-project/swc/compare/v1.12.6...v1.12.7)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-27 02:27:06 +02:00
dependabot[bot]dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Discourse CI
00f44cc25c Build(deps): Bump the babel group with 2 updates (#33370)
Bumps the babel group with 2 updates:
[@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core)
and
[@babel/standalone](https://github.com/babel/babel/tree/HEAD/packages/babel-standalone).


Updates `@babel/core` from 7.27.4 to 7.27.7
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/babel/babel/commits/v7.27.7/packages/babel-core)

Updates `@babel/standalone` from 7.27.6 to 7.27.7
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/babel/babel/commits/v7.27.7/packages/babel-standalone)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Discourse CI <ci@ci.invalid>
2025-06-27 01:59:16 +02:00
Sérgio Saquetim 0f2996a3b3 DEV: Introduce DAG API for post metadata infos (#33354)
Reorganized post metadata rendering using a Directed Acyclic Graph (DAG)
structure to allow plugins to add, delete, replace or reorder metadata
components.
2025-06-26 15:14:34 -03:00
Guhyoun Nam 75ea334c79 DEV: Update composer:created-post, flag:created appEvent trigger (#33360)
## Changes

This PR updates the "composer:created-post" and "flag:created" appEvent
trigger to have the post id.
2025-06-26 11:35:02 -05:00
Chris Alberti 7b8b1c4b51 DEV: Pass ExportUserArchive job args into provide_results method (#33359)
I'm extending this job in a plugin and need to be able to access an
additional job arg in the `provide_results` method (see
https://github.com/discourse/discourse/pull/33328)
2025-06-26 10:40:55 -05:00
Selase Krakani 5ad072aab4 DEV: Add categories converter and importer steps (#33067)
This adds a converter (Discourse only, for now) and importer steps for categories, along with a category upload references import step.
2025-06-26 16:37:24 +02:00
Joffrey JAFFEUX 2dcfb49de3 FIX: improves post toolbar behavior (#33342)
This commit is applying different techniques to make selecting text of a
post less error prone:
- ensure we only ever show the toolbar when the common ancestor of a
range is cooked
- ensures the menu is not interfering with text selection

The situation was very bad on android but it should also improve other
devices.

Note that one visual change of this commit is that the fast edit menu is
now a standalone modal.
2025-06-26 10:07:26 +02:00
Sam e180c62d2e FEATURE: new search order for read topics (#33353)
Introduces order:read and r to search through recently read topics

Also applies to filter route
2025-06-26 17:02:52 +10:00
Martin Brennan d92de3e4d0 FIX: Admin search not including plugin pages (#33356)
Followup 4fe85fdb53

It's not ideal, but currently the admin-sidebar modifies ADMIN_NAV_MAP,
and the admin search data source relies on this modification to include
plugin pages in search.

This commit removes the cloneJSON added in the previous one and adds a
test to ensure this doesn't regress.

A followup commit will do some refactoring to stop this behaviour of
modifying the global ADMIN_NAV_MAP.
2025-06-26 13:35:13 +10:00
Jarek Radosz 4fe85fdb53 DEV: Fix flaky AdminSearchDataSource tests (#33346)
and remove unnecessary code
2025-06-26 01:51:29 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 8c5d98bf06 Build(deps-dev): Bump rspec-core from 3.13.4 to 3.13.5 (#33352)
Bumps [rspec-core](https://github.com/rspec/rspec) from 3.13.4 to
3.13.5.
-
[Changelog](https://github.com/rspec/rspec/blob/rspec-core-v3.13.5/rspec-core/Changelog.md)
-
[Commits](https://github.com/rspec/rspec/compare/rspec-core-v3.13.4...rspec-core-v3.13.5)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-26 00:53:21 +02:00
Gerhard SchlagerandSelase Krakani c79c1d63d0 DEV: Import user avatars from IntermediateDB (#33319)
This also enhances the converter step, which stores the Gravatar if it is
set and used. It also fixes the import of uploads which didn't use the
correct user ID.

---------

Co-authored-by: Selase Krakani <849886+s3lase@users.noreply.github.com>
2025-06-25 23:37:27 +02:00
Kris cf387d320f DEV: remove unused sidebar section-message component (#33351)
Long ago (~2 years), we had a sidebar section with text content. This
contained "about" content for anonymous visitors. We no longer have this
section so this component is completely unused.
2025-06-25 17:14:51 -04:00
Penar MusarajandBlake Erickson 00c97178d5 FIX: Don't allow submitting bulk topic actions without a notification… (#33292)
… level

See report https://meta.discourse.org/t/-/371074

---------

Co-authored-by: Blake Erickson <blake@discourse.org>
2025-06-25 14:48:36 -06:00
Blake Erickson 32aec6fca7 FIX: Chat video thumbnails on iOS (#33349)
Turns out we do need the iOS check, not just the safari check.

Follow up to: #33199
2025-06-25 14:00:28 -06:00
Chris Alberti 237abe4c96 DEV: Update eye icon behavior for secret site settings (#33345)
Previously it always had a slash through it. Now it has a slash if
clicking it will hide the site setting, and no slash if clicking it will
show the site setting.


![image](https://github.com/user-attachments/assets/28dbed34-7a1a-4932-99c2-58f0f5f215a5)

![image](https://github.com/user-attachments/assets/d55069d6-065e-4522-b615-71a8c69f82bc)
2025-06-25 10:23:22 -05:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> cd0f1afafc Build(deps): Bump mini_racer from 0.18.1 to 0.19.0 (#33334)
Bumps [mini_racer](https://github.com/discourse/mini_racer) from 0.18.1
to 0.19.0.
- [Changelog](https://github.com/rubyjs/mini_racer/blob/main/CHANGELOG)
-
[Commits](https://github.com/discourse/mini_racer/compare/v0.18.1...v0.19.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-25 16:20:50 +02:00
Kris 448dc2601b REFACTOR: move mobile/signup-progress-bar CSS into common/signup-progress-bar (#33331)
This concerns these green dots for progress on signup. 
 
Most of the mobile CSS was redundant due to some previous design
changes, so this is largely removing the contents of that file.


Desktop:

![image](https://github.com/user-attachments/assets/0894e0b2-2145-4d13-a85b-b1b7caf64363)

Mobile:

![image](https://github.com/user-attachments/assets/8d2acbfc-6935-4bcd-acef-91a44820ebaa)
2025-06-25 09:33:23 -04:00
Kris 398dcaa8af REFACTOR: move mobile/modal-overrides CSS into common/modal-overrides (#33332)
This is largely a 1:1 move with no visual changes, but I noticed an
issue with the mobile change owner modal so I've also added a fix for
that:

Before (dropdown obscured): 

![image](https://github.com/user-attachments/assets/b6654227-291d-4731-9b97-a1bcc3483b84)

After:

![image](https://github.com/user-attachments/assets/1ef55afa-bc8f-4d2a-9a66-03dd1ffc47b9)
2025-06-25 09:33:14 -04:00
Sérgio Saquetim 85aad95be9 DEV: Display correctly the items in the post action summary (#33330)
- Refactored the `actions-summary` widget and its related test to
directly use a `post` model instance, ensuring more consistent data
handling. Updated relevant rendering and widget registration logic to
align with the changes.
- Fix displaying the user that deleted the post
- Fix the post action text displayed
2025-06-25 09:15:43 -03:00
Selase Krakani 404dcc7623 DEV: Add badges converter and importer steps (#33019)
This adds converter(just Discourse for now) and importer steps for
`badges`
2025-06-25 13:15:24 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 8ae070c91e Build(deps-dev): Bump mime-types-data from 3.2025.0617 to 3.2025.0624 (#33335)
Bumps [mime-types-data](https://github.com/mime-types/mime-types-data)
from 3.2025.0617 to 3.2025.0624.
-
[Changelog](https://github.com/mime-types/mime-types-data/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/mime-types/mime-types-data/compare/v3.2025.0617...v3.2025.0624)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-25 13:11:05 +02:00
dependabot[bot]anddependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> eb804d4f1c Build(deps-dev): Bump @swc/core from 1.12.5 to 1.12.6 (#33333)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.12.5 to
1.12.6.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/swc-project/swc/compare/v1.12.5...v1.12.6)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-25 13:10:41 +02:00
Osama Sayegh 22093826d7 FIX: Make theme relative selectors save (#33344)
The parent component of `ThemeSettingRelativesSelectorComponent`,
`SiteSettingComponent`, has recently been migrated from being a legacy
component to a Glimmer component (in
https://github.com/discourse/discourse/pull/33255), but we missed
updating the child class to use Glimmer's patterns, namely how arguments
are accessed in Glimmer components (`this.args.foo` vs `this.foo`).
2025-06-25 14:06:13 +03:00
chapoi 5e8b92b789 UX: Updated gear to plus icon in discobot tutorial (#33343)
Discobot advanced tutorial needed the gear icon replaced by the new plus
icon.
Related to #32918
2025-06-25 12:07:23 +02:00
Renato Atilioandchapoi c74366c595 UX: display active state on rich editor toolbar (#33296)
Highlights the active formatting state in the toolbar based on the
current cursor position/selection.


![image](https://github.com/user-attachments/assets/383d71c1-bf42-4353-b16b-bf16ae3b321f)

---------

Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
2025-06-25 06:50:00 -03:00
Alan Guo Xiang Tan 99ab4608dc FIX: Ignore recent posts offset in search when before/after filters are used (#33323)
There exists a hidden `search_recent_regular_posts_offset_post_id` site
setting which is used to optimize the searching of recent posts through
the use of a partial index. However, we do not want this optimization to
apply when the `before` and `after` advanced search filters are used
since the partial index only contains the most recent posts 1 million
posts and the `before`/`after` filter may be searching for posts that
falls outside of the
most recent posts range.
2025-06-25 15:23:08 +08:00
Alan Guo Xiang Tan 684569c30e PERF: Avoid slow preloading in SiteSerializer (#33283)
`SiteSerializer#post_action_types` and `SiteSerializer#topic_flag_types`
both call the `Flag.used_flag_ids` method which executes queries that
becomes very slow on sites with alot of records in either the
`post_actions` or `reviewable_scores` table.

On the `post_actions` table, we execute `SELECT DISTINCT
post_action_type_id FROM post_actions`. On the `reviewable_scores`
table, we execute `SELECT DISTINCT reviewable_scope_type FROM
reviewable_scopes`. The problem with both queries is that it requires
the PG planner to scan through every single row in those tables.

For our use case, all we actually need is to check if a flag is being
referenced by a record in either the `post_actions` or
`reviewable_scores` tables. This commit updates the `Flag.used_flag_ids`
to accept a `flag_ids`
argument and use the argument to check whether the flag ids are
referenced in the `post_action_type_id` or `reviewable_scope_type`
foreign keys.
2025-06-25 15:03:34 +08:00
Alan Guo Xiang Tan b9628ad40a DEV: Update uploads:sync_access_control rake task to remove ACLs (#33286)
The `uploads:sync_access_control` rake task should reset the access
control
of all s3 objects linked to an upload record. This means that if the
`s3_use_acls` site setting has been disabled, the rake task should
remove the existing ACL that has been set previously.
2025-06-25 15:03:05 +08:00
Martin Brennan 3a9d2ac491 DEV: Skip admin search data source label test (#33324)
This is too flaky on CI
2025-06-25 16:53:40 +10:00
Martin Brennan 1d1743152b FIX: Add humanized setting names for theme setting serializer (#33341)
Followup 5b236ccc07, a change here
made it so the theme setting name was no longer showing on the
UI, this commit fixes the issue by making sure it's sent from
the server in the same way as site setting humanized names.
2025-06-25 16:53:28 +10:00
Alan Guo Xiang Tan 3eb252c9d1 Bump version to v3.5.0.beta8-dev 2025-06-25 10:52:27 +08:00
Alan Guo Xiang Tan fd2f543a08 Bump version to v3.5.0.beta7 v3.5.0.beta7 2025-06-25 10:52:27 +08:00
Alan Guo Xiang Tan 0b1dd04550 SECURITY: Don't display user's old whispers if not in allowed group
Before this change, users were able to see their own whispers even if
they are no longer in the groups specified by the `whispers_allowed_groups` site setting.

This commit fixes that by disallowing users to see their own whispers if
they are no longer part of any `whispers_allowed_groups`.
2025-06-25 10:25:44 +08:00
zogstrip b03d2ae808 FIX: correctly displaying the failure error message
when a provider was submitted as a query param.

Internal ref - t/155006
2025-06-25 10:25:41 +08:00
Gerhard Schlager 2fa0dc58d4 DEV: Allow multiple users to have the same email in IntermediateDB (#33318)
The import script will merge the users based on email
2025-06-24 22:59:00 +02:00
Gerhard Schlager b31189e0b4 DEV: Add --reset option to import command (#33317)
It deletes the MappingDB before executing the import. That's useful
during development when you repeat the import multiple times.
2025-06-24 22:58:32 +02:00
Chris Alberti 61033eed4c FIX: Hide secret admin fields by default (#33255)
Fixed the refs to the `setting` argument and refactored more of the component over to glimmer style, added test against regression
2025-06-24 13:36:59 -05:00
Chris Alberti 9603cfb781 DEV: Move creation of user archive PM with upload to its own function (#33328)
...so I can override it in a customer plugin.

The goal here is to be able to create the same user data export but
provide the results by uploading to an s3 bucket instead of sending a PM
to the user.
2025-06-24 10:30:36 -05:00
Kris 8ac57fc272 FIX: make topic optional in render-tags so reviewables can use discourseTags (#33181)
We lost the comma separator for tags in reviewables after 55a3a4e

This gets it back by using `discourseTags` in `ReviewableTags` — to
support this I made the topic optional in `renderTags` because queued
posts don't pass the full topic


Before:


![image](https://github.com/user-attachments/assets/2302d946-a3d9-46dc-bf26-8a9b9e720980)

After:


![image](https://github.com/user-attachments/assets/49824676-a4a0-41dd-b6ae-e4d7b419070c)


![image](https://github.com/user-attachments/assets/20493467-15a0-4072-a452-fac319ae222e)
2025-06-24 11:23:49 -04:00
Mark VanLandingham 5eaa876898 DEV: Add bypass_time_window arg to SendPushNotification job (#33293)
This PR allows `bypass_time_window` to be passed to the
`SendPushNotification` job, to continue sending a PN, even if the user
has been active recently.
2025-06-24 09:43:54 -05:00
Discourse Translator Bot 541c6cc1d7 Update translations (#33326) 2025-06-24 16:29:13 +02:00
Natalie Tay a6d3597758 FIX: Return the post's raw when GET /post (#33325)
Previously, there was no way to edit post localizations, so the
`post.raw` was always returning the localized value. With localization
UI and endpoints now, we want to always return the original raw and the
composer to reflect the original value.

https://github.com/discourse/discourse/pull/33184 will handle the
decision to show the post edit composer or the post localization
composer.
2025-06-24 22:11:02 +08:00
Gary Pendergast cef46d612f DEV: Add "UI" as a humanizable acronym (#33322)
Site settings with the acronym "ui" in them will now have it formatted as "UI".
2025-06-24 15:42:35 +10:00
Martin Brennan 113bff5d0d DEV: Make admin search data source tests more reliable (#33321)
Also fix some issues in the source, wasn't returning a promise
with the early return.

Saw this in the CI log failures:

> ℹ️ Hint: when the assertion failed, the Ember runloop was not in a
settled state. Maybe you missed an `await` further up the test? Or maybe
you need to manually add `await settled()` before your assertion?
(hasPendingTimers, hasRunLoop, isRenderPending)
2025-06-24 15:41:57 +10:00