AI breaks down any task into subtasks automatically

Aperta
#652 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, react
Ambito
ai, frontend

Direzione di ricerca

Start in client/src/components/Task/TaskModal.jsx and trace how task titles and checklist items are stored and saved. Then check the project’s existing API and configuration for how external AI services are called and credentials are handled. Done means the button generates five short subtasks from the task title, shows loading state, and adds them to the checklist.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement good first issue

🤖 AI breaks down any task into subtasks automatically

File: client/src/components/Task/TaskModal.jsx

Type "Build login page" click ✨ and AI
instantly generates 5 subtasks for you 💀
No other Kanban does this fr!!

Fix: call Claude API on button click:
const handleAIBreakdown = async () => {
setAiLoading(true)
const res = await fetch(
'https://api.anthropic.com/v1/messages', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
model: 'claude-sonnet-4-6',
max_tokens: 500,
messages: [{
role: 'user',
content: Break "${form.title}" into 5 short dev subtasks. Return JSON array of strings only.
}]
})
})
const data = await res.json()
const subtasks = JSON.parse(data.content[0].text)
setChecks(subtasks.map(t => ({ text: t, done: false })))
setAiLoading(false)
}

<button onClick={handleAIBreakdown}
disabled={!form.title || aiLoading}
className="text-xs text-purple-400
hover:text-purple-300 transition">
{aiLoading ? '⏳ Thinking...' : '✨ AI breakdown'}

Lingua principale
JavaScript
Stelle
39
Fork
105
Merge medio
2g 10h
PR unite (30g)
22

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anoopcodehack/DevBoard

Tutte le issue di anoopcodehack/DevBoard

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.