Skip to content

Conversation

@ethankonk
Copy link
Contributor

No description provided.

@socket-security
Copy link

socket-security bot commented Feb 6, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​noble/​ed25519@​3.0.010010010083100
Added@​noble/​hashes@​2.0.110010010085100

View full report

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request migrates the export iframe from a standalone HTML/JS approach to a webpack-based build system, modernizing the codebase and improving modularity. The changes align the export iframe with the existing webpack-based architecture used by other iframes in the project (import and export-and-sign).

Changes:

  • Introduced webpack build configuration with Babel transpilation, CSS extraction, and code splitting
  • Added support for Bitcoin WIF and Sui Bech32 key encoding formats to shared turnkey-core module
  • Restructured export iframe code into modular ES6 imports with separate CSS and HTML templates
  • Updated build pipeline in Dockerfile to compile export iframe alongside other webpack-based modules

Reviewed changes

Copilot reviewed 13 out of 30 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
shared/turnkey-core.js Added base58CheckEncode function and new key encoding formats (BITCOIN_MAINNET_WIF, BITCOIN_TESTNET_WIF, SUI_BECH32) to support additional blockchain ecosystems
nginx.conf Updated export iframe routing configuration to serve webpack-built assets
export/webpack.config.js New webpack configuration with Babel, CSS extraction, CSP settings, and code splitting
export/src/turnkey-core.js New module that wraps and re-exports shared functions with export-specific utilities
export/src/styles.css Extracted CSS styles from inline HTML to separate stylesheet
export/src/index.template.html Clean HTML template without embedded JavaScript
export/src/index.js New entry point with modularized event handlers and HPKE decryption logic
export/package.json Added webpack toolchain dependencies and updated build scripts
export/noble-ed25519.js Removed vendored library in favor of npm package
export/index.test.js Updated test setup to work with new modular structure
export/index.template.html Removed monolithic HTML file with embedded scripts
Dockerfile Added export module build step to multi-stage build process
dist/* Generated webpack build artifacts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

server {
listen 8081;
root /usr/share/nginx;
root /usr/share/nginx/templated/export;
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

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

The nginx configuration sets the root to /usr/share/nginx/templated/export, but the Dockerfile copies the built export files to /usr/share/nginx/export (line 41). This path mismatch will cause nginx to fail serving the export iframe. Either change the Dockerfile to copy to /usr/share/nginx/templated/export or update this nginx root directive to /usr/share/nginx/export.

Suggested change
root /usr/share/nginx/templated/export;
root /usr/share/nginx/export;

Copilot uses AI. Check for mistakes.
@ethankonk ethankonk force-pushed the ethan/webpackify-export branch from ed8c91c to 0ada54c Compare February 6, 2026 18:49
@ethankonk ethankonk force-pushed the ethan/webpackify-export branch from 0ada54c to b6402c6 Compare February 6, 2026 18:52
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