Commit Graph

57 Commits

Author SHA1 Message Date
Isaac Janzen caaf5309c6
DEV: Update search icon css 2024-03-06 11:04:41 -07:00
Selase Krakani c99eecaa4e
DEV: Pin theme for Discourse < 3.3.0.beta1-dev (#51) 2024-02-29 13:00:32 -07:00
Joffrey JAFFEUX 6ba0e9d0a4
FIX: search menu is now closed on keydown (#50) 2024-01-22 15:19:02 +01:00
Isaac Janzen 1c9b0b074c
FIX: Force search menu to always be displayed as a dropdown (#49)
Raised in https://meta.discourse.org/t/search-banner/122939/109?u=isaac

> a dark overlay comes over the entire site page and i’m unable to navigate the site

Force the search menu to always render as a dropdown and don't apply the `slide out` styling (dark overlay).

# Before

https://github.com/discourse/discourse-search-banner/assets/50783505/17a5009b-d0c5-40c8-95a5-b00a0685970c


# After

https://github.com/discourse/discourse-search-banner/assets/50783505/4962728f-759b-41bc-af49-6bdc5fe209f7
2024-01-08 15:56:58 -07:00
Jarek Radosz 934e0d3577
DEV: Update linting (#47) 2023-11-29 23:06:37 +01:00
Isaac Janzen d57ce477f8
DEV: Update to glimmer search menu (#46)
# Without Search Button Text

<img width="599" alt="Screenshot 2023-11-28 at 1 41 23 PM" src="https://github.com/discourse/discourse-search-banner/assets/50783505/f3db62c8-3a64-410a-a254-88cdab9d5d9f">
<img width="635" alt="Screenshot 2023-11-28 at 1 41 32 PM" src="https://github.com/discourse/discourse-search-banner/assets/50783505/c595d6e3-bc04-472c-869a-9c2567399085">
<img width="580" alt="Screenshot 2023-11-28 at 1 44 11 PM" src="https://github.com/discourse/discourse-search-banner/assets/50783505/400a9b72-c599-4518-94f7-a46eb41eb541">


# With Search Button Text

<img width="604" alt="Screenshot 2023-11-28 at 1 46 17 PM" src="https://github.com/discourse/discourse-search-banner/assets/50783505/1195e798-0d21-489f-8672-a5ccd3960b91">
<img width="557" alt="Screenshot 2023-11-28 at 1 45 39 PM" src="https://github.com/discourse/discourse-search-banner/assets/50783505/7eb6681b-08f3-4a7f-98ba-8a3fbe283baa">


# Shared search term
https://github.com/discourse/discourse-search-banner/assets/50783505/fdf12c12-1c9a-4fb6-bd44-8ca5fe2d30d0
2023-11-28 13:59:07 -07:00
Jordan Vidrine 5fb25748da
FIX: Adjust button styling when custom text is used (#45) 2023-11-20 12:52:29 -06:00
Jordan Vidrine b0b6448e7c
UX: Style adjustments and fixes (#44) 2023-11-09 10:11:33 -06:00
Natalie Tay e20a36d9f5
DEV: Use new i18n package (#43) 2023-11-06 12:22:20 +08:00
dependabot[bot] 144c7fed42
Bump @babel/traverse from 7.20.10 to 7.23.2 (#42)
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:27:40 +02:00
Alan Guo Xiang Tan 76495edcbf
DEV: Fix theme compatibility problem (#41)
Technically < 3.2.0.beta2-dev is wrong cause it is a development version and there are many commits within that version. If Discourse core is on a commit that does not include the necessary changes required in 257427ba30, the theme will break.
2023-10-18 08:42:25 +08:00
Kris 257427ba30
DEV: Switch to new API, with legacy wrapper (#40)
but adds a wrapping div based on the outlet name in search-banner.hbs, so we're not breaking any existing themes.
2023-10-12 07:01:08 +08:00
Kris 53828160af
Revert "DEV: Switch to new API to render into plugin outlet (#36)" (#38)
This reverts commit a77a6143ba.
2023-10-11 09:39:35 -07:00
Alan Guo Xiang Tan a77a6143ba
DEV: Switch to new API to render into plugin outlet (#36)
Why this change?

The `renderInOutlet` plugin API was introduced in Discourse core which
we will prefer to use going forward.
2023-10-11 07:18:07 +08:00
Bianca Nenciu 2951c995fe
DEV: Update to latest guidelines (#37)
- Use Glimmer components
- Remove usage of observer
- Remove unnecessary API call
- Use explicit service injection
2023-09-12 18:14:25 +03:00
Jordan Vidrine 26a24a5e0e
DEV: Add new plugin outlet (#35) 2023-08-23 11:51:49 -05:00
Penar Musaraj 8d475793f7
DEV: Pin theme for Discourse 3.1 stable (#34) 2023-08-22 14:03:44 -05:00
Kris eeeb391c88
UX: add optional search button text (#33)
* UX: add optional search button text

* include i18n
2023-07-27 14:46:38 -07:00
dependabot[bot] fab3594c81
Bump word-wrap from 1.2.3 to 1.2.4 (#32)
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 18:05:11 +02:00
dependabot[bot] c16cef52af
Bump semver from 6.3.0 to 6.3.1 (#31)
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-12 14:10:42 +02:00
Kris 2937df0162
UX: add "discovery" option, plugin outlet (#30) 2023-04-18 15:20:25 -04:00
Kris 5f6eddaabc
UX: let search button click through to full search (#29) 2023-04-05 17:07:32 -04:00
Penar Musaraj 7dd9002c9f
DEV: Override `clickOutside` following core change (#28)
See discourse/discourse#20950
2023-04-04 10:00:30 -04:00
Kris a950a7fec2
Minor prettier fix (#27) 2023-03-31 11:57:08 -04:00
Prof. Caju 9df5e660b5
Add dark theme background image (#26) 2023-03-31 11:30:34 -04:00
Kris 9be6d63f35
FIX: add clearContext, general cleanup (#25) 2023-03-08 09:29:00 -05:00
Rishabh 17d3347725
Ensure README images are pointing to discourse/gh-owned repositories (#24) 2023-01-25 17:34:33 +05:30
discoursebot 24b424b9c0
DEV: Update CI workflows (#23)
Co-authored-by: discoursebuild <build@discourse.org>
2023-01-10 19:31:09 +00:00
David Taylor da7b271923
DEV: Update eslint-config-discourse, use prettier for hbs (#22) 2023-01-04 13:46:49 +01:00
dependabot[bot] 0c4a4382ee
Bump json5 from 2.2.1 to 2.2.2 (#21)
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:50:43 -05:00
discoursebot 58f594275f
DEV: Update CI workflows (#20)
Co-authored-by: discoursebuild <build@discourse.org>
2022-12-30 22:40:54 -05:00
discoursebot 6c65617483
DEV: Update CI workflows (#19)
Co-authored-by: discoursebuild <build@discourse.org>
2022-11-07 14:10:47 -06:00
Kris 9b7525e228
FEATURE: optional setting for special style (#18) 2022-10-18 13:02:20 -04:00
Penar Musaraj ec94b8bac3
FIX: Prevent error when no attributes are passed to `linkClickedEvent` (#17) 2022-09-12 15:56:52 -04:00
Kris c5c9ed5ac9
FEATURE: support HTML in headline and subhead (#16) 2022-08-25 14:46:02 -04:00
Penar Musaraj 220e782d52
Revert "DEV: Do not reuse core's element ID for the input (#14)" (#15)
This reverts commit 107be68180.
2022-07-27 23:18:38 +05:30
Penar Musaraj 107be68180
DEV: Do not reuse core's element ID for the input (#14)
This changes `search-term` widget's ID for the input so that we do not
include two elements with the same ID in the DOM.
2022-07-27 12:27:40 -04:00
discoursebot 3caedad451
DEV: Update CI workflows (#13)
Co-authored-by: discoursebuild <build@discourse.org>
2022-06-17 23:31:47 +02:00
Jarek Radosz b15a5e0380
DEV: Update repo URL in README (#12) 2022-05-16 13:55:40 -04:00
Jarek Radosz 09a7b5ba85
DEV: Add CI setup and fix linting issues (#11) 2022-05-13 13:55:40 +02:00
Penar Musaraj d87629059f
REFACTOR: Use `logSearchLinkClick` core helper (#10) 2022-04-01 10:35:38 -04:00
Penar Musaraj c3a26b198d
FEATURE: Log search result clicks (#9) 2022-03-08 20:49:49 +01:00
Penar Musaraj 23bd6582f4
FIX: Remove `clickOutside` event (#8)
No longer needed since it's removed in core
See https://github.com/discourse/discourse/pull/14788
2021-11-02 09:26:31 -04:00
Kris 703d7c4dd6
FEATURE: replace background setting with upload (#7) 2021-10-25 10:45:40 -04:00
Penar Musaraj 205ead43f9
FIX: Let core handle toggling "in topic" state (#6)
Also adjusts some styling following core changes.
2021-10-21 10:00:00 -04:00
Kris 565174c3e3
Update variables for dark mode support (#5) 2021-05-29 09:14:18 -05:00
Kris 0d9363d8c9
fix currentUser not found error (#4) 2021-02-05 10:29:39 -05:00
David Taylor 1e6ade528d DEV: Refactor into component with computed properties
This commit also
  - Removes use of api.onPageChange in favor of the router service
  - Removes JQuery use
  - Uses currentRouteName instead of currentURL so that the bar is hidden for loading substates
2020-12-18 11:52:17 +00:00
David Taylor 4422ee24d3 DEV: Move JS/HBS into dedicated files
This introduces no functional changes, it simply copies the js and templates
into their own files, and applies prettier formatting.
2020-12-18 11:52:17 +00:00
Jordan Vidrine 5bb68c3dcc
Add ability for user to choose outlet (#2)
This commit adds the ability for the user to choose to display the search banner below the header, or above the main content. This is needed for themes using multiple components in these plugin outlets.
2020-12-07 14:23:42 -06:00