Commit Graph

459 Commits

Author SHA1 Message Date
dependabot[bot] 75caee8f0d
Build(deps): Bump y18n from 4.0.0 to 4.0.1 (#150)
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 10:00:22 +02:00
Discourse Translator Bot e682d4ddfe
Update translations (#149) 2021-03-16 15:44:07 +01:00
Osama Sayegh a90e7ab7e2
FIX: Add autofocus to users chooser on the assign modal (#148)
The users chooser on the assign modal is the primary input field on the modal, so it makes to shift focus to it when the modal is opened. This PR needs 0f807ba85b in core to work properly, but it won't cause errors (won't have any effects) if it's deployed to a site that doesn't have that commit.
2021-02-23 14:05:34 +03:00
Roman Rizzi 394f857096
FIX: Use Ember's debounce on stable. (#147)
We need to wrap the new debounce function inside a try block to avoid throwing a "module not found" exception.
2021-02-22 12:55:16 -03:00
Osama Sayegh b1b8c94f56
DEV: Migrate from {{user-selector}} to {{email-group-user-chooser}} (#146) 2021-02-15 12:34:55 +03:00
discoursebot b3367ba9d2
DEV: Update CI workflows (#144)
* DEV: Update CI workflows

* DEV: Update Gemfile.lock

Co-authored-by: CvX <CvX@users.noreply.github.com>
Co-authored-by: Justin DiRose <justin@justindirose.com>
2021-02-11 10:18:24 -06:00
Jarek Radosz b560cf1002 DEV: Fix template linting issues 2021-02-10 12:14:38 +01:00
CvX 0f2475708e DEV: Update CI workflows 2021-02-10 12:14:38 +01:00
Discourse Translator Bot 97adee3680
Update translations (#142) 2021-02-09 14:52:00 +01:00
Jeff Wong 4e571042f3
Update compatibility manifest (#141)
Older versions of Discourse did not have the new debounce functions.
Pin compatibility back to the commit for older versions.
2021-02-04 16:58:35 -08:00
Discourse Translator Bot 5dcdb96fd5
Update translations (#140) 2021-02-02 14:36:57 +01:00
Kris ea0ac1a7fc
Adjust button padding to account for avatar (#139)
Follow up to f7bb92b
2021-01-28 10:27:54 -05:00
Kris f7bb92bf51
UX: update button padding for core button update (#138) 2021-01-27 16:46:37 -05:00
Osama Sayegh c5b549b887
FIX: Improve error message when assigning a PM to a user who doesn't have access to the PM (#137)
Currently if you try to assign a PM to a user who can't see it, you get an error message that says "@{user} can't be assigned since they don't belong to assigned allowed groups". This commit improves the message and now it tells you the user doesn't have access to the PM and that you need to invite the user before you can assign them.

Signed-off-by: OsamaSayegh <asooomaasoooma90@gmail.com>
2021-01-27 14:57:41 +03:00
Joffrey JAFFEUX 1e7c6eceed
DEV: prettier 2.2.1 (#136) 2021-01-27 10:45:35 +01:00
Discourse Translator Bot aebcdfeae4
Update translations (#135) 2021-01-26 14:51:13 +01:00
Roman Rizzi 65be8fe69d
FIX: Unassign users after removing them from an assign allowed group. (#134)
Users that aren't members of an assign allowed group can no longer use the feature. Automatically unassign all their topics.
2021-01-25 14:59:42 -03:00
Roman Rizzi 0bf73af1d7
UX: Redirect to the login page if trying to view assigned topics as anon (#133) 2021-01-22 16:16:35 -03:00
discoursebot ab568be98b
DEV: Update CI workflows (#128)
* DEV: Update CI workflows
* DEV: Fix linting

Co-authored-by: justindirose <justindirose@users.noreply.github.com>
Co-authored-by: Justin DiRose <justin@justindirose.com>
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2021-01-21 22:39:54 +01:00
Jarek Radosz b5cbb1779f
DEV: Fix a linting error (#132) 2021-01-21 22:30:21 +01:00
Roman Rizzi 30c1ef0d02
DEV: Update test to pass if the assignments tab is either a link or a button. (#131)
Related to https://github.com/discourse/discourse/pull/11789
2021-01-21 17:57:38 -03:00
Discourse Translator Bot e8903a7352
Update translations (#130) 2021-01-19 15:47:17 +01:00
Penar Musaraj 11f7dee7f2
DEV: Fix linting (#127) 2020-12-30 15:56:00 -05:00
Roman Rizzi b824e19e91
REFACTOR: Use the new format for acceptance tests. (#126) 2020-12-30 17:02:45 -03:00
Roman Rizzi 1663b3ab18
Use the new discourseDebounce function wrapper. (#124)
We recently merged a Discourse core's PR to replace usages of Ember's debounce and discourseDebounce with a new debounce wrapper. The new wrapper works exactly like Ember's debounce but internally calls "run" when called in test mode.

This PR replaces all usages of other debounce functions with the new wrapper and fallbacks to Ember's debounce for backward-compatibility.
2020-12-22 14:34:03 -03:00
Discourse Translator Bot 60ef0c8f41
Update translations (#125) 2020-12-22 14:47:32 +01:00
Arpit Jalan 6da6f525f2
FEATURE: show assigned user on search results (#123)
This commit allows discourse-assign plugin to show assigned users on
search result topic list.
2020-12-17 21:58:35 +05:30
Rafael dos Santos Silva d08497c308
Revert "FEATURE: show assigned user on search results (#121)" (#122)
This reverts commit ed51dcef10.

Plugin triggers a N+1, and the N+1 protection breaks search
everywhere

StandardError (Attempted to access the non preloaded custom field
  'assigned_to_id'. This is disallowed to prevent N+1 queries.)
2020-12-08 13:18:02 -03:00
Arpit Jalan ed51dcef10
FEATURE: show assigned user on search results (#121) 2020-12-08 19:57:19 +05:30
Osama Sayegh 314616dbd5
DEV: Delete Travis config file (#120) 2020-12-01 19:36:59 +03:00
Joe 55ceec2ac3
UX: adds margins to assign tag in composer-popup (#119)
This PR adds some margins to the assign tags in the composer-popup.

Before 

<img src="https://user-images.githubusercontent.com/33972521/100543762-02948f00-328d-11eb-8147-3cc5d53eaf72.png" width=500>

After

<img src="https://user-images.githubusercontent.com/33972521/100543767-09230680-328d-11eb-98e5-278d96623b37.png" width=500>
2020-11-30 01:13:56 +08:00
Discourse Translator Bot 84433768a6
Update translations (#118) 2020-11-24 17:23:47 +01:00
Robin Ward 53c5933b93
FIX: `onChange` needs an action (#117)
Before this fix it was impossible for a user to change their preference
for reminder frequency.
2020-10-30 11:49:56 -04:00
Discourse Translator Bot f542f2e456 Update translations 2020-10-20 15:30:51 +02:00
Discourse CI 900b6ce0f8 DEV: Update CI workflows 2020-10-14 16:27:51 +00:00
Discourse CI 95790c8e4e DEV: Update CI workflows 2020-10-12 08:16:47 +00:00
Discourse CI 379964da2b DEV: Update CI workflows 2020-10-09 19:03:08 +00:00
Discourse CI 944eec60a8 DEV: Update CI workflows 2020-10-09 16:14:59 +00:00
Discourse CI c8a8f6aa51 DEV: Update CI workflows 2020-10-09 15:09:40 +00:00
Discourse Translator Bot 15169812bb Update translations 2020-10-06 15:21:39 +02:00
Joffrey JAFFEUX 977f7592f4
FIX: removes the need for intermediate property and updates code (#114)
Before this commit, changing the value of the reminder frequency on a user notifications page was not working.

This commit also get rid of a few deprecations warning.
2020-09-30 11:10:15 +02:00
Justin DiRose 158cb01ac1
DEV: Add plugin testing workflow 2020-09-25 11:33:31 -05:00
Justin DiRose 977b48fffe
DEV: Add linting workflow 2020-09-25 11:33:10 -05:00
Justin DiRose 5e3f5dc6ac
DEV: Add RubyGems as source 2020-09-25 11:32:55 -05:00
jjaffeux 6c14a0288b DEV: linting 2020-09-22 17:07:15 +02:00
jjaffeux 7e023968b8 DEV: removes superfluous arguments 2020-09-22 16:23:23 +02:00
Discourse Translator Bot f98f5159ce Update translations 2020-09-22 13:01:07 +00:00
David Taylor c4aefd5917
REFACTOR: Use core `default_results` function (#111)
This significantly reduces the amount of logic we need to carry in the discourse-assign plugin. One side effect is that I had to rename the 'q' parameter to 'search', so that it matches core's implementation.
2020-09-16 12:18:14 +01:00
Discourse Translator Bot f6fc09ff13 Update translations 2020-09-16 10:14:51 +00:00
jjaffeux 445e94de4c DEV: this is now fixed in core 2020-09-16 11:08:16 +02:00