feat(templates): enrichUI with Tailwind styling and messaging component improvements

- Add custom border, background, and spacing utilities to base template
- Enhance message notification styling and layout
- Update delete modal button appearance and behavior
- Refine comment card component with Tailwind classes and responsive behavior
- Adjust sidebar responsiveness for mobile view
This commit is contained in:
sankalp committed 2026-05-28 00:51:41 +05:45
1 parent 35bdef7e96
commit 0537ea5e5e
50 files changed
+839 -861

No files matched your search

+27 -27
View File
@@ -3,55 +3,55 @@
{% block content_inner %}
<div class="flex items-center justify-between mb-6">
<div>
<h1 class="text-2xl font-bold text-gray-900">Issues</h1>
<p class="text-gray-500 mt-1">Track bugs, features, and tasks.</p>
<h1 class="text-2xl font-bold text-primary">Issues</h1>
<p class="text-tertiary mt-1">Track bugs, features, and tasks.</p>
</div>
<a href="{% url 'issue_create' %}" class="btn bg-blue-600 text-white hover:bg-blue-700 border-0">
<svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/></svg>
<a href="{% url 'issue_create' %}" class="px-3 py-1.5 rounded-lg text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors">
<svg class="w-4 h-4 mr-1 inline" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/></svg>
New Issue
</a>
</div>
<div class="bg-white rounded-2xl shadow-sm border border-gray-100 overflow-hidden">
<div class="card-surface overflow-hidden">
<div class="overflow-x-auto">
<table class="table w-full">
<table class="w-full text-sm">
<thead>
<tr class="bg-gray-50">
<th class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Title</th>
<th class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Project</th>
<th class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Status</th>
<th class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Priority</th>
<th class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Assignee</th>
<th class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Created</th>
{% if user.is_admin %}<th class="text-xs font-semibold text-gray-500 uppercase tracking-wider">Actions</th>{% endif %}
<tr class="text-xs font-semibold text-muted uppercase tracking-wider bg-hover">
<th class="px-4 py-3 text-left">Title</th>
<th class="px-4 py-3 text-left">Project</th>
<th class="px-4 py-3 text-left">Status</th>
<th class="px-4 py-3 text-left">Priority</th>
<th class="px-4 py-3 text-left">Assignee</th>
<th class="px-4 py-3 text-left">Created</th>
{% if user.is_admin %}<th class="px-4 py-3 text-left">Actions</th>{% endif %}
</tr>
</thead>
<tbody>
{% for issue in issues %}
<tr class="hover:bg-gray-50 transition-colors">
<td>
<a href="{% url 'issue_detail' issue.pk %}" class="font-medium text-gray-900 hover:text-blue-600">{{ issue.title }}</a>
<tr class="hover:bg-hover transition-colors border-t border-subtle">
<td class="px-4 py-3">
<a href="{% url 'issue_detail' issue.pk %}" class="font-medium text-primary hover:text-blue-600">{{ issue.title }}</a>
</td>
<td class="text-sm text-gray-600">{{ issue.project.name }}</td>
<td>
<span class="text-xs px-2.5 py-1 rounded-full font-medium {% if issue.status == 'open' %}bg-blue-100 text-blue-700{% elif issue.status == 'in_progress' %}bg-amber-100 text-amber-700{% elif issue.status == 'resolved' %}bg-green-100 text-green-700{% else %}bg-gray-100 text-gray-700{% endif %}">
<td class="px-4 py-3 text-secondary">{{ issue.project.name }}</td>
<td class="px-4 py-3">
<span class="text-xs px-2 py-1 rounded-full font-medium border {% if issue.status == 'open' %}bg-blue-50 text-blue-700 border-blue-200{% elif issue.status == 'in_progress' %}bg-amber-50 text-amber-700 border-amber-200{% elif issue.status == 'resolved' %}bg-green-50 text-green-700 border-green-200{% else %}bg-gray-50 text-gray-700 border-gray-200{% endif %}">
{{ issue.get_status_display }}
</span>
</td>
<td>
<span class="text-xs px-2.5 py-1 rounded-full font-medium {% if issue.priority == 'high' %}bg-red-100 text-red-700{% elif issue.priority == 'medium' %}bg-amber-100 text-amber-700{% else %}bg-blue-100 text-blue-700{% endif %}">
<td class="px-4 py-3">
<span class="text-xs px-2 py-1 rounded-full font-medium border {% if issue.priority == 'high' %}bg-red-50 text-red-700 border-red-200{% elif issue.priority == 'medium' %}bg-amber-50 text-amber-700 border-amber-200{% else %}bg-blue-50 text-blue-700 border-blue-200{% endif %}">
{{ issue.get_priority_display }}
</span>
</td>
<td class="text-sm text-gray-600">{{ issue.assignee.username|default:"-" }}</td>
<td class="text-sm text-gray-500">{{ issue.created_at|date:"M d" }}</td>
<td class="px-4 py-3 text-secondary">{{ issue.assignee.username|default:"-" }}</td>
<td class="px-4 py-3 text-tertiary">{{ issue.created_at|date:"M d" }}</td>
{% if user.is_admin %}
<td>
<label for="delete-issue-{{ issue.pk }}" class="btn btn-ghost btn-xs text-red-600">Delete</label>
<td class="px-4 py-3">
<label for="delete-issue-{{ issue.pk }}" class="px-3 py-1.5 rounded-lg text-sm font-medium bg-red-50 text-red-700 hover:bg-red-100 border border-red-200 transition-colors cursor-pointer">Delete</label>
</td>
{% endif %}
</tr>
{% empty %}
<tr><td colspan="6" class="text-center py-12 text-gray-500">No issues found.</td></tr>
<tr><td colspan="{% if user.is_admin %}7{% else %}6{% endif %}" class="text-center py-12 text-tertiary">No issues found.</td></tr>
{% endfor %}
</tbody>
</table>