Commit Graph

900 Commits

Author SHA1 Message Date
Loïc Guitaut 964e44a63e DEV: Don’t replace Rails logger in specs
Instead of replacing the Rails logger in specs, we can instead use
`#broadcast_to` which has been introduced in Rails 7.
2024-11-13 09:51:40 +01:00
Sérgio Saquetim f76c30dbb7
DEV: Added compatibility with the Glimmer Post Menu (#599) 2024-11-12 15:46:35 -03:00
Joffrey JAFFEUX 7dd33d299d
DEV: ensure bulk action is done before checking for result (#602)
We were sometimes visiting latest before the request happens, the solution is to wait for the modal to have automatically closed as it indicates the request has finished and the state should be the one we expect.
2024-11-12 07:45:02 +09:00
David Taylor 6f3e8e3b5c
DEV: Remove unused mobile hbs templates (#600)
The associated components were removed in 2af490ff4f
2024-11-04 22:50:39 +00:00
Gabriel Grubba 7fcde6c1b4
FEATURE: Add modifier to assigned count (#598)
* FEATURE: Add modifier to assigned count

* lint: update stree in pending_assigns_reminder_spec
2024-10-30 11:04:37 -03:00
dependabot[bot] 525dbcdc21
Build(deps-dev): Bump rexml from 3.3.6 to 3.3.9 (#597)
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.6 to 3.3.9.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.3.6...v3.3.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-28 20:41:00 +01:00
Jarek Radosz 4f24311f57
FIX: An incorrect getter invocation in 0d1045e988 (#596) 2024-10-21 17:25:00 +02:00
Jarek Radosz 0d1045e988
DEV: Update topic-notifications-button mod (#595)
See: https://github.com/discourse/discourse/pull/29237
2024-10-21 16:56:38 +02:00
Kelv 6472f4593e
DEV: Switch to use pnpm (#594) 2024-10-14 13:37:54 +02:00
Bianca Nenciu 4f8816d696
FIX: Match column types (#593)
The assignments table's primary key is a bigint.
2024-10-09 16:53:38 +03:00
Blake Erickson cfd35db208
FIX: If a group is deleted also remove assignments (#592)
This fix addresses an issue if a group is deleted topics will remain
assigned to all group members with no way to un-assign those users from
the original group assignment.

Now if a group is deleted any group assignments are also deleted.
2024-09-10 14:05:48 -06:00
dependabot[bot] 541ee41315
Build(deps): Bump micromatch from 4.0.5 to 4.0.8 (#591)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 12:46:40 +02:00
dependabot[bot] 1cdab6afb8
Build(deps-dev): Bump rexml from 3.3.3 to 3.3.6 (#589)
Bumps [rexml](https://github.com/ruby/rexml) from 3.3.3 to 3.3.6.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.3.3...v3.3.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-01 12:31:39 +02:00
Joffrey JAFFEUX 592be421b4
FIX: prevents column reference "id" is ambiguous (#590) 2024-08-26 08:24:00 +02:00
Discourse Translator Bot 5eab6bb404
Update translations (#588) 2024-08-14 08:10:02 +02:00
Discourse Translator Bot 0b7842d3b4
Update translations (#587) 2024-08-13 16:31:04 +02:00
dependabot[bot] dc1a20a408
Build(deps-dev): Bump rexml from 3.2.8 to 3.3.3 (#586)
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.8 to 3.3.3.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.8...v3.3.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-05 13:15:59 +02:00
Natalie Tay 6bd721cce0
DEV: Pin plugin for Discourse < 3.4.0.beta1-dev (#585) 2024-08-02 17:04:02 +08:00
Discourse Translator Bot fe725251c1
Update translations (#584) 2024-07-31 00:13:58 +02:00
Natalie Tay 7019ff7ac6
DEV: Promote historical post-deploy migrations (#583) 2024-07-30 01:10:41 +08:00
Martin Brennan cef88078dd
DEV: Fixup bulk assigment specs (#582)
Followup e5776714c2
2024-07-23 15:04:36 +10:00
Martin Brennan e5776714c2
DEV: Use new topic bulk action functionality for everything (#581)
The PR https://github.com/discourse/discourse/pull/28003 in core
removes the experimental status of new topic bulk actions, we
can now use it for everything from now on. After this and the
core PR is merged we can reintroduce the specs.
2024-07-22 15:42:57 +10:00
Joffrey JAFFEUX dca24fa6fa
FIX: ensures topics can be bulk assigned on group page (#580)
Since a previous refactor the bulkSelectHelper was not correctly passed in the custom topic list page of this plugin.

A spec has also been added.
2024-07-19 18:49:35 +02:00
Discourse Translator Bot 5b6c9f5479
Update translations (#579) 2024-06-25 15:39:24 +02:00
dependabot[bot] 7004262b69
Build(deps): Bump braces from 3.0.2 to 3.0.3 (#578)
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-16 22:29:53 +02:00
Discourse Translator Bot 2cf5831d21
Update translations (#577) 2024-05-31 12:26:42 +02:00
Kris 63e92b6ea3
UX: smaller avatar size in button to prevent height change (#576) 2024-05-30 16:10:17 -04:00
Loïc Guitaut 4d93bad73a
DEV: Update rubocop-discourse to version 3.8.0 (#575) 2024-05-28 11:11:50 +02:00
dependabot[bot] e22999e8e8
Build(deps-dev): Bump rexml from 3.2.6 to 3.2.8 (#574)
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.6 to 3.2.8.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.6...v3.2.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-16 23:54:01 +02:00
Discourse Translator Bot a32af36a98
Update translations (#573) 2024-05-14 16:19:29 +02:00
Mark VanLandingham 6978c752db
FIX: Respect pending_assign_reminder_threshold in enqueue_reminders (#572) 2024-05-10 14:49:35 -05:00
Gabriel Grubba e3c24ba2f2
FEATURE: Add pending assign reminder threshold setting (#571)
* FEATURE: Add pending assign reminder threshold setting

User can define a threshold for the pending assign reminder.

* DEV: rename REMINDER_THRESHOLD with SiteSetting
2024-05-08 15:17:36 -03:00
Joffrey JAFFEUX 6c229284a9
FIX: adaptes acceptance tests for new dropdown-menu (#570) 2024-05-08 11:01:49 +02:00
Joffrey JAFFEUX 5e75baa5f6
FIX: uses the new <DropdownMenu /> component (#569) 2024-05-08 09:08:30 +02:00
Krzysztof Kotlarek b796ae3fcc
DEV: remove assign_path and assign_icon from seralizers (#568)
Both fields are unnecessary and should not be included in the serializer to reduce payload.
2024-05-06 12:12:45 +10:00
Gabriel Grubba c8f669d76b
DEV: add modifier to reminder assigned topics query (#565)
* FEATURE: Prevents assign notification

Relates to this [topic](https://meta.discourse.org/t/assign-plugin-for-informatica/256974/94)

* DEV: Add tests to assigns_reminder_assigned_topics_query modifier

* DEV: lint pending_assigns_reminder_spec.rb

* DEV: Address review feedback

Remove puts from test.
2024-04-26 13:16:36 -03:00
Joffrey JAFFEUX 62563bfcea
DEV: linting arguments in templates (#567) 2024-04-24 16:45:12 +02:00
Joffrey JAFFEUX cbf3f3a908
FIX: ensures ctrl+enter from textarea saves (#566) 2024-04-24 15:54:38 +02:00
Discourse Translator Bot 5a67a3ec35
Update translations (#564) 2024-04-23 16:22:18 +02:00
Discourse Translator Bot 6665dd09b3
Update translations (#563) 2024-04-16 17:37:45 +02:00
Andrei Prigorshnev c1d4633ba4
FEATURE: Make it possible to reassign posts on the topic level assign modal (#562)
This adds a new dropdown to the topic level assign modal. A topic may contain several assignments, the topic itself may be assigned and also some of the replies may be assigned. With this new dropdown, it's possible to edit all the assignments from this modal.

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2024-04-16 14:08:39 +02:00
Andrei Prigorshnev 6070678a1c
FIX: Unassign label sometimes touches avatar (#561)
The label touches the avatar when a topic has several assignments, 
and those contain assignments to users _and_ to groups. We don't show 
avatars for groups, but the code sees there are several assignees and 
applies overlapping styling.

This commit corrects the logic and fixes the issue.

Here is how avatars on the button behave:
1. If there are from one to many assignments on the topic, but all 
the assignees are groups, we don't show avatars, only label.
2. If there are from one to many assignments to the same user, we show 
the avatar of that user.
3. And if there are from two to many assignments to different users, we 
show avatars of first two users.
2024-04-10 17:36:38 +04:00
Joffrey JAFFEUX 3507a7dd98
FIX: correctly refresh UI when changing group preference (#560)
Prior to this fix the state change was not reflected in the UI when changing the "who can assign" preference of a group.

This was actually saved in the backend but would require a full page refresh to see the updated state on the group preferences page.
2024-04-05 18:46:08 +02:00
David Taylor 6d78e3956e
DEV: Update test selectors for glimmer header (#558)
In preparation for https://github.com/discourse/discourse/pull/26467
2024-04-04 17:11:59 +01:00
Andrei Prigorshnev 0bcd0a1fee
FIX: Unassign buttons on the activity/assigned page don't work (#559)
We've noticed that when unassigning a topic on the `activity/assigned` one of 
two incorrect things happens when pressing this button:
1. The first topic on the page gets unassigned instead of the selected one
2. No topics get unassigned (that happens when the first topic on the list is 
not assigned and only has assigned _posts_)

That happens because this handler for all buttons somehow always use the 
same state - the state of the first topic on the page:

f2906e0885/assets/javascripts/discourse/components/assign-actions-dropdown.js (L55-L68)

There seem to be some nuances in select-kit and I'm not sure whether 
this should be qualified as a bug in select-kit. However, I've noticed that in other cases when we use `DropdownSelectBoxComponent` we use the `onChange` handler rather 
than `onSelect`.

So I switched this code to using `onChange` and that resolved the issue, 
the `onChange` handler has access to correct state.

Tests will be in a follow-up.
2024-04-04 20:03:03 +04:00
Discourse Translator Bot f2906e0885
Update translations (#557) 2024-04-02 18:19:42 +02:00
Andrei Prigorshnev 2676522abc
FEATURE: Add buttons for unassigning from posts to the topic level assign menu (#554)
Before, we only had buttons for assigning and unassigning topic on 
the topic level assign menu. This commit adds dynamic buttons for 
unassigning posts to the menu.
2024-03-29 18:10:04 +04:00
Andrei Prigorshnev 51920a99c0
FIX: Assignments limit shouldn't prevent from reassigning a post (#556)
At the moment, it's possible to have maximum 5 assignments per topic 
(that includes topic and post assignments). When trying to assign more, 
a message "Limit of 5 assignments per topic has been reached" appears.

One possible edge case here is _reassigning_ a topic or a post. Reassignment 
doesn't lead to exceeding the limit, and therefore it should be possible. But 
at the moment we handle correctly only _topic_  reassignments, while when 
reassigning a _post_, we show the error message "the limit has been reached".

This commit makes post reassignments work correctly too.
2024-03-29 15:50:02 +04:00
Joffrey JAFFEUX 08c2a4e0f3
UX: autofocus assignee input (#555)
With the new mobile modal we can now do this with no issue.
2024-03-25 22:58:14 +01:00
Blake Erickson ed059d3dfe
DEV: Changes for new bulk action dropdown modal (#553)
When the new bulk actions dropdown is enabled use a new component for bulk assigning.

Co-authored-by: Martin Brennan <martin@discourse.org>
2024-03-25 15:13:36 -06:00