Commit Graph

91 Commits

Author SHA1 Message Date
Sam Saffron 68ff24739b DEV: attempt a more cautious lookup
This was failing the test suite somehow, despite voting using the same
pattern.
2019-11-01 15:26:16 +11:00
Sam Saffron e0de9238a1 FEATURE: new category setting to add "Unassigned" navigation menu
When a category is used exclusively for managing topic assignments it can
be very useful to list all the unassigned topics. This introduces a new
category setting that allows admins to opt for this new navigation item.

It works both on mobile and desktop.

This uses an amended nav item API, to experience this fully you need latest
versions of Discourse.
2019-11-01 14:15:28 +11:00
Sam Saffron bc5469c6c6 Revert "FEATURE: new category setting to add "Unassigned" navigation menu"
This reverts commit 600e1b6544.

The level of hack here is just to high, this destabilizes tests. We need a
proper pattern.
2019-10-30 18:16:12 +11:00
Sam Saffron abc21b7734 Revert "DEV: make pre-initializer a bit safer"
This reverts commit 029a26733a.

This whole experiment is too unstable
2019-10-30 18:13:30 +11:00
Sam Saffron 029a26733a DEV: make pre-initializer a bit safer
Was noticing custom fields could be null is some cases so this ensures we
never reach to it if missing
2019-10-30 17:55:50 +11:00
Sam Saffron ce63380eb5 DEV: Missed running prettier automatically
This is not fixed in my dev environment
2019-10-30 17:07:40 +11:00
Sam Saffron 600e1b6544 FEATURE: new category setting to add "Unassigned" navigation menu
When a category is used exclusively for managing topic assignments it can
be very useful to list all the unassigned topics. This introduces a new
category setting that allows admins to opt for this new navigation item.

It works both on mobile and desktop.

Unfortunately Discourse is lacking internal APIs for cleanly adding NavItems

We will look at improving this soon.
2019-10-30 16:37:13 +11:00
romanrizzi a6df22bb32 DEV: Remove old backward-compatibility code 2019-10-09 15:21:00 -03:00
Kyle Zhao c1c06b8ed6 FIX: do not escape `fancy_title` again. (#50) 2019-09-13 14:32:40 -04:00
romanrizzi 3b2f10a450 Remove fallback PM tag 2019-09-11 17:14:48 -03:00
Roman Rizzi dc6041abcb
DEV: Remove dreprecated review queue code (#47) 2019-09-11 09:51:23 -03:00
Kyle Zhao d18c347cd9 FEATURE: Quick access panel for assignments. (#49)
* FEATURE: Quick access panel for assignments.

* Only enable quick access when core is compatiable.

This ensures that the plugin won't break Discourse instances without the
latest `QuickAccessPanel` feature.
2019-09-09 16:12:14 +10:00
romanrizzi 2d78151481 FIX: Use can_assign instead of staff to show the assign modal correctly 2019-08-04 18:30:28 -03:00
David Taylor 9c72a2f5ca UX: Add "Assigned" to the page title for the assigned topic list 2019-08-02 15:51:14 +01:00
romanrizzi 8114684ed8 Initialize allowedGroups inside the constructor 2019-07-24 12:17:42 -03:00
romanrizzi 65fbdc3396 FIX: remove unused import 2019-07-19 14:55:36 -03:00
romanrizzi 8792cf51bd DEV: Assign allowed groups are sent alongside suggestions. After the migration happens, we'll need to still have access to the allowed group names so we can search users. 2019-07-19 14:49:45 -03:00
Joffrey JAFFEUX 49474c94ea
FIX: uses taskActions api and removes old buttons (#44) 2019-07-19 13:32:08 +02:00
Joffrey JAFFEUX 02c6fa6d24
DEV: uses new topic-button API (#43) 2019-07-19 10:20:55 +02:00
Joffrey JAFFEUX 75c6cecfdb
REFACTOR: old ember patterns, deprecations, dead code (#42) 2019-07-19 09:56:39 +02:00
Bianca Nenciu 22129d191f
UX: In mobile view show button only under topic controls. (#35) 2019-06-25 16:05:09 +03:00
Joffrey JAFFEUX fe80298ae5 FIX: prevents messageBus subscriptions to leak 2019-06-12 10:20:34 +02:00
Roman Rizzi f312ece4a9
Feature: Allow assign on groups (#31)
* Feature: Allow assign on groups

* Use type: group_list option

* Track group changes and update the setting accordingly. Restrict reminders frequency to assign allowed users instead of staff
2019-06-04 09:21:33 -03:00
romanrizzi deea8b59bc FIX: Only show override options to admins 2019-05-27 13:45:54 -03:00
Roman Rizzi abe8142038
FEATURE: Users can override reminders frequency (#30)
* FEATURE: Users can override reminders frequency

* Changes:
- Avoid creating a user custom field when the used didn't override the frequency
- Sanitize frequency value using coercion
- Minor fixes

* Sanitize query and user query single
2019-05-27 10:53:37 -03:00
romanrizzi a0031d596a Remove unused imports 2019-05-15 16:24:14 -03:00
romanrizzi c882b097f8 Remove 'Unassign All' feature 2019-05-15 15:57:28 -03:00
romanrizzi b4148a8858 Fix template indentation 2019-05-13 17:18:36 -03:00
Roman Rizzi 2f5af6e2cb FIX: Add a custom mobile view for the assigned-topics-list (#33) 2019-05-09 10:53:45 +10:00
Régis Hanol 578a7f7b70 UX: slightly more space right to the PM icon 2019-05-07 09:55:22 +02:00
Roman Rizzi e3b2e5bdb6 FEATURE: Display PMs in assigned activity and differentiate them. (#27)
* FEATURE: Display PMs in assigned activity and differentiate them.

* FEATURE: Unassign/Re-assign tasks from the activity view

* Remove bulkAssign. Reuse assign/unassign with a service. Change PM icon position

* Reuse ListItemDefaults instead of duplicating code.

* Conditionally show/hide feature if list items defaults is present in core
2019-05-07 16:30:47 +10:00
Kris 4625108888 FIX: class for wrapper changed 2019-04-19 13:57:09 -04:00
Joffrey JAFFEUX 046f1db466 FIX: adds auto-route to avoid losing queryParams on successive clicks 2019-03-28 11:34:31 +01:00
Joffrey JAFFEUX 0f6faa9fc3 FIX: ember 3 support (#23) 2019-03-15 18:49:41 +01:00
Joffrey JAFFEUX 922d8515ca
FIX: assign state was not correctly updated on mobile (#19) 2018-11-27 17:45:28 +01:00
Bianca Nenciu 16afd2c612 FIX: Check if plugin disabled globally prior to extending JS 2018-11-23 10:53:07 +11:00
Sam 1f938c3f41 FIX: show unassign button on mobile 2018-11-23 09:57:13 +11:00
Sam 312357988f Move message bus subscription into controller
This ensures we always correctly unsubscribe from the channel
2018-11-23 09:44:59 +11:00
Bianca Nenciu a915f0135f FIX: Schedule a rerender on message arrival. (#16) 2018-11-23 09:05:55 +11:00
Penar Musaraj 613cf478a0 Add missing icon 2018-11-07 21:26:27 -05:00
Kris 69c319e81d adding btn-default class 2018-11-06 10:57:56 -05:00
David Taylor 519effe056 DEV: Apply prettier 2018-10-22 19:49:32 +01:00
Kris 11012a7fbd Padding needs to be more specific 2018-10-18 18:03:11 -04:00
Kris edd17c6496 Post alignment update 2018-10-16 13:46:37 -04:00
Kris 7c8ce7d1b3 Slight margin reduction 2018-08-08 22:53:32 -04:00
Sam d58aa482ba FIX: show suppressed categories in assign list 2018-07-23 17:26:05 +10:00
Guo Xiang Tan e1c7869969 UX: Add margin to assign-controls on mobile. 2018-05-24 14:44:13 +08:00
Sam 908972a723 UX: de-emphasize actions on topics 2018-05-24 15:27:44 +10:00
Guo Xiang Tan 22108df6be FEATURE: Display link with count to user's assigned messages page. 2018-05-23 18:16:36 +08:00
Robin Ward 754209ce58 Add "Unassign All" button to user's assigned topics view 2018-05-04 13:41:04 -04:00