feat: ingestion task streaming feedback

This commit is contained in:
Per Stark
2025-05-13 21:45:57 +02:00
parent 850878d5c3
commit d504903db3
13 changed files with 271 additions and 88 deletions

View File

@@ -176,3 +176,24 @@ pub async fn show_content_read_modal(
TextContentReadModalData { user, text_content },
))
}
pub async fn show_recent_content(
State(state): State<HtmlState>,
RequireUser(user): RequireUser,
) -> Result<impl IntoResponse, HtmlError> {
let text_contents = User::get_latest_text_contents(&user.id, &state.db).await?;
#[derive(Serialize)]
pub struct RecentTextContentData {
pub user: User,
pub text_contents: Vec<TextContent>,
}
Ok(TemplateResponse::new_template(
"/index/signed_in/recent_content.html",
RecentTextContentData {
user,
text_contents,
},
))
}