Now let me add store methods and AI computation helpers:
Now let me create the TaskSubmitWorkModal for members to submit work with attachments:
Now the manager review modal with AI stats and feedback report:
Good — Zap is unused. Let me clean up:
Now let me create a dedicated "My Tasks" personal dashboard view for members:
Now let me integrate this into WorkspaceScreen.tsx — add the "My Tasks" sidebar nav item and wire everything up. Let me also wire the review modal into the Kanban board (clicking a task in "In Review" col opens TaskReviewModal instead of TaskModal):
Now let me add the "My Tasks" sidebar nav item right after Dashboard, add tab content, and wire up modals. Let me find the Dashboard nav button:
Now let me add the tab content rendering + the modals + hook the Kanban cards to open review modal instead when clicking inreview tasks. Let me find where tab content is rendered:
Now let me update the header title mapping, wire the kanban card click to open review modal for inreview/done tasks, and add the modals to the bottom. Let me first fix the title bar:
Now let me hook the Kanban card click to open review modal for inreview tasks, and add a "Submit Work" button on cards assigned to me. Let me find the card click handler:
Now let me add the modals at the bottom right after ConnectWalletModal:
Now let me build to check status:
Build succeeds. Now let me add visual submission indicators to Kanban cards so managers can see at a glance which tasks have work awaiting review:
Let me also seed some existing tasks with gracePeriodDays and startedAt values so the AI stats show interesting data on first load. Let me check what's easy — actually the default tasks already have createdAt and estimatedHours which the AI stats function can compute from. It's fine.
Let me build & confirm final:
Everything builds cleanly! Here's the complete flow that's now live:
🌟 What's New
1. Personal "My Tasks" Dashboard (MyTasksView.tsx) — Now the default tab
Every logged-in user opens directly into their personal task center showing only tasks assigned to them:
- Productivity Score gauge (0-100) computed from velocity, progress, submissions, deadlines
- Filterable chips: All / Active / In Review / Overdue / Done
- Per-task cards with: progress bar, velocity (%/day), estimated completion date, hours remaining, grace period days, and instant
Submit Work → action button
2. Task Submission Flow (TaskSubmitWorkModal.tsx) — Members submit work
Clicking Submit Work → on any assigned task opens a modal where the member can attach:
- 🔗 Links (references, docs)
- 📄 Documents (PDF, Word)
- 🖼️ Images (screenshots, designs)
- 🎥 Videos (Loom, MP4)
- 🎨 Figma prototypes
- 💻 GitHub PRs
Quick-add buttons pre-fill sample templates. On submit → task auto-moves to the "In Review" column on the Kanban board and the manager gets notified.
3. Manager Review Center (TaskReviewModal.tsx) — 4 tabs
Managers/admins clicking any inreview task open a full review interface:
- 📤 Submissions Tab: See all deliverables (links, files, media) with clickable previews
- 🧠 AI Insights Tab: Live Productivity Score with animated ring, velocity meter, days-until-due, hours remaining, grace period calculator, risk factors detected, and AI recommendations for intervention
- ⭐ Write Feedback Tab: 5-star rating + quality score slider (0-100) + strengths list + improvements list + decision (Approve / Request Revision / Reject). Confetti fires on approval! Approving auto-moves task to Done; requesting revision sends it back to In Progress; rejecting moves to Backlog.
- 📜 History Tab: All past feedback reports with ratings, scores, and decisions.
4. AI Prediction Engine (computeTaskAIStats() in store.ts)
For every task the engine computes:
- Estimated completion date based on velocity vs remaining progress
- On-track status:
on_track / at_risk / critical / in_grace_period / overdue / complete
- Grace period deadline (default 3 days after due date before flagging as overdue)
- Risk factors (low velocity, tight deadline, urgent tasks below 50%, no submissions after 5+ days, etc.)
- AI recommendations (escalate priority, request checkpoint, reassign, send auto-reminders)
- Slow progress alerts shown directly on task cards in My Tasks view
5. Visual Kanban Indicators
Kanban cards now show badges for:
- 📤 N — pulsing badge showing pending submissions awaiting review
- ⭐ N — feedback reports count
- 📎 N — attachments count
Clicking any Kanban card intelligently routes:
- Tasks in
inreview OR with submissions/feedback → open Review Modal
- Tasks assigned to me → open Submit Work Modal
- Everything else → open standard Task edit modal
Files built: src/types.ts, src/services/store.ts, src/components/modals/TaskSubmitWorkModal.tsx, src/components/modals/TaskReviewModal.tsx, src/components/workspace/MyTasksView.tsx, src/components/workspace/WorkspaceScreen.tsx