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");
|
||||
|
||||
15
.obsidian/plugins/webinar-dash/styles.css
vendored
15
.obsidian/plugins/webinar-dash/styles.css
vendored
@@ -40,12 +40,19 @@
|
||||
--wd-border: var(--wd-ink-700);
|
||||
--wd-border-strong: #b8b8b8;
|
||||
--wd-border-subtle: #161616;
|
||||
--wd-accent: #ff4a3d;
|
||||
--wd-accent-press: #ff6d62;
|
||||
--wd-accent-on: #0a0a0a;
|
||||
/* Accent tracks the installed theme at .obsidian/themes/tesanti/theme.css,
|
||||
whose dark section reads "Black canvas, same signal red": --accent-h/-s/-l
|
||||
are declared once at :root and never redeclared under .theme-dark, and only
|
||||
the hover state lifts (#c31c14 light, #ff4d43 dark). Match that exactly. */
|
||||
--wd-accent: var(--wd-red-500);
|
||||
--wd-accent-press: #ff4d43;
|
||||
--wd-accent-on: #ffffff;
|
||||
/* Status tokens are separate from the brand accent by design-system rule, and
|
||||
here they carry small text in a dense table. #e1261c on near-black is about
|
||||
3.8:1, under AA for small text, so these lift where the accent does not. */
|
||||
--wd-ok: #2fbf6a;
|
||||
--wd-warn: #e0a516;
|
||||
--wd-danger: #ff4a3d;
|
||||
--wd-danger: #ff5c50;
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
|
||||
Reference in New Issue
Block a user