feat(dashboard): added dashboard content and features #7

Merged
sharang merged 8 commits from feat/CAI-4-dashboard into main 2026-02-19 19:23:07 +00:00
Showing only changes of commit 8a9a232f37 - Show all commits

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}",
),
},
];