preview: simpler Modules screen, catalogue as a compact list with categories

- Header is just "Modules" with "Add from a link" (the GitHub URL bar is folded
  away until asked for) and a menu for builds/logs, build tools and the
  diagnostics export. The build-tools bar shows only when something is missing.
- Two tabs (Installed, Catalog) styled like the settings page.
- Catalogue: one list of rows (name, owner, category, stars, one action); CoA's
  own modules first. Compatibility and sort are drop-downs; 20 functional
  categories as chips with counts. "Checked by CoA" is the curated list only.
- Categories: owner's reviewed list (181 modules, high/medium confidence) plus
  keyword rules for every other module (coa-module-categories.json).
- Catalogue statuses come from the current overlay on every read (a cached copy
  kept the old Verified marks), and no more made-up entries for overlay rules
  the public catalogue does not list (fake AGPL-3.0, 0 stars, duplicate mod-cfbg).
- Window size, position and maximized state persist (tauri-plugin-window-state,
  visibility left to the app).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ДмитрийandClaude Opus 5.5 committed 2026-11-07 10:05:58 +05:00
1 parent b647e62ca6
commit 3987f1b2ff
8 files changed
+1088 -743

No files matched your search

@@ -0,0 +1,23 @@
//! How the module categories fall on a real catalogue: counts per category and a few modules of each.
//! usage: catalogue_categories <catalogue.json downloaded from azerothcore.org>
fn main() {
let path = std::env::args().nth(1).expect("usage: catalogue_categories <catalogue.json>");
let raw: coa_core::catalogue::OfficialCatalogueRaw =
serde_json::from_slice(&std::fs::read(path).unwrap()).unwrap();
let overlay = coa_core::catalogue::load_coa_overlay(None);
let items = coa_core::catalogue::normalize_catalogue(&raw, &overlay);
let mut by: std::collections::BTreeMap<String, Vec<(u32, String, String)>> = Default::default();
for i in &items {
let c = coa_core::catalogue::categorize(&i.full_name, &i.name, &i.description, &i.topics);
by.entry(c).or_default().push((i.stars, i.full_name.clone(), i.description.chars().take(70).collect()));
}
println!("modules: {}", items.len());
for c in coa_core::catalogue::categories() {
let mut list = by.remove(&c.code).unwrap_or_default();
list.sort_by(|a, b| b.0.cmp(&a.0));
println!("\n== {} ({}) {}", c.code, c.ru, list.len());
for (s, n, d) in list.iter().take(6) {
println!(" {s:>5} {n:<45} {d}");
}
}
}