Commit Graph

634 Commits

Author SHA1 Message Date
Discourse Translator Bot 268af3049a
Update translations (#279) 2022-01-11 14:21:02 +01:00
Discourse Translator Bot 50ce10e608
Update translations (#277) 2022-01-04 17:39:02 +01:00
Arpit Jalan 5a426e6836
FIX: bulk assign modal was broken (#276)
When trying to bulk assign topics to a user via bulk topics action modal
the modal was broken because the key "model.description" was missing.

This commit adds key "model.description" and adds a new locale for it to
indicate that this action will be performed on multiple topics.
2022-01-04 14:32:37 +05:30
Discourse Translator Bot e384ca8947
Update translations (#275) 2021-12-28 14:13:24 +01:00
communiteq 43f93d9611
Fix: set these fields in condition below only (#273)
Co-authored-by: Richard <richard@communiteq.com>
2021-12-24 11:24:57 +11:00
David Taylor 8184c5fa98
UX: Change "Re-assign" copy to "Reassign" (#274) 2021-12-23 19:15:56 +00:00
discoursebot 920503f5fc
DEV: Update CI workflows (#271)
Co-authored-by: davidtaylorhq <davidtaylorhq@users.noreply.github.com>
2021-12-16 16:16:56 +00:00
Krzysztof Kotlarek a229b2feb1
FIX: always unassign posts when deleted (#270)
Post should be always unassigned when deleted. They are hidden, and it may cause a lot of confusion. For example, when a user wants to assign topic, and it cannot be done because existing assignment to deleted post.
2021-12-16 13:38:06 +01:00
Krzysztof Kotlarek 9ac8b70b14
FIX: refresh topic when topic or post is deleted or recovered (#269)
Additional check was added to only refresh if there were affected assignments
2021-12-15 07:53:12 +01:00
Discourse Translator Bot 99811d493d
Update translations (#268) 2021-12-14 14:53:18 +01:00
Krzysztof Kotlarek 485aef0e69
FIX: specs for search fix (#267)
Yesterday a quick fix was made with this PR https://github.com/discourse/discourse-assign/pull/266

Here are additional specs to ensure that serializer is not erroring
anymore
2021-12-14 11:26:15 +01:00
Roman Rizzi fe2f629975
FEATURE: Delete previous assign reminder PMs (#265) 2021-12-13 12:59:26 -03:00
Krzysztof Kotlarek a9ef43e12f
FIX: indirect assigned to in search (#266)
Search similarly to topic list should return a hash with post_number
2021-12-13 15:47:09 +01:00
Krzysztof Kotlarek 1a1dffc5e8
FEATURE: active flag for assignments (#264)
When topic is closed, we mark assignments as "inactive". Then when it is reopen and setting reassign_on_open is enabled, we bring back previous assignments.

We were already using custom fields for archive message and move to inbox. I changed custom fields solution to use active flag on Assignment model
2021-12-13 08:36:14 +01:00
Andrei Prigorshnev 3a76a465a0
DEV: use the empty-state component (#261) 2021-12-09 00:23:10 +04:00
Discourse Translator Bot f901c5fe97
Update translations (#262) 2021-12-07 16:19:31 +01:00
Krzysztof Kotlarek 3eaefb60dd
FIX: dont allow assigning user to topic when post assigned (#259)
When post is already assigned to user/group then don't allow assigning a topic to that user/group.

Similarly, right now when topic is already assigned we are not allowing to assign a post that that user.
2021-12-06 06:09:04 +01:00
Joffrey JAFFEUX 2930cda049
FIX: correctly position dropdown in modal on desktop (#260) 2021-12-03 12:22:29 +01:00
janzenisaac 5910fd5569
FIX: Refactor assign / reassign to combine logic (#250)
* Refactor and combine assign / reassign logic
2021-12-02 13:12:00 -06:00
Krzysztof Kotlarek 91d0712b04
FIX: improvements for assign to post (#258)
1. When post is assigned to current user, unassign icon is not hidden
2. Link under names lead to topic (when topic assignment) and to post (when post assignment)
2021-12-01 08:54:13 +11:00
Jordan Vidrine a9a427150e
FIX: Adjust mobile list for recent topic list changes (#257) 2021-11-23 17:47:31 -06:00
Discourse Translator Bot a5120b7574
Update translations (#256) 2021-11-23 17:29:35 +01:00
Martin Brennan da3fdc1411
DEV: Fix spec (#255)
Broken by 9f8ee8f137
2021-11-22 16:05:15 +11:00
janzenisaac 09d254b369
FIX: Update aria-labels on mobile / dropdown (#254)
- Update aria labels on mobile and for re-assign dropdown
- Fixes: https://dev.discourse.org/t/quicker-assign-to-self-when-group-is-assigned/54647/33?u=isaacjanzen
2021-11-19 11:55:14 -06:00
Mark VanLandingham cb0a65b844
FIX: current_user serializer not throwing error (#253) 2021-11-18 13:33:14 -06:00
Jarek Radosz f56037cdf0
FIX: Selecting a user was clearing search terms (#252)
Regressed in #211?
2021-11-18 18:52:38 +01:00
Natalie Tay 3d2a9d1e87
Show custom topic tracking message when the user 'never' automatically tracks topics and gets assigned (#249)
* Show more precise topic tracking message when the user never tracks any topics and gets assigned
2021-11-18 09:44:53 +08:00
Jarek Radosz f88c419a8c
FIX: Broken assigned topics search (#251)
regressed in #239
2021-11-18 01:58:01 +01:00
Krzysztof Kotlarek 89a61b58f8
FIX: use customOptions property (#240)
Change after https://github.com/discourse/discourse/pull/14933
2021-11-17 17:12:37 +11:00
Jordan Vidrine ebe693ae96
REFACTOR: Topic list changes (#248)
* REFACTOR: Topic list changes
2021-11-16 14:50:31 -06:00
Discourse Translator Bot b09239ec27
Update translations (#247) 2021-11-16 16:17:02 +01:00
Joffrey JAFFEUX d6a8c75a86
typo (#246) 2021-11-16 10:37:30 +01:00
Jeff Wong eb8f60ef7d
FIX: Pin plugin version when running discourse <= 2.8.0.beta7 (#245) 2021-11-15 17:18:25 -08:00
Krzysztof Kotlarek 677d6a9aed
FIX: no error when assigned post is deleted (#244)
When an assigned post is deleted, we should not error. For now, assignment object is left untouched to not lose information when post is `undeleted`.

We can change that behaviour later if we decide that assignments should be deleted as well.
2021-11-16 09:12:51 +11:00
janzenisaac 6354215341
UX: Have mobile icons match desktop (#243) 2021-11-15 11:53:56 -06:00
janzenisaac 54bd6bd2c3
UX: Update reassign dropdown styles (#242)
- Make drop down options regular font weight
- Add icon to drop down options
2021-11-15 10:47:29 -06:00
janzenisaac 28fbcac11e
FIX: Update Re-assign view permissions (#241)
Only show mobile re-assign options if user has permission to assign

Fixes: https://meta.discourse.org/t/discourse-assign/58044/155?u=isaacjanzen
2021-11-15 09:58:48 -06:00
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
Discourse Translator Bot 3a8e45700c
Update translations (#235) 2021-11-09 14:54:14 +01: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 2d1f5668a5
FIX: rename action_code_href to action_code_path (#234)
We should use relative paths, therefore name change is necessary to avoid confusions. Post migration is added to fix existing data.
2021-11-08 14:32:21 +11:00
Krzysztof Kotlarek 22025b35b8
FEATURE: small post action with link to post (#232)
When a post is assigned/unassigned, we want small action to have a link to the specific post.
2021-11-08 08:25:13 +11:00
Krzysztof Kotlarek a876821ab1
FIX: missing assignee icon in search (#230)
Change serializer to include icon path
2021-11-04 08:32:25 +11:00
Krzysztof Kotlarek fcd4532c76
FIX: move post assignment when move post (#229)
When an assigned post is moved to the new topic, it becomes topic assignment.

When an assigned post is moved to an existing topic it stays post assignment
2021-11-04 08:22:53 +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
Discourse Translator Bot 5447a72fd8
Update translations (#228) 2021-11-02 18:48:28 +01:00