Commit Graph

96 Commits

Author SHA1 Message Date
Sérgio Saquetim bbb5147062
DEV: Add compatibility with the Glimmer Post Stream (#651) 2025-05-05 15:18:17 -03:00
David Taylor bf2a4bdb3e
DEV: Drop widget post-menu test (#652)
In preparation for https://github.com/discourse/discourse/pull/31211
2025-04-01 15:38:31 +01:00
Jarek Radosz 3ff6bf8aa2
DEV: Update linting (#644) 2025-03-17 10:55:37 +00:00
David Taylor 444440abda
DEV: Bump dependencies and fix linting (#630) 2025-02-06 17:43:11 +01:00
Régis Hanol 568efb4f27
DEV: fix the mobile spec (#621)
In https://github.com/discourse/discourse/pull/30242, the topic footer buttons mobile dropdown can be replaced by the button if there's only one option.

This fixes the spec that was clicking on the dropdown button before checking there was no assign option.
2024-12-12 19:24:20 +01: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
Jarek Radosz e603f06394
DEV: Update a component test (#612) 2024-11-29 19:19:27 +01:00
Sérgio Saquetim f76c30dbb7
DEV: Added compatibility with the Glimmer Post Menu (#599) 2024-11-12 15:46:35 -03: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 6c229284a9
FIX: adaptes acceptance tests for new dropdown-menu (#570) 2024-05-08 11:01:49 +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
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
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 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 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
Mark VanLandingham a5b7911cb9
DEV: Fix tests for user notification changes (#537) 2023-12-11 10:56:19 -06:00
Jarek Radosz 5888025dec
FIX: Various assignment status issues (#536) 2023-12-08 11:48:34 +01:00
David Taylor da20a2bf53
DEV: Update tests for core change (#525)
https://github.com/discourse/discourse/pull/23967
2023-11-15 09:23:36 +00:00
Loïc Guitaut 80604e9012 FIX: Display assignments in user menu properly
Currently, we display a mix of topics and notifications in the user menu
assignments tab. This has a number of issues like having to maintain
hard to understand code instead of simply relying on the notifications
system we have, we can’t display more than one assignment per topic and
it’s not clear if an assignment is for a topic or a post nor if it’s a
group assignment or an individual one.

This patch addresses those issues by relying on the notifications system
we’re using for most of the other user menu tabs instead of a custom
implementation. This led to some heavy refactoring but it was
worthwhile as things are a bit more normalized and easier to reason
about. Instead of serializing topics with different attributes to access
various assignments, we now simply return a notification for each
existing assignment.

The UI changed a bit: tooltips are now explaining if the assignment is
for a topic or a post and if it’s for an individual or a group. Icons
are also properly set (so no more individual icon for group assignments)
and the assigned group name is displayed.

The background jobs signatures changed a bit (`assignment_id` is now
needed for the unassign job) so when deploying this patch, it’s expected
to have some jobs failing. That’s why a post-migration has been written
to handle the creation of missing notifications and the deletion of
extra notifications too.
2023-11-08 15:26:57 +01:00
Jarek Radosz 71f8484a75
DEV: Use `@discourse/lint-configs` (#517) 2023-10-23 12:08:11 +02:00
Jarek Radosz 1c079b792b
DEV: Use the new component-based modal API (#489)
Co-authored-by: David Taylor <david@taylorhq.com>
2023-07-11 10:37:57 +02:00
Isaac Janzen 41f62d9ea9
DEV: Convert dismiss modal to component-based API (#481) 2023-07-06 12:14:36 -05:00
Jarek Radosz 47a1170ec5
DEV: Merge js dirs; prefix tests (#484) 2023-07-03 17:28:02 +02: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
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
Kris 9bbd1e8321
UX: clearer assign messages on first post (#452) 2023-03-14 10:19:39 -04: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
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
Alan Guo Xiang Tan feca27b6bd
FEATURE: Make plugin compatible with redesigned user messages (#399) 2022-12-07 06:22:14 +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
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
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
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
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
Osama Sayegh e6e222d8bc
FEATURE: Add assigns tab to the experimental user menu (#366)
This commit adds a tab for assignments in the experimental user menu. The assignments tab behaves very similarly to the bookmarks and messages tab in core: it displays the user's unread assign notifications first and then fills the rest of available space in the menu with assignments (same content that the current user menu displays).

More details of the experimental user menu can be found in https://github.com/discourse/discourse/pull/17379.
2022-08-17 11:57:15 +03:00
Rafael dos Santos Silva 7a2fde72c6
FEATURE: Assign Status (#363)
Adds a new plugin setting that when enabled adds a status field for every assignment. This setting defaults to off.

The possible status for an assignment are customizable via yet another new setting, and the first one on this list will be the default status for new assignments.

The status is not yet show anywhere except the assign modal and the small action posts in topics at the moment. Adding status to the assignment list for users and groups will be handled in the near future.


Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
2022-08-04 14:50:18 -03:00
Rafael dos Santos Silva 9f514a50ca
DEV: Add acceptance tests for assignment notifications (#307)
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
2022-07-26 16:31:59 -03:00
Alan Guo Xiang Tan 148b4b0089
Revert "FEATURE: Register assigned link under sidebar topics section. (#341)" (#359)
This reverts commit 959525b079.

Product design to drop from Sidebar
2022-07-22 15:40:05 +08:00
Jarek Radosz 0adea550c0
DEV: Fix leaky tests (#358) 2022-07-21 03:41:32 +02:00
Alan Guo Xiang Tan 86141dfe3d
Revert "UX: Don't display assign user menu glyph when sidebar is enabled (#356)" (#357)
This reverts commit 479fcfb411.

Link in user menu dropdown is kept in favor of link in experimental
sidebar
2022-07-08 15:44:45 +08:00
Alan Guo Xiang Tan 479fcfb411
UX: Don't display assign user menu glyph when sidebar is enabled (#356)
Assignments can already be accessed via sidebar.
2022-07-05 15:50:46 +08:00
Isaac Janzen 507060b7f1
DEV: Remove isLegacyEmber (#355) 2022-06-23 11:06:16 -05:00
Natalie Tay 1ef8e70314
FIX: Don't reuse assign note when reassigning (#351) 2022-06-18 01:35:58 +08:00
Alan Guo Xiang Tan 959525b079
FEATURE: Register assigned link under sidebar topics section. (#341) 2022-05-26 09:13:40 +08:00
Natalie Tay 6db2e0991b
FIX: Only assign when suggestion is clicked (#334) 2022-05-12 20:55:37 +08:00