FIX: add period param due to core changes

FIX: add period param due to core changes

diff --git a/javascripts/discourse/components/featured-tiles.js b/javascripts/discourse/components/featured-tiles.js
index c919d4e..45769b5 100644
--- a/javascripts/discourse/components/featured-tiles.js
+++ b/javascripts/discourse/components/featured-tiles.js
@@ -6,8 +6,8 @@ import { inject as service } from "@ember/service";
 
 const displayCategories = settings.display_categories
   .split("|")
-  .map(id => parseInt(id, 10))
-  .filter(id => id);
+  .map((id) => parseInt(id, 10))
+  .filter((id) => id);
 
 const featuredTags = settings.featured_tags.split("|");
 
@@ -43,7 +43,7 @@ export default Component.extend({
   },
 
   loadTopics() {
-    const loadParams = { tags: featuredTags };
+    const loadParams = { tags: featuredTags, period: settings.top_period };
     if (settings.featured_category > 0) {
       loadParams.category = settings.featured_category;
     }
@@ -55,9 +55,9 @@ export default Component.extend({
     this.store
       .findFiltered("topicList", {
         filter: settings.topic_source,
-        params: loadParams
+        params: loadParams,
       })
-      .then(list => {
+      .then((list) => {
         this.set("list", list);
         next(this, () => this.set("isLoading", false)); // Use `next` for CSS animation
       });
@@ -82,7 +82,7 @@ export default Component.extend({
       ![
         "discovery.latest",
         "discovery.categories",
-        "discovery.latestCategory"
+        "discovery.latestCategory",
       ].includes(currentRouteName)
     ) {
       return false;
@@ -96,5 +96,5 @@ export default Component.extend({
       return displayCategories.includes(viewingCategoryId);
     }
     return false;
-  }
+  },
 });
diff --git a/locales/en.yml b/locales/en.yml
index 49848b3..d10993c 100644
--- a/locales/en.yml
+++ b/locales/en.yml
@@ -1,10 +1,11 @@
-en: 
-  theme_metadata: 
+en:
+  theme_metadata:
     description: Display a horizontal strip of featured topics above a category
     settings:
       featured_category: The category containing featured topics. Set to 0 for all categories. 'Scope to category' will override this setting.
       featured_tags: The tag which contains the featured topics. This must be publically visible.
       topic_source: Which algorithm should be used to pick topics?
+      top_period: The time period used when "topic_source" is set to "top"
       randomize_topics: Randomize the selection and ordering of topics?
       maximum_topic_count: The maximum number of topics to display
       display_when_unfiltered: Display on the unfiltered latest page?
@@ -13,4 +14,4 @@ en:
       scope_to_category: Filter topics to the current category?
       display_mobile: Display on mobile devices?
   preference_header: Featured Topics Banner
-  preference_description: Show featured topics banner on this device
\ No newline at end of file
+  preference_description: Show featured topics banner on this device
diff --git a/settings.yml b/settings.yml
index 17aa037..616ad7e 100644
--- a/settings.yml
+++ b/settings.yml
@@ -7,19 +7,23 @@ featured_tags:
   default: "featured"
 topic_source:
   type: enum
-  default: "top/yearly"
+  default: "top"
   choices:
     - latest
-    - top/all
-    - top/yearly
-    - top/quarterly
-    - top/monthly
-    - top/weekly
-    - top/daily
+    - top
+top_period:
+  type: enum
+  default: "yearly"
+  choices:
+    - "yearly"
+    - "quarterly"
+    - "monthly"
+    - "weekly"
+    - "daily"
 randomize_topics: true
 display_when_unfiltered: true
 display_on_categories: true
-display_categories: 
+display_categories:
   type: list
   list_type: category
   default: ""

GitHub sha: 80fb28bf24eeb8d451523fd11bebe9bdf3b8966c