Interests dashboard page, Articles interest filter, and interest links (steps 5-7)
Every interest name in the web UI links admins to the Articles page filtered and sorted by that interest's stored matches; the Interests page lists weights derived from current ratings and manages categories. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K9PrjtUS16PAQve8D4bHgc
This commit is contained in:
@@ -64,6 +64,14 @@ pub struct Rates {
|
||||
|
||||
const INTEREST_COLUMNS: &str = "id, name, category, created_at, categorized_at";
|
||||
|
||||
/// Dashboard article search for one interest name.
|
||||
pub fn articles_href(name: &str) -> String {
|
||||
format!(
|
||||
"/dashboard/articles?interest={}",
|
||||
crate::web::encode_component(name)
|
||||
)
|
||||
}
|
||||
|
||||
/// Parse an OPML export for the one-time interests importer.
|
||||
pub fn parse_opml(raw: &str) -> Vec<String> {
|
||||
let mut seen = BTreeSet::new();
|
||||
|
||||
Reference in New Issue
Block a user