Skip to content

Refactor dds_web.js into import, core, solve, and UI scripts - #385

Open
tameware wants to merge 2 commits into
dds-bridge:developfrom
tameware:refactor-dds_web
Open

tameware wants to merge 2 commits into
dds-bridge:developfrom
tameware:refactor-dds_web

Conversation

@tameware

@tameware tameware commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Per a suggestion from @tzimnoch

Summary

  • Extract PBN/LIN/DLM/sol parsers into dds_web_deal_import.js (Refactor dds_web.js #382)
  • Split remaining glue into dds_web_core.js (deal model), dds_web_solve.js (WASM queue / DD table / leads), and dds_web.js (DOM UI)
  • Wire HTML, GitHub Pages staging, Bazel data, and Node tests for the new classic-script load order

Test plan

  • bazelisk test //web:dds_web_js_test //web:dds_web_html_test //web:stage_github_pages_test
  • Smoke node --test web/tests/dds_web_test.mjs with the four JS env paths set
  • Open DDS Web locally and confirm import + sample deal + solve still work

Made with Cursor

tameware and others added 2 commits September 15, 2026 11:12
Separates PBN/LIN/DLM/sol loading from UI and solver glue so the main page script stays focused (dds-bridge#382).

Co-authored-by: Cursor <cursoragent@cursor.com>
Keeps file parsers, Card/holdings, WASM queue, and DOM wiring in separate classic scripts so each concern stays clear (dds-bridge#382).

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The refactor and associated loading, deployment, test, and documentation updates have no unresolved blocking issues.

Pull request overview

Refactors DDS Web into separate import, core, solver, and UI scripts while updating loading, deployment, tests, and documentation.

Changes:

  • Extracts parser, deal-model, and solver logic.
  • Updates classic-script loading and deployment assets.
  • Extends tests and documents the new architecture.
File summaries
File Summary
web/tests/web_site.py Test-site asset list
web/tests/test_web_html.py Script-order checks
web/tests/test_stage_github_pages.py Deployment checks
web/tests/test_dds_web_js.py Node test paths
web/tests/dds_web_test.mjs Layer-loading and behavior tests
web/stage_github_pages.py GitHub Pages assets
web/dds_web.js UI logic
web/dds_web.html Classic-script load order
web/dds_web_solve.js Solver and WASM logic
web/dds_web_deal_import.js Deal parsers
web/dds_web_core.js Deal model and helpers
web/BUILD.bazel Build and test data
specs/web.md Architecture documentation
Review details
  • Files reviewed: 13/13 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tameware tameware self-assigned this Sep 15, 2026
@tameware tameware added the Clean Copilot review Copilot reviewed and had neither new comments nor new suppressed comments. label Sep 15, 2026
@tameware
tameware requested a review from tzimnoch September 15, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Clean Copilot review Copilot reviewed and had neither new comments nor new suppressed comments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants