UX: Add data-topic-id to featured topic items (#14031)

UX: Add data-topic-id to featured topic items (#14031)

diff --git a/app/assets/javascripts/discourse/app/components/categories-boxes-topic.js b/app/assets/javascripts/discourse/app/components/categories-boxes-topic.js
index 2fa8609..f7b7e10 100644
--- a/app/assets/javascripts/discourse/app/components/categories-boxes-topic.js
+++ b/app/assets/javascripts/discourse/app/components/categories-boxes-topic.js
@@ -3,6 +3,7 @@ import discourseComputed from "discourse-common/utils/decorators";
 
 export default Component.extend({
   tagName: "li",
+  attributeBindings: ["topic.id:data-topic-id"],
 
   @discourseComputed("topic.pinned", "topic.closed", "topic.archived")
   topicStatusIcon(pinned, closed, archived) {
diff --git a/app/assets/javascripts/discourse/app/components/featured-topic.js b/app/assets/javascripts/discourse/app/components/featured-topic.js
index fd01dce..451bf1e 100644
--- a/app/assets/javascripts/discourse/app/components/featured-topic.js
+++ b/app/assets/javascripts/discourse/app/components/featured-topic.js
@@ -1,6 +1,7 @@
 import Component from "@ember/component";
 export default Component.extend({
   classNameBindings: [":featured-topic"],
+  attributeBindings: ["topic.id:data-topic-id"],
 
   click(e) {
     const $target = $(e.target);

GitHub sha: 45c9bbc112f474635c2884e19e02bdefc44a8fb1

This commit appears in #14031 which was approved by CvX. It was merged by jordanvidrine.