Put in order · Vibe coding with Claude Code course · Module 14: Pinterest clone

Sorting: Saving a pin to a chest

Put in order the steps of saving a pin through SavePinDialog:

Items to put in order

  • Choosing a board sends POST /api/boards/[id]/pins
  • Esc or the cross closes the window, and onClose clears the pin
  • Clicking Save puts the pin in the PinFeed state
  • The effect calls dialogRef.current?.showModal()
  • The server checks canSavePins and answers 201

You can check the correct answer by solving this task in the CodeWorlds game.