Commit Graph

199 Commits

Author SHA1 Message Date
Jarek Radosz ab0c63b1fb
DEV: Fix a computed property override (#239) 2021-11-15 00:41:30 +01:00
Jarek Radosz 5fc1dee14d
DEV: `mobile-nav` no longer uses `currentPath` arg (#238) 2021-11-15 00:40:19 +01:00
janzenisaac ec9405df5c
FIX: Return proper aria-labels (#237)
- Add proper aria label to dropdown
- Make sure footer button aria-labels are returned

fixes : https://dev.discourse.org/t/quicker-assign-to-self-when-group-is-assigned/54647/24?u=isaacjanzen
2021-11-13 14:58:35 -06:00
janzenisaac 98103586b2
FEATURE: Reassign workflow (#231)
Build a new workflow that adds a dropdown in place of the old assign button with the ability to

Re-assign a new user / group to an assigned topic
Re-assign yourself to an assigned topic
Unassign a user / group from an assigned topic
2021-11-12 10:09:47 -06:00
Martin Brennan 0e4649d507
DEV: Update code for eslint object-shorthand-rule (#236)
See 4f7aba06c0
2021-11-10 12:04:26 +11:00
Krzysztof Kotlarek 69dac06a82
FIX: correctly update UI when post is assigned/unassigned (#233)
Update topic title, first post and related post
2021-11-09 08:40:43 +11:00
Krzysztof Kotlarek a4b1847eff
FEATURE: display indirect assignments in the first post (#227)
A link in the first post will allow going to a specific post assigned to a user or group.
2021-11-03 10:35:10 +11:00
Krzysztof Kotlarek c396605d2f
FEATURE: assign to post (#224)
Ability to assign an individual post to a user or group
2021-11-01 09:27:13 +11:00
Krzysztof Kotlarek dc8f43fbb1
FEATURE: Assignment target is polymorphic (#218)
Change `topic_id` to polymorphic approach (In the next step we will allow assigning to individual post)

`topic_id` column is still used for efficient display of assigned users on topic list (to avoid scanning posts)
2021-10-14 09:22:29 +11:00
Jarek Radosz 58315230f0
UX: Remove an obsolete css class from an element (#220)
1. It's not needed in the new advanced search interface
2. It causes problems in some cases
2021-10-12 17:22:02 +11:00
Penar Musaraj dd2eae8f9c
DEV: Update bulk select in group topics list (#214) 2021-09-23 10:50:36 -04:00
Penar Musaraj 74b9f3d22c
UX: Fix input styling in group assignments page (#213) 2021-09-21 14:25:01 -04:00
Bianca Nenciu 85fa1f90aa
FIX: Refresh first post after assign and unassign (#212)
The first post showed the assign status when it was loaded and did not
update if it changed. The page had to be refreshed for the text to be
updated.
2021-09-17 10:37:36 +10:00
Robin Ward 7082e32122
FIX: Tests were broken on Ember CLI (#211)
The first issue is using `updateCurrentUser` when code was conditional
in an initializer. Instead we need to use `needs.user()`.

The second issue was trickier to track down but we were using an
observer in a syncrhnous way which is not allowed in newer Embers. This
removes the observer (and some dead code around it!) so that we can
execute that code synchronously.
2021-09-16 08:46:44 -04:00
Penar Musaraj 83635ced6f
DEV: Remove displayNewPosts (deprecated in core) (#208) 2021-09-15 08:29:48 -04:00
Martin Brennan 5f7adcc786
FIX: Allow Never selection for frequency of assigned topic reminders (#204)
If the user selected Never for their frequency of assigned topic
reminder PMs, the option automatically set back to the default
value (Monthly) because of the user of the `or` computed helper,
which considered the 0 value of Never to be falsey.

This is the same problem that occurred in core which was fixed by
d3779d4cf7

We need to be careful around using the `or` helper if any of the
options could be considered falsey.
2021-09-15 08:31:59 +10:00
Penar Musaraj 463b1c2cf0
DEV: Add `pluginId` in one last `modifyClass` call (#207) 2021-09-14 15:50:15 -04:00
Penar Musaraj 86a2b1d574
UX: Fix input alignment following core changes (#200) 2021-09-14 09:41:08 -04:00
Krzysztof Kotlarek 62d87f0084
FEATURE: better UI for group assignments (#197)
On the group assignment page, we should be able to display
- all topics assigned to that group + to user belonging to that group
- all topics assigned directly to group
- all topics assigned to individual user
2021-09-09 12:18:18 +10:00
Krzysztof Kotlarek 5954c625ef
FEATURE: advance search groups (#198)
Allow advance search filter to select topics assigned to specific group
2021-09-08 11:39:15 +10:00
Krzysztof Kotlarek 375f7ba78d
FEATURE: new assignable group option instead of messageable (#195)
V1 of group assign was using "who can message" to determine if group can be assigned.

This PR is introducing new separate setting "who can assign"
2021-09-08 10:30:13 +10:00
Robin Ward f541158b64
DEV: Add `pluginId` for more stable tests (#196) 2021-09-02 15:46:32 -04:00
Krzysztof Kotlarek b42ec9f779
FIX: correct group icons and notification message (#193)
* New group icon
* Group assignment notification displays group name instead of who assigned
2021-08-31 08:17:43 +10:00
Krzysztof Kotlarek 9d7d39705e
FIX: broken suggestions (#189)
We need to pass name to assignUser because it is used in 2 places.
One is multiselect and another are suggestions.
2021-08-27 12:57:17 +10:00
Krzysztof Kotlarek 1306a69b06
FIX: whisper small actions are blank (#188)
assigned_group and unassigned_group has to be added to decorator to properly display whispers
2021-08-27 11:34:44 +10:00
Jarek Radosz d807491df2
FEATURE: Assign to group (#182)
Ability to assign groups.

To assign group, user must have a right to send a message to that group.

In addition, 2 jobs were introduced, - AssignNotification and UnassignNotification to inform interested users in the background about the new assignment.
2021-08-27 09:25:38 +10:00
Andrei Prigorshnev 29d4b8fd5c
FEATURE: improve blank page syndrome (#187) 2021-08-25 19:51:45 +04:00
Joffrey JAFFEUX a8495e9d7a
FIX: makes dropdown use absolute positioning (#185) 2021-08-16 12:19:48 +02:00
Joffrey JAFFEUX 92a1167a68
FIX: explicit assign on user selection (#184)
Also drops autofocus as it's the first item in the form
2021-08-16 10:56:01 +02:00
Jarek Radosz ad95725987
FIX: Hide Unassigned if user doesn't have access (#179)
There's no need to display the "Unassigned" button for regular users when `assigns_public` is `false`.
2021-07-30 20:58:39 +02:00
Jarek Radosz 9ecc1581fd
DEV: Remove old review queue code (#178)
I think it should have been deleted with https://github.com/discourse/discourse-assign/pull/47? That's where e.g. `assign_locks_flags` site setting was removed.
2021-07-30 14:43:28 +02:00
Penar Musaraj c572e21493
UX: Add quick search suggestion entries (#175) 2021-07-21 14:00:43 -04:00
Jarek Radosz dfb30fc104
FIX: TagsHtmlCallback params can be undefined (#174) 2021-07-20 13:53:17 +02:00
Jarek Radosz 4e657b97df
FIX: Make tagsHtml callback respect tagName option (#173)
Makes the assigned icon and label non-interactive in search results dropdown.
2021-07-20 12:37:33 +02:00
Martin Brennan 8b0596fc87
FIX: Assign topic button not working (#164)
Since this commit
195dcc92cb
the updateUsername function was missing an @action decorator. This adds
it back and extends the assign acceptance tests to click the
mobile/desktop assign buttons and open the modal and click the
suggestion to save the assignment.
2021-06-29 10:12:19 +10:00
Jarek Radosz 195dcc92cb
DEV: Post-release cleanup (#163)
Included:

* DEV: Post-release cleanup
* DEV: Tests cleanup
* DEV: Import cleanup
* DEV: Drop a compatibility fix
* DEV: Use index_by
* DEV: Use ember imports
* DEV: Use discourseDebounce
* DEV: Use @action
* DEV: Use the optional chaining operator
* DEV: Fix an invalid test
* DEV: Use `discourseModule`
* DEV: Add .prettierrc
* DEV: Sync up the version number
2021-06-28 17:37:27 +02:00
Mark VanLandingham c0d651764f
UX: Improve quick access copy when no topics present (#151) 2021-04-23 11:00:22 -05: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
Jarek Radosz b560cf1002 DEV: Fix template linting issues 2021-02-10 12:14:38 +01:00
Joffrey JAFFEUX 1e7c6eceed
DEV: prettier 2.2.1 (#136) 2021-01-27 10:45:35 +01: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
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
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
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
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
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
jjaffeux 445e94de4c DEV: this is now fixed in core 2020-09-16 11:08:16 +02:00