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

Show cross-posts #851

Merged
merged 7 commits into from
Nov 5, 2023
Merged

Conversation

micahmo
Copy link
Member

@micahmo micahmo commented Oct 24, 2023

Pull Request Description

This PR adds support for displaying, navigating to, and creating cross-posts.

The new UI optionally lists all the communities to which the same link has been posted, allowing you to navigate to any of them. You can also create a new cross-posts, which simply populates the new post UI with the link and title from the existing one.

The create cross-post feature depends on #843, and this PR also depends on thunder-app/lemmy_api_client#9 being merged, so I'll keep it as a draft for now.

Issue Being Fixed

Related to #469, but doesn't de-dup. I wonder if we really want de-duping anyway since each version of the post has its own set of unique comments for its community.

Screenshots / Recordings

qemu-system-x86_64_eVUYxYX8FV.mp4

Checklist

  • Did you update CHANGELOG.md?
  • Did you use localized strings where applicable?
  • Did you add semanticLabels where applicable for accessibility?

@micahmo
Copy link
Member Author

micahmo commented Oct 26, 2023

Updated with the create cross-post functionality in 8616c54, so I'm taking this out of draft status. But I have a feeling it will have to be reworked further when thunder-app/lemmy_api_client#10 is merged.

qemu-system-x86_64_hhqOOw4Psn.mp4

@micahmo micahmo marked this pull request as ready for review October 26, 2023 03:52
@micahmo
Copy link
Member Author

micahmo commented Oct 27, 2023

This should be good to go!

Copy link
Member

@hjiangsu hjiangsu left a comment

Choose a reason for hiding this comment

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

Just had one suggestion! Looks good to me otherwise 😄

I do wonder if we need a setting just to toggle this feature on/off. I feel like most if not all users will keep cross-posts turned on. Regardless, it never hurts to have a setting for it!

child: CommonMarkdownBody(
body: post.body ?? '',
),
),
if (showCrossPosts && sortedCrossPosts.isNotEmpty)
Padding(
Copy link
Member

Choose a reason for hiding this comment

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

It might be good to separate this into its own widget just for organization purposes (the widget can reside in this file, but just moved out of the PostView widget - to see what I mean by this, you can check out Tagline on the FeedPage)

Copy link
Member Author

@micahmo micahmo Nov 3, 2023

Choose a reason for hiding this comment

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

Good idea! All set to go now!

@micahmo
Copy link
Member Author

micahmo commented Nov 3, 2023

I do wonder if we need a setting just to toggle this feature on/off.

Yeah I know, maybe it's overkill. I can just see potential for it being annoying to clutter the post view. 🤷 Regardless it's on by default. Maybe at some point we'll have an advanced settings area for much more granular things that the majority of people won't touch. I can see a lot of the current enhancement requests fitting in this category. 😆

@hjiangsu
Copy link
Member

hjiangsu commented Nov 5, 2023

Looks good, thanks for the changes!

@hjiangsu hjiangsu merged commit 634ae70 into thunder-app:develop Nov 5, 2023
1 check passed
@micahmo micahmo deleted the feature/cross-posts branch November 6, 2023 03:35
This was referenced Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants