Add article feedback / rating widget #21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
No way for readers to indicate if an article was helpful.
Implementation:
Implemented article feedback widget in commit
d762794:ArticleFeedbackcomponent atsrc/components/article-feedback.tsxfeedback:{slug})useVisibleTask$onVotecallback for future analytics wiringArticleRelatedcomponentCloses #21
Updated: removed
onVoteprop to comply with Qwik's$()serialization rules (commit6012f94). The linter rejects raw function references inside lexical$()scopes.Final implementation:
src/components/article-feedback.tsx— thumbs-up/thumbs-down with localStorage persistence (`feedback:{slug}`)src/routes/articles/[slug]/index.tsxbeforeArticleRelatedaria-pressedDeployed to https://firsthomefix-dev.hermes.tecinfra.xyz
Closes #21