-
Notifications
You must be signed in to change notification settings - Fork 420
Fix: Selected assets count not updating in Imported tab #6842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughThe Changes
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
🔇 Additional comments (1)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Comment |
🎨 Storybook Build Status✅ Build completed successfully! ⏰ Completed at: 11/23/2025, 08:28:42 AM UTC 🔗 Links🎉 Your Storybook is ready for review! |
🎭 Playwright Test Results⏰ Completed at: 11/23/2025, 08:39:21 AM UTC 📈 Summary
📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
Bundle Size ReportSummary
Category Glance Per-category breakdownApp Entry Points — 3.18 MB (baseline 3.18 MB) • ⚪ 0 BMain entry bundles and manifests
Status: 3 added / 3 removed Graph Workspace — 940 kB (baseline 940 kB) • ⚪ 0 BGraph editor runtime, canvas, workflow orchestration
Status: 1 added / 1 removed Views & Navigation — 7.97 kB (baseline 7.97 kB) • ⚪ 0 BTop-level views, pages, and routed surfaces
Status: 1 added / 1 removed Panels & Settings — 306 kB (baseline 306 kB) • ⚪ 0 BConfiguration panels, inspectors, and settings screens
Status: 6 added / 6 removed UI Components — 141 kB (baseline 141 kB) • ⚪ 0 BReusable component library chunks
Status: 6 added / 6 removed Data & Services — 12.5 kB (baseline 12.5 kB) • ⚪ 0 BStores, services, APIs, and repositories
Status: 2 added / 2 removed Utilities & Hooks — 2.94 kB (baseline 2.94 kB) • ⚪ 0 BHelpers, composables, and utility bundles
Status: 1 added / 1 removed Vendor & Third-Party — 5.7 MB (baseline 5.7 MB) • ⚪ 0 BExternal libraries and shared vendor chunks
Other — 3.87 MB (baseline 3.87 MB) • ⚪ 0 BBundles that do not match a named category
Status: 18 added / 18 removed |
## Summary - Fix bug where the "Selected assets count" displayed as 0 in the Imported tab when selecting assets ## Root Cause The `getOutputCount` function was returning `0` when `user_metadata.outputCount` was not present. - **Generated tab**: Works correctly because `outputCount` metadata is set during generation - **Imported tab**: `outputCount` metadata is never set, so it always returns `0` → selected count shows as 0 ## Solution Changed the default return value from `0` to `1` when `outputCount` metadata is not present, ensuring every asset counts as at least 1. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
## Summary - Fix bug where the "Selected assets count" displayed as 0 in the Imported tab when selecting assets ## Root Cause The `getOutputCount` function was returning `0` when `user_metadata.outputCount` was not present. - **Generated tab**: Works correctly because `outputCount` metadata is set during generation - **Imported tab**: `outputCount` metadata is never set, so it always returns `0` → selected count shows as 0 ## Solution Changed the default return value from `0` to `1` when `outputCount` metadata is not present, ensuring every asset counts as at least 1. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
@viva-jinyi Backport branch created but PR creation failed for |
|
@viva-jinyi Successfully backported to #6873 |
…rted tab (#6873) Backport of #6842 to `cloud/1.32` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6873-backport-cloud-1-32-Fix-Selected-assets-count-not-updating-in-Imported-tab-2b46d73d365081a0992bed6de971d81e) by [Unito](https://www.unito.io) Co-authored-by: Jin Yi <[email protected]>
## Summary - Fix bug where the "Selected assets count" displayed as 0 in the Imported tab when selecting assets ## Root Cause The `getOutputCount` function was returning `0` when `user_metadata.outputCount` was not present. - **Generated tab**: Works correctly because `outputCount` metadata is set during generation - **Imported tab**: `outputCount` metadata is never set, so it always returns `0` → selected count shows as 0 ## Solution Changed the default return value from `0` to `1` when `outputCount` metadata is not present, ensuring every asset counts as at least 1. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
@viva-jinyi Successfully backported to #6931 |
…ted tab (#6931) Backport of #6842 to `core/1.32` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6931-backport-core-1-32-Fix-Selected-assets-count-not-updating-in-Imported-tab-2b66d73d365081edb16ce02c2b55ada0) by [Unito](https://www.unito.io) Co-authored-by: Jin Yi <[email protected]>
Summary
Root Cause
The
getOutputCountfunction was returning0whenuser_metadata.outputCountwas not present.outputCountmetadata is set during generationoutputCountmetadata is never set, so it always returns0→ selected count shows as 0Solution
Changed the default return value from
0to1whenoutputCountmetadata is not present, ensuring every asset counts as at least 1.🤖 Generated with Claude Code
┆Issue is synchronized with this Notion page by Unito