Fix braindump display and switching issues

- Add echo API endpoint for Echo component
- Export Echo component from ui crate to fix compilation errors
- Fix notes not showing after save by adding refresh_notes callback that updates the notes resource
- Fix note content not updating when switching notes by using reactive signal for note_id which triggers note resource reload on prop changes

💘 Generated with Crush
This commit is contained in:
2026-02-04 12:03:21 +01:00
parent 962fd1a154
commit 25e498aff0
3 changed files with 46 additions and 12 deletions

View File

@@ -113,3 +113,8 @@ pub async fn toggle_pin_note(id: String) -> Result<(), ServerFnError> {
Err(ServerFnError::new("Note not found".to_string()))
}
}
#[post("/api/echo")]
pub async fn echo(message: String) -> Result<String, ServerFnError> {
Ok(format!("Echo: {}", message))
}