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

Add option to collapse comments recursively by default #1214

Merged
merged 5 commits into from
Feb 17, 2024

Conversation

ShadowAndFlame
Copy link
Contributor

@ShadowAndFlame ShadowAndFlame commented Feb 4, 2024

Resolves #1153 and adds an option to cause comments and all children to start collapsed.

image

image

Determining which mode is selected to fetch the correct depth of comments when tapping "n more replies" turned out to be tricky, and I ended up creating a new app selector rather than modifying defaultCommentDepthSelector. Maybe not the most elegant solution but I didn't want to risk messing with other comment behavior.

Since the "Always" setting was changed to "Root Only", a database migration was required.

Please let me know how I did. This is my first contribution on GitHub and my first experience with TypeScript.

@ShadowAndFlame ShadowAndFlame marked this pull request as draft February 4, 2024 03:54
@aeharding
Copy link
Owner

Hi! Thank you for the PR! It looks like there are some lint issues preventing successful build. I'll try to review this as soon as I have time.

@ShadowAndFlame
Copy link
Contributor Author

Thanks, I moved it to draft when I saw it failed those checks. I've been away but I'll take a look when I can.

@ShadowAndFlame ShadowAndFlame marked this pull request as ready for review February 11, 2024 17:02
Repository owner deleted a comment from sonarcloud bot Feb 12, 2024
Copy link
Owner

@aeharding aeharding left a comment

Choose a reason for hiding this comment

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

Working great! Thank you!

@aeharding aeharding merged commit 5610fd0 into aeharding:main Feb 17, 2024
2 checks passed
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.

Add option to collapse comments recursively
2 participants