feat(posts): Add user replies tab and improve reply management

- Add "replies" tab to user profile page to display posts where user replied to others
- Implement replies fetching via new `type=replies` query parameter in posts API
- Add reply deletion permissions for parent post owners on their own posts
- Add swarm reply deletion notification to origin nodes when replies are deleted
- Pass `parentPostAuthorId` prop to PostCard for improved reply context tracking
- Update profile tab navigation to include replies tab for non-bot users
- Add loading and empty states for replies tab display
- Improve authorization logic to allow parent post owners to delete replies on their posts
This commit is contained in:
Christomatt
2026-01-26 14:22:32 +01:00
parent 141b99747a
commit a2ec470354
7 changed files with 232 additions and 27 deletions
+22 -10
View File
@@ -273,34 +273,46 @@ a.btn-primary:visited {
/* Thread Container */
.thread-container {
position: relative;
border-bottom: none;
}
.thread-container .post {
.thread-container > .post {
border-bottom: none;
padding-bottom: 8px;
padding-bottom: 0;
}
.thread-container > .post .post-actions {
display: none;
}
.thread-line {
position: absolute;
left: 36px;
top: 56px;
bottom: 0;
left: 35px;
width: 2px;
background: var(--border);
top: 52px;
bottom: -16px;
z-index: 1;
}
.post.thread-parent {
opacity: 0.85;
}
.post.thread-parent .post-actions {
display: none;
border-bottom: none;
padding-bottom: 4px;
}
.post.thread-parent .post-content {
color: var(--foreground-secondary);
font-size: 14px;
}
.post.thread-parent .post-header {
margin-bottom: 4px;
}
.post.thread-parent + .post {
padding-top: 8px;
}
/* Post */
.post {
padding: 16px;