1
0
mirror of synced 2026-05-22 21:53:18 +00:00

151 Commits

Author SHA1 Message Date
Kris 0f03ec45c8 A11Y: improve expand/collapse labeling on embedded solution post (#381) 2025-07-10 16:21:49 -04:00
Natalie Tay f96aceb5f4 FIX: Use SolvedTopics to list posts in /activity/solved instead of user actions (#376)
In https://github.com/discourse/discourse-solved/pull/342 we moved solutions away from topic_custom_fields into proper tables, with the tables as the proper source of truth to a topic's solution.

The user's /my/activity/solved route uses user_actions which is not accurate, and a user has reported a bug where their solution is not reflected there (user actions are not a good representation of what a topic's solution is). 

This commit introduces 
- a new route to get solutions, and is mindful `hide_user_profiles_from_public` and such settings
- also mindful of PMs and private categories
- a new template that makes use of the `<UserStream>` to load posts safely and avoid reimplementation
2025-07-02 16:56:12 +08:00
Jarek Radosz 94f0c5a315 DEV: Update linting config and run gjs-codemod (#370) 2025-06-05 11:40:00 +01:00
David Taylor ba3d4276ee DEV: Fix linting violations (#367) 2025-05-16 13:24:01 +01:00
Sérgio Saquetim 8e72136f54 DEV: Add compatibility with the Glimmer Post Stream (#363) 2025-05-05 15:12:39 -03:00
David Taylor ae01ad30c3 DEV: Remove legacy topic-list code (#362) 2025-04-14 14:38:48 +01:00
Sérgio Saquetim b128e65ae5 DEV: Remove the legacy widget post menu code (#351) 2025-04-02 22:31:40 +01:00
David Taylor fc2d1a290c DEV: Add class to solve topic-status (#353)
Preparing for https://github.com/discourse/discourse/pull/32082, which switches core to use the modern TopicStatus component everywhere
2025-03-31 16:25:12 +01:00
chapoi ad2555f1e0 UX: fix misalignment for non-admin and anon + move to variable use (#349) 2025-03-26 16:49:47 +01:00
Natalie Tay a8a3554cec FEATURE: Add setting to show who marked as solved (#347)
This commit adds the site setting `SiteSetting.show_who_marked_solved` and also the following tooltip to answer posts.
2025-03-26 11:43:22 +08:00
Natalie Tay 6b07af89da UX: Better alignment and gaps for marked solved by (#346) 2025-03-26 02:21:36 +08:00
Natalie Tay 5a0c875885 FEATURE: Show 'marked solved by' in OP when topic is solved (#343)
Depends on: https://github.com/discourse/discourse-solved/pull/342

This feature adds the "Marked solved as" information to the solved post appended to OP.

Originally, I had moved the widget usage to a [component](https://github.com/discourse/discourse-solved/blob/39baa0be4a889fdbff108e887a677d9a298d27d4/assets/javascripts/discourse/components/solved-post.gjs), but due to "cooking quotes", after some internal discussion (t/95318/25) we will stick to widgets for now as the post-stream gets modernized.
2025-03-25 17:14:02 +08:00
Jarek Radosz 4e3521fd25 DEV: Update linting (#340) 2025-03-17 12:00:55 +00:00
David Taylor 3efcd3722a DEV: Bump dependencies and fix linting (#333) 2025-02-06 17:42:05 +01:00
Jarek Radosz c8ac2c7002 DEV: Display unsolved icon only on the topic list (#330)
…in the new topic-status implementation (using the next `@context` from https://github.com/discourse/discourse/pull/30940)

This roughly matches the old implementation (but there it was displayed in some places but not in others mostly because of implementation details/bugs)
2025-01-23 04:21:46 +01:00
Jarek Radosz c929f49f3d FIX: Use both possible *_answer attributes (#329)
…and simplify other conditions (`can_have_answer` is true only if `solved_enabled` and `empty_box_on_unsolved` are also true)
2025-01-23 03:53:48 +01:00
Jarek Radosz a73bfa228e DEV: Add gjs implementation of solved topic status (#327) 2025-01-14 13:38:48 +01:00
Kelv 3443539725 DEV: Update more deprecated Font Awesome icon names (#325)
* DEV: Update more deprecated Font Awesome icon names

* update to square-check


Co-authored-by: Jarek Radosz <jradosz@gmail.com>

---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2024-12-06 07:16:13 +08:00
Kelv ac0c938a35 DEV: Update deprecated Font Awesome icon names (#323) 2024-12-04 02:36:24 +01:00
Jarek Radosz 024d9dd70f DEV: Use topic-list-item-class transformer (#321)
…to replace a deprecated topic-list-item customization
2024-12-03 15:09:43 +01:00
Jarek Radosz 41a8789ec3 DEV: Minor code cleanup (#322)
mostly new i18n imports and qunit-dom
2024-12-02 23:13:34 +01:00
David Taylor f6d63b7299 DEV: Convert to native class syntax (#320) 2024-11-29 16:42:42 +01:00
David Taylor b483a91a09 DEV: Update linting (#318) 2024-11-20 18:34:16 +01:00
David Taylor 8374ed50de DEV: Update eslint config (#316) 2024-11-19 11:18:08 +01:00
Sérgio Saquetim 28ae24ffb8 DEV: Added compatibility with the Glimmer Post Menu (#313) 2024-11-12 20:45:17 -03:00
Jarek Radosz c2f549fd4f DEV: Use the new owner arg in shouldRender (#314) 2024-10-31 10:56:06 +01:00
Kris 85d3e494ee A11Y: remove heading tag from usercard stat (#299) 2024-07-17 14:55:19 -04:00
Jan Cernik 6f27ff2998 FIX: Show the solved filter on tags (#296) 2024-06-01 12:26:03 -03:00
Jordan Vidrine 526a44644a FIX: Nest combobox within LI element (#280) 2024-02-08 15:50:26 -06:00
Jarek Radosz 3a6d2e46a1 DEV: Don't use deprecated input components (#279) 2024-02-02 15:13:55 +01:00
Jarek Radosz fa3e1598aa DEV: Update linting (#275) 2024-01-16 17:50:43 +01:00
Kris dd8ebd24e8 DEV: add appEvent for solution-toggled (#273) 2023-12-20 11:58:47 -05:00
Kris 655c97e569 UX: add linked-stat class to profile stat (#266) 2023-11-06 13:30:52 -05:00
David Taylor b0d3d5017e FIX: Solved count on user profile (#264)
Followup to 8352a79145
2023-10-30 12:57:34 +00:00
David Taylor 8352a79145 DEV: Resolve deprecated use of registerConnectorClass (#262) 2023-10-23 22:26:07 +01:00
David Taylor 56d936be63 FIX: Correct getOwner import (#260)
As it's currently implemented, the fallback is essential here. `this` in a static method is `undefined`, and therefore cannot have an owner.

Unfortunately this plugin outlet does not seem to be tested in the plugin's own test suite. Core's test suite picked up this issue.

Followup to 3a0b46da7a
2023-10-17 23:37:07 +01:00
Robert 3a0b46da7a DEV: Resolve import deprecation (#259) 2023-10-17 21:50:50 +02:00
Meghna 9fbf43e2f0 FIX: do not show solved/unsolved filter when editing category (#254)
UX: add spacing for solved/unsolved filter dropdown
2023-09-26 18:39:17 +05:30
David Taylor 9087034a4d DEV: Modernise and fix behavior when used with loading-slider (#243) 2023-07-06 16:16:36 +01:00
Penar Musaraj e0cd3d11c3 FIX: Respect "display name on posts" site setting (#239)
When displaying the accepted answer in the OP.
2023-06-01 11:50:50 -04:00
Isaac Janzen daf2a823e2 DEV: Use angle bracket syntax (#235) 2023-04-28 08:14:49 -05:00
Arpit Jalan bffc46858a FEATURE: solved topic auto close setting per category (#233)
* FEATURE: solved topic auto close setting per category

This commit adds per category "solved topics auto close hours" setting. The plugin would use the existing "solved topics auto close hours" setting, except if there was a setting for the relevant category in which case that would take precedence.

* minor changes per feedback
2023-04-19 19:44:33 +05:30
Bianca Nenciu 4ae1841479 UX: Tweak 'Solution' button design (#232)
Hide the accept solution button if a solution has been accepted already.
2023-03-17 17:35:58 +02:00
Bianca Nenciu 7ea62738c5 UX: Tweak 'Solution' button design (#230) 2023-03-09 10:33:06 +02:00
David Taylor d88b1c80d8 DEV: Update eslint-config-discourse, use prettier for hbs (#220) 2023-01-04 13:39:38 +01:00
Andrei Prigorshnev 4709fb17ed UX: show blank page placeholder instead of the blue panel that says "No Activity" (#197) 2022-08-18 16:51:28 +04:00
David Taylor 9ef62060c4 DEV: Skip UI delay in test mode (#194)
This was adding 2s to every topic-view test when the solved plugin was loaded
2022-03-10 11:07:12 +00:00
Jarek Radosz 4a3ceaca9c FIX: Intializer regression (#193) 2022-03-07 00:19:21 +01:00
Jarek Radosz 7c50330e04 DEV: Fix imports (#192) 2022-03-06 21:33:24 +01:00
Jarek Radosz 6007395cfb DEV: Lose the es6 suffix (#191) 2022-03-06 21:20:09 +01:00