Commit Graph

732 Commits

Author SHA1 Message Date
Natalie Tay 59fa9d7dbf
FIX: Sum assignments for group and group users (#482)
Use the assignment count rather than the number of topics assigned for the number of assignments in the nav
2023-07-03 10:58:46 +08:00
Jarek Radosz f89420d00e
DEV: Remove unused `assignUser` action (#483) 2023-06-30 19:18:15 +02:00
Jarek Radosz 2bff29e919
DEV: Modernization/cleanup (#480)
* Component template colocation
* Native classes
* glimmer plugin connector
* `this.` in templates
* `?.` operator
* Merged `withPluginApi` calls
* Updated deps
2023-06-22 10:06:37 +02:00
David Taylor 3ca56e82d7
DEV: Fix Zeitwerk reloading error (#479)
Using `.append` can lead to a 'two routes with the same name' error
2023-06-16 11:32:50 +01:00
Jarek Radosz a476aeb222
Revert "DEV: Fix a core deprecation (#475)" (#478)
This reverts commit 968751c8a9.

To be re-applied when 3.1.0.beta5 is released.
2023-06-01 19:54:52 +02:00
Kris c5877a1456
UX: constrain avatar size due to core change (#477) 2023-06-01 13:42:57 -04:00
Isaac Janzen 6cd56770bc
DEV: Use angle bracket syntax (#476) 2023-05-28 09:34:13 -05:00
Vinoth Kannan fb89a23530
FEATURE: skip group invite if all members can see topic already. (#474)
We don't want to invite a group when all of its members are part of another group that is already allowed to the topic.
2023-05-27 22:29:38 +05:30
Jarek Radosz 968751c8a9
DEV: Fix a core deprecation (#475) 2023-05-26 15:40:40 +02:00
Vinoth Kannan f97da59dee
FIX: don't invite user when already a member of an allowed group. (#473)
Otherwise, when an allowed group member is assigned to the PM it invites the user (which is unnecessary) and creates a public small post for the invite.
2023-05-24 11:45:50 +05:30
Discourse Translator Bot be4a50cf8d
Update translations (#472) 2023-05-23 21:23:18 +02:00
Vinoth Kannan dcaadb75dc
FEATURE: invite user/group to PM if not a participant already. (#471)
When a group or user is assigned to a personal message, if they are not already a participant, invite them to the PM before assignment.
2023-05-22 14:48:08 +05:30
Jarek Radosz c5e0c2c0b3
DEV: Don't use renderTemplate (#469)
See: https://github.com/discourse/discourse/pull/21517
2023-05-19 11:00:56 +02:00
Keegan George f75a6a8354
DEV: Remove `redesigned_user_menu_enabled: true` in tests (#470) 2023-05-17 13:47:30 -07:00
Keegan George 310fb80e54
DEV: Remove old user menu related code (#464) 2023-05-10 15:34:08 -07:00
Ted Johansson afb54c7c1e
DEV: Replace #pluck_first monkey patch with native #pick (#467) 2023-05-09 12:59:41 +08:00
Arkshine d79fea7e4f
FIX: Reassigning to a group creates an incorrect mention's link (#468)
Reported here: https://meta.discourse.org/t/reassigning-to-a-group-creates-a-u-link-in-the-group-mention/263659

Reassigning to a group creates an `/u/` link in the `@group` mention instead of `/g/`.

The reason is the `reassigned_group` group small post action code is not registered.
2023-05-05 10:00:49 +10:00
Arpit Jalan 69cbe1f3ee
FEATURE: allow adding note when bulk assigning topics (#466) 2023-05-02 15:20:44 +05:30
Isaac Janzen ba47a238ac
FIX: properly check key values for shortcuts (#463)
- Update angle bracket components to use vanilla attributes where possible
- Update how we check for key value after changing to `on "change"` from `onChange`
2023-04-28 13:02:13 -05:00
Isaac Janzen 11988a9e68
DEV: Resolve `computed-property.override` deprecation (#462) 2023-04-28 12:13:41 -05:00
Isaac Janzen a655a009fa
DEV: Use angle bracket syntax (#460)
- Use angle bracket syntax (updated via https://github.com/ember-codemods/ember-angle-brackets-codemod)
- Update deprecated options being passed to components (eg. @input -> on "input")
2023-04-26 15:30:50 -05:00
David Taylor 4d1b55c5e5
DEV: Remove unneeded argument for add_to_serializer (#459)
Followup to 1dd0be9134
2023-04-25 15:54:23 +01:00
David Taylor 1dd0be9134
DEV: Resolve add_to_serializer deprecations (#458)
26b7f8a63b
2023-04-24 16:06:21 +01:00
Jan Cernik 9c270cac9a
FIX: Show user status tooltip on the assign modal (#457) 2023-04-11 08:31:48 -03:00
David Taylor 996c5ea493
DEV: Use component references for user menu (#456)
See 9b41700f87 for context.

Passing a reference works before and after that change, so there is no need to introduce a discourse-compatibility entry.
2023-03-24 17:55:23 +00:00
Natalie Tay 7562925e0d
FIX: Also evaluate list controller extensions (#455) 2023-03-23 21:35:12 +08:00
Bianca Nenciu 858636cf72
DEV: Update plugin to match latest guidelines (#450)
This commit updates the plugin to follow the latest guidelines, as
shown in discourse-plugin-skeleton, removing the explicit require calls
and using config/routes.rb for defining all routes.
2023-03-23 11:12:04 +02:00
Discourse Translator Bot 2e5598e818
Update translations (#454) 2023-03-21 14:12:20 -04:00
Kris 9bbd1e8321
UX: clearer assign messages on first post (#452) 2023-03-14 10:19:39 -04:00
Keegan George 32f6747264
FIX: Missing actions icon (#453) 2023-03-13 10:45:06 -07:00
Kris 22000f2a5e
UX: fix status alignment after core change (#451) 2023-03-10 16:49:10 -05:00
Penar Musaraj 99e5bb48c9
Revert "DEV: Update plugin to match latest guidelines (#448)" (#449)
This reverts commit 8548df4138.
I suspect this is causing smoke tests to fail. Reverting to confirm.
2023-03-08 14:53:50 -05:00
Bianca Nenciu 8548df4138
DEV: Update plugin to match latest guidelines (#448)
This commit updates the plugin to follow the latest guidelines, as
shown in discourse-plugin-skeleton, removing the explicit require calls
and using config/routes.rb for defining all routes.
2023-03-08 15:15:12 +02:00
Discourse Translator Bot aec66333f4
Update translations (#447) 2023-02-21 17:11:14 +01:00
Bianca Nenciu d8ad876368
DEV: Update plugin to match latest guidelines (#446)
- Define extension modules
- Use different files instead of plugin.rb
- Make sure the plugin is disabled according to the setting
2023-02-17 17:35:41 +02:00
Discourse Translator Bot c95c520a6e
Update translations (#443) 2023-02-15 10:50:18 +01:00
David Taylor d2cc2c4345
DEV: Make basic-assigned-topic-list a real component (#444)
Re-exporting the BasicTopicList component as-is leads to unexpected behavior when colocating templates because `BasicAssignedTopicList` === `BasicTopicList`. Extending it gives the component its own identity.

Similar to 8ba7b0727a
2023-02-14 13:39:15 +00:00
Kris e3a5db4e63
UX: improve custom icons for group assign (#441) 2023-02-13 17:19:25 -05:00
David Taylor 8ba7b0727a
DEV: Make assigned-topic-list a real component (#442)
Re-exporting the TopicList component as-is leads to unexpected behavior when colocating templates because `AssignedTopicList` === `TopicList`. Extending it gives the component its own identity.
2023-02-13 17:54:30 +00:00
Kris c6e6a883f6
UX: remove whitespace in assign tag (#440) 2023-02-08 09:29:50 -05:00
Alan Guo Xiang Tan 460223d7e6
DEV: Remove viewing personal messages test on old user navigation menu (#439)
Core is moving towards the redesigned user page navigation menu so the
old test is no longer required.
2023-02-02 15:44:57 +08:00
Kris e724a7ee69
UX: class for small posts when assigns are private (#400)
The goal is to add a class so when assigns are not public, their descriptions can be styled similar to whispers... this is a light way to reassure admins of assign message visibility.
2023-02-02 15:11:53 +08:00
Krzysztof Kotlarek a907a98d87
FIX: n+1 in search result (#438)
When assignment data is preloaded, cache variable should be set when topic is assigned but also when topic is not assigned to avoid additional queries.
2023-02-01 16:28:21 +11:00
Bianca Nenciu a9b44a973c
FIX: Use same limit as default for user search (#437) 2023-01-26 16:28:30 +02:00
Bianca Nenciu f34bc92b40
FIX: Do not expand if assignee username present (#434)
This does not work as expected and can lead to a worse user experience.
2023-01-25 10:08:34 +02:00
Discourse Translator Bot 7e7da1a876
Update translations (#436) 2023-01-24 16:30:42 +01:00
chapoi 0c0fcbc5af
UX: fix list being limited by modal size (#435) 2023-01-24 13:19:01 +01:00
chapoi 4934df94e2
UX: add ellipsis for assign modal (#433)
* UX: add ellipsis for assign modal

* UX: remove suggestions label
2023-01-23 18:48:17 +01:00
chapoi 0d695df595
UX: fixing alignment issue (#432)
* UX: fixing alignment issue
2023-01-23 18:47:00 +01:00
Krzysztof Kotlarek c036d030dc
FIX: reassign when assignment limit is fulfilled (#419)
Previously, when topic was already assigned 5 times, reassign was not possible. User had to first unassign topic and then assign to someone else.
2023-01-20 13:34:22 +11:00