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

61263 commits

Author SHA1 Message Date
dependabot[bot]
e940eba5b6
Build(deps): Bump prosemirror-view from 1.41.1 to 1.41.2 in the prosemirror group (#35096)
Bumps the prosemirror group with 1 update:
[prosemirror-view](https://github.com/prosemirror/prosemirror-view).


Updates `prosemirror-view` from 1.41.1 to 1.41.2
-
[Changelog](https://github.com/ProseMirror/prosemirror-view/blob/master/CHANGELOG.md)
-
[Commits](https://github.com/prosemirror/prosemirror-view/compare/1.41.1...1.41.2)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-01 16:45:57 +02:00
David Taylor
c477b55c51
Revert "DEV: Move admin-api-keys outlet wrapper (#35085)" (#35118)
This reverts commit 554a131fe8.

We're investigating incompatibilities with plugins
2025-10-01 15:45:29 +01:00
Loïc Guitaut
2676c70572
Revert "DEV: Move more data into the server session" (#35115)
Reverts discourse/discourse#35009
2025-10-01 16:44:43 +02:00
Yuriy Kurant
eae2370424
FIX: hides redundant chat icon on mobile chat routes (#35015)
### Chat in Mobile view

In order to reduce visual noise in mobile view, there is no need to show
chat icon in header, once user has already chat open.

|Before|After|
|---|---|
|<img width="456" height="199" alt="Screenshot 2025-10-01 at 17 16 29"
src="https://github.com/user-attachments/assets/6d124a79-4a0a-4edd-913a-43a0cfa05623"
/>|<img width="442" height="198" alt="Screenshot 2025-10-01 at 17 16 06"
src="https://github.com/user-attachments/assets/052a2f78-574e-4d35-aff4-264f54f2fb15"
/>|
2025-10-01 22:34:15 +08:00
Isaac Janzen
d7cea61e36
DEV: Pass loadMore to after-topic-list outlet (#35092) 2025-10-01 08:33:37 -05:00
Selase Krakani
d6003f414f
DEV: Add archetype index (#35113) 2025-10-01 13:28:53 +00:00
Gerhard Schlager
ecb2c1144d DEV: Add YARD documentation for IntermediateDB models 2025-10-01 15:25:28 +02:00
Gerhard Schlager
5b3dbb2c6f DEV: Add ability to generate enums for IntermediateDB
This also adds the ability to generate YARD documentation for IntermediateDB models.
2025-10-01 15:25:28 +02:00
Ted Johansson
480e05e67a
FIX: Run scheduled problem checks even when no tracker exists yet (#35102)
### What is this change?

Scheduled problem checks without trackers weren't being run. This is
because we directly tried to look for trackers instead of going through
the checks.
2025-10-01 10:21:44 -03:00
Penar Musaraj
891106d5f4
UX: Add "works with" explanation for Discourse ID logins (#35088)
https://github.com/user-attachments/assets/e8a90b2a-100d-4b8e-87c3-a617a3b9be7c
2025-10-01 09:21:36 -04:00
Penar Musaraj
554a131fe8
DEV: Move admin-api-keys outlet wrapper (#35085)
When overriding, we should keep the breadcrumb and header. This change
ensures consistency with other outlets (webhooks, themes).

See also internal ticket t/161658
2025-10-01 09:13:37 -04:00
Kris
d0d4815d9e
UX: improve kbd shortcut appearance on macOS (#35099)
This switches to our monospace font variable for `<kbd>` tags. Our
default monospace font (JetBrains Mono) has much better glyph alignment
than macOS' default monospace font, Menlo

Before:
<img width="566" height="124" alt="image"
src="https://github.com/user-attachments/assets/aeb761d2-1402-4273-92fb-68dce8a5df49"
/>


After: 
<img width="582" height="122" alt="image"
src="https://github.com/user-attachments/assets/b13bcfc8-bb55-432e-a4c9-a1a2b961daf5"
/>

I've also added an Apple specific class so we can tighten up the spacing
between glyphs.
2025-10-01 09:09:23 -04:00
Loïc Guitaut
066d3a1abc
DEV: Move more data into the server session (#35009)
Now that `ServerSession` can store arbitrary data, we can move some more
data into it.

This PR moves some data related to authentication into it, as sometimes
that kind of data can be pretty big.
2025-10-01 15:00:48 +02:00
Selase Krakani
3ca1f8bf42
DEV: Add support for converting and importing topic_users (#35038)
This adds converter(Discourse-only, for now) and importer steps for
`topic_users`
2025-10-01 11:14:25 +00:00
Selase Krakani
fb820c63c3
DEV: Add support for converting and importing topic_tags (#35041)
This adds converter(Discourse-only, for now) and importer steps for
`topic_tags`.
2025-10-01 11:05:27 +00:00
Selase Krakani
2d7d6c2ee9
DEV: Add support for converting and importing topic_allowed_groups (#35039)
This adds converter(Discourse-only, for now) and importer steps for
`topic_allowed_groups`
2025-10-01 11:01:51 +00:00
Joffrey JAFFEUX
74c60fef17
FIX: notification reminder is deleted with bookmark (#35069)
Prior to this fix a user could delete a chat bookmark but the
notification reminder if it had already fired would still show in
notifications.
2025-10-01 11:58:31 +02:00
Régis Hanol
e171530e14
FIX: post voting comments editing UX (#35108)
was showing up inconditionnaly even if you didn't have the permissions
to edit other people's comments.

This was only a UX issue as the server is doing the correct check.

The issue was the `hasPermission` method which wasn't a getter so it
wasn't checked for all the instances of the post comments but rather
once.

Also added some acceptance tests to ensure we don't regress.

Internal ref - t/163347
2025-10-01 11:31:19 +02:00
Discourse Translator Bot
73664e3a69
Update translations (#35104) 2025-10-01 11:08:49 +02:00
Joffrey JAFFEUX
730a1ea9ec
UX: hide time in month view on mobile (#35107)
We have limited space and removing the time in this case allows to have
more space for the text of the event.
2025-10-01 11:00:43 +02:00
David Taylor
043094d5c5
DEV: Pin Webpack to 5.99.9 (again) (#35106)
Following the update to v5.100.0, changes to files under `app/static/*`
are no longer reflected live in development mode.

Previously pinned in 712af920ce, but it
was undone by dependabot. This time I've removed the `^` from the
version specifiers, so it shouldn't be auto-upgraded any more.

Long term we're planning to move away from webpack, so it's not worth
the investment to find the cause of the bug.
2025-10-01 09:25:13 +01:00
Alan Guo Xiang Tan
109212127a
FIX: Clicking on subject in admin email logs broken (#35030)
This was a regression introduced in
f0069a4fab where clicking on an email
log's subject link did not open a modal that displays the details of the
incoming email.

In this commit, the following changes were also made:

1. Make all `admin-email-logs/*` routes inherit from the same parent
route.
   Having two different parent routes doing the same thing was probably
   something that was missed in the refactor previously.
2025-10-01 10:04:27 +08:00
David Taylor
844a1607cb
DEV: Resolve deprecated route names in rss-polling (#35084)
Some checks failed
Licenses / run (push) Has been cancelled
Linting / run (push) Has been cancelled
Migration Tests / Tests (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
2025-09-30 22:07:07 +01:00
David Taylor
347a8c96b7
DEV: Clear caches properly in admin_color_palette_config_area_spec (#35087)
This resolves the flaky spec we're seeing on
`system/admin_color_palette_config_area_spec.rb:157`

`--bisect` minimal repro was:

```
bin/rspec './spec/system/admin_color_palette_config_area_spec.rb[1:9,1:12]' --tag ~type:multisite --order random:3906
```
2025-09-30 22:06:55 +01:00
Penar Musaraj
ca87a301af
FIX: Translate string in search 404 page (#35090) 2025-09-30 16:30:00 -04:00
Jordan Vidrine
132e15760f
UX: Remove love background on hover (#35089) 2025-09-30 15:26:07 -05:00
Jordan Vidrine
be4b3dbe9f
UX: Fix hover effect on heart icon in double-like button (#35086) 2025-09-30 14:34:38 -05:00
Sérgio Saquetim
480a24e754
DEV: Replace deprecated Ember's native array any with some (#35010)
Replaces deprecated usage of the Ember's native array extension `.any()`
function with `.some()` across several JavaScript files in the project.
This is a purely refactoring change intended to modernize the codebase
to follow current JavaScript standards.

**Main Changes:**

* Replaced .any() with .some() for array handling in 25 instances across
various files.
* Updated deprecation workflow to handle the any() and related
deprecations explicitly.
2025-09-30 15:49:13 -03:00
Sérgio Saquetim
74b2103d23
DEV: Replace deprecated Ember's array replace with native splice (#35019)
* Replace uses of Ember’s deprecated array extension .replace with
native .splice, using TrackedArray where reactivity is needed
(components and tests)
* Modernize TopicController computed properties to getters with
@dependentKeyCompat to preserve reactivity without Ember array
extensions
* Adjust history modal action signature to destructure the argument as
[bodyDiff]
* Add a deprecation-workflow entry for
discourse.native-array-extensions.replace to improve logging
* Add an Ember 6.6.0 patch to ensure isMutableArray excludes native
arrays, preventing false detection as MutableArray
2025-09-30 15:31:19 -03:00
David Taylor
60382d812a
DEV: Update invite spec for DST handling (#35079)
The invite system uses the inviter's timezone to determine the
expiration time (see
0dd1ee2e09)

Now that DST change is less than 90 days away for me, the spec started
failing locally. We should update the spec to use the inviter's
timezone, just like core's own logic
2025-09-30 19:18:09 +01:00
David Taylor
13820a307b
DEV: Resolve flaky system/composer/category_templates_spec.rb:431 (#35077)
We need to ensure that the upload is finished before we create the new
topic
2025-09-30 19:17:57 +01:00
Renato Atilio
9fba48486d
FIX: topic pagination overflow with deleted posts (#35081)
Uses the topic's pre-calculated `posts_count` instead of
`highest_post_number` to determine if the pagination overflows and
should return a 404.
2025-09-30 14:36:12 -03:00
Selase Krakani
9e85544f72
DEV: Add support for converting and importing topic_allowed_users (#35040)
This adds converter(Discourse-only, for now) and importer steps for
`topic_allowed_users`
2025-09-30 17:01:38 +00:00
Blake Erickson
d501952f25
DEV: Move convert video job to upload after create (#35013)
This moves the logic for creating the convert_video job to the upload
after_create hook so that we ensure there is an upload_id. When this
logic
was in the s3 store and direct to s3 uploads was enabled the convert
video job
would never fire because we didn't have an upload_id.
2025-09-30 10:58:07 -06:00
Joffrey JAFFEUX
e61dbabcc4
DEV: more resilient get_rgb_color (#35080)
There are two parts to get this right:
- wait for the element
- wait for the element to have the color we expect

This should correctly handle this.
2025-09-30 18:56:12 +02:00
Joffrey JAFFEUX
78a00e8414
FIX: force update size on full calendar (#35075)
We are not sure of the reasons but there are multiple similar (yet not
exactly the same) reports of resizing issues with calendar causing this
exact same `width: 0` state we have experienced.
2025-09-30 18:13:42 +02:00
chapoi
5fa95b69e4
UX: Post notices part 2 (#35049)
Addition to #34988: 
* we also need to apply the new styling to the returning-user
* we need to keep the custom (= official) notices
* added a different background to the official notice
* update the settings copy to make this difference clear
2025-09-30 09:02:09 -06:00
Discourse Translator Bot
5fbadcc2ec
Update translations (#35065) 2025-09-30 16:06:14 +02:00
David Taylor
0d6227d0bc
FIX: Topic footer dropdown/anonymousOnly null handling (#35072)
Followup to 813b494730
2025-09-30 14:58:52 +01:00
Jarek Radosz
1a6bf7d0a7
DEV: Remove obsolete register_svg_icon checks (#35067) 2025-09-30 15:51:44 +02:00
Jarek Radosz
60dadd2166
DEV: Remove unnecessary freeze calls (#35064)
All those files have `# frozen_string_literal: true`
2025-09-30 15:36:16 +02:00
dependabot[bot]
1ef5d7e0f2
Build(deps-dev): Bump webpack from 5.101.3 to 5.102.0 (#35053)
Bumps [webpack](https://github.com/webpack/webpack) from 5.101.3 to
5.102.0.
- [Release notes](https://github.com/webpack/webpack/releases)
-
[Commits](https://github.com/webpack/webpack/compare/v5.101.3...v5.102.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-30 14:45:53 +02:00
dependabot[bot]
c19739f481
Build(deps): Bump the fullcalendar group with 4 updates (#34686)
Bumps the fullcalendar group with 4 updates:
[@fullcalendar/core](https://github.com/fullcalendar/fullcalendar/tree/HEAD/packages/core),
[@fullcalendar/daygrid](https://github.com/fullcalendar/fullcalendar/tree/HEAD/packages/daygrid),
[@fullcalendar/list](https://github.com/fullcalendar/fullcalendar/tree/HEAD/packages/list)
and
[@fullcalendar/timegrid](https://github.com/fullcalendar/fullcalendar/tree/HEAD/packages/timegrid).


Updates `@fullcalendar/core` from 6.1.18 to 6.1.19
- [Release notes](https://github.com/fullcalendar/fullcalendar/releases)
-
[Changelog](https://github.com/fullcalendar/fullcalendar/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/fullcalendar/fullcalendar/commits/v6.1.19/packages/core)

Updates `@fullcalendar/daygrid` from 6.1.18 to 6.1.19
- [Release notes](https://github.com/fullcalendar/fullcalendar/releases)
-
[Changelog](https://github.com/fullcalendar/fullcalendar/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/fullcalendar/fullcalendar/commits/v6.1.19/packages/daygrid)

Updates `@fullcalendar/list` from 6.1.18 to 6.1.19
- [Release notes](https://github.com/fullcalendar/fullcalendar/releases)
-
[Changelog](https://github.com/fullcalendar/fullcalendar/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/fullcalendar/fullcalendar/commits/v6.1.19/packages/list)

Updates `@fullcalendar/timegrid` from 6.1.18 to 6.1.19
- [Release notes](https://github.com/fullcalendar/fullcalendar/releases)
-
[Changelog](https://github.com/fullcalendar/fullcalendar/blob/main/CHANGELOG.md)
-
[Commits](https://github.com/fullcalendar/fullcalendar/commits/v6.1.19/packages/timegrid)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-30 14:44:24 +02:00
Jarek Radosz
e372355fd0
DEV: Clean up scope resolution operators in plugins (#34979)
Co-authored-by: Loïc Guitaut <loic@discourse.org>
2025-09-30 14:36:34 +02:00
Osama Sayegh
dbc7942111
DEV: Add plugin outlet to components config area and data-theme-id to themes grid (#35006)
These are needed for adding custom elements to the page and targeting
specific themes with CSS in plugins.
2025-09-30 15:05:08 +03:00
Selase Krakani
e70b60ff7f
DEV: Add support for converting and importing topics (#34767)
This adds converter(Discourse-only, for now) and importer steps for
`topics`.
2025-09-30 11:52:22 +00:00
Joffrey JAFFEUX
c909c79b28
FIX: uses css selector to ensure we use waiters (#35063) 2025-09-30 13:01:36 +02:00
Natalie Tay
32c440aa47
UX: Update strings for filter (#35062)
```
Filter topics by in personal lists
```
to
```
Filter topics in personal lists
```

Thanks to ghpijffers on crowdin.
2025-09-30 17:25:33 +08:00
Joffrey JAFFEUX
521500f8b7
FIX: correctly replace emojis in bookmark reminder (#35061)
- The menu item logic was incorrect as it was bypassing replacing emoji
if we already had a `safeString` object but in this case the emojis had
not been replaced yet. We now have the superior `replaceEmoji` pattern
which will handle this complexity correctly.

- `replaceEmoji` was not called in `bookmark-list`
2025-09-30 11:16:05 +02:00
David Taylor
e797bb5d5f
DEV: Improve turbo_rspec and flaky-test output (#35059)
1. Use relative paths instead of absolute. This will make the commands
portable to other machines, and matches the out-the-box behavior of the
regular rspec command

2. Strip out some 'infrastructure' ENV and params from the
rerun_command, so that it's easier to copy/paste and run locally
2025-09-30 10:01:58 +01:00