Commit Graph

22 Commits

Author SHA1 Message Date
David Taylor d7335940a5
DEV: Update eslint config (#70) 2024-11-19 11:35:59 +01:00
overgrow f670596c6a
DEV: Improve plugin outlets in category-banner component (#64)
Add category argument to plugin outlet to make it more usable for customization, create new outlet 'after-description'
2024-08-27 06:44:55 +08:00
Alan Guo Xiang Tan 04c2b2b6ff
DEV: Migrate `categories` setting to new objects setting type (#51)
Since https://github.com/discourse/discourse/commit/a440e15, we have started to support objects typed theme setting so we are switching this theme component to use it instead as it provides a much better UX for configuring the settings required for the theme component.
2024-05-06 13:08:39 +08:00
Jarek Radosz d61629c0fc
DEV: Update linting (#47) 2024-03-27 16:16:16 +00:00
Kris daec18921f
FEATURE: optionally show category logo, change text alignment (#44) 2024-01-31 14:47:25 -05:00
Alan Guo Xiang Tan 264dde939a
DEV: Use plugin api version 1.13.0 (#43)
Plugin API versions > 1.13 is not released in any beta versions.
2023-10-27 08:09:54 +08:00
Kris 71c371c7c5
FIX: allow HTML in category description (#42)
This regressed in 1398eeeff5
2023-10-25 06:24:14 +08:00
Alan Guo Xiang Tan 1398eeeff5
DEV: Various improvements to theme (#39)
This commits introduces the follow changes:

1. Use the `renderInOutlet` API over the connectors convention
1. Renames `discourse-category-banners` component to `category-banner`
   which is more appropriate cause we are only rendering banner for one
category.
1. Adds system tests
2023-10-23 12:17:00 +08:00
Kris 21284e2419
UX: add more plugin outlet options (#33) 2023-07-06 16:42:00 -04:00
Kris 813151307f
FEATURE: add features for tag banner integration, clean up (#32) 2023-05-03 12:51:41 -04:00
Kris 3199fd59d3
DEV: ensure class removal when banner doesn't show (#30) 2023-03-31 10:41:01 -04:00
Kris f7696c3372
UX: category icon compatibility improvements (#29) 2023-03-30 13:10:47 -04:00
Kris ca80cd248c
REFACTOR: Update from widget to a glimmer component (#28) 2023-03-28 16:08:09 -04:00
David Taylor 3ccc3b9bdb
DEV: Update eslint-config-discourse, use prettier for hbs (#25) 2023-01-04 13:41:35 +01:00
Jarek Radosz ac456a43b4
DEV: Update CI setup and fix linting issues (#20) 2022-06-18 01:34:02 +02:00
Jordan Vidrine 649bb714f6
DEV: Change lock placement (#16) 2022-02-09 15:24:56 -06:00
Angus McLeod ff09b877f1
Add category targeting (#4)
Co-authored-by: Dan Ungureanu <dan@ungureanu.me>
2021-04-14 13:16:37 +03:00
tshenry 8e24b2ceca
REFACTOR: Simplify logic and use Category.findBySlugPathWithID (#9)
This change swaps out `Category.findById` with `Category.findBySlugPathWithID`. It ends up reducing the necessary code and handles the scenario of using a link without a numeric ID (e.g. `/tags/c/some-category/some-tag` instead of `/tags/c/some-category/4/some-tag`).

This also simplifies the routing logic in line with what was discussed in https://github.com/discourse/discourse-category-banners/pull/8. There's no need to create an `isCategoryTopicList` variable, especially now that the code is a little less busy.
2021-02-01 12:17:26 -08:00
tshenry 93f0a1f556
FEATURE: Support filtering by tag (#8)
Ensure the banner will remain visible when filtering a category by a tag.
2021-01-21 18:07:30 -08:00
Renato Atilio eeced5b1c4
Setting to show category icon from discourse-category-icons theme component (#7) 2020-11-30 09:46:44 -05:00
Joffrey JAFFEUX 9be0d88905
FEATURE: adds a setting to choose which connector to use (#5)
above_site_header or below_site_header, default is below_site_header
2020-09-28 13:26:06 +02:00
jjaffeux ac66be7948 REFACTOR: full component refactoring
- drops jquery
- uses new codelayout structure
- more explicit site setting
- apply code standards
- various cleanups
- do not show an empty category-title-desription if we don't show the category description
2020-09-27 11:26:40 +02:00