All checks were successful
ci/woodpecker/pr/pipeline Pipeline was successful
Implement full comments system: domain entities (Comment, CommentLike), value objects (CommentContent), use cases (CRUD, like toggle), SQLAlchemy repository, API v1 endpoints, web UI with comment form and nested replies, i18n translations (EN/RU/FR/DE), and E2E tests. Fix nested reply (reply-to-reply) not displaying — the flat reply_comments dict was only queried for top-level comment IDs, so deeply nested replies were saved to DB (incrementing comment count) but never rendered. Switch to a recursive Jinja2 macro that renders any nesting depth.
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
"""Application layer exports.
|
|
|
|
This module re-exports all application layer components including
|
|
DTOs, interfaces, and use cases for convenient importing.
|
|
"""
|
|
|
|
from app.application.dtos import (
|
|
CommentResponseDTO,
|
|
CreateCommentDTO,
|
|
CreatePostDTO,
|
|
PostResponseDTO,
|
|
UpdatePostDTO,
|
|
)
|
|
from app.application.interfaces import TransactionManager
|
|
from app.application.use_cases import (
|
|
CreateCommentUseCase,
|
|
CreatePostUseCase,
|
|
DeleteCommentUseCase,
|
|
DeletePostUseCase,
|
|
GetPostUseCase,
|
|
ListCommentsUseCase,
|
|
ListPostsUseCase,
|
|
PublishPostUseCase,
|
|
ToggleCommentLikeUseCase,
|
|
TogglePostLikeUseCase,
|
|
UpdatePostUseCase,
|
|
)
|
|
|
|
__all__ = [
|
|
"CreatePostDTO",
|
|
"UpdatePostDTO",
|
|
"PostResponseDTO",
|
|
"CreateCommentDTO",
|
|
"CommentResponseDTO",
|
|
"TransactionManager",
|
|
"CreatePostUseCase",
|
|
"GetPostUseCase",
|
|
"UpdatePostUseCase",
|
|
"DeletePostUseCase",
|
|
"ListPostsUseCase",
|
|
"PublishPostUseCase",
|
|
"TogglePostLikeUseCase",
|
|
"CreateCommentUseCase",
|
|
"DeleteCommentUseCase",
|
|
"ListCommentsUseCase",
|
|
"ToggleCommentLikeUseCase",
|
|
]
|