Commit Graph

558 Commits

Author SHA1 Message Date
4eed96f511 FIX: Discobot onebox step sometimes not working (#31472)
This issue was found via Discobot. In part of the tutorial
for Discobot, it asks for a URL on one line so it can demonstrate
how oneboxes work.

The way it does this when the user replies is to cook the
post raw and check if there is a cached onebox for the URL
in the post. However, if you reply really fast to Discobot
with the URL without waiting for the onebox to appear in the
composer preview, it's not cached by the time we do this
check in the Discobot code.

This commit fixes the issue by following a more simplified
approach, where we check for the existence of one of the
following links from the onebox instructions:

```
https://en.wikipedia.org/wiki/Inherently_funny_word
https://en.wikipedia.org/wiki/Death_by_coconut
https://en.wikipedia.org/wiki/Calculator_spelling
```

This will fall down if someone customizes the onebox
step text, or if the user uses a different link instead,
but we are willing to accept that risk at this time to simplify things.
2025-02-25 12:41:37 +10:00
122e1384bc Update translations (#31470) 2025-02-24 15:11:55 +11:00
e26a1175d7 FEATURE: Initial version of experimental admin search (#31299)
This feature allows admins to find what they are
looking for in the admin interface via a search modal.
This replaces the admin sidebar filter
as the focus of the Ctrl+/ command, but the sidebar
filter can also still be used. Perhaps at some point
we may remove it or change the shortcut.

The search modal presents the following data for filtering:

* A list of all admin pages, the same as the sidebar,
   except also showing "third level" pages like
   "Email > Skipped"
* All site settings
* Themes
* Components
* Reports

Admins can also filter which types of items are shown in the modal,
for example hiding Settings if they know they are looking for a Page.

In this PR, I also have the following fixes:

* Site setting filters now clear when moving between
   filtered site setting pages, previously it was super
   sticky from Ember
* Many translations were moved around, instead of being
   in various namespaces for the sidebar links and the admin
   page titles and descriptions, now everything is under
   `admin.config` namespace, this makes it way easier to reuse
   this text for pages, search, and sidebar, and if you change it
   in one place then it is changed everywhere.

---------

Co-authored-by: Ella <ella.estigoy@gmail.com>
2025-02-21 11:59:24 +10:00
b37b51d15f Update translations (#31377) 2025-02-18 14:51:47 +01:00
e925f9b7e8 Update translations (#31276) 2025-02-11 16:43:08 +01:00
f0d6e9758d Update translations (#30898) 2025-01-21 15:55:30 +01:00
496a739788 Update translations (#30765) 2025-01-14 16:19:49 +01:00
7c61bc5a09 UX: improve discobot certificate font language support (#30722) 2025-01-10 17:13:24 -05:00
c99a8dcfe7 Revert "UX: use font with more glyphs for discobot certificates" (#30681)
This reverts commit 55914bf9a3086570e21db8eb04347f27d54a1392.
2025-01-09 18:56:47 -05:00
55914bf9a3 UX: use font with more glyphs for discobot certificates (#30646) 2025-01-08 13:44:09 -05:00
1d7b1e587a Update translations 2025-01-07 21:56:56 +01:00
6c7eaf99af Update translations (#30434) 2025-01-03 14:01:32 +01:00
1631c39391 Update translations (#30319) 2024-12-18 15:19:37 +01:00
c357e621ef FIX: Link to group didn't work in locales other than English (#30237)
Group names are translated, so the slug changes depending on the default locale. This could break the link to the staff group.
2024-12-12 13:26:51 +01:00
7c00c52c36 UX: Rename private to personal messages in the interface (#29679)
Rename "private messages" to "personal messages" in the interface
2024-12-12 11:44:19 +11:00
c65192a7a2 Update translations (#30202) 2024-12-10 20:16:34 +01:00
838d7478c1 Update translations (#30062) 2024-12-04 11:59:28 +01:00
e5f2416eff Update translations (#29212) 2024-10-16 17:52:01 +09:00
a4531be580 Update translations (#29123) 2024-10-08 20:21:43 +02:00
76ad581f67 Update translations 2024-10-02 08:55:44 +02:00
848af05537 DEV: Fix failing system tests (#28970)
We are seeing the following error on CI:

```
Errno::EADDRNOTAVAIL:
  Failed to open TCP connection to localhost:31337 (Cannot assign requested address - connect(2) for "localhost" port 31337)
```

This is because the job being enqueued makes a HTTP request to the Rails
server but Capybara doesn't start the Rails server until a session is
actually required. Therefore, we need to enqueue the job after we are
sure that a session has been started.
2024-09-19 10:12:38 +08:00
0171eb0c94 Update translations (#28705) 2024-09-03 11:46:50 -04:00
b1e539c1b9 Update translations (#28682) 2024-09-02 18:00:43 +02:00
9f32bef544 Update translations (#28438) 2024-08-20 17:54:10 +02:00
05e120a9f2 Update translations (#28246) 2024-08-13 16:31:24 +02:00
0d289a5690 UX: Do not delete narrative bot PM when skipping user tips (#28265)
Should fix https://meta.discourse.org/t/skip-tips-option-in-user-tip-should-not-delete-welcome-message/303420

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2024-08-08 12:12:01 -04:00
1e76fbe207 Update translations (#28146) 2024-07-31 00:14:19 +02:00
f5fc49f5db Update translations (#28115)
* Update translations

* DEV: Spec failed because of translation update

---------

Co-authored-by: Gerhard Schlager <gerhard.schlager@discourse.org>
2024-07-29 15:16:40 +02:00
5b5d5b4b4a Update translations (#28041) 2024-07-23 15:23:42 +02:00
423f92490c Update translations 2024-06-28 16:10:06 +02:00
69c99a82dd Update translations (#27511) 2024-06-18 15:39:31 +02:00
81fe4ed248 Update translations (#27274) 2024-05-31 12:27:26 +02:00
28fe3c339e FIX: Allow triggering Discobot when bookmarking the entire topic (#27255) 2024-05-30 09:58:51 -03:00
2a28cda15c DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
9d8044a2ee FEATURE: Add Uyghur language (#27183)
Co-authored-by: Gerhard Schlager <gerhard.schlager@discourse.org>
2024-05-27 09:58:18 +02:00
cb592ae4ac DEV: Remove deprecated User#saw_notification_id method (#27175) 2024-05-27 11:10:46 +08:00
69205cb1e5 DEV: Catch missing translations during test runs (#26258)
This configuration makes it so that a missing translation will raise an error during test execution. Better discover there than after deploy.
2024-05-24 22:15:53 +08:00
cfbbfd177c DEV: move post flags into database (#27125)
This is preparation for a feature that will allow admins to define their custom flags. Current behaviour should stay untouched.
2024-05-23 12:19:07 +10:00
db3db06caf Update translations (#27104) 2024-05-21 17:40:50 +02:00
40d65dddf8 Revert "DEV: move post flags into database (#26951)" (#27102)
This reverts commit 7aff9806eb3592767313299d7a0b8c413e328d20.
2024-05-21 16:21:07 +10:00
7aff9806eb DEV: move post flags into database (#26951)
This is preparation for a feature that will allow admins to define their custom flags. Current behaviour should stay untouched.
2024-05-21 13:15:32 +10:00
51006b5591 Update translations (#26463) 2024-04-02 18:19:46 +02:00
f2a781bcd0 Update translations (#26368) 2024-03-26 16:30:01 +01:00
04e365f741 FIX: Remove broken narrative-bot search context logic (#26319)
In the past we had logic to automatically set the search context to the current topic during the tutorial. This hasn't worked for a long time, and clearly people have still been able to complete the tutorial. In fact, it's probably better for us to teach people how to use the search un-assisted anyway.

This commit removes the dead logic, and makes a slight tweak to the copy in the unlikely event of confusion.
2024-03-22 13:25:33 +00:00
ec3d29a1fa Update translations (#26136) 2024-03-12 15:40:11 +01:00
7f7ef60a7b FIX: Update Discobot's UserProfile#bio_raw when default locale changes (#26045)
Why this change?

When a site's default locale is changed, Discobot's `UserProfile#bio_raw` is not
changed and we have gotten reports about this.

What does this change do?

This change adds a `DiscourseEvent.on(:site_setting_changed)` callback
which watches for changes to the `default_locale` site setting and
updates Discobot's `UserProfile#bio_raw` when it changes.
2024-03-06 11:42:20 +08:00
3491642f98 DEV: Make discourse_narrative_bot use Rails autoload (#26044)
Why this change?

Instead of manually loading files, we should just structure the plugin
so that it relies on Rails autoload strategy and avoid all the manual
`require_relative`s.

What does this change do?

1. Structure the plugin to use Rails autoloading convention
2. Remove onceff jobs that were added 5-6 years ago. There is no need to
   carry these jobs anymore after such a long time.
3. Move setting of `SiteSetting.discourse_narrative_bot_enabled` to
   `false` in the test environment from core into the plugin.
2024-03-06 11:14:53 +08:00
6791eb1a94 Update translations (#26030) 2024-03-05 16:47:46 +01:00
f7d7092a7a DEV: Update rubocop-discourse to latest version
The lastest version of rubocop-discourse enables rules regarding
plugins.
2024-03-04 15:08:35 +01:00
eea7af09fd Update translations (#25914) 2024-02-27 20:50:30 +01:00