discourse/themes/horizon
David Battersby dca698afa1
FEATURE: new topic button always enabled (#34603)
### What is this change?

When visiting a restricted category or tag where the current user does
not have permission to create a topic, we should still allow the user to
write a new topic under a different category or tag. This is especially
important when using the new topic button from the sidebar.

#### When the user does not have permission, the composer category
defaults to:

1) Subcategory (if SiteSetting.default_subcategory_on_read_only_category
is true and subcategory exists)
2) Default category chooser value of Category... prompting the user to
select a category from the dropdown

This PR is a follow up to #33495 which was reverted previously due to a
couple of issues which are now corrected:

- we no longer set a default category based on
`default_composer_category` (previously was step 2 above)
- category banner text when a user cannot create a topic is now showing
up correctly
- added a title attribute with more info for the disabled category in
the category dropdown in composer
- for staff only tags, when creating a topic from the tag page as a non
staff member we now automatically remove the restricted tag from the
tags field in composer (as the user cannot use this tag)
2025-09-16 17:01:49 +04:00
..
assets FIX: import Horizon system theme (#33229) 2025-06-17 14:03:38 +08:00
common UX: Horizon compatibility fixes (#34577) 2025-08-28 12:33:18 +02:00
desktop FIX: import Horizon system theme (#33229) 2025-06-17 14:03:38 +08:00
javascripts FEATURE: new topic button always enabled (#34603) 2025-09-16 17:01:49 +04:00
locales Update translations (#34745) 2025-09-12 16:17:25 +02:00
screenshots FIX: import Horizon system theme (#33229) 2025-06-17 14:03:38 +08:00
scss UX: remove margin from navigation-controls children in favor of gap (#34771) 2025-09-15 14:16:57 -04:00
spec/system FEATURE: new topic button always enabled (#34603) 2025-09-16 17:01:49 +04:00
test DEV: Update Ember to 6.6.0 (#34460) 2025-08-27 16:48:40 +01:00
about.json DEV: Clean up themes' about.json files (#34219) 2025-08-18 12:35:02 +02:00
LICENSE FIX: import Horizon system theme (#33229) 2025-06-17 14:03:38 +08:00
README.md FIX: import Horizon system theme (#33229) 2025-06-17 14:03:38 +08:00

Horizon is a simple, beautiful theme that improves the out-of-the-box experience for Discourse sites.

https://meta.discourse.org/t/horizon-theme/360486