Add manual feed subscription #3

Merged
claude-bot merged 4 commits from worktree-manual-feed-subscribe into main 2026-08-21 14:54:28 +00:00
4 changed files with 11 additions and 3 deletions
Showing only changes of commit f28ed7b758 - Show all commits

View file

@ -60,7 +60,9 @@ fn SubscribeForm(on_subscribed: EventHandler<()>) -> Element {
status.set(None);
match subscribe_feed(feed_url).await {
Ok(count) => {
status.set(Some(Ok(format!("Subscribed — pulled in {count} article(s)."))));
status.set(Some(Ok(format!(
"Subscribed — pulled in {count} article(s)."
))));
url.set(String::new());
on_subscribed.call(());
}

View file

@ -5,6 +5,11 @@ use dioxus_primitives::merge_attributes;
#[css_module("/src/components/button/style.css")]
struct Styles;
// Variants beyond the ones this app currently uses are part of the
// component library's public API, not unused code — CI runs clippy with
// `-D warnings`, which would otherwise turn this dead_code lint into a
// build failure.
#[allow(dead_code)]
#[derive(Copy, Clone, PartialEq, Default)]
#[non_exhaustive]
pub enum ButtonVariant {
@ -30,6 +35,7 @@ impl ButtonVariant {
}
}
#[allow(dead_code)]
#[derive(Copy, Clone, PartialEq, Default)]
#[non_exhaustive]
pub enum ButtonSize {

View file

@ -1,2 +1,2 @@
mod component;
pub use component::*;
pub use component::*;

View file

@ -1,2 +1,2 @@
mod component;
pub use component::*;
pub use component::*;