[Issue #5] Todo list example #16
Reference in New Issue
Block a user
Delete Branch "issue-5-todo-list-example"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a todo list example that demonstrates core Iris reactive patterns.
Changes
examples/todo/main.gowith a complete todo list applicationPatterns Demonstrated
reactive.NewSignal([]Todo{})for managing a listtodoItem,todoList,inputRowreactive.NewEffectto re-render when todos changeCloses #5
Code Review
Summary
Comprehensive todo list example demonstrating reactive list management, component composition, and event handling. Well-structured with good separation of concerns.
Issue: Internal Package Import
The example imports
git.flowmade.one/flowmade-one/iris/internal/element(line 9). This is problematic:Affected Code
Line 145-148: Raw checkbox element
Line 155-158: Raw span element
Suggested Fix
Either:
ui.Checkboxand useui.Textwith styling supportuipackageFor now, consider if the checkbox functionality can be achieved with existing
uicomponents, or flag that this example requires framework additions.Other Notes
Please remove the internal package dependency before merging.
Code Review - Approved
Comprehensive todo list example demonstrating reactive list management, component composition, and event handling.
Highlights
inputRow,todoList,todoItem)toggleTodo,deleteTodo)Previous Feedback
Internal package import removed. Added public API components:
ui.RawCheckboxfor plain checkbox inputui.Spanfor span elementsView.TextDecorationmodifierLGTM - merging.