Evidence Browser Redesign
From confusing tabs to drill-in/drill-out with search
The Problem
Confusing navigation. Three tabs (Sacred Texts, The Proof, Nobel Prizes) with a sub-nav underneath. Users don't know where they are or how to get back.
No search. 80+ entries and no way to find what you're looking for without scrolling through everything.
Flat structure. Sacred Texts dumps 20+ traditions into one scroll. No way to drill into Hinduism vs. Judaism vs. Islam without hunting.
No breadcrumbs. Once you click a sub-nav item, you lose context of where you are in the hierarchy.
The Solution
Drill-in / drill-out hierarchy with breadcrumbs at every level. Click a category to see sub-categories. Click a sub-category to see entries. Breadcrumb lets you jump back to any level instantly.
Live search bar that auto-filters as you type. Matches title and description. Flattens the hierarchy into a filtered result list. Clear to snap back.
Mineral tag filters (sodium, potassium, magnesium, water) that combine with search and hierarchy. Active at every level.
Mockup: Level 0 — Overview
User lands here. Three category cards with counts. Search bar at top.
Evidence Browser — Level 0: Overview
All
Sodium
Potassium
Magnesium
Water
Sacred Texts
56 entries · 20+ traditions
The Proof
24 entries · 2800 BCE – 2024
Nobel Prizes
5 entries · 1901 – 2016
Mockup: Level 1 — Category (Sacred Texts)
User clicked "Sacred Texts." Sub-categories appear as cards. Breadcrumb shows path.
Evidence Browser — Level 1: Sacred Texts
All
Sodium
Potassium
Magnesium
Water
Mesopotamia
6 entries
Egypt
5 entries
Judaism
8 entries
Christianity
5 entries
Islam
5 entries
Hinduism
5 entries
Buddhism
4 entries
Taoism
3 entries
Shinto
3 entries
Sikhism
1 entry
Greek & Roman
5 entries
Norse & Celtic
3 entries
Persian
3 entries
Mesoamerican
3 entries
Indigenous
3 entries
Pacific & African
4 entries
Fasting Traditions
10 entries
Mockup: Level 2 — Sub-Category (Judaism)
User drilled into "Judaism." All entries in that tradition are shown. Breadcrumb has full path.
Evidence Browser — Level 2: Judaism
All
Sodium
Potassium
Magnesium
Water
~1,400 BCE
The Salt Covenant — God's Unbreakable Promise
Berit melach — the covenant of salt. The highest form of binding agreement between God and humanity.
~1,000 BCE
Solomon's Temple — The Bronze Sea
Yam mutzak — cast metal sea holding 44,000 liters of water. The largest ritual water vessel in ancient history.
~600 BCE
Jeremiah — The Fountain of Living Waters
Makor mayim chayyim. God calls Himself the source of living water — and condemns those who dig broken cisterns.
+ 5 more entries
Mockup: Search Active
User typed "autophagy" — hierarchy flattens to matching results with breadcrumb context.
Evidence Browser — Search Results
3 results
Sacred Texts › Fasting Traditions
Cross-Cultural
The Universal Pattern — Every Tradition Knows
Fasting activates autophagy. Every major tradition independently discovered that not eating heals.
The Proof › Modern Research
2019
1,422-Person Fasting Study
Wilhelmi de Toledo et al. confirmed autophagy activation, metabolic benefits in PLOS ONE.
Nobel Prizes
2016
Yoshinori Ohsumi — Mechanisms of Autophagy
Nobel Prize in Medicine for discovering the mechanisms of autophagy.
Mockup: Mineral Filter + Search Combined
User selected "Magnesium" filter and typed "eclampsia" — both active simultaneously.
Evidence Browser — Filtered + Search
All
Sodium
Potassium
Magnesium
Water
2 results
The Proof › Clinical Evidence
1992
LIMIT-2 — Magnesium for Heart Attacks
IV magnesium reduced mortality 24% in acute MI. Pre-eclampsia research parallels.
The Proof › Clinical Evidence
2002
Magpie Trial — 10,141 Women
Magnesium sulfate: 58% lower eclampsia risk, 45% lower maternal mortality.
Data Architecture
Each entry gets tagged with category, sub-category, and minerals as data attributes. The JS reads these to build the hierarchy dynamically.
<div class="entry"
data-category="sacred"
data-subcategory="judaism"
data-minerals="sodium">
<div class="entry-date">~1,400 BCE</div>
<div class="entry-title">The Salt Covenant</div>
<div class="entry-body">...</div>
<div class="entry-source">...</div>
</div>
// JS builds hierarchy from data attributes:
categories = unique data-category values → Level 0 cards
subcategories = unique data-subcategory within category → Level 1 cards
entries = all entries in subcategory → Level 2 list
search = fuzzy match on title + body + source → flat list
Implementation
Phase 1
Tag Existing Entries
- Add data-category, data-subcategory, data-minerals attributes to all 80+ entries
- No visible changes yet — just data preparation
- Verify every entry is tagged correctly
Phase 2
Breadcrumb + Drill-In/Out
- Replace tab/sub-nav system with hierarchical navigation
- Breadcrumb bar always visible below search
- Category cards (Level 0) → Sub-category cards (Level 1) → Entry list (Level 2)
- Click breadcrumb to jump back to any level
Phase 3
Live Search
- Search bar at top, always visible
- Filters as you type — no submit button needed
- Matches against entry-title and entry-body text
- When search is active: hierarchy flattens, results show with breadcrumb context
- Highlight matching text in results
- Clear search to snap back to current hierarchy position
Phase 4
Mineral Filters
- Keep existing sodium/potassium/magnesium/water buttons
- Combinable with search and hierarchy position
- Active filter persists across drill-in/out
- Result count updates live
Constraints
- Vanilla JS — no frameworks, no build tools, no npm
- Single file — all JS inline in the-evidence.html
- Works on cheap phones — no heavy DOM manipulation
- Dark theme — matches existing site design system
- Keyboard accessible — search focuses on page load, breadcrumbs tabbable
- URL hash state — #sacred/judaism deep-links work, back button navigates hierarchy