diff --git a/app/services/discourse_rewind/rewind/action/top_words.rb b/app/services/discourse_rewind/rewind/action/top_words.rb index aa978e8..9700809 100644 --- a/app/services/discourse_rewind/rewind/action/top_words.rb +++ b/app/services/discourse_rewind/rewind/action/top_words.rb @@ -7,7 +7,7 @@ module DiscourseRewind { word: "what", score: 100 }, { word: "have", score: 90 }, { word: "you", score: 80 }, - { word: "achieved", score: 70 }, + { word: "overachieved", score: 70 }, { word: "this", score: 60 }, { word: "week", score: 50 }, ], diff --git a/assets/javascripts/discourse/components/reports/top-words/word-card.gjs b/assets/javascripts/discourse/components/reports/top-words/word-card.gjs index 22f9d4f..9fee3fd 100644 --- a/assets/javascripts/discourse/components/reports/top-words/word-card.gjs +++ b/assets/javascripts/discourse/components/reports/top-words/word-card.gjs @@ -3,6 +3,7 @@ import { on } from "@ember/modifier"; import { action } from "@ember/object"; import didInsert from "@ember/render-modifiers/modifiers/did-insert"; import { htmlSafe } from "@ember/template"; +import concatClass from "discourse/helpers/concat-class"; import emoji from "discourse/helpers/emoji"; import discourseLater from "discourse-common/lib/later"; @@ -45,6 +46,10 @@ export default class WordCard extends Component { }; } + get longWord() { + return this.args.word.length >= 7; + } + get cardStyle() { return htmlSafe(`${this.randomStyle}; ${this.mysteryData.color};`); } @@ -72,7 +77,10 @@ export default class WordCard extends Component {