Commit Graph

69 Commits

Author SHA1 Message Date
dependabot[bot] 8517cba2c2
Bump braces from 3.0.2 to 3.0.3 (#57)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-16 22:32:03 +02:00
Discourse Translator Bot eb3b1308dd
Update translations (#56) 2024-06-11 17:20:01 +02:00
Discourse Translator Bot b48aecd5d2
DEV: Add Crowdin support (#55) 2024-06-11 13:36:05 +02:00
JimmyJammyDodger d3993df800
Update about.json (#54) 2024-06-10 10:00:14 +01:00
Kris e22d73b5dc
UX: fix mention color (#53) 2024-05-30 18:19:37 -04:00
Kris cd2cbb6bfd
UX: update link color in banners (#52) 2024-05-30 18:10:52 -04: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
MarcRez33 7da1900e78
FIX: Show the right color for @usernames with dark/light mode (#49) 2024-04-30 13:43:10 -04:00
Alan Guo Xiang Tan 77645890df
DEV: Add tests for `categories` setting (#50)
This commit improves the test coverage for the client side logic
surrounding the `categories` theme setting
2024-04-24 11:57:34 +08:00
Alan Guo Xiang Tan 41ddbb8c11
DEV: Move settings descriptions into translation file (#48)
This commit moves the description for the theme's settings into
`locales/en.yml`. This follows our theme's best practice listed in
https://meta.discourse.org/t/add-localizable-strings-to-themes-and-theme-components/109867
2024-04-09 14:18:34 +08:00
Jarek Radosz d61629c0fc
DEV: Update linting (#47) 2024-03-27 16:16:16 +00:00
Selase Krakani 84bf1a4ae0
DEV: Pin theme for Discourse < 3.3.0.beta1-dev (#46) 2024-02-29 12:49:39 -07:00
Kris c46f2905bd
FIX: include setting type for `align_text` (#45) 2024-01-31 15:16:39 -05: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 0bc1e74e61
DEV: Fix flaky and incorrect tests (#41)
1. Use `category.url` instead instead of forming URLs by hand. The
   subcategory urls were wrong but the tests were passing since we were
asserting for the component not displaying which will still pass when
the page 404s.

1. Use `let!` instead of `fab!` for `upload_theme_component` since `let!` ensures that the theme cache is cleared between tests.
2023-10-23 14:15:51 +08:00
Alan Guo Xiang Tan 899ac6da71
DEV: Update compatibility file (#40)
`api.renderInOutlet` is a new API released in `3.2.0.beta2` so we need
to update the compatibility file to ensure this theme component
continues to work with older version of the plugin
2023-10-23 13:04:46 +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
dependabot[bot] 65a2cfc43f
Bump @babel/traverse from 7.20.10 to 7.23.2 (#38)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.10 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 18:25:02 +02:00
Penar Musaraj 9d23caf230
DEV: Pin theme for Discourse 3.1 stable (#36) 2023-08-22 14:01:07 -05:00
dependabot[bot] e7b1e68708
Bump word-wrap from 1.2.3 to 1.2.4 (#35)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 01:57:40 +02:00
dependabot[bot] 095e350205
Bump semver from 6.3.0 to 6.3.1 (#34)
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-11 10:46:25 +02: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
discoursebot 43c9dc5c40
DEV: Update CI workflows (#26)
Co-authored-by: discoursebuild <build@discourse.org>
2023-01-10 19:07:18 +00:00
David Taylor 3ccc3b9bdb
DEV: Update eslint-config-discourse, use prettier for hbs (#25) 2023-01-04 13:41:35 +01:00
dependabot[bot] 53981dc5e3
Bump json5 from 2.2.1 to 2.2.2 (#24)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-30 22:48:32 -05:00
discoursebot 9ed10ed7ba
DEV: Update CI workflows (#23)
Co-authored-by: discoursebuild <build@discourse.org>
2022-12-30 22:38:16 -05:00
discoursebot 12da491851
DEV: Update CI workflows (#22)
Co-authored-by: discoursebuild <build@discourse.org>
2022-11-07 14:23:17 -06:00
Kris 306db2c055
remove hotlinked image from readme (#21) 2022-08-01 12:34:29 -04:00
Jarek Radosz ac456a43b4
DEV: Update CI setup and fix linting issues (#20) 2022-06-18 01:34:02 +02:00
dependabot[bot] 8a2dad96b6
Bump async from 2.6.3 to 2.6.4 (#19)
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-29 18:04:27 +02:00
dependabot[bot] ca36bddd26
Bump ansi-regex from 4.1.0 to 4.1.1 (#18)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-31 11:55:53 +02:00
dependabot[bot] c9142629ac
Bump minimist from 1.2.5 to 1.2.6 (#17)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-31 11:52:15 +02:00
Jordan Vidrine 649bb714f6
DEV: Change lock placement (#16) 2022-02-09 15:24:56 -06:00
dependabot[bot] 76dadf9f15
Bump path-parse from 1.0.6 to 1.0.7 (#15)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-13 00:51:40 +02:00
dependabot[bot] 59f3402cd1
Bump glob-parent from 5.1.1 to 5.1.2 (#13)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-12 13:57:55 +02:00
dependabot[bot] 7806a69281
Bump lodash from 4.17.20 to 4.17.21 (#12)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 11:44:23 -04:00
dependabot[bot] 1565391464
Bump handlebars from 4.7.6 to 4.7.7 (#11)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 10:49:08 +10:00
Angus McLeod ff09b877f1
Add category targeting (#4)
Co-authored-by: Dan Ungureanu <dan@ungureanu.me>
2021-04-14 13:16:37 +03:00
dependabot[bot] df6446cf3e
Bump y18n from 4.0.0 to 4.0.1 (#10)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 11:34:16 +02: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
awesomerobot a835aa8e7c didn't need new version listed for compatibility 2020-10-19 17:32:42 -04:00
awesomerobot bf33e058c7 Padding not needed due to header position change 2020-09-30 21:40:55 -04:00