fix(leptos): compile errors in Phase 3 message components - WIP

Fixed:
- Icon imports: Replaced lucide-leptos icons with SVG/emoji alternatives
- AnyView lifetime: Fixed render_emojis to use owned strings
- Missing html import in message_feed.rs
- use_messages: Removed #[component] to make it a regular function
- MessageRecord fields: Removed is_reply, is_forward, is_crosspost checks
- String wrapping in view! macros: Wrapped strings in <span> elements
- Closure handling: Changed .into_forget() to .forget() for web_sys Closure
- URL borrowing in image_grid: Clone URLs before using in view!

Remaining issues (in progress):
- String references in class attributes need owned values
- Type inference for None.into_any()
- Closure capture issues with on_load_more
- Match arm type incompatibilities

19 errors remaining out of 31 initial errors - ~61% fixed
This commit is contained in:
asepharyana
2026-07-03 20:32:15 +07:00
parent 9322434daa
commit 63ddc1e112
9 changed files with 944 additions and 10 deletions
+1
View File
@@ -496,6 +496,7 @@ dependencies = [
"leptos 0.7.8",
"leptos-use",
"lucide-leptos",
"regex",
"serde",
"serde-wasm-bindgen",
"serde_json",