- task-brief is the essential 3 questions answers - tdd - is the revised tdd plan - wireframe-gen - is 1st cut at writing up the mockup instructions - view-mockup - is the 2nd cut
4.6 KiB
Task List View Mockup — Design Description
Project: NearBeach (Django/Vue project management tool)
Route: /tasks/
Purpose: Centralized, cross-project task list with filtering, sorting, pagination
Page Layout
Two-column responsive layout (sidebar left, table right on desktop; stacked on mobile <1024px).
Header bar: "All Tasks" title on left; "+ New Task" button on right (visible only to users with create permission, user_level >= 3).
Sidebar Filters (Fixed Width ~280px)
All filters in a single GET form. Five filter sections, each with a label and control:
-
Status — Five checkboxes (To Do, In Progress, In Review, Done, Blocked). Multi-select. Values come from
ListOfTaskStatusmodel. -
Assignee — Dropdown: "All Assignees" + all users who have task access in the current user's accessible projects + "Unassigned" option.
-
Project — Dropdown: "All Projects" + projects the user has
ObjectAssignmentaccess to (via their groups). -
Date Range — Two HTML5 date inputs: "Start Date" (filters
task_start_date >= value) and "End Date" (filterstask_end_date <= value). Each optional independently. -
Actions — Two buttons: "Clear Filters" (secondary style, links to base
/tasks/URL) and "Apply" (primary style, submits form).
Main Table Area
Results Header
- Left: "Showing X–Y of Z tasks" (uses paginator
start_index,end_index,count) - Right: Page size dropdown (10, 25, 50, 100; default 25). Auto-submits on change.
Data Table (9 Columns)
| Column | Sortable | Content |
|---|---|---|
| Title | Yes | Bold task short description + small gray task ID (#T-{id}) |
| Status | Yes | Colored badge (see badge spec below) |
| Priority | Yes | Colored dot (8px) + text: High (red), Medium (orange), Low (green) |
| Assignee | Yes | Username or em dash if unassigned |
| Project | Yes | Project name |
| Start Date | Yes | YYYY-MM-DD |
| End Date | Yes | YYYY-MM-DD |
| Created | Yes | YYYY-MM-DD |
| Actions | No | "View" button linking to task_information for that task |
Sorting
- Click any sortable header → toggles ASC/DESC.
- URL param:
?sort=field(asc) or?sort=-field(desc). - Header shows ▲ (asc) or ▼ (desc) next to column name.
- Default sort:
-created(newest first).
Status Badges (Exact Colors)
| Status | Background | Text |
|---|---|---|
| To Do | #fff3cd |
#856404 |
| In Progress | #cce5ff |
#004085 |
| In Review | #e2d9f3 |
#5a32a3 |
| Done | #d4edda |
#155724 |
| Blocked | #f8d7da |
#721c24 |
CSS classes: badge badge-todo, badge badge-in-progress, badge badge-review, badge badge-done, badge badge-blocked.
Priority Indicators
- Colored 8px circle (border-radius 50%) + label.
- High:
#cb2431• Medium:#e67e22• Low:#28a745. - Classes:
priority priority-high/medium/lowwith.priority-indicatorchild.
Empty State
When queryset empty: single row spanning all columns, centered "No tasks found" text.
Pagination Footer
- "◀ Prev" (disabled on page 1)
- Page numbers: 1 2 3 4 5 … 6 (ellipsis after page 5)
- "Next ▶" (disabled on last page)
- All links preserve every active filter, sort, and page_size query parameter.
Permission-Aware Visibility
| Element | Condition |
|---|---|
| "+ New Task" button | user_level >= 3 |
| "View" action links | user_level >= 1 |
| Filter sidebar | Always visible (read-only users can filter) |
user_level = max permission_set__task across user's groups for accessible projects. Superusers see all tasks and all UI elements.
Design System Conformance
- Buttons:
btn btn-primary/btn btn-secondary - Form controls:
form-controlclass on all inputs/selects - Table: standard HTML table with 12px 16px cell padding
- Badges:
badgebase + status modifier - Colors: Primary
#0366d6, text#24292e, borders#e1e4e8 - Spacing: 8px base unit, 16px section gaps
What Is Explicitly Excluded
No bulk actions, no column visibility toggle, no saved filter presets, no real-time updates, no drag-and-drop, no live collaboration indicators. This is a read/list view only.
Deliverable Expectation
A single self-contained HTML file with embedded CSS/JS that:
- Renders correctly standalone in a browser
- Uses realistic sample data (8–10 rows covering all 5 statuses and 3 priorities)
- Contains Django template syntax (
{% for %},{% if %}, form field rendering) - Matches every component, color, and behavior described above
- Serves as the exact visual and structural target for implementation