Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

boehlke
Copy link

@boehlke boehlke commented Jul 26, 2025

Implements hierarchical post threading with parent-child relationships, allowing users to reply to specific posts and view conversations in a tree structure.

Features:

  • Add parentPid field to posts for parent-child relationships
  • Toggle between flat and threaded view modes
  • Collapse/expand thread branches
  • Visual indentation and connecting lines
  • Parent post indicators with @username
  • Maximum depth configuration (default: 5 levels)
  • Mobile responsive design with reduced indentation
  • Full accessibility support (ARIA labels, keyboard nav)
  • Admin settings panel for configuration

Technical details:

  • Database migration from toPid to parentPid
  • API endpoints support tree/flat view modes
  • Client-side tree building for performance
  • WebSocket real-time updates maintained
  • Backward compatible with non-threaded posts
  • Comprehensive E2E test suite (215 tests)

Admin configuration:

  • Global enable/disable threading
  • Maximum thread depth (1-10 levels)
  • Default view mode (flat/threaded)

Testing:

  • Unit tests for threading logic
  • E2E tests for all features
  • Cross-browser compatibility tests
  • Backward compatibility tests
  • Migration and edge case tests

🤖 Generated with Claude Code

Implements hierarchical post threading with parent-child relationships,
allowing users to reply to specific posts and view conversations in a
tree structure.

Features:
- Add parentPid field to posts for parent-child relationships
- Toggle between flat and threaded view modes
- Collapse/expand thread branches
- Visual indentation and connecting lines
- Parent post indicators with @username
- Maximum depth configuration (default: 5 levels)
- Mobile responsive design with reduced indentation
- Full accessibility support (ARIA labels, keyboard nav)
- Admin settings panel for configuration

Technical details:
- Database migration from toPid to parentPid
- API endpoints support tree/flat view modes
- Client-side tree building for performance
- WebSocket real-time updates maintained
- Backward compatible with non-threaded posts
- Comprehensive E2E test suite (215 tests)

Admin configuration:
- Global enable/disable threading
- Maximum thread depth (1-10 levels)
- Default view mode (flat/threaded)

Testing:
- Unit tests for threading logic
- E2E tests for all features
- Cross-browser compatibility tests
- Backward compatibility tests
- Migration and edge case tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


André Böhlke seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@psychobunny
Copy link
Contributor

Awesome! :) thank you for the contribution this seems pretty cool :)

@boehlke
Copy link
Author

boehlke commented Jul 28, 2025

This is a draft, needs refinement. Stay tuned. Instead of using a plugin, integration into core might be a better approach. What do you think?

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.

3 participants