[PR #1394] [MERGED] feat: add socratiq directory (excluding node_modules and dist) #9066

Closed
opened 2026-05-03 01:17:50 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/harvard-edge/cs249r_book/pull/1394
Author: @kai4avaya
Created: 4/18/2026
Status: Merged
Merged: 4/24/2026
Merged by: @profvjreddi

Base: devHead: feat/socratiq


📝 Commits (10+)

  • 8190955 feat: add socratiq directory (excluding node_modules and dist)
  • ba8cfcf feat: Integrate SocratiQ interactive widget and update Quarto index
  • c7fcc9d feat: sync SocratiQ source changes and remove legacy bundle
  • 80c5f62 feat: fix SocratiQ re-entry bug and add initialization loader
  • b19b930 fix: address CodeQL security alerts and code quality warnings
  • 1032765 feat: redesign meditation pulse toggle button with label and icon
  • bbe8544 clean: remove orphan editor swap files and duplicate copies
  • 1e12b34 refactor: document SocratiQ canonicals in sync-mirrors.sh
  • c2c4787 fix: address auto-reviewer CodeQL and code-quality warnings
  • 362cf87 fix: restore copy_download.js accidentally deleted in cleanup commit

📊 Changes

189 files changed (+76514 additions, -1381 deletions)

View changed files

book/quarto/tools/scripts/socratiQ/assets/style.css (+1 -0)
📝 book/quarto/tools/scripts/socratiQ/bundle.js (+1662 -1381)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js (+12390 -0)
book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs (+4887 -0)
📝 shared/scripts/sync-mirrors.sh (+4 -0)
socratiq/.gitignore (+3 -0)
socratiq/README.md (+178 -0)
socratiq/favicon.ico (+0 -0)
socratiq/package-lock.json (+3446 -0)
socratiq/package.json (+57 -0)
socratiq/serve.py (+39 -0)
socratiq/src_shadow/configs/client.config.js (+423 -0)
socratiq/src_shadow/configs/db_configs.js (+58 -0)
socratiq/src_shadow/configs/db_configs_one.js (+278 -0)
socratiq/src_shadow/configs/env_configs.js (+43 -0)
socratiq/src_shadow/configs/initial_config_styles.js (+12 -0)
socratiq/src_shadow/cssStyles.js (+1216 -0)
socratiq/src_shadow/index.html (+538 -0)
socratiq/src_shadow/indexHtml.js (+956 -0)
socratiq/src_shadow/js/components/collapsible_buttons/collapsable_buttons.js (+47 -0)

...and 80 more files

📄 Description

Summary
This PR adds the socratiq/ source directory to the repository on a new branch.
It includes all source code, configurations, and assets for the SocratiQ
interactive tool while strictly excluding dependencies and build artifacts.

Area

  • Book (textbook content, figures, exercises)
  • TinyTorch (modules, tests, milestones)
  • StaffML (interview questions, challenges)
  • Kits (hardware labs)
  • Infrastructure (CI/CD, scripts, config)

Changes

  • Created a new feature branch feat/socratiq.
  • Added the socratiq/ directory as a regular folder (removed embedded .git to
    avoid submodule complexity).
  • Implemented a local .gitignore within socratiq/ to prevent node_modules/
    and dist_vite/ from being tracked.
  • Staged and committed 206 source files, including the src_shadow/ logic,
    Vite/Webpack configurations, and assets.

Testing

  • Rendered the book locally (quarto render)
  • Ran tests (pytest tests/)
  • Ran tito module test NN for affected module(s)
  • Manual verification: Verified the commit contents using git ls-tree to
    ensure zero inclusion of node_modules or dist folders. Confirmed the
    directory structure is clean and follows the project's organization.

Related Issues

  • Related to the integration of SocratiQ interactive widgets into the Quarto
    book.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/harvard-edge/cs249r_book/pull/1394 **Author:** [@kai4avaya](https://github.com/kai4avaya) **Created:** 4/18/2026 **Status:** ✅ Merged **Merged:** 4/24/2026 **Merged by:** [@profvjreddi](https://github.com/profvjreddi) **Base:** `dev` ← **Head:** `feat/socratiq` --- ### 📝 Commits (10+) - [`8190955`](https://github.com/harvard-edge/cs249r_book/commit/81909553c3c0b28aed3068b7861219c1da289a2c) feat: add socratiq directory (excluding node_modules and dist) - [`ba8cfcf`](https://github.com/harvard-edge/cs249r_book/commit/ba8cfcf0eaf94a4848852a87c1f15f18667ebe70) feat: Integrate SocratiQ interactive widget and update Quarto index - [`c7fcc9d`](https://github.com/harvard-edge/cs249r_book/commit/c7fcc9d995aa407bf8c64b43eaa784f81f970568) feat: sync SocratiQ source changes and remove legacy bundle - [`80c5f62`](https://github.com/harvard-edge/cs249r_book/commit/80c5f627089a941d3c7f0187e2f903de2c726dd1) feat: fix SocratiQ re-entry bug and add initialization loader - [`b19b930`](https://github.com/harvard-edge/cs249r_book/commit/b19b9306ee49d38f13d8a303a68130537a38f91a) fix: address CodeQL security alerts and code quality warnings - [`1032765`](https://github.com/harvard-edge/cs249r_book/commit/10327653ad1562c1ff6bae8900d7ee48b06ee025) feat: redesign meditation pulse toggle button with label and icon - [`bbe8544`](https://github.com/harvard-edge/cs249r_book/commit/bbe85444e8fe988da47661172f24a068cc8d46e6) clean: remove orphan editor swap files and duplicate copies - [`1e12b34`](https://github.com/harvard-edge/cs249r_book/commit/1e12b3474b1ef28a56907a0a5208d5e0ffd68fcf) refactor: document SocratiQ canonicals in sync-mirrors.sh - [`c2c4787`](https://github.com/harvard-edge/cs249r_book/commit/c2c47875a90452a2fa505e2fd8fb5f6c7f2eefff) fix: address auto-reviewer CodeQL and code-quality warnings - [`362cf87`](https://github.com/harvard-edge/cs249r_book/commit/362cf8787ef518a034fca333c2e0be62d8bb640c) fix: restore copy_download.js accidentally deleted in cleanup commit ### 📊 Changes **189 files changed** (+76514 additions, -1381 deletions) <details> <summary>View changed files</summary> ➕ `book/quarto/tools/scripts/socratiQ/assets/style.css` (+1 -0) 📝 `book/quarto/tools/scripts/socratiQ/bundle.js` (+1662 -1381) ➕ `book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.js` (+12390 -0) ➕ `book/quarto/tools/scripts/socratiQ/collaborative-widget-bridge.umd.cjs` (+4887 -0) 📝 `shared/scripts/sync-mirrors.sh` (+4 -0) ➕ `socratiq/.gitignore` (+3 -0) ➕ `socratiq/README.md` (+178 -0) ➕ `socratiq/favicon.ico` (+0 -0) ➕ `socratiq/package-lock.json` (+3446 -0) ➕ `socratiq/package.json` (+57 -0) ➕ `socratiq/serve.py` (+39 -0) ➕ `socratiq/src_shadow/configs/client.config.js` (+423 -0) ➕ `socratiq/src_shadow/configs/db_configs.js` (+58 -0) ➕ `socratiq/src_shadow/configs/db_configs_one.js` (+278 -0) ➕ `socratiq/src_shadow/configs/env_configs.js` (+43 -0) ➕ `socratiq/src_shadow/configs/initial_config_styles.js` (+12 -0) ➕ `socratiq/src_shadow/cssStyles.js` (+1216 -0) ➕ `socratiq/src_shadow/index.html` (+538 -0) ➕ `socratiq/src_shadow/indexHtml.js` (+956 -0) ➕ `socratiq/src_shadow/js/components/collapsible_buttons/collapsable_buttons.js` (+47 -0) _...and 80 more files_ </details> ### 📄 Description Summary This PR adds the socratiq/ source directory to the repository on a new branch. It includes all source code, configurations, and assets for the SocratiQ interactive tool while strictly excluding dependencies and build artifacts. Area - [ ] Book (textbook content, figures, exercises) - [ ] TinyTorch (modules, tests, milestones) - [ ] StaffML (interview questions, challenges) - [ ] Kits (hardware labs) - [x] Infrastructure (CI/CD, scripts, config) Changes - Created a new feature branch feat/socratiq. - Added the socratiq/ directory as a regular folder (removed embedded .git to avoid submodule complexity). - Implemented a local .gitignore within socratiq/ to prevent node_modules/ and dist_vite/ from being tracked. - Staged and committed 206 source files, including the src_shadow/ logic, Vite/Webpack configurations, and assets. Testing - [ ] Rendered the book locally (quarto render) - [ ] Ran tests (pytest tests/) - [ ] Ran tito module test NN for affected module(s) - [x] Manual verification: Verified the commit contents using git ls-tree to ensure zero inclusion of node_modules or dist folders. Confirmed the directory structure is clean and follows the project's organization. Related Issues - Related to the integration of SocratiQ interactive widgets into the Quarto book. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-03 01:17:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#9066