Skip to content

Package all js libs#5481

Open
gcgoncalves wants to merge 6 commits into
mainfrom
packaje-ALL-js-libs
Open

Package all js libs#5481
gcgoncalves wants to merge 6 commits into
mainfrom
packaje-ALL-js-libs

Conversation

@gcgoncalves

@gcgoncalves gcgoncalves commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Pull Request

🔗 Related Issue

Closes https://github.ibm.com/contextforge-org/internal_issues/issues/387


📝 Summary

Packages all JS packages, and then chunks the package to prevent a massive bundle.

📏 Reviewability

  • This PR has one clear purpose
  • The linked issue is not labeled triage
  • Unrelated bugs or improvements are tracked in separate issues/PRs
  • Tests are included with the code they validate
  • If AI-assisted, I understand and can explain the generated changes

🏷️ Type of Change

  • Bug fix
  • Feature / Enhancement
  • Documentation
  • Refactor
  • Chore (deps, CI, tooling)
  • Other (describe below)

🧪 Verification

Run make build-ui dev then test the app on localhost. Make sure there are no errors on the browser console.

Check Command Status
Lint suite make lint
Unit tests make test
Coverage ≥ 80% make coverage

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • Tests added/updated for changes
  • Documentation updated (if applicable)
  • No secrets or credentials committed

@gcgoncalves gcgoncalves force-pushed the packaje-ALL-js-libs branch from 45c9400 to 8faa479 Compare July 2, 2026 14:53
@gcgoncalves gcgoncalves changed the title Packaje all js libs Package all js libs Jul 2, 2026
@gcgoncalves gcgoncalves marked this pull request as ready for review July 2, 2026 15:45
@gcgoncalves gcgoncalves requested review from marekdano and vishu-bh July 2, 2026 15:47
window.htmxConfig.inlineScriptNonce = "{{ csp_nonce(request) }}";
</script>
<script defer src="{{ root_path }}/static/{{ bundle_js }}"></script>
<script type="module" src="{{ root_path }}/static/{{ bundle_js }}"></script>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Since this PR removes the vendored asset download/build path, I think the ui_airgapped branch here may need to be updated too. It still references /static/vendor/..., so offline mode appears to depend on files that is no longer produced.

@cafalchio cafalchio Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could you also update the packages in this PR? Please?

npm update
npm audit
npm audit fix

Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
@gcgoncalves gcgoncalves force-pushed the packaje-ALL-js-libs branch from 035aaec to f541c55 Compare July 3, 2026 15:00
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.

3 participants