Akademiacademy / vibe-102 / update-delete

Update and Delete

Apa ini

Update dan delete ialah app behavior seterusnya.

Untuk Mission Task Tracker, update maksudnya mark complete atau incomplete. Delete maksudnya buang task.

Kenapa penting

App kebanyakannya ialah perubahan data.

Add create item. Update ubah item. Delete buang item.

Apa nak buat

Guna prompt ini:

Copy prompt
CONTEXT:
I am building my Vibe 102 mini app.

CURRENT STATE:
I can add items and see them in the list.

TASK:
Add update and delete behavior.

Requirements:
- user can mark an item complete or incomplete
- completed items look visually different
- user can delete an item
- do not add localStorage yet

Rules:
- keep the UI clean
- explain the update logic step by step
- explain which files changed
- do not add filters or extra features

Test satu item:

  1. Add item.
  2. Mark complete.
  3. Mark incomplete.
  4. Delete item.

Mistake biasa

  • Delete item yang salah.
  • Update dengan ubah text sahaja.
  • Tambah terlalu banyak button sebelum behavior asas jalan.

Vibe 102 / Checkpoint sekarang

Update dan Delete

Sedia untuk stamp - Disimpan dalam browser ini sahaja.

0 daripada 11 checkpoints complete

0 daripada 11 checkpoints complete.