- Annotate the form onsubmit event type for clarity - Disable the Subscribe button while the URL field is blank - Rename title -> feed_title and invert the blank-title filter into a positively-named has_content helper, with a unit test - Guard fetch_feed with error_for_status() so a well-formed URL that points at nothing (404/5xx) surfaces a clear error instead of an opaque feed-rs parse failure - Collapse subscribe_feed_impl's two upsert_feed writes into one: fetch under a throwaway id first, then let upsert_feed be the single source of truth for the real feed id (existing id on re-subscribe, fresh otherwise), remapping fetched articles onto it before inserting. This also means a failed subscribe no longer leaves a placeholder row behind. - Move the blank-URL check ahead of trimming Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XJJQb2DWZZwQ1yPiaAQQoY |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||