-
Notifications
You must be signed in to change notification settings - Fork 9
Ellyse/webread pattern #1825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ellyse/webread pattern #1825
Conversation
…l in lift so that we dont have to call get()
| const createPizzaListCell = lift<{ result: WebReadResult }, CheeseboardEntry[]>( | ||
| ({ result }) => { | ||
| return extractPizzas(result?.content ?? ""); | ||
| }, | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RE: your comments on naming in standup, I find it a bit confusing to write create in a lifted function that is reactively bound like this, since it doesn't just run once. Maybe const pizzaList = toPizzaList({ result }) would be idiomatic (kinda FP inspired)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i sort of had that before. i felt like "cell" means it runs more than once, but i see that it could be confusing. hm honestly i sat on this a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toPizzaListLift? lol
Summary by cubic
Adds a new Cheeseboard pattern that fetches the pizza schedule via Toolshed’s web-read API and shows a simple date-and-pizza list in the UI. Parses the page content to extract daily pizza descriptions.