feat: Comment edit/delete, auto-link URLs, markdown tables, mobile fixes
- Add comment edit/delete functionality (owner or admin can modify) - Add edit/delete buttons to comments in TicketView - Create update_comment.php and delete_comment.php API endpoints - Add updateComment() and deleteComment() methods to CommentModel - Show "(edited)" indicator on modified comments - Add migration script for updated_at column - Auto-link URLs in plain text comments (non-markdown) - Add markdown table support with proper HTML rendering - Preserve code blocks during markdown parsing - Fix mobile UI elements showing on desktop (add display:none defaults) - Add mobile styles for CreateTicketView form elements - Stack status-priority-row on mobile devices - Update cache busters to v20260124e - Update Claude.md and README.md documentation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -407,6 +407,29 @@ textarea[data-field="description"]:not(:disabled)::after {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* Status/Priority row for CreateTicketView - 4 columns */
|
||||
.status-priority-row {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.detail-quarter {
|
||||
flex: 1 1 calc(25% - 0.75rem);
|
||||
min-width: 150px;
|
||||
}
|
||||
|
||||
.detail-quarter label {
|
||||
display: block;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.detail-quarter select {
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.full-width {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
@@ -560,6 +583,9 @@ textarea.editable {
|
||||
.comment-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 10px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid var(--terminal-green);
|
||||
@@ -592,6 +618,13 @@ textarea.editable {
|
||||
color: var(--terminal-green);
|
||||
}
|
||||
|
||||
.comment-edited {
|
||||
font-size: 0.85em;
|
||||
color: var(--terminal-amber);
|
||||
font-style: italic;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.comment-text {
|
||||
color: var(--terminal-green);
|
||||
font-family: var(--font-mono);
|
||||
@@ -621,6 +654,103 @@ textarea.editable {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
/* Comment Action Buttons (Edit/Delete) */
|
||||
.comment-actions {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.comment-action-btn {
|
||||
background: transparent;
|
||||
border: 1px solid var(--terminal-green);
|
||||
color: var(--terminal-green);
|
||||
padding: 0.25rem 0.5rem;
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
font-family: var(--font-mono);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.comment-action-btn:hover {
|
||||
background: rgba(0, 255, 65, 0.1);
|
||||
}
|
||||
|
||||
.comment-action-btn.edit-btn:hover {
|
||||
color: var(--terminal-amber);
|
||||
border-color: var(--terminal-amber);
|
||||
}
|
||||
|
||||
.comment-action-btn.delete-btn:hover {
|
||||
color: var(--priority-1);
|
||||
border-color: var(--priority-1);
|
||||
}
|
||||
|
||||
/* Comment Edit Form */
|
||||
.comment.editing {
|
||||
background: rgba(0, 255, 65, 0.05);
|
||||
padding: 1rem;
|
||||
margin: -0.5rem;
|
||||
border: 1px dashed var(--terminal-amber);
|
||||
}
|
||||
|
||||
.comment-edit-form {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.comment-edit-textarea {
|
||||
width: 100%;
|
||||
min-height: 100px;
|
||||
padding: 0.75rem;
|
||||
background: var(--bg-secondary);
|
||||
border: 2px solid var(--terminal-green);
|
||||
color: var(--terminal-green);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.9rem;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.comment-edit-textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--terminal-amber);
|
||||
box-shadow: 0 0 10px rgba(255, 176, 0, 0.3);
|
||||
}
|
||||
|
||||
.comment-edit-controls {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 0.75rem;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.markdown-toggle-small {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
font-size: 0.85rem;
|
||||
color: var(--terminal-green);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.markdown-toggle-small input[type="checkbox"] {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.comment-edit-buttons {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.btn-small {
|
||||
padding: 0.4rem 0.75rem !important;
|
||||
font-size: 0.85rem !important;
|
||||
min-height: auto !important;
|
||||
}
|
||||
|
||||
/* Comment Tabs - TERMINAL STYLE */
|
||||
.ticket-tabs {
|
||||
display: flex;
|
||||
@@ -1859,6 +1989,82 @@ body.dark-mode .editable {
|
||||
padding: 0.5rem 1rem;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
/* Comment actions on mobile */
|
||||
.comment-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.comment-actions {
|
||||
width: 100%;
|
||||
justify-content: flex-end;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.comment-action-btn {
|
||||
min-height: 44px;
|
||||
min-width: 44px;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.comment-edit-controls {
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.comment-edit-buttons {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.comment-edit-buttons .btn {
|
||||
flex: 1;
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
/* CreateTicketView - Stack metadata fields */
|
||||
.status-priority-row {
|
||||
flex-direction: column !important;
|
||||
gap: 1rem !important;
|
||||
}
|
||||
|
||||
.detail-quarter {
|
||||
width: 100% !important;
|
||||
flex: none !important;
|
||||
}
|
||||
|
||||
.detail-quarter select,
|
||||
.detail-quarter input {
|
||||
width: 100% !important;
|
||||
min-height: 48px !important;
|
||||
font-size: 16px !important;
|
||||
}
|
||||
|
||||
/* Form inputs in CreateTicketView */
|
||||
.detail-group input[type="text"],
|
||||
.detail-group textarea,
|
||||
.detail-group select {
|
||||
width: 100% !important;
|
||||
min-height: 48px !important;
|
||||
padding: 0.75rem !important;
|
||||
font-size: 16px !important;
|
||||
}
|
||||
|
||||
.detail-group textarea {
|
||||
min-height: 150px !important;
|
||||
}
|
||||
|
||||
/* Visibility groups */
|
||||
.visibility-groups-list {
|
||||
flex-direction: column !important;
|
||||
}
|
||||
|
||||
.visibility-groups-list label {
|
||||
min-height: 44px;
|
||||
padding: 0.5rem;
|
||||
background: rgba(0, 255, 65, 0.05);
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Extra small screens for ticket page */
|
||||
|
||||
Reference in New Issue
Block a user