Commit Graph

363 Commits

Author SHA1 Message Date
Jarek Radosz a2f0ce6381
DEV: [gjs-codemod] Convert all templates to gjs 2025-05-10 16:02:13 +02:00
Sérgio Saquetim bbb5147062
DEV: Add compatibility with the Glimmer Post Stream (#651) 2025-05-05 15:18:17 -03:00
David Taylor bf52519dc7
DEV: Remove legacy topic-list code (#657) 2025-04-14 14:38:57 +01:00
Juan David Martínez Cubillos 261a47d119
DEV: Temporarily revert prioritize_username_in_ux for prioritize_full_name_in_ux (#656) 2025-04-10 13:44:55 -05:00
Sérgio Saquetim 812a33a085
DEV: Remove the legacy widget post menu code (#650) 2025-04-02 22:36:32 +01:00
Jordan Vidrine 70318da136
UX: Add class to assign topic list items (#649) 2025-03-24 12:44:21 -05:00
Kris d070b0791b
UX: following 08d99dc, we can remove the separate color assignment (#647) 2025-03-17 13:23:35 -04:00
Jarek Radosz 3ff6bf8aa2
DEV: Update linting (#644) 2025-03-17 10:55:37 +00:00
Juan David Martínez Cubillos 0437516309
FIX: Incorrect ussage of prioritize_full_name_in_ux replaced by prioritize_username_in_ux (#645)
* FIX: Incorrect usssage of prioritize_full_name_in_ux replaced by prioritize_username_in_ux

* fixed failing test
2025-03-14 19:09:43 -05:00
benj ec8a785df9
FIX: Ensure assign plugin respects `prioritize_full_name_in_ux` site setting (#632)
* WIP

* more messing around

* undos, notes to self

* WIP notes

* completed logic and added tests for existing  code and implemented code

* fixed failing tests

* fixed failing tests

* added suggested changes

* added suggested changes

* fix merge

* fix linting issues

* possible flaky test

* removed comment

* further user name display changes

* implemented suggested change

* fixed bug in small action post when assigning or unassigning

* fixed breaking tests

* refactored test

---------

Co-authored-by: Juan David Martinez <juan@discourse.org>
2025-03-14 18:08:28 -05:00
Jarek Radosz ea9be03841
DEV: Update linting (#642) 2025-03-13 13:25:48 +00:00
Kris cdfa3a6111
UX: update for new core tag separator (#639) 2025-03-07 14:59:37 -05:00
Jarek Radosz fa12bfa6bd
DEV: Update linting (#635) 2025-02-19 18:06:37 +01:00
Kris afdba465d1
UX: fix group assigns layout after core change (#631) 2025-02-10 18:05:29 -05:00
David Taylor 444440abda
DEV: Bump dependencies and fix linting (#630) 2025-02-06 17:43:11 +01:00
Jarek Radosz 3f3b602cea
DEV: Use `modifyClass` instead of `reopen` (#615) 2025-01-21 11:37:29 +01:00
Régis Hanol 8c52b9a31c
FEATURE: new "notification level when assigned" user preference (#626)
This adds a new user preference allowed users to control how the
notification level of the topic they're assigned to changes.

Internal ref - t/141162
2025-01-16 17:59:16 +01:00
Kelv 654f197003
DEV: update deprecated icon name search to magnifying-glass (#625) 2025-01-10 12:59:52 +08:00
Kelv c0c2fde763
DEV: update deprecated icon name from user-times to user-xmark (#624) 2025-01-09 17:46:40 +08:00
Jarek Radosz 471cfdff63
DEV: Use the new topic-list APIs (#622) 2024-12-16 15:39:58 +00:00
Régis Hanol 215e1e3ab6
DEV: fix specs with new mobile footer UI (#619)
Dependent on https://github.com/discourse/discourse/pull/30132 getting
merged.

The UI for the "hidden" topic footer buttons on mobile changes from
SelectKit to DMenu, so the specs needed to be updated as such.
2024-12-11 14:58:13 +01:00
Kelv d2454e91d1
DEV: Update more deprecated Font Awesome icon names (#618) 2024-12-06 20:44:56 +01:00
Kelv e4b9ed6b93
DEV: Update deprecated Font Awesome icon names (#616) 2024-12-04 03:18:17 +01:00
David Taylor 032b34ce2d
DEV: Update modifyClass calls to native class syntax (#613) 2024-12-02 13:22:02 +00:00
David Taylor 67d9b1c1d9
DEV: Convert to native class syntax (#611) 2024-11-29 16:41:13 +01:00
David Taylor 10485fca24
DEV: Update linting (#608) 2024-11-20 15:44:04 +01:00
David Taylor bef1fa7a29
DEV: Update eslint config (#606) 2024-11-19 11:19:10 +01:00
Sérgio Saquetim f76c30dbb7
DEV: Added compatibility with the Glimmer Post Menu (#599) 2024-11-12 15:46:35 -03: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
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
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
Kris 63e92b6ea3
UX: smaller avatar size in button to prevent height change (#576) 2024-05-30 16:10:17 -04: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
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
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
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
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
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
Andrei Prigorshnev b09a6618fa
FEATURE: Add menu to assigned text on posts (#550)
This adds a popup menu to assigned posts that makes it easier to unassign or 
reassign them.
2024-03-15 18:30:11 +04:00
Jarek Radosz c42ae3eb7a
DEV: Update linting (#538) 2024-01-15 11:24:20 +00:00
Jarek Radosz 5888025dec
FIX: Various assignment status issues (#536) 2023-12-08 11:48:34 +01:00
David Taylor 9556df664c
DEV: Resolve transitionTo deprecation (#535) 2023-12-01 16:06:09 +00:00