A platform for community discussion. Free, open, simple.
DEV: Fix random typos (#38303)
Jarek Radosz838f630d8538
diff --git a/AI-AGENTS.md b/AI-AGENTS.mdindex 12764b3ae4e..cf978ea3aa3 100644--- a/AI-AGENTS.md+++ b/AI-AGENTS.md@@ -20,7 +20,7 @@ Discourse is large with long history. Understand context before changes.### JavaScript- No empty backing classes for template-only components unless requested-- Use FormKit for forms: https://meta.discourse.org/t/discourse-toolkit-to-render-forms/326439 (`app/assets/javascripts/discourse/app/form-kit`)+- Use FormKit for forms: https://meta.discourse.org/t/discourse-toolkit-to-render-forms/326439 (`frontend/discourse/app/form-kit`)### JSDoc- Do not add JSDoc to any new code you write.diff --git a/config/pitchfork.conf.rb b/config/pitchfork.conf.rbindex 005c8c54d76..865155be92e 100644--- a/config/pitchfork.conf.rb+++ b/config/pitchfork.conf.rb@@ -110,7 +110,7 @@ before_service_worker_ready do |server, service_worker|# The cause is currently unknown but we suspect that it is related to the Unicorn master process and# Sidekiq demon processes reopening logs at the same time as we noticed that Unicorn worker processes only# reopen logs after the Unicorn master process is done. To workaround the problem, we are adding an arbitrary- # delay of 1 second to Sidekiq's log reopeing procedure. The 1 second delay should be+ # delay of 1 second to Sidekiq's log reopening procedure. The 1 second delay should be# more than enough for the Unicorn master process to finish reopening logs.Demon::Sidekiq.kill("USR2")enddiff --git a/config/unicorn.conf.rb b/config/unicorn.conf.rbindex 00535621ce2..8c608742808 100644--- a/config/unicorn.conf.rb+++ b/config/unicorn.conf.rb@@ -102,7 +102,7 @@ before_fork do |server, worker|# The cause is currently unknown but we suspect that it is related to the Unicorn master process and# Sidekiq demon processes reopening logs at the same time as we noticed that Unicorn worker processes only# reopen logs after the Unicorn master process is done. To workaround the problem, we are adding an arbitrary- # delay of 1 second to Sidekiq's log reopeing procedure. The 1 second delay should be+ # delay of 1 second to Sidekiq's log reopening procedure. The 1 second delay should be# more than enough for the Unicorn master process to finish reopening logs.Demon::Sidekiq.kill("USR2")enddiff --git a/frontend/discourse/app/components/toolbar-popup-menu-options.gjs b/frontend/discourse/app/components/toolbar-popup-menu-options.gjsindex 94679072d6b..fd51ed456de 100644--- a/frontend/discourse/app/components/toolbar-popup-menu-options.gjs+++ b/frontend/discourse/app/components/toolbar-popup-menu-options.gjs@@ -13,7 +13,7 @@ import { translateModKey } from "discourse/lib/utilities";import { PLATFORM_KEY_MODIFIER } from "discourse/services/keyboard-shortcuts";import { i18n } from "discourse-i18n";-export default class ToolbarPopupmenuOptions extends Component {+export default class ToolbarPopupMenuOptions extends Component {@service capabilities;willDestroy() {diff --git a/frontend/discourse/app/lib/textarea-text-manipulation.js b/frontend/discourse/app/lib/textarea-text-manipulation.jsindex 648da58b32e..abae76ea70b 100644--- a/frontend/discourse/app/lib/textarea-text-manipulation.js+++ b/frontend/discourse/app/lib/textarea-text-manipulation.js@@ -845,7 +845,7 @@ export default class TextareaTextManipulation {excludeHeadInSelection: true,});} else {- // Remove heading when the Paragrah level (0) is selected.+ // Remove heading when the Paragraph level (0) is selected.const currentHeadingLevel = sel.lineVal.search(/[^#]/);if (currentHeadingLevel >= 0) {// When you apply the list with the same head chars, then they@@ -899,7 +899,7 @@ export default class TextareaTextManipulation {putCursorAtEnd(this.textarea);} else {// in some browsers, the focus() called by putCursorAtEnd doesn't bubble the event to set- // isEditorFoused=true and bring the focus indicator to the wrapper, unless we do it on next tick+ // isEditorFocused=true and bring the focus indicator to the wrapper, unless we do it on next ticknext(() => putCursorAtEnd(this.textarea));}}diff --git a/frontend/pretty-text/addon/emoji.js b/frontend/pretty-text/addon/emoji.jsindex 6c7874fcbb3..6f95e057375 100644--- a/frontend/pretty-text/addon/emoji.js+++ b/frontend/pretty-text/addon/emoji.js@@ -82,14 +82,14 @@ export function performEmojiUnescape(string, opts) {return "";}- const isReplacable =+ const isReplaceable =(isEmoticon || hasEndingColon || isUnicodeEmoticon) &&isReplaceableInlineEmoji(string, index, opts.inlineEmoji);const title = opts.title ?? emojiVal;const alt = opts.alt ?? opts.title ?? emojiVal;const tabIndex = opts.tabIndex ? ` tabindex='${opts.tabIndex}'` : "";- return url && isReplacable+ return url && isReplaceable? `<img width="20" height="20" src='${url}' ${opts.skipTitle ? "" : `title='${title}'`} ${diff --git a/plugins/chat/assets/javascripts/discourse/lib/chat-message-interactor.js b/plugins/chat/assets/javascripts/discourse/lib/chat-message-interactor.jsindex f0b405b88fe..04cbcb3128e 100644--- a/plugins/chat/assets/javascripts/discourse/lib/chat-message-interactor.js+++ b/plugins/chat/assets/javascripts/discourse/lib/chat-message-interactor.js@@ -31,7 +31,7 @@ export function resetRemovedChatComposerSecondaryActions() {removedSecondaryActions.clear();}-export default class ChatemojiReactions {+export default class ChatMessageInteractor {@service appEvents;@service chat;@service chatChannelComposer;diff --git a/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js b/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.jsindex 54cfd5839bf..86c31f8fcc4 100644--- a/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js+++ b/plugins/discourse-local-dates/assets/javascripts/initializers/discourse-local-dates.js@@ -108,7 +108,7 @@ function buildOptionsFromMarkdownTag(element) {const opts = {};// siteSettings defaults as used by buildOptionsFromElement are purposefully- // ommitted to reproduce exactly what was on the original element+ // omitted to reproduce exactly what was on the original elementopts.time = element.attributes["data-time"];opts.date = element.attributes["data-date"];opts.recurring = element.attributes["data-recurring"];diff --git a/spec/rails_helper.rb b/spec/rails_helper.rbindex 9dc483e5569..ebe0657fc47 100644--- a/spec/rails_helper.rb+++ b/spec/rails_helper.rb@@ -796,7 +796,7 @@ RSpec.configure do |config|config.before(:each, type: :system) do |example|if !system_tests_initialized- # On Rails 7, we have seen instances of deadlocks between the lock in [ActiveRecord::ConnectionAdapaters::AbstractAdapter](https://github.com/rails/rails/blob/9d1673853f13cd6f756315ac333b20d512db4d58/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb#L86)+ # On Rails 7, we have seen instances of deadlocks between the lock in [ActiveRecord::ConnectionAdapters::AbstractAdapter](https://github.com/rails/rails/blob/9d1673853f13cd6f756315ac333b20d512db4d58/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb#L86)# and the lock in [ActiveRecord::ModelSchema](https://github.com/rails/rails/blob/9d1673853f13cd6f756315ac333b20d512db4d58/activerecord/lib/active_record/model_schema.rb#L550).# To work around this problem, we are going to preload all the model schemas before running any system tests so that# the lock in ActiveRecord::ModelSchema is not acquired at runtime. This is a temporary workaround while we reportdiff --git a/spec/services/themes/theme_site_setting_manager_spec.rb b/spec/services/themes/theme_site_setting_manager_spec.rbindex e46851ce1ff..adbaa53d86e 100644--- a/spec/services/themes/theme_site_setting_manager_spec.rb+++ b/spec/services/themes/theme_site_setting_manager_spec.rb@@ -138,7 +138,7 @@ RSpec.describe Themes::ThemeSiteSettingManager doendend- context "when removing a theme site setting by ommitting the value" do+ context "when removing a theme site setting by omitting the value" dolet!(:theme_site_setting) doFabricate(:theme_site_setting_with_service,