[FEATURE]: Prerender frontend to static HTML so page is readable with JavaScript disabled
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- html, javascript, playwright
- Domain
- accessibility, frontend, web-dev
Research direction
Start by reviewing PR #265 and the open follow-up PR #347, then inspect the frontend build setup and its Playwright tests. Determine how the report page is rendered and built, and verify that the generated dist/index.html contains the report and remains readable with JavaScript disabled while interactive controls work when enabled.
Written by the indexing model from the issue text.
Description
Summary
This is a follow-up to PR #265, as noted in the maintainer review by @ryoari:
With JavaScript turned off, the page is blank. Prerendering the page to static HTML would fix this.
Problem
The frontend site merged in #265 is currently a client-rendered single-page application. When JavaScript is disabled in the browser, the page displays a blank screen because the HTML shell only contains an empty root mount point (<div id="root"></div>).
The site is intended to serve as a readable research report and evidence record. Readers browsing with JavaScript disabled, as well as search engines and web archivers, should be able to view the complete report text, evidence tables, verification figures, and site structure without requiring client-side script execution.
Proposed Solution
Prerender the frontend to static HTML during the build process:
- Execute static prerendering at build time so that
dist/index.htmlcontains the complete HTML markup for the page. - Hydrate the prerendered HTML when JavaScript is enabled so interactive controls (e.g., theme toggle, details disclosure, copy buttons) continue to work seamlessly.
- Verify that when JavaScript is disabled, the full report content and evidence are visible and accessible.
- Add a Playwright or browser test to ensure the page remains functional and readable with JavaScript disabled.
References
- Pull Request #265: https://github.com/AOSSIE-Org/OpenVerifiableLLM/pull/265
Update
Implemented in #347. Beyond the plan above:
- The first client render matches the prerendered HTML for every saved theme, so hydration doesn't fail for readers with dark mode saved.
- If
evidence.jsoncan't be fetched, the prerendered report stays up; evidence that fails validation still shows the error. - Tests cover the page with JavaScript off, hydration with each saved theme, and both fetch cases.
- Dominant language
- Python
- Stars
- 27
- Forks
- 72
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 45
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/OpenVerifiableLLM
-
[BUG]: ovl.py verify --weights crashes with AttributeError on checkpoint .pt filesPossibly taken @Anurag1428 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/OpenVerifiableLLM#387 · 1 comment ·
Maintainers usually reply within 1 day
-
[BUG]: verify_segment accepts empty, wrong-phase, or non-positive fork exclusions as MATCHPossibly taken @Arnav0107 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/OpenVerifiableLLM#385 · 3 comments ·
Maintainers usually reply within 1 day
-
[BUG]: preparation.lock install fails on macOSPossibly taken @darshith2527-sketch claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AOSSIE-Org/OpenVerifiableLLM#357 · 3 comments ·
Maintainers usually reply within 1 day
-
[BUG]: Forked runs omit timestamps for inherited chain entriesPossibly taken @pavithra-r06 claimed this 9 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AOSSIE-Org/OpenVerifiableLLM#334 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
[BUG]: review_ckpt.py passes a run that has .pt files no chain entry coversPossibly taken @arshil42 claimed this 9 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/OpenVerifiableLLM#332 · 4 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in AOSSIE-Org/OpenVerifiableLLM
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
bad-antics/lateralus-lang#1140 ·
Maintainers usually reply within 4 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
fixture good first issue help wanted vendor:cisco
Difficulty 1/5 1-3 hours Newbie friendliness 85/100