Commit Graph

165 Commits

Author SHA1 Message Date
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
jjaffeux 6a449367f5 FIX: keeps updateInRegex public 2020-09-15 12:23:08 +02:00
jjaffeux 8192b888d5 FIX: missing conditional 2020-09-15 12:18:53 +02:00
jjaffeux 1cc42e5c9a FIX: makes updates of search term work with core update 2020-09-15 12:02:51 +02:00
jjaffeux bf98811165 FIX: ensures autofocus is working 2020-09-11 16:48:00 +02:00
Ahmed Gagan d9826cc608
FIX: Input helper loosing focus and default selecting 'Everyone' tab in 'group-assigned' tab (#112) 2020-09-11 15:06:37 +01:00
Ahmed Gagan 303274eae3
FEATURE: Advanced search filters for assigned topics (#102)
Adds three new search modifiers:

- in:assigned for assigned topics
- in:unassigned for unassigned topics
- assigned:{username} to list topics assigned to a specific user

These modifiers are all made available in the advanced search sidebar
2020-09-11 12:15:50 +01:00
Ahmed Gagan 3e3dc3815b
FEATURE: Assign bulk actions for topics lists (#110)
- Allows unassigning and reassigning topics using bulk actions
- Adds bulk actions UI to the group assigned page
2020-09-11 11:49:25 +01:00
David Taylor e78537ac46
DEV: Apply prettier 2020-09-09 18:41:42 +01:00
Ahmed Gagan 43c68f6ffd
FEATURE: Allow filtering topics in the user assigned list (#108) 2020-09-09 18:28:14 +01:00
Joffrey JAFFEUX 598c717009
DEV: apply coding standards (#109) 2020-09-04 13:24:23 +02:00
Ahmed Gagan cd31a821fc
UX: Only show assigned tab for groups where all users can assign (#103) 2020-08-28 15:18:25 +01:00
Ahmed Gagan 2fad129af5
UX: Ensure equal margin around topic search box (#106) 2020-08-21 14:39:18 +01:00
Ahmed Gagan b88723a3b1
FIX: Correct sorting issues 2020-08-20 12:07:24 +01:00
Ahmed Gagan 141ef6a882
FIX: Remember sort and topic-search when switching users (#98) 2020-08-14 12:31:34 +01:00
Ahmed Gagan 98bc01be16
UX: Load topic filter results while typing (#101)
This matches the user sidebar filter behaviour
2020-08-14 11:40:23 +01:00
Ahmed Gagan 99c2c48c08
DEV: Refactors following code review (#100) 2020-08-14 11:37:34 +01:00
David Taylor 4091211198
UX: New layout for group assigned user sidebar 2020-08-13 01:23:08 +01:00
Ahmed Gagan 069adc1af7
FEATURE: Allow searching topics in group assigned tab (#97) 2020-08-12 23:40:04 +01:00
Ahmed Gagan f250dca93f
FEATURE: Allow filtering users in group assigned tab (#95) 2020-08-12 23:39:14 +01:00
Ahmed Gagan a844da7656
FIX: Refresh members and tab count when assignments change 2020-08-12 23:07:05 +01:00
Kris 7abf37cc78
Update for refactored quick access panels (#96)
Related to 1972364d0f
2020-08-10 16:34:38 -04:00
Ahmed Gagan cb9ca82644
FIX: Remember scroll position in long assigned lists 2020-08-05 13:18:09 +01:00
Ahmed Gagan 050143960c
FEATURE: Link user card from assigned list avatar (#93) 2020-08-05 12:19:20 +01:00
Ahmed Gagan 96c3d9d12e
UX: Scroll to top of assigned list when switching users 2020-08-04 16:26:10 +01:00
Ahmed Gagan 6dbf3e2bcb
FEATURE: Allow sorting assigned topic lists 2020-08-04 15:48:33 +01:00
Ahmed Gagan 301be24c13
UX: Rename group tab from Assignments to Assigned (#88) 2020-07-27 12:26:12 +01:00
Kris 26682ccec4
UX: Improving styling so names/usernames fit better (#86) 2020-07-23 13:13:55 +01:00
Ahmed Gagan cd3e5763d1
UX: Hide group tab when there are no assignments, add everyone count (#83) 2020-07-21 16:26:40 +01:00
Ahmed Gagan 816f3c0e97
FEATURE: Per-member counts in group assignment summary (#80) 2020-07-21 12:55:34 +01:00
Ahmed Gagan 4d5169c445
UX: Remember scroll position in assign lists (#82) 2020-07-21 12:53:26 +01:00
Jarek Radosz 68bebd77f6 DEV: Prettier fix 2020-07-17 18:20:29 +02:00
Ahmed Gagan fa08157e30
UX: Use username/name in group member list according to site setting (#75) 2020-07-17 16:18:17 +01:00
Ahmed Gagan bc26f099fa
FIX: Group assignments dropdown on mobile (#76) 2020-07-14 11:55:07 +01:00
Ahmed Gagan 027d5dd40a
FIX: Resolve missing variable in assigned-topic-list dropdown (#74) 2020-07-13 12:38:04 +01:00