Commit Graph

675 Commits

Author SHA1 Message Date
Discourse Translator Bot 4b430ae36e
Update translations (#423) 2023-01-10 20:53:45 +01:00
discoursebot 4eeee568af
DEV: Update CI workflows (#424)
Co-authored-by: discoursebuild <build@discourse.org>
2023-01-10 18:03:19 +00:00
chapoi 509ee637cf
UX: fix text alignment assign modal dropdown (#422) 2023-01-06 14:09:27 +01:00
Ted Johansson 31389d713a
FIX: Build correct assign tag links when using subfolders (#420)
The tag links added to the topic header extras aren't aware of
subfolder usage. This change fixes that.
2023-01-05 16:04:14 +08:00
David Taylor 4070985316
DEV: Update eslint-config-discourse, use prettier for hbs (#414) 2023-01-04 13:34:49 +01:00
Alan Guo Xiang Tan 4fe2ded608
DEV: Change flaky spec to provide more information when it fails (#418)
This spec has been detected to be flaky by
https://github.com/discourse/flaky-tests-detective which we run
internally. However, I could not reproduce the flakiness after multiple
attempts so I rewrote the assertions such that we set up the
expectations of what `Assignment#assigned_to_id` should be before and
after the triggering of the DiscourseEvent.
2023-01-04 07:27:23 +08:00
Gerhard Schlager 4777d0179c
UX: Rephrase notification message (#417)
* UX: Rephrase notification message

* Fix specs
2023-01-03 21:25:13 +01:00
Discourse Translator Bot 5d7c4ed8f7
Update translations (#416) 2023-01-03 14:45:59 +01:00
Discourse Translator Bot fd68f4266a
Update translations (#415) 2022-12-30 17:49:39 +01:00
dependabot[bot] c1f67664fc
Build(deps): Bump json5 from 2.2.1 to 2.2.2 (#413)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-29 12:21:44 -05:00
David Taylor b11a5fd391
DEV: Introduce syntax_tree for ruby formatting (#411) 2022-12-29 13:30:03 +01:00
Discourse Translator Bot 9cf451647f
Update translations (#410) 2022-12-28 13:31:58 +01:00
David Taylor 46dd26963c
DEV: Introduce syntax_tree for ruby formatting (#408) 2022-12-23 20:35:55 +00:00
David Taylor 4902ba6993
DEV: Bump rubocop-discourse and correct violations (#409) 2022-12-23 19:55:31 +00:00
Bianca Nenciu 993f7faa8d
FIX: Reset assignee error when modal is shown (#407) 2022-12-21 17:24:17 +02:00
Bianca Nenciu a4ce90e855
UX: Improve assign modal design (#403)
Implements a new design that improves the user experience:

- add a clear cancel button
- add an indication the note is optional
- change the plus icon to a search icon
- show an error when the user tries to assign without choosing an assignee
- move suggestions to default search results
- focus search input when modal is displayed
2022-12-21 14:49:24 +02:00
Rafael dos Santos Silva 700dfe551b
DEV: Ruby 3.1 compat (#406) 2022-12-20 23:17:15 -03:00
Bianca Nenciu eeccf78c1e
DEV: Admins and mods are already members of staff (#404)
This hack is no longer necessary because fabricated admins and mods are already members of the staff group.
2022-12-20 16:24:21 +02:00
Discourse Translator Bot 212a12d709
Update translations (#405) 2022-12-20 15:22:24 +01:00
Bianca Nenciu d8821aa16d
DEV: Promote historic post_deploy migrations (#402)
This commit promotes all post_deploy migrations which existed in
Discourse v2.8.0 (timestamp <= 20220107014925)
2022-12-19 17:28:09 +02:00
Kris f19cc66b68
UX: update small actions to use sentence case (#401) 2022-12-14 13:28:07 -05:00
Andrei Prigorshnev 31d1a798f4
FEATURE: do not suggest users on vacation (#395) 2022-12-14 12:42:17 +04:00
Alan Guo Xiang Tan feca27b6bd
FEATURE: Make plugin compatible with redesigned user messages (#399) 2022-12-07 06:22:14 +08:00
Discourse Translator Bot 889df32cc6
Update translations (#398) 2022-11-29 15:35:41 +01:00
Joshua Rosenfeld 4200f1580a
Bump eslint-config-discourse from 1.1.8 to 3.3.0 (#397) 2022-11-29 00:20:48 +01:00
dependabot[bot] 969ee0e70a
Build(deps): Bump minimatch from 3.0.4 to 3.1.2 (#396)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-27 17:33:07 +01:00
Penar Musaraj 4b8afc301a
FEATURE: Cleanup notifications when reassigning (#394)
If a topic is initially assigned to user A then reassigned to user B,
this change will make it so that notifications sent to user A are
removed. This matches the plugin's behaviour when unassigning a topic.
2022-11-24 10:42:19 -05:00
discoursebot 1f2dfafcde
DEV: Update CI workflows (#393)
Co-authored-by: discoursebuild <build@discourse.org>
2022-11-07 12:43:35 -06:00
Discourse Translator Bot d8a2e42f79
Update translations (#391) 2022-11-02 15:13:07 +01:00
Alan Guo Xiang Tan ed1b344d32
DEV: Persist records to DB in tests (#390)
There is almost no reason for us to use `Fabricate.build` which does not persist the record to the database and is not what we encounter in production.
2022-10-21 17:47:29 +08:00
Martin Brennan 7ec6c78aa2
DEV: Fix test for core change (#389)
This slight core change breaks this test

https://github.com/discourse/discourse/pull/18691
2022-10-21 14:16:41 +10:00
Jarek Radosz 5eee863d01
DEV: Clean up tests (#388) 2022-10-07 10:51:37 +02:00
Discourse Translator Bot 17bcfde257
Update translations (#387) 2022-10-05 15:31:23 +02:00
Martin Brennan a0202acdfa
DEV: Fix specs for personal_message_enabled_groups setting (#386)
See https://github.com/discourse/discourse/pull/18437,
we are removing any references to enable_personal_messages
in core and using only personal_message_enabled_groups,
which requires auto groups to be assigned in certain specs
for them to keep working.
2022-10-04 14:19:35 +10:00
Bianca Nenciu af146fea54
FIX: Show group icon for group notifications (#384)
The same "user-plus" icon was used for both user and group assigned
notifications.
2022-10-03 21:13:34 +03:00
David Taylor 9321e9bd41
DEV: Bump rubocop-discourse (#385) 2022-10-03 20:12:55 +02:00
Andrei Prigorshnev c5ad176aaf
FEATURE: show user status when assigning user (#382) 2022-09-28 17:31:31 +04:00
Discourse Translator Bot 568dd4d4f6
Update translations (#383) 2022-09-27 19:07:37 +02:00
Osama Sayegh 6479e54830
UX: Add title for the assign tab in the user menu (#381)
As of 496f910f03, core automatically adds title to user menu tabs if an i18n string exists at the key `user_menu.tabs.${tab_id}`. This PR adds a string in the right place so core picks it up and uses it for the assign tab.
2022-09-21 17:50:13 +03:00
Osama Sayegh cef3d23766
DEV: Make the assign tab in the user menu link to the assign page (#380)
As of 12ebdf0ff0, it's possible to make tabs in the experimental user menu link to a page when they're clicked on when they're active. This commit makes the assign tab links to `/my/activity/assigned` when it's active.
2022-09-19 17:11:37 +03:00
Roman Rizzi 1a5b02755d
FIX: Don't fail because flair_uploads weren't eager loaded (#379)
The basic group serializer complains that the flair_upload relation has to be eager loaded when attempting to included assigned groups in search results, which is a consequence of using strict loading during search's preload to
avoid N+1.

Eager loading the association during this would definitely fix the problem, but is it the right solution? It seems to me that this serializer does too much, when we only need a small number of attributes to display the assigned
widget. Instead, this commit adds a lightweight custom serializer which grabs only the essentials for it to work.
2022-09-16 12:08:47 -03:00
Discourse Translator Bot ad1b63b1a4
Update translations (#377) 2022-09-13 16:03:59 +02:00
Jarek Radosz eea90c9670
DEV: Fix a flaky spec and typos (#378) 2022-09-12 09:27:25 +02:00
Krzysztof Kotlarek 0d9aa9c5fa
FIX: Move types of the assign notification list to the tab class (#376)
This change is needed following this commit in core: 661a903a0b

Co-authored-by: OsamaSayegh <asooomaasoooma90@gmail.com>
2022-09-02 18:48:45 +03:00
Krzysztof Kotlarek 0d586bb93c
FIX: use grouped_unread_notifications (#373)
Use `grouped_unread_notifications` instead of `grouped_unread_high_priority_notifications`

Related PR: https://github.com/discourse/discourse/pull/18132
2022-08-31 11:16:13 +10:00
Discourse Translator Bot 030d349aa0
Update translations (#374) 2022-08-30 20:15:40 +02:00
Bianca Nenciu 1dfbc84896
FIX: Count only active assignments when checking limits (#375)
Only 5 assignments can exist simultaneously for a topic or its post.
The code that counted the assignments did not ignore the inactive
assignments which made the limit check more strict than it should have
been.
2022-08-30 19:56:03 +03:00
Osama Sayegh 7b08ab425c
DEV: Apply model transformations for the assigns list in the experimental user menu (#372) 2022-08-26 13:33:25 +08:00
Keegan George 7e85101b89
FIX: Error bulk deleting posts when action post is already deleted (#371)
* DEV: Break when action post is already deleted

* FIX: Post needs to be unassigned on deletion

* WIP: Add spec

* DEV: Update spec
2022-08-25 12:48:55 -07:00
Bianca Nenciu 4046c9fb40
FIX: Find better users for automatic assignment (#370)
There were two problems with the way current automation script for automatic
assignment works:

- it tried to assign users that were not allowed to be assigned because they
were not part of groups that are allowed to use discourse-assign - fixed by
skipping users that are not a part of assign_allowed_on_groups groups

- it assigned new users - fixed by adding a new user that can skip new users
2022-08-25 15:13:33 +03:00