fix(dash): improved dashboard and some bug fixes (#8)
All checks were successful
CI / Format (push) Successful in 3s
CI / Clippy (push) Successful in 2m24s
CI / Security Audit (push) Successful in 1m44s
CI / Tests (push) Successful in 2m59s
CI / Deploy (push) Successful in 4s

Co-authored-by: Sharang Parnerkar <parnerkarsharang@gmail.com>
Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
2026-02-20 12:17:09 +00:00
parent 5399afd748
commit 5ce600e32b
9 changed files with 62 additions and 32 deletions

View File

@@ -329,7 +329,7 @@ pub fn DashboardPage() -> Element {
.set(
format!(
"Article content:\n{snippet}\n\n\
AI Summary:\n{text}",
AI Summary:\n{text}",
),
);
summary.set(Some(text));
@@ -385,9 +385,9 @@ pub fn DashboardPage() -> Element {
role: "system".into(),
content: format!(
"You are a helpful assistant. The user is reading \
a news article. Use the following context to answer \
their questions. Do NOT comment on the source, \
dates, URLs, or formatting.\n\n{ctx}",
a news article. Use the following context to answer \
their questions. Do NOT comment on the source, \
dates, URLs, or formatting.\n\n{ctx}",
),
},
];