From 89b6b6c41abd6e754e9a52fdb69d5030dba4c79a Mon Sep 17 00:00:00 2001 From: Hananoshika Yomaru Date: Wed, 20 May 2026 23:33:43 -0700 Subject: [PATCH] Enhance catalog functionality and accessibility: Add a subject selection dropdown in the catalog sidebar for improved navigation. Update the SKILL.md to include accessibility guidelines for mobile compatibility. Refactor the CatalogMermaidView component to streamline zoom and pan functionalities, removing unused SVG pan-zoom integration. Update the catalog-to-mermaid logic to include live node href mappings for better interactivity. Adjust styles for the catalog subject select to ensure consistent display across devices. --- .agents/skills/ofb/SKILL.md | 1 + .../linear-inequalities-one-unknown/_index.md | 10 + frontend/src/components/catalog-app.tsx | 10 + .../src/components/catalog-mermaid-view.tsx | 683 ++++++++---------- frontend/src/lib/catalog-to-mermaid.ts | 8 +- frontend/src/main.tsx | 6 - themes/openfreebooks/sass/_catalog.scss | 46 +- themes/openfreebooks/sass/_contributing.scss | 230 ------ .../partials/contributing-content.html | 21 - 9 files changed, 383 insertions(+), 632 deletions(-) create mode 100644 content/math/linear-inequalities-one-unknown/_index.md diff --git a/.agents/skills/ofb/SKILL.md b/.agents/skills/ofb/SKILL.md index 9ee9dd5..75e2cf3 100644 --- a/.agents/skills/ofb/SKILL.md +++ b/.agents/skills/ofb/SKILL.md @@ -49,6 +49,7 @@ bun run build # production: JS + Zola + pagefind → public/ | Chapter URLs | `/{subjectId}/{chapter-slug}/` (e.g. `/math/quadratic-equations/`) | | Map | Mermaid DAG view (`?view=tree`) driven by `graph.edges` | | Graph | `graph.edges` must be **acyclic**; builder throws on cycles | +| Accessibility | Avoid decorative characters that may render as emoji on mobile. Prefer broadly supported symbols/text so desktop and mobile stay visually consistent. | ## Common tasks → where to edit diff --git a/content/math/linear-inequalities-one-unknown/_index.md b/content/math/linear-inequalities-one-unknown/_index.md new file mode 100644 index 0000000..57dc924 --- /dev/null +++ b/content/math/linear-inequalities-one-unknown/_index.md @@ -0,0 +1,10 @@ ++++ +title = "Linear inequalities in one unknown" +description = "Solve, represent, and apply linear inequalities in one unknown using number lines and interval notation." +template = "chapter.html" +weight = 11 +[extra] +subject = "math" +chapter_id = "linear-inequalities-one-unknown" +strand = "Number & Algebra" ++++ diff --git a/frontend/src/components/catalog-app.tsx b/frontend/src/components/catalog-app.tsx index 4fce433..c43ee80 100644 --- a/frontend/src/components/catalog-app.tsx +++ b/frontend/src/components/catalog-app.tsx @@ -199,6 +199,16 @@ export function CatalogApp() {

{data.subtitle}