Code section: render directory markdown files as tabs (README first) #170
Labels
No labels
actions
bug
cli
duplicate
enhancement
fork
forum
git storage
help wanted
insights
invalid
issues
moderation
oidc
ownership transfer
packages
pr/merge protection rules
projects
pull requests
question
releases
sponsorships
tags
webhooks
wiki
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crueber/walhub#170
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code section: render directory markdown files as tabs (README first)
In the code section (Tree view), below the file list, automatically render the directory's markdown files — each as a tab.
README.md(case-insensitive match:readme.md/README.MD/etc.) is always the first tab and shows by default; the rest follow in alphabetical order (by filename).Scope decisions for the implementer
*.md/*.markdownfiles in the CURRENT directory listing (not recursive; subdirectories' docs stay one click away). Render the section only when ≥1 markdown file exists.#anchor is a plus if cheap); content rendered through the existing markdown-lite + sanitizer pipeline (same as blob MD preview).too_largecap behavior (don't render megabytes of markdown).Acceptance criteria
node --testgreen; browser check (dir with README + several .md, dir with none, case variants) both themes, zero console errors; no new deps.Fixed by #171 (#171) — markdown tabs in the Tree view, README-first, client-side tab state, existing markdown-lite + sanitizer pipeline, blob too_large cap reused, special-char-safe anchors/paths. node tests 359/359 green; browser CDP 12/12, zero console errors, dark + light.
Review of PR #171 (fix/issue-170, commit
f80d59f+ review wording tweaka3bf2c4). Verified in scratch worktree: node suite 359/359 pass (incl. doctabs.test.js 14/14), vite build OK (122 modules) + esbuild SDK bundle OK. No browser drive (node tests + reasoning only, per instructions).PASS (all checklist items):
a3bf2c4): docs/comment now say 'zero round trips for the pre-filled probed readme, one per newly opened tab' (a non-probed default tab does fetch once on mount).Small fix pushed to origin/fix/issue-170 (
a3bf2c4, comment + doc wording only, suite re-run green). No structural issues. MERGE RECOMMENDATION: ready to merge.Fixed by PR #171 incl. review doc fixup (README-first tabs, lazy shared-cache fetch, encoded anchors; 359/359 node tests), merged. Closing.