jkomoros / prompt-garden

A framework for gardening LLM prompts
Apache License 2.0
9 stars 0 forks source link

Add undo/redo to webapp #65

Open jkomoros opened 12 months ago

jkomoros commented 12 months ago

Related to #6.

Some way to support undo/redo in the app.

Every operation that modifies any packets (create, delete, change) should go on a state stack. Literally push a new item onto .packets and have a currentPacketVersion which stays at 0 when it's at head, and is non-zero when it's not.

Pass into packet-editor canUndo and canRedo.