Skip to content

Fixed Dashboard Current Project Ticket Showcase from Kanban - #480

Merged
Jecomo-Alyssa-Lyn merged 2 commits into
devfrom
dashboard-current-project/fix-bugs
Dec 23, 2025
Merged

Fixed Dashboard Current Project Ticket Showcase from Kanban#480
Jecomo-Alyssa-Lyn merged 2 commits into
devfrom
dashboard-current-project/fix-bugs

Conversation

@Jecomo-Alyssa-Lyn

@Jecomo-Alyssa-Lyn Jecomo-Alyssa-Lyn commented Dec 23, 2025

Copy link
Copy Markdown
Collaborator

Fix: Archived Tasks Showing in Active Kanban Views

Problem

Completed/archived tasks were still visible in active Kanban boards and dashboard modals.

Root Cause

  • tasks.is_archive column allows NULL values, causing incomplete filtering
  • Task completion wasn't setting is_archive = true
  • Missing archive filters in multiple queries

Changes

Core Fixes

  1. /app/home/kanban/[projectId]/[id]/_services/query.ts

    • Added .or("is_archive.is.null,is_archive.eq.false") to filter archived tasks
  2. /app/home/kanban/[projectId]/[id]/actions.ts

    • Fixed completeTask() to set is_archive = true when marking tasks as done
    • Added 12 missing action exports
  3. DashboardCurrentProjectModal.tsx

    • Added archive filter to task query
    • Added client-side safety check

Additional Fixes

  1. DashboardCurrentProject.tsx - Filter inactive projects
  2. DashboardCurrentProjectButton.tsx - Verify project status before enabling

Testing

  • Mark task as done → disappears from active board
  • Archived tasks appear in Archive view only
  • Dashboard modal shows active tasks only
  • Inactive projects hidden from dashboard

Optional Database Cleanup

UPDATE tasks SET is_archive = false WHERE is_archive IS NULL;
ALTER TABLE tasks ALTER COLUMN is_archive SET NOT NULL;

@vercel

vercel Bot commented Dec 23, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
codebility-plus-codebility-portal Ready Ready Preview, Comment Dec 23, 2025 1:26am

@Jecomo-Alyssa-Lyn
Jecomo-Alyssa-Lyn merged commit a674432 into dev Dec 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant