Commit Graph

900 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 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
Loïc Guitaut d8888c4589
DEV: Add system spec to check core features are working fine (#653) 2025-04-09 14:20:36 +02:00
Martin Brennan a3ce637f49
DEV: Tweak has_content? check (#654)
https://github.com/discourse/discourse/pull/32145 in core
changes the mentions a bit and introduces inline-flex,
which means that part of the content is not visible according
to capybara. Checking for `:all` fixes this.
2025-04-04 12:14:14 +10:00
Sérgio Saquetim 812a33a085
DEV: Remove the legacy widget post menu code (#650) 2025-04-02 22:36:32 +01: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
Jordan Vidrine 70318da136
UX: Add class to assign topic list items (#649) 2025-03-24 12:44:21 -05:00
Régis Hanol a600428115
FEATURE: add "assigned:<name>" filter (in the /filter page) (#648)
* FEATURE: add "assigned:<name>" filter (in the /filter page)

The "assigned:<name>" filter was already available in the advanced
search but it wasn't in the /filter page.

This commit adds that filter allowing anyone to filter topics assigned
to either a specific user (using their username) or to a specific group
(using its name).

* DEV: use argument instead of instance variable

* SPEC: add spec for when the user can't assign
2025-03-24 10:34:12 +01: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
Alan Guo Xiang Tan 586b66dc74
DEV: Skip broken tests for now. (#646)
Tests are constantly failing when run against the `main` branch of
`discourse/discourse`.
2025-03-17 13:44:24 +08: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
Alan Guo Xiang Tan 3b1ffefbe4
DEV: Remove code that is not necessary (#643)
Calling `expand_if_needed` is not necessary here.
2025-03-14 16:13:58 +08: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
David Battersby 6a83db6a46
FIX: allow user to be assigned to post and topic (#638)
This change makes it possible to assign the same user to both posts and the original topic.
2025-03-07 13:14:07 +04:00
Jarek Radosz eae447061a
DEV: Update license (#636) 2025-02-24 11:20:23 +08:00
Jarek Radosz fa12bfa6bd
DEV: Update linting (#635) 2025-02-19 18:06:37 +01:00
David Battersby db60986342
FIX: skip notifications when topic is not found (#634)
Fixes a bug where the topic may already be deleted before the notification job runs, causing the job to fail.
2025-02-18 12:02:59 +04:00
dependabot[bot] 77dc3abc12
Build(deps-dev): Bump rack from 3.1.8 to 3.1.10 (#633)
Bumps [rack](https://github.com/rack/rack) from 3.1.8 to 3.1.10.
- [Release notes](https://github.com/rack/rack/releases)
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rack/rack/compare/v3.1.8...v3.1.10)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-15 12:53:57 +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
David Taylor e213c7d6aa
DEV: Pin version for Discourse <3.5.0.beta1-dev (#629) 2025-02-05 19:58:26 +01:00
Discourse Translator Bot 698b5be85c
Update translations (#628) 2025-01-31 10:48:04 +01:00
Discourse Translator Bot bfbc8d5924
Update translations (#627) 2025-01-21 15:54:50 +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
Discourse Translator Bot 890d8e1a42
Update translations (#623) 2025-01-03 14:01:50 +01:00
Jarek Radosz 471cfdff63
DEV: Use the new topic-list APIs (#622) 2024-12-16 15:39:58 +00: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
Gabriel Grubba 0f4a1fcdd3
FIX: Not send notifications when it should never notify assignment (#620)
* FIX: Not send notifications when it should never notify assignment

- Added silenced_assignments table and migration to store silenced assignments
- Added tests for silenced assignments

* DEV: Add annotation to model

* DEV: add empty line after early return

* DEV: lint file
2024-12-12 11:28:11 -03: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
Gabriel Grubba 1a5091ecfb
FIX: pending_assigns_reminder reminder leaking total assigned topics count (#617)
Before this commit, the reminder was leaking the total assigned topics count in the title.

In the post raw it was ensured that it was not being leaked but the title was still leaking the count.

Also add specs and updated existing specs to ensure that the count is not leaked in the title.
2024-12-04 17:01:44 -03:00
Kelv e4b9ed6b93
DEV: Update deprecated Font Awesome icon names (#616) 2024-12-04 03:18:17 +01:00
Régis Hanol 6b2d293bbf
PERF: N+1 when assignments status are enabled (#614)
This properly preload assignment statuses on topic lists when they're enabled to prevent N+1.

Internal ref - t/142804
2024-12-03 08:53:32 +01:00
David Taylor 032b34ce2d
DEV: Update modifyClass calls to native class syntax (#613) 2024-12-02 13:22:02 +00:00
Jarek Radosz e603f06394
DEV: Update a component test (#612) 2024-11-29 19:19:27 +01:00
David Taylor 67d9b1c1d9
DEV: Convert to native class syntax (#611) 2024-11-29 16:41:13 +01:00
David Taylor 935e7ac7df
DEV: Update linting (#610) 2024-11-28 15:49:42 +01:00
David Taylor 103f484089
DEV: Update linting (#609) 2024-11-20 18:51:25 +01:00
David Taylor 10485fca24
DEV: Update linting (#608) 2024-11-20 15:44:04 +01:00
dependabot[bot] db3492f09c
Build(deps): Bump cross-spawn from 7.0.3 to 7.0.6 (#607)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.3 to 7.0.6.
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/moxystudio/node-cross-spawn/compare/v7.0.3...v7.0.6)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-11-19 10:55:34 +00:00
David Taylor bef1fa7a29
DEV: Update eslint config (#606) 2024-11-19 11:19:10 +01:00
Alan Guo Xiang Tan 10fb723995
DEV: Add `lib` to autoload path (#605)
Why manually require files when we can autoload? Also update
`discourse-rubocop` to 3.8.0.
2024-11-15 06:30:59 +08:00
Gabriel Grubba 6101ecdba5
FEATURE: Add `should_notify` option to `Assigner#assign` (#604)
* FEATURE: Add `should_notify` option to `Assigner#assign`

This option let's you control whether the added user within a group assignment should be notified or not.

* DEV: stree assign_controller file

* Update app/controllers/discourse_assign/assign_controller.rb

Co-authored-by: David Taylor <david@taylorhq.com>

---------

Co-authored-by: David Taylor <david@taylorhq.com>
2024-11-14 15:01:02 -03:00