mirror of
https://github.com/discourse/discourse.git
synced 2026-03-03 23:54:20 +08:00
The sidebar "New Topic" button in Horizon was passing `this.tag?.id` (a numeric ID) to `composer.openNewTopic()`, which expects a comma-separated string of tag names. This caused two issues: - For non-staff users, `filterTags()` tried to access `.content` on a number, throwing "Cannot read properties of undefined (reading 'filter')" and preventing the composer from opening entirely. - For staff users, `filterTags()` passed the number through, resulting in the numeric ID being displayed as the tag name in the composer. Switching to `this.tag?.name` aligns with the pattern used by the discovery list controller and the composer's expected API. Also adds a system spec covering the tag page → new topic flow. Ref - t/178629 |
||
|---|---|---|
| .. | ||
| page_objects/components | ||
| .gitkeep | ||
| composer_peek_spec.rb | ||
| core_features_spec.rb | ||
| horizon_high_level_spec.rb | ||
| sidebar_topic_button_spec.rb | ||
| user_color_palette_selector_spec.rb | ||