Skip to content

⚡ Add lazy loading for large PodDrillDown tab components#13065

Merged
kubestellar-hive[bot] merged 1 commit into
mainfrom
fix/13058
May 11, 2026
Merged

⚡ Add lazy loading for large PodDrillDown tab components#13065
kubestellar-hive[bot] merged 1 commit into
mainfrom
fix/13058

Conversation

@kubestellar-hive
Copy link
Copy Markdown
Contributor

Fixes #13058

Summary

Added React.lazy() loading for large tab components within PodDrillDown to reduce initial bundle size and improve performance.

Changes:

  • Converted PodLabelsTab (459 lines), PodRelatedTab (368 lines), PodOutputTab, and PodAiAnalysis to lazy imports using safeLazy
  • Added Suspense boundaries with loading spinner fallback for each lazy-loaded tab component
  • Tab components are only rendered when selected, making them ideal candidates for lazy loading

This improves the initial bundle size of PodDrillDown (1935 lines) and defers loading of large sub-components until needed.

- Convert PodLabelsTab, PodRelatedTab, PodOutputTab, and PodAiAnalysis to lazy imports using safeLazy
- Add Suspense boundaries with loading spinner fallback for each lazy tab component
- Improves initial bundle size of PodDrillDown (1935 lines) by deferring large tab components

These tab components are only rendered when a specific tab is selected, making them ideal candidates for lazy loading to improve performance.

Signed-off-by: Copilot <copilot@github.com>
@kubestellar-hive kubestellar-hive Bot requested review from Copilot and removed request for Copilot May 11, 2026 08:53
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label May 11, 2026
@kubestellar-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign eeshaansa for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@github-actions
Copy link
Copy Markdown
Contributor

👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 11, 2026

Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit 9f8ea65
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/6a0198fc765860000854fe11
😎 Deploy Preview https://deploy-preview-13065.console-deploy-preview.kubestellar.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kubestellar-prow kubestellar-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 11, 2026
@github-actions github-actions Bot added ai-generated Pull request generated by AI copilot tier/2-standard labels May 11, 2026
@kubestellar-hive kubestellar-hive Bot merged commit c329177 into main May 11, 2026
36 of 37 checks passed
@kubestellar-prow kubestellar-prow Bot deleted the fix/13058 branch May 11, 2026 09:05
@github-actions
Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

@github-actions
Copy link
Copy Markdown
Contributor

❌ Post-Merge Verification: failed

Commit: c3291776471545d9b9b8252461497832ae53e7d1
Specs run: DrillDown.spec.ts smoke.spec.ts
Report: https://github.com/kubestellar/console/actions/runs/25660821003

@github-actions
Copy link
Copy Markdown
Contributor

Post-merge build verification passed

Both Go and frontend builds compiled successfully against merge commit c3291776471545d9b9b8252461497832ae53e7d1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Pull request generated by AI copilot dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tier/2-standard

0 participants