Skip to content

Dashboard Phase 1 refresh#31

Draft
Protocol-zero-0 wants to merge 3 commits into
masterfrom
feat/dashboard-refresh
Draft

Dashboard Phase 1 refresh#31
Protocol-zero-0 wants to merge 3 commits into
masterfrom
feat/dashboard-refresh

Conversation

@Protocol-zero-0
Copy link
Copy Markdown
Contributor

Changed files

  • web/templates/index.html
  • web/static/js/app.js
  • web/static/js/i18n.js
  • web/static/css/style.css
  • web/app.py
  • tests/test_web_app.py

Summary

  • Adds Phase 1 dashboard self-tests for progressive loading, i18n key parity, legacy label removal, folded advanced tabs, dead-code cleanup, and route health.
  • Adds native JS i18n with en/zh dictionaries, navigator.language defaulting, localStorage language persistence, and data-i18n static text application.
  • Keeps the dashboard on the existing Flask + native JS stack while reducing the main sidebar to six primary tabs and moving process views into a collapsed Advanced section.
  • Changes initial dashboard loading to current Overview data first, then idle-loads the overview graph and prefetches inactive tabs into cache.
  • Removes the overwritten Chinese _planned_tracks implementation and the obsolete Chinese renderExperimentGroups function.

Acceptance commands and results

  • .venv/bin/python -m pytest tests/test_web_app.py -q -> 12 passed in 3.63s
  • .venv/bin/python -c "import web.app; print('import ok')" -> import ok
  • DEEPGRAPH_DB_PATH=/tmp/deepgraph-dashboard-refresh-test.db FLASK_APP=web.app .venv/bin/flask run --host 127.0.0.1 --port 5099; then:
    • curl -s -o /tmp/deepgraph-root.out -w "%{http_code}" http://127.0.0.1:5099/ -> 200
    • curl -s -o /tmp/deepgraph-stats.out -w "%{http_code}" http://127.0.0.1:5099/api/stats -> 200
  • rg -n "Paper DB|Pipeline Papers|Paper Ideas|Method x Dataset|Method × Dataset|Taxonomy Map|Opportunity Map|Deep Insight|Deep Insights|IDEA #|RUN #|Main run|Research Paper Generation|Generated Papers|Complete Papers|\bforge\b" web/templates/index.html web/static/js/app.js web/static/js/agenda.js web/static/js/manuscript_routing.js -> no matches
  • .venv/bin/python -m py_compile web/app.py -> passed
  • git diff --check -> passed

Redeploy steps

  1. On host: git fetch && git checkout feat/dashboard-refresh
  2. Leave .env and database untouched; existing configuration and data are preserved.
  3. sudo systemctl restart deepgraph-web
  4. Verify https://deepgraph.sora2.today has a faster first paint, language switching works, and terminology is clean.

Known non-goals

@Protocol-zero-0
Copy link
Copy Markdown
Contributor Author

Follow-up for issue #30 latest comment is implemented on feat/dashboard-refresh.

Changed files:

  • web/templates/index.html
  • web/static/js/app.js
  • web/static/js/i18n.js
  • web/static/js/agenda.js
  • web/static/js/manuscript_routing.js
  • tests/test_web_app.py

Acceptance results:

  • .venv/bin/python -m pytest tests/test_web_app.py -q -> 12 passed in 3.38s
  • .venv/bin/python -c "import web.app; print('import ok')" -> import ok
  • rg -n "Taxonomy Nodes|experiment ideas|PARADIGM|DISCOVERY" web/templates/index.html web/static/js/app.js web/static/js/agenda.js web/static/js/manuscript_routing.js -> no matches
  • i18n key parity check -> en=202 zh=202 equal=True
  • node --check web/static/js/app.js -> passed
  • node --check web/static/js/i18n.js -> passed
  • node --check web/static/js/agenda.js -> passed
  • node --check web/static/js/manuscript_routing.js -> passed
  • Flask endpoint check with DEEPGRAPH_DB_PATH=/tmp/deepgraph-dashboard-refresh-followup.db FLASK_APP=web.app .venv/bin/flask run --host 127.0.0.1 --port 5100:
    • curl -s -o /tmp/deepgraph-followup-root.out -w "%{http_code}" http://127.0.0.1:5100/ -> 200
    • curl -s -o /tmp/deepgraph-followup-stats.out -w "%{http_code}" http://127.0.0.1:5100/api/stats -> 200
  • git diff --check -> passed

Notes:

  • No backend API response fields or semantics were changed.
  • No tabs/features were removed.
  • No frontend framework was introduced.

@Protocol-zero-0
Copy link
Copy Markdown
Contributor Author

i18n follow-up completed on feat/dashboard-refresh at a80eaac.

Changed files:

  • web/static/js/app.js
  • web/templates/index.html
  • web/static/js/agenda.js
  • web/static/js/manuscript_routing.js
  • web/static/js/i18n.js
  • tests/test_web_app.py

Validation:

  • git pull --ff-only origin feat/dashboard-refresh -> already up to date before edits
  • .venv/bin/python -m pytest tests/test_web_app.py -q -> 13 passed in 3.43s
  • .venv/bin/python -c "import web.app; print('import ok')" -> import ok
  • node --check web/static/js/app.js -> pass
  • node --check web/static/js/agenda.js -> pass
  • node --check web/static/js/manuscript_routing.js -> pass
  • node --check web/static/js/i18n.js -> pass
  • independent i18n key alignment check -> i18n keys aligned 402
  • residual grep over the 4 target files for the known labels and No ... yet pattern -> no matches
  • Flask smoke with DEEPGRAPH_DATABASE_URL= and DEEPGRAPH_DB_PATH=/tmp/deepgraph-i18n-check.db on 127.0.0.1:51231 -> / 200, /api/stats 200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant