feat: post approval workflow, i18n completion, and multiple fixes
All checks were successful
Deploy / deploy (push) Successful in 11s
All checks were successful
Deploy / deploy (push) Successful in 11s
- Add approval process to posts (approver multi-select, rejected status column) - Reorganize PostDetailPanel into Content, Scheduling, Approval sections - Fix save button visibility: move to fixed footer via SlidePanel footer prop - Change date picker from datetime-local to date-only - Complete Arabic translations across all panels (Header, Issues, Artefacts) - Fix artefact versioning to start empty (copyFromPrevious defaults to false) - Separate media uploads by type (image, audio, video) in PostDetailPanel - Fix team membership save when editing own profile as superadmin - Server: add approver_ids column to Posts, enrich GET/POST/PATCH responses Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,20 +1,12 @@
|
||||
const PRIORITY_CONFIG = {
|
||||
low: { label: 'Low', dot: 'bg-text-tertiary' },
|
||||
medium: { label: 'Medium', dot: 'bg-blue-500' },
|
||||
high: { label: 'High', dot: 'bg-orange-500' },
|
||||
urgent: { label: 'Urgent', dot: 'bg-red-500' },
|
||||
}
|
||||
|
||||
const TYPE_LABELS = {
|
||||
request: 'Request',
|
||||
correction: 'Correction',
|
||||
complaint: 'Complaint',
|
||||
suggestion: 'Suggestion',
|
||||
other: 'Other',
|
||||
const PRIORITY_DOTS = {
|
||||
low: 'bg-text-tertiary',
|
||||
medium: 'bg-blue-500',
|
||||
high: 'bg-orange-500',
|
||||
urgent: 'bg-red-500',
|
||||
}
|
||||
|
||||
export default function IssueCard({ issue, onClick }) {
|
||||
const priority = PRIORITY_CONFIG[issue.priority] || PRIORITY_CONFIG.medium
|
||||
const priority = { dot: PRIORITY_DOTS[issue.priority] || PRIORITY_DOTS.medium }
|
||||
|
||||
const formatDate = (dateStr) => {
|
||||
if (!dateStr) return ''
|
||||
|
||||
Reference in New Issue
Block a user