docsync-taskwizard / index.html
haydnmann's picture
ok please add in a task pane which replicates cursors task plan whereby it has plan, to do list creates, spinners that spin as each task is being executed which can be dropped down to see the agents working, and then a final summary under the task pane of what it achieves
828e201 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocSync - Notion Meets AI Chat</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<style>
.doc-sidebar {
scrollbar-width: thin;
scrollbar-color: #6366f1 transparent;
}
.doc-sidebar::-webkit-scrollbar {
width: 6px;
}
.doc-sidebar::-webkit-scrollbar-thumb {
background-color: #6366f1;
border-radius: 3px;
}
.markdown-preview h1 {
font-size: 2rem;
font-weight: 700;
margin: 1.5rem 0;
}
.markdown-preview h2 {
font-size: 1.5rem;
font-weight: 600;
margin: 1.25rem 0;
}
.markdown-preview p {
margin: 1rem 0;
line-height: 1.6;
}
.markdown-preview ul {
list-style-type: disc;
padding-left: 2rem;
margin: 1rem 0;
}
.markdown-preview ol {
list-style-type: decimal;
padding-left: 2rem;
margin: 1rem 0;
}
.markdown-preview pre {
background-color: #1e293b;
color: #f8fafc;
padding: 1rem;
border-radius: 0.5rem;
overflow-x: auto;
margin: 1rem 0;
}
.markdown-preview code {
background-color: #1e293b;
color: #f8fafc;
padding: 0.2rem 0.4rem;
border-radius: 0.25rem;
font-family: monospace;
}
.agent-message {
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
</style>
</head>
<body class="bg-gray-50 text-gray-900 font-sans">
<div id="vanta-bg" class="fixed inset-0 -z-10 opacity-10"></div>
<!-- Header -->
<header class="bg-white border-b border-gray-200 px-6 py-4 flex items-center justify-between">
<div class="flex items-center space-x-4">
<div class="text-indigo-600 font-bold text-2xl flex items-center">
<i data-feather="file-text" class="mr-2"></i>
<span>DocSync</span>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Docs</a>
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Templates</a>
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Agents</a>
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Integrations</a>
</nav>
</div>
<div class="flex items-center space-x-4">
<button class="p-2 rounded-full hover:bg-gray-100">
<i data-feather="search"></i>
</button>
<button class="p-2 rounded-full hover:bg-gray-100">
<i data-feather="bell"></i>
</button>
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
<i data-feather="user" class="text-indigo-600"></i>
</div>
</div>
</header>
<div class="flex h-[calc(100vh-73px)]">
<!-- Sidebar -->
<aside class="w-64 bg-white border-r border-gray-200 flex flex-col">
<div class="p-4 border-b border-gray-200">
<button class="w-full flex items-center justify-between px-4 py-2 bg-indigo-50 text-indigo-600 rounded-lg">
<span>New Document</span>
<i data-feather="plus"></i>
</button>
</div>
<div class="flex-1 overflow-y-auto doc-sidebar">
<div class="p-4">
<div class="flex items-center justify-between mb-2">
<h3 class="font-medium text-gray-700">Recent Documents</h3>
<i data-feather="chevron-down" class="text-gray-500"></i>
</div>
<ul class="space-y-1">
<li class="flex items-center px-3 py-2 rounded-lg bg-indigo-50 text-indigo-600">
<i data-feather="file-text" class="mr-3"></i>
<span>Project Overview</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>Meeting Notes</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>API Documentation</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>User Research</span>
</li>
</ul>
</div>
<div class="p-4 border-t border-gray-200">
<div class="flex items-center justify-between mb-2">
<h3 class="font-medium text-gray-700">Templates</h3>
<i data-feather="chevron-down" class="text-gray-500"></i>
</div>
<ul class="space-y-1">
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>Meeting Notes</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>Project Plan</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>Research Report</span>
</li>
</ul>
</div>
</div>
</aside>
<!-- Main Content -->
<main class="flex-1 flex overflow-hidden">
<!-- Document Editor -->
<div class="flex-1 flex flex-col border-r border-gray-200 bg-white">
<div class="p-4 border-b border-gray-200 flex items-center justify-between">
<div class="flex items-center space-x-2">
<input type="text" value="Project Overview" class="text-xl font-semibold bg-transparent border-none focus:ring-2 focus:ring-indigo-100 rounded px-2 py-1">
<span class="text-sm text-gray-500">Last edited 2 hours ago</span>
</div>
<div class="flex items-center space-x-2">
<button class="p-2 rounded hover:bg-gray-100">
<i data-feather="share-2"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i data-feather="more-vertical"></i>
</button>
</div>
</div>
<div class="flex-1 overflow-y-auto p-6">
<div class="max-w-3xl mx-auto">
<div class="markdown-preview">
<h1>Project Overview</h1>
<p>This document outlines the key objectives, timeline, and deliverables for our upcoming product launch.</p>
<h2>Objectives</h2>
<ul>
<li>Launch new AI-powered documentation tool</li>
<li>Onboard 100+ beta users</li>
<li>Gather feedback for iterative improvements</li>
</ul>
<h2>Timeline</h2>
<p>The project will follow this timeline:</p>
<pre><code>Q1: Research & Planning
Q2: Development
Q3: Beta Testing
Q4: Public Launch</code></pre>
<h2>Team</h2>
<p>Core team members:</p>
<ul>
<li>Product Manager: Jane Doe</li>
<li>Lead Developer: John Smith</li>
<li>UX Designer: Alex Johnson</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Task Pane -->
<div class="w-96 bg-gray-50 flex flex-col border-l border-gray-200">
<div class="p-4 border-b border-gray-200 flex items-center justify-between bg-indigo-50">
<h3 class="font-medium text-indigo-600">Task Wizard</h3>
<div class="flex items-center space-x-2">
<button class="p-1 rounded hover:bg-indigo-100">
<i data-feather="plus" class="w-4 h-4 text-indigo-600"></i>
</button>
<button class="p-1 rounded hover:bg-indigo-100">
<i data-feather="settings" class="w-4 h-4 text-indigo-600"></i>
</button>
</div>
</div>
<div class="flex-1 overflow-y-auto p-4 space-y-4">
<div class="bg-white rounded-lg border border-gray-200 overflow-hidden">
<div class="p-3 bg-gray-50 border-b border-gray-200 flex items-center justify-between cursor-pointer">
<div class="flex items-center">
<i data-feather="list" class="text-indigo-600 mr-2 w-4 h-4"></i>
<span class="font-medium">Project Plan</span>
</div>
<i data-feather="chevron-down" class="text-gray-500 w-4 h-4"></i>
</div>
<div class="p-3 space-y-3">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-4 h-4 rounded-full border-2 border-indigo-400 mr-2 flex items-center justify-center">
<div class="w-2 h-2 rounded-full bg-indigo-600 animate-pulse"></div>
</div>
<span>Research phase</span>
</div>
<div class="flex space-x-1">
<div class="w-2 h-2 rounded-full bg-green-400 animate-pulse"></div>
<div class="w-2 h-2 rounded-full bg-yellow-400 animate-pulse delay-100"></div>
<div class="w-2 h-2 rounded-full bg-indigo-400 animate-pulse delay-200"></div>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<i data-feather="check-circle" class="text-green-500 mr-2 w-4 h-4"></i>
<span class="text-gray-500">Planning complete</span>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg border border-gray-200 overflow-hidden">
<div class="p-3 bg-gray-50 border-b border-gray-200 flex items-center justify-between cursor-pointer">
<div class="flex items-center">
<i data-feather="check-square" class="text-indigo-600 mr-2 w-4 h-4"></i>
<span class="font-medium">To-Do List</span>
</div>
<i data-feather="chevron-down" class="text-gray-500 w-4 h-4"></i>
</div>
<div class="p-3 space-y-2">
<div class="flex items-center">
<input type="checkbox" class="mr-2 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span>Outline document structure</span>
</div>
<div class="flex items-center">
<input type="checkbox" class="mr-2 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span>Add research references</span>
</div>
<div class="flex items-center">
<input type="checkbox" class="mr-2 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500" checked>
<span class="text-gray-400 line-through">Create initial draft</span>
</div>
</div>
</div>
<div class="bg-white rounded-lg border border-gray-200 overflow-hidden">
<div class="p-3 bg-gray-50 border-b border-gray-200 flex items-center justify-between">
<div class="flex items-center">
<i data-feather="zap" class="text-indigo-600 mr-2 w-4 h-4"></i>
<span class="font-medium">Task Execution</span>
</div>
<div class="flex items-center">
<span class="text-xs bg-indigo-100 text-indigo-600 px-2 py-1 rounded-full">3 agents working</span>
</div>
</div>
<div class="p-3 space-y-3">
<div class="flex items-center space-x-3">
<div class="animate-spin">
<i data-feather="loader" class="w-4 h-4 text-indigo-600"></i>
</div>
<div class="flex-1">
<p class="text-sm font-medium">Generating summary</p>
<p class="text-xs text-gray-500">Agent #1 analyzing document</p>
</div>
</div>
<div class="flex items-center space-x-3">
<div class="animate-spin">
<i data-feather="loader" class="w-4 h-4 text-indigo-600"></i>
</div>
<div class="flex-1">
<p class="text-sm font-medium">Formatting content</p>
<p class="text-xs text-gray-500">Agent #2 applying styles</p>
</div>
</div>
<div class="flex items-center space-x-3">
<div class="animate-spin">
<i data-feather="loader" class="w-4 h-4 text-indigo-600"></i>
</div>
<div class="flex-1">
<p class="text-sm font-medium">Checking references</p>
<p class="text-xs text-gray-500">Agent #3 verifying sources</p>
</div>
</div>
</div>
</div>
<div class="bg-indigo-50 rounded-lg p-4">
<div class="flex items-center mb-2">
<i data-feather="check-circle" class="text-indigo-600 mr-2 w-4 h-4"></i>
<span class="font-medium">Task Summary</span>
</div>
<p class="text-sm text-gray-700">Completed 5/8 tasks. Generated document outline, created initial draft, and formatted headings. Research references pending.</p>
</div>
</div>
</div>
<!-- AI Chat Panel -->
<div class="w-96 bg-gray-50 flex flex-col border-l border-gray-200">
<div class="p-4 border-b border-gray-200 flex items-center justify-between">
<h3 class="font-medium">AI Assistant</h3>
<div class="flex items-center space-x-2">
<button class="p-1 rounded hover:bg-gray-200">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
<button class="p-1 rounded hover:bg-gray-200">
<i data-feather="settings" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="flex-1 overflow-y-auto p-4 space-y-4">
<div class="agent-message bg-indigo-50 p-4 rounded-lg">
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i data-feather="cpu" class="text-indigo-600 w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-indigo-600">DocSync AI</p>
<p class="text-gray-700 mt-1">I can help you edit this document. What would you like to do?</p>
</div>
</div>
</div>
<div class="agent-message bg-white p-4 rounded-lg border border-gray-200">
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center mr-3">
<i data-feather="user" class="text-gray-600 w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-gray-600">You</p>
<p class="text-gray-700 mt-1">Summarize the timeline section</p>
</div>
</div>
</div>
<div class="agent-message bg-indigo-50 p-4 rounded-lg">
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i data-feather="cpu" class="text-indigo-600 w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-indigo-600">DocSync AI</p>
<p class="text-gray-700 mt-1">The timeline is divided into four quarters:</p>
<ul class="list-disc pl-5 mt-2 space-y-1">
<li>Q1: Research & Planning</li>
<li>Q2: Development</li>
<li>Q3: Beta Testing</li>
<li>Q4: Public Launch</li>
</ul>
<div class="mt-3 flex space-x-2">
<button class="text-sm px-3 py-1 bg-indigo-100 text-indigo-600 rounded-full hover:bg-indigo-200">Insert into doc</button>
<button class="text-sm px-3 py-1 bg-white text-gray-600 rounded-full hover:bg-gray-100 border border-gray-200">Regenerate</button>
</div>
</div>
</div>
</div>
</div>
<div class="p-4 border-t border-gray-200">
<div class="relative">
<input type="text" placeholder="Ask the AI to edit or create content..." class="w-full pl-4 pr-12 py-3 bg-white border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-100 focus:border-indigo-300">
<button class="absolute right-3 top-3 text-indigo-600">
<i data-feather="send"></i>
</button>
</div>
<div class="mt-2 flex justify-between text-xs text-gray-500">
<span>AI may produce inaccurate information</span>
<button class="text-indigo-600 hover:underline">View examples</button>
</div>
</div>
</div>
</main>
</div>
<script>
// Task pane toggle functionality
document.querySelectorAll('[data-task-toggle]').forEach(button => {
button.addEventListener('click', () => {
const content = button.nextElementSibling;
const icon = button.querySelector('i');
if (content.classList.contains('hidden')) {
content.classList.remove('hidden');
icon.setAttribute('data-feather', 'chevron-up');
} else {
content.classList.add('hidden');
icon.setAttribute('data-feather', 'chevron-down');
}
feather.replace();
});
});
// Simulate task progress
function simulateTaskProgress() {
setTimeout(() => {
const checkboxes = document.querySelectorAll('input[type="checkbox"]:not(:checked)');
if (checkboxes.length > 0) {
checkboxes[0].click();
setTimeout(simulateTaskProgress, 2000);
}
}, 3000);
}
simulateTaskProgress();
</script>
<script>
feather.replace();
// Initialize Vanta.js background
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x6366f1,
backgroundColor: 0xf8fafc,
points: 10.00,
maxDistance: 20.00,
spacing: 15.00
});
// Simulate AI typing effect
function simulateAITyping() {
const messages = [
"I can also help format your document with headings, lists, and code blocks.",
"Would you like me to generate a table of contents for this document?",
"I can analyze your writing style and suggest improvements."
];
const chatPanel = document.querySelector('.flex-1.overflow-y-auto');
const randomMessage = messages[Math.floor(Math.random() * messages.length)];
setTimeout(() => {
const typingIndicator = document.createElement('div');
typingIndicator.className = 'agent-message bg-indigo-50 p-4 rounded-lg';
typingIndicator.innerHTML = `
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i data-feather="cpu" class="text-indigo-600 w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-indigo-600">DocSync AI</p>
<div class="flex space-x-1 mt-1">
<div class="w-2 h-2 rounded-full bg-indigo-400 animate-pulse"></div>
<div class="w-2 h-2 rounded-full bg-indigo-400 animate-pulse delay-100"></div>
<div class="w-2 h-2 rounded-full bg-indigo-400 animate-pulse delay-200"></div>
</div>
</div>
</div>
`;
chatPanel.appendChild(typingIndicator);
chatPanel.scrollTop = chatPanel.scrollHeight;
setTimeout(() => {
typingIndicator.remove();
const aiMessage = document.createElement('div');
aiMessage.className = 'agent-message bg-indigo-50 p-4 rounded-lg';
aiMessage.innerHTML = `
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i data-feather="cpu" class="text-indigo-600 w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-indigo-600">DocSync AI</p>
<p class="text-gray-700 mt-1">${randomMessage}</p>
<div class="mt-3 flex space-x-2">
<button class="text-sm px-3 py-1 bg-indigo-100 text-indigo-600 rounded-full hover:bg-indigo-200">Show me</button>
<button class="text-sm px-3 py-1 bg-white text-gray-600 rounded-full hover:bg-gray-100 border border-gray-200">Not now</button>
</div>
</div>
</div>
`;
chatPanel.appendChild(aiMessage);
chatPanel.scrollTop = chatPanel.scrollHeight;
feather.replace();
}, 1500);
}, 10000);
}
// Start the simulation
simulateAITyping();
</script>
</body>
</html>