2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-03 17:21:20 +08:00
Commit graph

61292 commits

Author SHA1 Message Date
chapoi
3762ed22db
UX: Horizon > button styling tweaks (#34912)
New goals: 
* align the hover and focus effects as they both amount to the same
thing: highlighting what is being interacted with
* align the button styling between default and primary by using similar
effects (no background colour change, bold outline)

Also in this commit:
* slight tweak to Horizon dark palette for better contrast
* changed the post like button to use the d-hover variable, as the other
post buttons do

| What | BC | AC |
|--------|--------|--------|
| Hover effect – default | <img width="1468" height="268" alt="CleanShot
2025-09-22 at 19 43 34@2x"
src="https://github.com/user-attachments/assets/1857cc64-0d5e-4d08-812a-88ca45075502"
/> | <img width="1246" height="284" alt="CleanShot 2025-09-22 at 19 24
42@2x"
src="https://github.com/user-attachments/assets/13035460-774f-46ef-8522-be5e62c90e61"
/> |
| Hover effect – primary | <img width="1468" height="268" alt="CleanShot
2025-09-22 at 19 43 42@2x"
src="https://github.com/user-attachments/assets/87246ccd-5c59-44eb-82b0-88542a25be5f"
/> | <img width="1246" height="284" alt="CleanShot 2025-09-22 at 19 25
20@2x"
src="https://github.com/user-attachments/assets/c08f08ed-8b3d-40b2-92ac-a6eb6295c908"
/> |
| Hover effect – post actions | <img width="1396" height="458"
alt="CleanShot 2025-09-22 at 19 43 10@2x"
src="https://github.com/user-attachments/assets/0c39f7be-6b8c-4ede-8cae-39242fa4c435"
/> | <img width="1350" height="306" alt="CleanShot 2025-09-22 at 19 25
54@2x"
src="https://github.com/user-attachments/assets/02fa9020-135e-4e6e-9b95-3937f5f6dd37"
/> |
2025-09-23 07:49:12 -06:00
Loïc Guitaut
da12368682 DEV: Finish renaming secure_session to server_session 2025-09-23 10:35:02 +02:00
Natalie Tay
eb40b4f980
DEV: Plugin api for saving category attribute (#34898)
This commit adds `register_category_update_param_with_callback` to the
plugin API, allowing plugins to register category parameters and apply a
transactional callback relating to the param. The callback receives the
category instance and parameter value, and any exception raised will
roll back the category update.

  Example usage:
```
    register_category_param_with_transaction_callback(:doc_index_topic_id) do |category, value|
      DocCategories::CategoryIndexManager.new(category).assign!(value)
    end
```

In the example above, `doc_index_topic_id` will be added to
`permitted_params` in the category controller on update, and the
callback will be invoked on `after_update`, to ensure the category save
does not happen if the callback fails.

**Dev note**: I had considered creating a `CategoryExtension` and just
doing the typical `Category.prepend`, but I thought a plugin API is
probably better.
2025-09-23 11:14:45 +08:00
Natalie Tay
ae97fb1865
DEV: Add registerCategorySaveProperty to allow plugins to save other category attributes (#34896)
This commit introduces `registerCategorySaveProperty` that allows other
plugins that are adding additional parameters to the category to save
the new property alongside the default category properties (all under
the same save call), and are not using custom fields for that.

```
api.registerCategorySaveProperty("property_one");
api.registerCategorySaveProperty("property_two");
```
2025-09-23 11:14:22 +08:00
Sérgio Saquetim
8f0b790917
DEV: Ensure unhandled deprecation throws errors in core tests. (#34903)
Strengthens deprecation handling in tests by enforcing errors for
unhandled deprecations.

* Enforces error throwing for unhandled deprecations via stricter
DeprecationWorkflow.shouldThrow(..., true) usage in test handlers
* Fix the autocomplete deprecation warnings that were introduced while
the deprecations were not throwing errors.
2025-09-22 22:45:59 -03:00
dependabot[bot]
14438e92d8
Build(deps): Bump json from 2.13.2 to 2.15.0 (#34908)
Bumps [json](https://github.com/ruby/json) from 2.13.2 to 2.15.0.
- [Release notes](https://github.com/ruby/json/releases)
- [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md)
- [Commits](https://github.com/ruby/json/compare/v2.13.2...v2.15.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 01:34:17 +02:00
dependabot[bot]
ccfcfa441c
Build(deps): Bump oauth from 1.1.0 to 1.1.2 (#34907)
Bumps [oauth](https://github.com/ruby-oauth/oauth) from 1.1.0 to 1.1.2.
- [Release notes](https://github.com/ruby-oauth/oauth/releases)
-
[Changelog](https://github.com/ruby-oauth/oauth/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ruby-oauth/oauth/compare/v1.1.0...v1.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 01:32:39 +02:00
Sam
a5730bfe2f
DEV: clean up events settings (#34856)
- rename from calendar -> calendar and events
- fix config for plugin to show a tab for settings

still needs some CSS adjustments but mostly there

---------

Co-authored-by: Martin Brennan <martin@discourse.org>
2025-09-23 08:48:07 +10:00
dependabot[bot]
fce88038b3
Build(deps-dev): Bump rubocop-ast from 1.47.0 to 1.47.1 (#34906)
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast) from 1.47.0
to 1.47.1.
- [Release notes](https://github.com/rubocop/rubocop-ast/releases)
-
[Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md)
-
[Commits](https://github.com/rubocop/rubocop-ast/compare/v1.47.0...v1.47.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 00:34:05 +02:00
dependabot[bot]
f841a9a016
Build(deps-dev): Bump lefthook from 1.13.1 to 1.13.2 (#34911)
[//]: # (dependabot-start)
⚠️  **Dependabot is rebasing this PR** ⚠️ 

Rebasing might not happen immediately, so don't worry if this takes some
time.

Note: if you make any changes to this PR yourself, they will take
precedence over the rebase.

---

[//]: # (dependabot-end)

Bumps [lefthook](https://github.com/evilmartians/lefthook) from 1.13.1
to 1.13.2.
- [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.13.1...v1.13.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 00:33:56 +02:00
dependabot[bot]
3370ff8b76
Build(deps-dev): Bump lint-to-the-future from 2.6.3 to 2.6.4 (#34910)
Bumps
[lint-to-the-future](https://github.com/mansona/lint-to-the-future) from
2.6.3 to 2.6.4.
- [Release
notes](https://github.com/mansona/lint-to-the-future/releases)
-
[Changelog](https://github.com/mansona/lint-to-the-future/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mansona/lint-to-the-future/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-23 00:33:33 +02:00
dependabot[bot]
5d116eb709
Build(deps): Bump oauth-tty from 1.0.5 to 1.0.6 (#34888)
Bumps [oauth-tty](https://github.com/ruby-oauth/oauth-tty) from 1.0.5 to
1.0.6.
- [Release notes](https://github.com/ruby-oauth/oauth-tty/releases)
-
[Changelog](https://github.com/ruby-oauth/oauth-tty/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/ruby-oauth/oauth-tty/compare/v1.0.5...v1.0.6)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 23:02:08 +02:00
dependabot[bot]
95e2b1b7a8
Build(deps-dev): Bump puppeteer-core from 24.21.0 to 24.22.0 (#34849)
Bumps [puppeteer-core](https://github.com/puppeteer/puppeteer) from
24.21.0 to 24.22.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
-
[Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/puppeteer/puppeteer/compare/puppeteer-core-v24.21.0...puppeteer-core-v24.22.0)

---------

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-09-22 23:01:36 +02:00
Keegan George
d093a698c6
UX: Add translation button changes tooltip over icon color (#34901)
## 🔍 Overview

This update changes the UX for adding/updating translations in the post
menu. Previously when a post had translations it would use the
quaternary color to indicate that the button would cause a menu to open
up so you can add or view translations. This update, we always use the
default color and instead use a tooltip to indicate the difference.

## 📸 Screenshots

### ← Before
<img width="364" height="41" alt="Screenshot 2025-09-22 at 10 19 39"
src="https://github.com/user-attachments/assets/b64665dd-4457-462f-b8ad-3f1d25684f5a"
/>
<img width="475" height="54" alt="Screenshot 2025-09-22 at 10 19 29"
src="https://github.com/user-attachments/assets/7d8680c9-02f2-4a05-b3f2-a1b9fa1b93a0"
/>


### → After
<img width="304" height="174" alt="Screenshot 2025-09-22 at 10 15 06"
src="https://github.com/user-attachments/assets/8af04f2a-f0ba-4896-accc-62c72bc45597"
/>
<img width="227" height="113" alt="Screenshot 2025-09-22 at 10 15 16"
src="https://github.com/user-attachments/assets/6508a183-30ff-497c-a659-aca24f62711c"
/>
2025-09-22 13:18:43 -07:00
dependabot[bot]
f0f6fd26b2
Build(deps-dev): Bump esbuild from 0.25.9 to 0.25.10 (#34852)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.25.9 to
0.25.10.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.25.9...v0.25.10)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 22:13:09 +02:00
dependabot[bot]
d3ea22d7db
Build(deps-dev): Bump lefthook from 1.13.0 to 1.13.1 (#34848)
Bumps [lefthook](https://github.com/evilmartians/lefthook) from 1.13.0
to 1.13.1.
- [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.13.0...v1.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 22:11:30 +02:00
dependabot[bot]
78845b09b0
Build(deps-dev): Bump mime-types-data from 3.2025.0909 to 3.2025.0916 (#34847)
Bumps [mime-types-data](https://github.com/mime-types/mime-types-data)
from 3.2025.0909 to 3.2025.0916.
-
[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.0909...v3.2025.0916)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 22:10:57 +02:00
dependabot[bot]
4759b818b5
Build(deps): Bump postcss-js from 4.0.1 to 5.0.0 (#34831)
Bumps [postcss-js](https://github.com/postcss/postcss-js) from 4.0.1 to
5.0.0.
- [Release notes](https://github.com/postcss/postcss-js/releases)
-
[Changelog](https://github.com/postcss/postcss-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss-js/compare/4.0.1...5.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 22:05:59 +02:00
dependabot[bot]
76c70ceb13
Build(deps): Bump @csstools/postcss-light-dark-function from 2.0.10 to 2.0.11 (#34890)
Bumps
[@csstools/postcss-light-dark-function](https://github.com/csstools/postcss-plugins/tree/HEAD/plugins/postcss-light-dark-function)
from 2.0.10 to 2.0.11.
-
[Changelog](https://github.com/csstools/postcss-plugins/blob/main/plugins/postcss-light-dark-function/CHANGELOG.md)
-
[Commits](https://github.com/csstools/postcss-plugins/commits/HEAD/plugins/postcss-light-dark-function)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 21:58:33 +02:00
dependabot[bot]
3254c51e5d
Build(deps-dev): Bump rubocop-ast from 1.46.0 to 1.47.0 (#34889)
Bumps [rubocop-ast](https://github.com/rubocop/rubocop-ast) from 1.46.0
to 1.47.0.
- [Release notes](https://github.com/rubocop/rubocop-ast/releases)
-
[Changelog](https://github.com/rubocop/rubocop-ast/blob/master/CHANGELOG.md)
-
[Commits](https://github.com/rubocop/rubocop-ast/compare/v1.46.0...v1.47.0)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 21:57:55 +02:00
dependabot[bot]
33c58e1d33
Build(deps-dev): Bump sqlite3 from 2.7.3 to 2.7.4 (#34892)
Bumps [sqlite3](https://github.com/sparklemotion/sqlite3-ruby) from
2.7.3 to 2.7.4.
- [Release
notes](https://github.com/sparklemotion/sqlite3-ruby/releases)
-
[Changelog](https://github.com/sparklemotion/sqlite3-ruby/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/sparklemotion/sqlite3-ruby/compare/v2.7.3...v2.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-22 21:13:29 +02:00
chapoi
d83d43025b
UX: Horizon > increase z-index for list controls (#34902)
The clickable card layout used in the boxes+featured categories has a
higher z-index, which conflicts with the sticky list-controls in
Horizon. Hence the latter needs this increase.

<img width="804" height="1584" alt="CleanShot 2025-09-22 at 12 00 26@2x"
src="https://github.com/user-attachments/assets/9ae057f0-cbe0-4677-b10b-550741ade7ab"
/>
<img width="804" height="1584" alt="CleanShot 2025-09-22 at 12 00 37@2x"
src="https://github.com/user-attachments/assets/a821cb6a-e6c9-4f20-ab64-29f32829fb80"
/>
2025-09-22 12:56:53 -06:00
Jordan Vidrine
284ff78b17
UX: Remove shadow, implement space variables (#34885) 2025-09-22 11:37:04 -05:00
Joffrey JAFFEUX
b8e86ceb23
FIX: disable category calendar when post event are disabled (#34897)
Some checks are pending
Licenses / run (push) Waiting to run
Linting / run (push) Waiting to run
Publish Assets / publish-assets (push) Waiting to run
Tests / core backend (push) Waiting to run
Tests / plugins backend (push) Waiting to run
Tests / core frontend (Chrome) (push) Waiting to run
Tests / plugins frontend (push) Waiting to run
Tests / themes frontend (push) Waiting to run
Tests / core system (push) Waiting to run
Tests / plugins system (push) Waiting to run
Tests / themes system (push) Waiting to run
Tests / core frontend (Firefox ESR) (push) Waiting to run
Tests / core frontend (Firefox Evergreen) (push) Waiting to run
Tests / chat system (push) Waiting to run
Tests / merge (push) Blocked by required conditions
Disabling post event with category events set would cause an error when
visiting the category, this commit ensures it's not the case and adds a
test for it.

Also added tests to ensure we correctly render category calendar in
different outlets as the before-topic-list-body one was broken.
2025-09-22 17:05:19 +02:00
Bryce Huhtala
d7f8e67b1a
FIX: Check conditions for mobile /filter bulk select btn (#34887)
Addresses an issue where the bulk select button appeared on the moblile
/filter page for users who cannot bulk select. Reported on meta
[here](https://meta.discourse.org/t/bulk-select-button-appears-on-mobile-even-if-you-are-not-a-mod/383361.

The fix adjusts the logic for displaying the bulk select button to
always require `canBulkSelect`.

Follow-up fix for https://github.com/discourse/discourse/pull/34237
2025-09-22 09:00:57 -04:00
Martin Brennan
5de82e4023
UX: Disabled restore backup title included link HTML (#34894)
Followup https://github.com/discourse/discourse/pull/28452

The title for the "Restore" backup button was using HTML, the
same as the alert for admins telling them that restoring is disabled.
This fixes  the issue by adding a plain text title a reference to the
relevant site setting.

c.f.
https://meta.discourse.org/t/restore-backup-tooltip-link-broken/345620
2025-09-22 17:04:33 +10:00
Alan Guo Xiang Tan
0ba2b0d44b
DEV: Skip flaky system test (#34895)
Failing even on reruns on CI:
https://github.com/discourse/discourse/actions/runs/17905331817/job/50905399086
2025-09-22 14:00:59 +08:00
Ted Johansson
521e966266
DEV: Show back to queue link in header on new review UI (#34871)
This PR adds the "Back to queue" link for the new review UI, while
reserving the old header for the old UI index and show.
2025-09-22 13:15:26 +08:00
Kelv
543cbc0da2
DEV: remove composer service closeAutocomplete function (#34870)
This function is effectively now a no-op after
https://github.com/discourse/discourse/pull/34867 which removes the
ability to set up the jquery-based autocomplete library in composer.
Floatkit autocomplete handles its own cancel & close functionality via
its component lifecycle.

This will be ok to merge once all calls to this function from supported
plugins are removed.
2025-09-22 11:20:50 +08:00
Martin Brennan
2a65bf4522
FEATURE: Do not bump topic on post edit (#34681)
We currently bump the entire topic if the last post
in the topic is edited.

This is quite noisy and distracting, particularly in cases where the
edit was to address a small typo rather than dramatically rework the
post.

So, this commit no longer bumps a topic on post edit for
any posts in the topic. Only manually bumping the
topic in the footer or in bulk actions will bump it now,
or when tags/category are edited depending on settings.
2025-09-22 11:28:45 +10:00
Martin Brennan
37286de6d2
FEATURE: Show themeable site settings in site setting lists (#34666)
This commit removes the filter that would remove themeable
site settings from all setting lists, so they are easier to
find for admins.

To do this, we show the value of the site's default theme
for that theme site setting, disable the setting component,
and provide a link to the site's default theme for quick
editing.

---------

Co-authored-by: awesomerobot <kris.aubuchon@discourse.org>
2025-09-22 10:55:23 +10:00
Martin Brennan
d1660148d8
FIX: Horizon topic activity username sometimes blank (#34679)
For these steps:

* In Horizon, create a topic.
* You’ll notice that the topic card has the OP name.
* Make an edit to the OP after the edit grace period.

You would see no username under the topic title. This is because
we were saying that if the topic bump date was after the last post
date, then we should never show any edit details.

However this didn't handle the common case of posting then editing
soon after.

Now in this commit, if the difference is < 1 day, we still show
the same username.

A proper fix would be to know the bumped_at_user then we can tell
if the user is the same as the last poster, but that is more complex
to do.
2025-09-22 10:24:14 +10:00
Penar Musaraj
5bb3b79e9b
UX: Fix padding for no-ember pages (#34884)
Some checks failed
Licenses / run (push) Has been cancelled
Linting / run (push) Has been cancelled
Publish Assets / publish-assets (push) Has been cancelled
Tests / core backend (push) Has been cancelled
Tests / plugins backend (push) Has been cancelled
Tests / core frontend (Chrome) (push) Has been cancelled
Tests / plugins frontend (push) Has been cancelled
Tests / themes frontend (push) Has been cancelled
Tests / core system (push) Has been cancelled
Tests / plugins system (push) Has been cancelled
Tests / themes system (push) Has been cancelled
Tests / core frontend (Firefox ESR) (push) Has been cancelled
Tests / core frontend (Firefox Evergreen) (push) Has been cancelled
Tests / chat system (push) Has been cancelled
Tests / merge (push) Has been cancelled
This regressed recently. We need to make sure non-ember pages have a
minimum left/right padding, otherwise content is hugging the device
edges.
2025-09-19 15:48:38 -04:00
Kris
e80366f0d3
UX: mobile user card fixes (#34883)
Follow up to
e48df44349
and 6a6ef12264

Fixes a regression with centered user field text and the way badges wrap
on mobile


Before
<img width="712" height="422" alt="image"
src="https://github.com/user-attachments/assets/76591192-3b0e-4a1b-8e6d-969f9be9c3ce"
/>


After
<img width="812" height="382" alt="image"
src="https://github.com/user-attachments/assets/7cc074e8-584d-4a49-8aee-9cb3d6946973"
/>
2025-09-19 15:26:32 -04:00
Renato Atilio
6e47c97621
DEV: rich editor - don't parse html images with data: content (#34863)
Avoid parsing images with `data:` content (usually with long base64) on
image node's `parseDOM` (eg. when pasting).

Base64 images are unsupported when pasting on markdown mode and on other
"rich" authoring tools.

A future improvement will be triggering an upload for each pasted base64
image and then replacing it, but this stops the bleeding of generating
an awfully long Markdown output.
2025-09-19 16:13:17 -03:00
Kris
185ced442a
A11Y: fix toolbar keyboard navigation with d-menu items (#34615)
When navigating the composer toolbar with arrow keys, you get stuck once
you hit the headings button and arrow keys cease to work in either
left/right direction. You get stuck here:

<img width="595" height="58" alt="image"
src="https://github.com/user-attachments/assets/cebc00a5-c629-488a-8716-6a9100e7b1b1"
/>

The issue was that DMenu captures keyboard commands looking for a `tab`
and ignoring all other keys and this was breaking the parent handler
watching for arrow keys. This will now pass other keys beyond tab back
to the parent, so we can nav beyond headings in the toolbar.

<img width="630" height="62" alt="image"
src="https://github.com/user-attachments/assets/88d96979-0651-4744-8dd7-d2f2d8abe53b"
/>

I've added a test to check for this "stuck" state in the future.
2025-09-19 14:57:54 -04:00
Régis Hanol
3a931318f9
FIX: Handle deleted users in solved topics gracefully (#34880)
Prevents crashes when accepter or answer post user is deleted by falling
back to system user or topic author.

Internal ref - t/162854
2025-09-19 18:20:10 +02:00
Kris
844d36d266
FIX: add finished to modal animateBackdropOpacity promise (#34879)
Fixes an error when closing modals on mobile because a promise wasn't
being returned

`Uncaught (in promise) TypeError: promise.then is not a function`

<img width="2060" height="846" alt="image"
src="https://github.com/user-attachments/assets/ffb54160-d3d8-4fd1-a358-3b150b99b5c7"
/>
2025-09-19 12:03:59 -04:00
Sérgio Saquetim
857c04de0f
DEV: Convert showSidebar to a tracked property with getter and setter (#34829)
Refactor `showSidebar` in `application.js` to use a tracked property,
allowing dynamic updates and configurable overrides. This supports
themes that rely on viewport properties to adjust the sidebar's
visibility.
2025-09-19 12:52:39 -03:00
Joffrey JAFFEUX
f6e71b463c
PERF: correctly index event dates (#34877) 2025-09-19 17:41:57 +02:00
Juan David Martínez Cubillos
587a180a66
FIX: DiscourseConnect provider redirect to forum instead of the sso_redirect_url in the payload (#34580)
Some checks are pending
Licenses / run (push) Waiting to run
Linting / run (push) Waiting to run
Publish Assets / publish-assets (push) Waiting to run
Tests / core backend (push) Waiting to run
Tests / plugins backend (push) Waiting to run
Tests / core frontend (Chrome) (push) Waiting to run
Tests / plugins frontend (push) Waiting to run
Tests / themes frontend (push) Waiting to run
Tests / core system (push) Waiting to run
Tests / plugins system (push) Waiting to run
Tests / themes system (push) Waiting to run
Tests / core frontend (Firefox ESR) (push) Waiting to run
Tests / core frontend (Firefox Evergreen) (push) Waiting to run
Tests / chat system (push) Waiting to run
Tests / merge (push) Blocked by required conditions
**Description**

Currently, when using Discourse as an SSO provider through the
DiscourseConnect provider, if a user logs in using the login form, the
user is not redirected to the expected `return_sso_url`. Instead, it is
redirected to the forum's home page. This fixes this behaviour and
allows the user to return to the expected URL.
2025-09-19 15:09:34 +02:00
NateDhaliwal
58e3009cc7
UX: Make add_email.email uppercase (#34876)
Reported at
https://meta.discourse.org/t/capitalise-the-a-on-the-add-button/383257,
this changes the Add email button from 'add' (lowercase) to 'Add'
(uppercase).
2025-09-19 09:05:19 -04:00
Joffrey JAFFEUX
0df3a82849
DEV: fix flakey spec (#34875)
It doesn’t appear this expectation is necessary and it was causing
random failure as sometimes we will have an error from promotheus in the
log totally unrelated:

```
expected block to not output to stderr, but output "E, [2025-09-19T07:16:59.199016 #2050] ERROR -- : Prometheus Exporter, failed to send message Connection refused - connect(2) for \"localhost\" port 9405\n"
```


/t/-/149729
2025-09-19 11:40:15 +02:00
Joffrey JAFFEUX
e9b4bfa87f
FIX: supports description for post events in rich editor (#34873)
Prior to this fix events with a description wouldn't show in the
composer when they contain a description. This was particularly
problematic as saving the post in this state would remove the event.
2025-09-19 10:39:36 +02:00
Loïc Guitaut
3fc6511278 FIX: Don’t store return path in the session
Since the session is backed by a cookie, storing too much data will lead
to a cookie overflow error.

A return path can be quite large sometimes, so intead of storing it in
the session, this patch stores it in our server session.
2025-09-19 10:05:20 +02:00
Alan Guo Xiang Tan
4b3b5b2dff
UX: Keep "Themes & Components" admin sidebar link active on components (#34869)
This commit ensures that the "Themes & Components" admin sidebar link
stays active on the `/admin/config/customize/components` and
`/admin/config/customize/theme-site-settings` routes.
2025-09-19 16:01:35 +08:00
Joffrey JAFFEUX
908371191f
PERF: removes N+1 when loading events list (#34841)
There was two issues:
- using the `TopicListItemSerializer` was fetching way more than we need
and also expecting includes from other plugins (assign for example),
switching to our own dedicated serializer seems a better choice here
- event dates were not preloaded
- fixed a spec which was supposed to track N+1 but was commented

I also improved our fabricator to limit the boilerplate needed.

We might need few more indices to improve perf event more here but going
to merge this first.
2025-09-19 09:12:23 +02:00
Kelv
547d99e3b4
DEV: remove toggles for switching between jquery & floatkit autocomplete (#34867)
We've had the new floatkit-based autocomplete live in various parts of
Discourse for about a month now, and it's stable enough for us to remove
the site setting letting admins revert to the jquery-based autocomplete
library which is now deprecated.
2025-09-19 14:50:04 +08:00
Alan Guo Xiang Tan
a05bb42b85
DEV: Remove unnecessary topic_timers_topic_id_trigger trigger (#34866)
This was causing restores to fail. The trigger is also unnecessary
because the `topic_id` column is already marked as read-only.

Follow-up to eeeb7d302f
2025-09-19 10:14:23 +08:00
Kelv
9ac956fcf0
DEV: add deprecation console warning to jquery autocomplete (#34857)
We are deprecating this jquery-based autocomplete library, replaced by
DAutocomplete modifier for text field usage and DMultiSelect for input
selector usage.
2025-09-19 09:30:46 +08:00