Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Show 'marked solved by' in OP when topic is solved #343

Merged
merged 2 commits into from
Mar 25, 2025

Conversation

nattsw
Copy link
Contributor

@nattsw nattsw commented Mar 21, 2025

Depends on: #342

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

Note to reviewer: Originally, I had moved the widget usage to a component, 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.

Desktop

Screenshot 2025-03-21 at 11 44 06 PM

Mobile

Screenshot 2025-03-22 at 12 46 58 AM

@nattsw
Copy link
Contributor Author

nattsw commented Mar 21, 2025

This PR needs to be edited to merge into main once #342 is merged.

@nattsw nattsw force-pushed the show-accepter branch 5 times, most recently from 032d75b to cf89d97 Compare March 24, 2025 12:16
@nattsw nattsw force-pushed the custom-fields-to-table branch from b6c14fb to 75ad157 Compare March 24, 2025 12:19
{ cooked: hasExcerpt ? withExcerpt : withoutExcerpt },
dec
);
const cooked = new PostCooked({ cooked: solvedQuote }, dec);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The need for functionality within PostCooked here is why we can't yet switch to a glimmer component, so we will just update the widget as-is for now.

Comment on lines +44 to +46
if !SiteSetting.enable_names || !SiteSetting.display_name_on_posts
accepted_answer[:name] = nil
accepted_answer[:accepter_name] = nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is tied to my other comment. We are already handling some of the logic here so could centralize them in a single place.

Base automatically changed from custom-fields-to-table to main March 25, 2025 06:51
@nattsw nattsw merged commit 5a0c875 into main Mar 25, 2025
6 checks passed
@nattsw nattsw deleted the show-accepter branch March 25, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants