Commit Graph

300 Commits

Author SHA1 Message Date
Neil Lalonde 485f5fb36b
Update translations 2020-05-27 16:55:42 -04:00
Jarek Radosz 1f04cc075c DEV: Add rubocop-discourse gem 2020-05-06 18:29:23 +02:00
Neil Lalonde af53c1d551
Update translations 2020-05-04 10:51:02 -04:00
Krzysztof Kotlarek 922b4c3907
FIX: plugin backwards compatibility with Discourse 2.4 (#87)
Duration is a new keyword argument on Topic#set_or_create_timer and is not yet available in stable Discourse
2020-04-27 13:01:01 +10:00
Dan Ungureanu dc87d34594
FEATURE: Add include_subcategories report filter
Follow up to dafb1d7c7f.
2020-04-24 13:16:15 +03:00
Dan Ungureanu dafb1d7c7f
FIX: Include subcategories in report (#86) 2020-04-10 12:50:44 +03:00
Vinoth Kannan 329d8aff30 FIX: use the new duration attribute in `set_or_create_timer` method.
aad12822b7
2020-03-19 22:53:17 +05:30
Blake Erickson 8d883fba93
FEATURE: Publish WebHook event when solving/unsolving (#85)
* FEATURE: Publish WebHook event when solving/unsolving

This feature will publish a post edit webhook event whenever a solution
is accepted or unaccepted.

I went ahead and used the existing post-edit webhook because all the
post custom fields for the solved plugin are already included in the
post-edit serializer.

* Create Solved Event Webhook

This commit adds a solved event webhook that will only trigger when an
answer has been marked as accepted or unaccepted.

It uses 100 as the webhook ID. This way any new webhooks in core can
keep using lower numbers like 11, 12, 13, but plugins can use 101, 102,
etc.

* Removed functionality that was added to core

This [PR][1] to discourse core adds what what removed in this commit.

It is better to have this logic in core so that it is discoverable and
future webhooks won't end up accidentally using the same ID.

[1]: https://github.com/discourse/discourse/pull/9110

* UX: Add "solved" status filter in advanced search page.

And rename `in:solved` to `status:solved`.

* FEATURE: Publish WebHook event when solving/unsolving

This feature will publish a post edit webhook event whenever a solution
is accepted or unaccepted.

I went ahead and used the existing post-edit webhook because all the
post custom fields for the solved plugin are already included in the
post-edit serializer.

* Create Solved Event Webhook

This commit adds a solved event webhook that will only trigger when an
answer has been marked as accepted or unaccepted.

It uses 100 as the webhook ID. This way any new webhooks in core can
keep using lower numbers like 11, 12, 13, but plugins can use 101, 102,
etc.

* Removed functionality that was added to core

This [PR][1] to discourse core adds what what removed in this commit.

It is better to have this logic in core so that it is discoverable and
future webhooks won't end up accidentally using the same ID.

[1]: https://github.com/discourse/discourse/pull/9110

Co-authored-by: Vinoth Kannan <vinothkannan@vinkas.com>
2020-03-06 11:28:29 -07:00
Vinoth Kannan f4aea44db8 UX: Add "solved" status filter in advanced search page.
And rename `in:solved` to `status:solved`.
2020-03-06 08:57:38 +05:30
Neil Lalonde 5591056fe3 Update translations 2020-02-25 10:34:46 -05:00
Sam Saffron e5b08c71c4
FIX: do not allow whispers to be accepted as answers
This also cleans up the guardian so it is easier to reason about
2020-02-23 19:16:31 +11:00
jjaffeux 26d247e3d7 UX: makes solved status filter adapt width to its content 2020-02-20 11:04:26 +01:00
Neil Lalonde a531a2b370 Update translations 2020-02-13 15:07:07 -05:00
Krzysztof Kotlarek 230c2071ea
FEATURE: Add helpdesk and tech support badges (#84)
* FEATURE: Add helpdesk and tech support badges

When plugin is installed, we should create helpdesk and tech support
badges.

Both badges should be disabled by default
2020-02-05 11:14:12 +11:00
Neil Lalonde 4518ee02e5 Update translations 2020-01-20 11:23:11 -05:00
Vinoth Kannan 27da70052f FIX: keep quoted content in schema data if post excerpt is empty. 2020-01-04 19:25:42 +05:30
Neil Lalonde 2c80e6577f Update translations 2019-12-19 12:52:07 -05:00
Joffrey JAFFEUX c0f8e2eee0
FIX: applies a unique index for accepted_answer_post_id custom field (#83) 2019-12-12 12:00:28 +01:00
Sam Saffron 4c0545a827 DEV: lint files
This removes explicit return where not needed per rubocop rule
2019-12-10 12:01:54 +11:00
Joffrey JAFFEUX 15bc64bbc9 DEV: uses Discourse.redis instead of $redis 2019-12-03 10:49:58 +01:00
Penar Musaraj 96abbd9c19 Rubocop redundant return fix 2019-11-14 15:06:49 -05:00
Neil Lalonde ec4f0089f1 Update translations 2019-11-06 10:47:38 -05:00
Mark VanLandingham 2de08c8ad7 DEV: Remove unused import 2019-11-05 16:00:03 -06:00
Mark VanLandingham ad787656fe FIX: Pass in DecoratorHelper to PostCooked 2019-11-05 15:58:09 -06:00
Vinoth Kannan 797d450b73 FIX: keep onebox body content in post excerpts for schema data. 2019-11-02 17:31:38 +05:30
Joffrey JAFFEUX e974c35d38
FIX: enable_accepted_answers state was not correctly displayed (#82) 2019-10-23 15:37:37 +02:00
Neil Lalonde 17912bdda3 Update translations 2019-10-10 11:27:00 -04:00
romanrizzi 747a2e5167 DEV: Remove old backward-compatibility code 2019-10-09 15:56:55 -03:00
Joffrey JAFFEUX c630c14d6c REFACTOR: old patterns and deprecations (#81) 2019-10-02 15:36:35 +10:00
Penar Musaraj be6ecbf667 Replace deprecated icon 2019-08-25 21:28:46 -04:00
Daniel Waterworth a58984bfca FIX: Fix test suite after fabricated category defaults changed
Categories no longer create definition topics by default
2019-08-06 11:39:09 +01:00
David Taylor 486f343b09 FIX: Include previously solved topics in auto-bump
Null values can happen when a post is removed as the solution. We already filter for NOT NULL in the topic_query and search filters. This commit adds the same logic to the auto-bump filter.
2019-08-06 11:19:33 +01:00
Kris 3763ca4aaa Solved button text margin fix 2019-07-25 16:03:37 -04:00
Kris e9bd783bb7 remove unused variable 2019-07-24 11:38:56 -04:00
Kris 9550ced040
UX: If I can't unselect an answer, show text not a button (#80)
* UX: If I can't unselect an answer, show text not a button

* UX: Hide button text when post controls are expanded on mobile
2019-07-24 11:01:47 -04:00
Kris 8e8bf5e2d8 Revert "UX: Improve button position and visibility. (#79)"
This reverts commit f788093e6a.
2019-07-18 10:56:18 -04:00
Kris d3babfddd3 Revert "UX: Integrate text with button to improve spacing"
This reverts commit ad4bae2f4d.
2019-07-18 10:55:44 -04:00
Kris ad4bae2f4d UX: Integrate text with button to improve spacing 2019-07-16 11:08:05 -04:00
Neil Lalonde 33a28ced7e Update translations 2019-07-15 14:03:46 -04:00
Bianca Nenciu f788093e6a
UX: Improve button position and visibility. (#79) 2019-07-15 17:30:58 +03:00
Sam Saffron a0191a1e50 Revert "UX: Improve button position and visibility. (#78)"
This reverts commit d394d64285.

We made the UX here a bit too strong, we will followup with a reduction
of noise and ensure the new "loud UX" only appears for the OP
and only appears when no solution is accepted
2019-06-29 08:12:41 +10:00
Bianca Nenciu d394d64285 UX: Improve button position and visibility. (#78) 2019-06-28 18:50:42 +02:00
Neil Lalonde 46a7559cc4 Update translations 2019-06-17 13:58:34 -04:00
Sam Saffron 0fa0e7fd53 DEV: support running plugin without db
This is required for asset precompile
2019-06-13 16:33:03 +10:00
Neil Lalonde f76244e3ba Update translations 2019-06-10 10:40:33 -04:00
Neil Lalonde 24789547d2 Update translations 2019-05-30 11:32:54 -04:00
Guo Xiang Tan 75046f1d92 Add frozen string literal comment to files. 2019-05-13 11:04:27 +08:00
Bianca Nenciu 44e832813c FIX: Align checked icon in title. 2019-05-10 14:07:00 +03:00
Maja Komel db35674cc4 FIX: show solved icon on categories with featured topics page 2019-05-10 10:43:11 +02:00
Joffrey JAFFEUX 9f27caf39c FIX: adds support for new filter syntax 2019-05-01 22:24:09 +02:00