chore: temp integration of advanced charts - #45271
sahar-fehri wants to merge 2 commits into
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/extension-platform (1 files, +5 -0)
👨🔧 @itsyoboieltr (1 files, +5 -0)
|
| * @param options - Widget construction options (datafeed, formatters, etc.). | ||
| * @returns The constructed TradingView widget. | ||
| */ | ||
| function createChartWidget(config, options) { |
There was a problem hiding this comment.
This chartLogic.iife.js is the compiled IIFE of the shared @metamask/advanced-chart-core engine, hand-copied from mobile's build output just to prototype the extension TDP integration. The extension isn't wired to core — there's no dependency and nothing rebuilds this file; it exists only for this temporary spike.
createChartWidget here is the last line of our code before it hands off to TradingView's proprietary charting_library.js (new TvWidget(...)), which is where the opaque-origin SecurityError is thrown
Follow-up: replace this copy by adding @metamask/advanced-chart-core as a real dependency and bundling it via webpack (like mobile) MetaMask/core#9762
Builds ready [0f72070]
⚡ Performance Benchmarks (Total: 🟢 11 pass · 🟡 10 warn · 🔴 3 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [5ba767f]
⚡ Performance Benchmarks (Total: 🟢 13 pass · 🟡 9 warn · 🔴 2 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|

Description
Changelog
CHANGELOG entry:
Related issues
Fixes:
Related: #45233
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist