Add comment and reply functionality with preview and notification templates

This commit is contained in:
pacnpal
2025-02-07 13:13:49 -05:00
parent 2c4d2daf34
commit 0e0ed01cee
30 changed files with 5153 additions and 383 deletions

View File

@@ -1,22 +1,50 @@
from django.urls import path
from . import views
from . import views, htmx_views
app_name = 'history'
app_name = 'history_tracking'
urlpatterns = [
# Main VCS interface
path('vcs/', views.VersionControlPanel.as_view(), name='vcs-panel'),
# Main page views
path('compare/',
views.version_comparison,
name='version_comparison'
),
path('approval-status/<int:changeset_id>/',
views.approval_status,
name='approval_status'
),
path('submit-approval/<int:changeset_id>/',
views.submit_for_approval,
name='submit_for_approval'
),
# Branch operations
path('vcs/branches/', views.BranchListView.as_view(), name='branch-list'),
path('vcs/branches/create/', views.BranchCreateView.as_view(), name='branch-create'),
# History views
path('vcs/history/', views.HistoryView.as_view(), name='history-view'),
# Merge operations
path('vcs/merge/', views.MergeView.as_view(), name='merge-view'),
# Tag operations
path('vcs/tags/create/', views.TagCreateView.as_view(), name='tag-create'),
# HTMX endpoints
path('htmx/comments/get/',
htmx_views.get_comments,
name='get_comments'
),
path('htmx/comments/preview/',
htmx_views.preview_comment,
name='preview_comment'
),
path('htmx/comments/add/',
htmx_views.add_comment,
name='add_comment'
),
path('htmx/approve/<int:changeset_id>/',
htmx_views.approve_changes,
name='approve_changes'
),
path('htmx/notifications/<int:changeset_id>/',
htmx_views.approval_notifications,
name='approval_notifications'
),
path('htmx/comments/replies/<int:comment_id>/',
htmx_views.get_replies,
name='get_replies'
),
path('htmx/comments/reply-form/',
htmx_views.reply_form,
name='reply_form'
),
]