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:
10
.obsidian/plugins/webinar-dash/main.js
vendored
10
.obsidian/plugins/webinar-dash/main.js
vendored
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user