fix: include txt/pdf raw sources in queue, match dark accent to theme

- readPipeline no longer filters raw/sources to .md only; CLAUDE.md
  documents txt and pdf as valid raw source types, and hiding them from
  the queue silently was the same invisibility bug the dashboard exists
  to remove.
- Dark-mode accent now tracks the installed tesanti theme (same signal
  red, no base-color lift) instead of contradicting it; status colors
  (ok/warn/danger) keep their lifted dark values for AA contrast on
  small text, per design-system separation of status tokens from the
  brand accent.
This commit is contained in:
meels
2026-07-28 13:39:18 +02:00
parent 1045082df6
commit 3e28180f8b
2 changed files with 20 additions and 5 deletions

View File

@@ -76,6 +76,10 @@ function parseConfig(source) {
return cfg;
}
// Source types CLAUDE.md documents for raw/sources. Anything else in that
// folder is not a source and stays out of the queue.
const RAW_EXTENSIONS = new Set(["md", "txt", "pdf"]);
const ICONS = {
terminal: "M4 17l6-6-6-6M12 19h8",
check: "M20 6 9 17l-5-5",
@@ -175,8 +179,12 @@ class WebinarDashPlugin extends PluginBase {
const rawDir = cfg.rawDir.replace(/\/+$/, "") + "/";
const wikiDir = cfg.wikiSourceDir.replace(/\/+$/, "") + "/";
// CLAUDE.md documents raw/sources as holding "markdown/text/pdf exports".
// Allow-listing only "md" would hide the others from the queue with no
// warning — the same silent-invisibility failure this dashboard exists to
// remove. Wiki source pages below stay markdown-only; those really are .md.
const rawFiles = all
.filter((f) => f.path.startsWith(rawDir) && f.extension === "md")
.filter((f) => f.path.startsWith(rawDir) && RAW_EXTENSIONS.has(f.extension))
.map((f) => ({ path: f.path, name: f.name, size: f.stat.size }));
const pageFiles = all.filter((f) => f.path.startsWith(wikiDir) && f.extension === "md");