Skip to content

Defer node popover data fetches to open-time#2299

Merged
shangyian merged 1 commit into
DataJunction:mainfrom
shangyian:perf/ui-clientcode-lazy-fetch
Jul 5, 2026
Merged

Defer node popover data fetches to open-time#2299
shangyian merged 1 commit into
DataJunction:mainfrom
shangyian:perf/ui-clientcode-lazy-fetch

Conversation

@shangyian

Copy link
Copy Markdown
Collaborator

Summary

ClientCodePopover (for client code) and AddMaterializationPopover fetched on mount but only use the data inside the closed-by-default popover. Fetch on first open instead to remove ~6-8 redundant server calls per node-page load and a materializationInfo call per materialization-tab load.

Test Plan

  • PR has an associated issue: #
  • make check passes
  • make test shows 100% unit test coverage

Deployment Plan

ClientCodePopover (clientCode) and AddMaterializationPopover (materializationInfo) fetched on mount but only use the data inside the closed-by-default popover. Fetch on first open instead — removes ~6-8 redundant /new_node calls per node-page load (LCP 984->908ms) and a materializationInfo call per materialization-tab load.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 5, 2026

Copy link
Copy Markdown

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 5d0c722
🔍 Latest deploy log https://app.netlify.com/projects/thriving-cassata-78ae72/deploys/6a4ab36a098c1a0008b937dd

@shangyian shangyian marked this pull request as ready for review July 5, 2026 19:41
@shangyian shangyian merged commit 14d17dd into DataJunction:main Jul 5, 2026
21 checks passed
@shangyian shangyian deleted the perf/ui-clientcode-lazy-fetch branch July 5, 2026 19:46
@shangyian shangyian restored the perf/ui-clientcode-lazy-fetch branch July 6, 2026 00:53
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