diff --git a/Gemfile.lock b/Gemfile.lock index b6efdf5a..23ad67df 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,18 +2,18 @@ GEM remote: https://rubygems.org/ specs: ast (2.4.2) - json (2.6.3) + json (2.7.1) language_server-protocol (3.17.0.3) - parallel (1.23.0) - parser (3.2.2.4) + parallel (1.24.0) + parser (3.3.0.3) ast (~> 2.4.1) racc prettier_print (1.2.1) racc (1.7.3) rainbow (3.1.1) - regexp_parser (2.8.2) + regexp_parser (2.9.0) rexml (3.2.6) - rubocop (1.57.2) + rubocop (1.59.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) @@ -21,19 +21,19 @@ GEM rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.30.0) parser (>= 3.2.1.0) - rubocop-capybara (2.19.0) + rubocop-capybara (2.20.0) rubocop (~> 1.41) - rubocop-discourse (3.4.1) - rubocop (>= 1.1.0) - rubocop-rspec (>= 2.0.0) - rubocop-factory_bot (2.24.0) - rubocop (~> 1.33) - rubocop-rspec (2.25.0) + rubocop-discourse (3.6.0) + rubocop (>= 1.59.0) + rubocop-rspec (>= 2.25.0) + rubocop-factory_bot (2.25.1) + rubocop (~> 1.41) + rubocop-rspec (2.26.1) rubocop (~> 1.40) rubocop-capybara (~> 2.17) rubocop-factory_bot (~> 2.22) @@ -43,16 +43,11 @@ GEM unicode-display_width (2.5.0) PLATFORMS - arm64-darwin-20 ruby - x86_64-darwin-18 - x86_64-darwin-19 - x86_64-darwin-20 - x86_64-linux DEPENDENCIES rubocop-discourse syntax_tree BUNDLED WITH - 2.4.13 + 2.5.4 diff --git a/assets/javascripts/discourse/components/ai-bot-header-panel.hbs b/assets/javascripts/discourse/components/ai-bot-header-panel.hbs index b01196e3..8b6dabf0 100644 --- a/assets/javascripts/discourse/components/ai-bot-header-panel.hbs +++ b/assets/javascripts/discourse/components/ai-bot-header-panel.hbs @@ -5,10 +5,10 @@ diff --git a/assets/javascripts/discourse/components/ai-helper-custom-prompt.gjs b/assets/javascripts/discourse/components/ai-helper-custom-prompt.gjs index b94cf0bd..c87280c4 100644 --- a/assets/javascripts/discourse/components/ai-helper-custom-prompt.gjs +++ b/assets/javascripts/discourse/components/ai-helper-custom-prompt.gjs @@ -1,6 +1,7 @@ import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; import { Input } from "@ember/component"; +import { fn } from "@ember/helper"; import { action } from "@ember/object"; import didInsert from "@ember/render-modifiers/modifiers/did-insert"; import DButton from "discourse/components/d-button"; @@ -8,27 +9,6 @@ import i18n from "discourse-common/helpers/i18n"; import not from "truth-helpers/helpers/not"; export default class AiHelperCustomPrompt extends Component { - - @tracked _customPromptInput; @action @@ -43,4 +23,24 @@ export default class AiHelperCustomPrompt extends Component { sendInput() { return this.args.submit(this.args.promptArgs); } + + } diff --git a/assets/javascripts/discourse/components/ai-persona-command-option-editor.gjs b/assets/javascripts/discourse/components/ai-persona-command-option-editor.gjs index e1957458..e5dab0b5 100644 --- a/assets/javascripts/discourse/components/ai-persona-command-option-editor.gjs +++ b/assets/javascripts/discourse/components/ai-persona-command-option-editor.gjs @@ -1,6 +1,6 @@ import { Input } from "@ember/component"; -; + +export default AiPersonaCommandOptionEditor; diff --git a/assets/javascripts/discourse/components/ai-split-topic-suggester.gjs b/assets/javascripts/discourse/components/ai-split-topic-suggester.gjs index edb2fb69..6ec3f998 100644 --- a/assets/javascripts/discourse/components/ai-split-topic-suggester.gjs +++ b/assets/javascripts/discourse/components/ai-split-topic-suggester.gjs @@ -14,9 +14,11 @@ import eq from "truth-helpers/helpers/eq"; export default class AiSplitTopicSuggester extends Component { @service site; @service menu; + @tracked suggestions = []; @tracked loading = false; @tracked icon = "discourse-sparkles"; + SUGGESTION_TYPES = { title: "suggest_title", category: "suggest_category", diff --git a/assets/javascripts/discourse/components/ai-suggestion-dropdown.gjs b/assets/javascripts/discourse/components/ai-suggestion-dropdown.gjs index 477f4f68..b92abd66 100644 --- a/assets/javascripts/discourse/components/ai-suggestion-dropdown.gjs +++ b/assets/javascripts/discourse/components/ai-suggestion-dropdown.gjs @@ -1,5 +1,6 @@ import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; +import { fn } from "@ember/helper"; import { action } from "@ember/object"; import didInsert from "@ember/render-modifiers/modifiers/did-insert"; import { inject as service } from "@ember/service"; @@ -13,12 +14,14 @@ export default class AISuggestionDropdown extends Component { @service dialog; @service siteSettings; @service composer; + @tracked loading = false; @tracked showMenu = false; @tracked generatedSuggestions = []; @tracked suggestIcon = "discourse-sparkles"; @tracked showErrors = false; @tracked error = ""; + SUGGESTION_TYPES = { title: "suggest_title", category: "suggest_category", @@ -213,11 +216,11 @@ export default class AISuggestionDropdown extends Component {