René's URL Explorer Experiment


Title: feat: multi-select assets in the file manager to add many at once · Issue #414 · ycode/ycode · GitHub

Open Graph Title: feat: multi-select assets in the file manager to add many at once · Issue #414 · ycode/ycode

X Title: feat: multi-select assets in the file manager to add many at once · Issue #414 · ycode/ycode

Description: Feature request When picking assets, allow selecting multiple assets at once in the file manager and confirming with a single Add {n} button, instead of picking them one at a time. The most obvious use case is a CMS asset field with mult...

Open Graph Description: Feature request When picking assets, allow selecting multiple assets at once in the file manager and confirming with a single Add {n} button, instead of picking them one at a time. The most obvious...

X Description: Feature request When picking assets, allow selecting multiple assets at once in the file manager and confirming with a single Add {n} button, instead of picking them one at a time. The most obvious...

Opengraph URL: https://github.com/ycode/ycode/issues/414

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: multi-select assets in the file manager to add many at once","articleBody":"## Feature request\n\nWhen picking assets, allow selecting **multiple assets at once** in the file manager and confirming with a single **Add {n}** button, instead of picking them one at a time. The most obvious use case is a CMS asset field with `multiple = true`, where you often want to add many images in one go.\n\n## Problem\n\nToday the file manager has two separate \"selection\" concepts:\n\n- **Picker mode** (choosing an asset for a field/layer) is **single-select only**. `openFileManager(onSelect, assetId, category)` takes one callback that fires for a single asset and closes the dialog.\n- **Bulk management mode** (checkbox multi-select) only exists for **move/delete** operations inside the manager.\n\nAs a result, populating a `multiple = true` asset field means repeating the whole flow for every asset:\n\n- In `CollectionItemSheet.tsx`, each asset is added via the **Add {label}** button → `openFileManager(...)` → pick one → dialog closes → repeat.\n- Same one-at-a-time pattern in the field default editor (`AssetDefaultMultiple` in `FieldFormDialog.tsx`).\n\nFor an item with 10–20 images this is tedious (open, pick, reopen, pick, ...).\n\n## Proposed solution\n\nAdd a **multi-select picker mode** to `FileManagerDialog`:\n\n- When opened from a context that accepts multiple assets, show the existing checkboxes for selection (reuse the `selectedAssetIds: Set\u003cstring>` machinery already used for bulk move/delete).\n- Show a confirm button labelled **Add {n}** (reflecting the number of selected assets), disabled when nothing is selected — mirroring the `Export {n}` pattern referenced in #348.\n- Return the full array of selected assets to the caller in one callback, instead of firing per-asset.\n- Keep single-select behavior unchanged for existing single-asset consumers (image/video/icon/link settings, etc.).\n\nThen wire the multi-select mode into the multi-asset flows:\n\n- `CollectionItemSheet.tsx` — the **Add {label}** button for `isMultipleAssetField(field)` opens the picker in multi-select mode, appends all chosen assets (with the existing type validation via `isValidAssetForField` and dedupe), and stores the resulting `JSON.stringify(assetIds)`.\n- `AssetDefaultMultiple` in `FieldFormDialog.tsx` — same treatment for field default values.\n\n## Implementation notes\n\n- `openFileManager` would need to support a multi-select variant, e.g. an `onSelectMany?: (assets: Asset[]) => void` callback or a `multiple?: boolean` flag (`stores/useEditorStore.ts`, consumed in `YCodeBuilderMain.tsx`).\n- The checkbox UI already exists on `FileGridItem` (currently gated to bulk move/delete) — the main work is letting picker mode reuse it and swapping the footer action to **Add {n}**.\n- Category/type filtering (`getFileManagerCategory`, `isValidAssetForField`) should still apply so only valid assets can be added.\n\n## Context\n\n- Main manager: `app/(builder)/ycode/components/FileManagerDialog.tsx`\n- Multi-asset field flow: `app/(builder)/ycode/components/CollectionItemSheet.tsx`, `FieldFormDialog.tsx` (`AssetDefaultMultiple`)\n- Detection/util: `isMultipleAssetField` in `lib/collection-field-utils.ts`, `parseMultiAssetFieldValue` in `lib/multi-asset-utils.ts`\n- Opener state: `stores/useEditorStore.ts` (`openFileManager`), wired in `YCodeBuilderMain.tsx`\n\n## Open questions\n\n- Should multi-select be a distinct mode, or should any picker allow it when the target field accepts multiple?\n- Should selection persist across folder navigation within a single picker session?","author":{"url":"https://github.com/tristan-mouchet","@type":"Person","name":"tristan-mouchet"},"datePublished":"2026-07-01T14:29:26Z","url":"https://github.com/ycode/ycode/issues/414"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9c82654d-4f8a-3b2c-022a-7a38e77c8e32
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE2DC:1BC582:BF8E07:10B8D02:6AFE2A26
html-safe-nonce5577031811052bb2860b898ef4c9f27bb12f900a618cf6c7c67c9035bae92cb2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkRDOjFCQzU4MjpCRjhFMDc6MTBCOEQwMjo2QUZFMkEyNiIsInZpc2l0b3JfaWQiOiI0NTEwNDA1OTE1Mzc5MTE2NTgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb1ca358af2011f8ed5335b5c199dd3533af11b4d1df290aae33622ba7e776675
hovercard-subject-tagissue:4786480552
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ycode/ycode/414/issue_layout
twitter:imagehttps://opengraph.githubassets.com/00e05737fc75df92149412ad0bb40f12599599709f939411edb9b238a23ccaac/ycode/ycode/issues/414
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/00e05737fc75df92149412ad0bb40f12599599709f939411edb9b238a23ccaac/ycode/ycode/issues/414
og:image:altFeature request When picking assets, allow selecting multiple assets at once in the file manager and confirming with a single Add {n} button, instead of picking them one at a time. The most obvious...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametristan-mouchet
hostnamegithub.com
expected-hostnamegithub.com
Nonee973f9ec3625f3faad8cac5c2d11a214b7ffe45f3cc563b828459b290ecaeed3
turbo-cache-controlno-preview
go-importgithub.com/ycode/ycode git https://github.com/ycode/ycode.git
octolytics-dimension-user_id65892203
octolytics-dimension-user_loginycode
octolytics-dimension-repository_id1165452593
octolytics-dimension-repository_nwoycode/ycode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1165452593
octolytics-dimension-repository_network_root_nwoycode/ycode
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1f92c367595b9190e0be293896078033886b1913
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/ycode/ycode/issues/414#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fycode%2Fycode%2Fissues%2F414
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fycode%2Fycode%2Fissues%2F414
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=ycode%2Fycode
Reloadhttps://github.com/ycode/ycode/issues/414
Reloadhttps://github.com/ycode/ycode/issues/414
Reloadhttps://github.com/ycode/ycode/issues/414
ycodehttps://github.com/ycode
ycodehttps://github.com/ycode/ycode
Codehttps://github.com/ycode/ycode
Issues7 (7)https://github.com/ycode/ycode/issues
Pull requests1 (1)https://github.com/ycode/ycode/pulls
Discussionshttps://github.com/ycode/ycode/discussions
Actionshttps://github.com/ycode/ycode/actions
Projectshttps://github.com/ycode/ycode/projects
Security and quality1 (1)https://github.com/ycode/ycode/security
Insightshttps://github.com/ycode/ycode/insights
https://github.com/ycode/ycode
New issuehttps://github.com/login?return_to=https://github.com/ycode/ycode/issues/414
New issuehttps://github.com/login?return_to=https://github.com/ycode/ycode/issues/414
feat: multi-select assets in the file manager to add many at oncehttps://github.com/ycode/ycode/issues/414#top
Feature requestA new feature requesthttps://github.com/ycode/ycode/issues?q=state%3Aopen%20label%3A%22Feature%20request%22
https://github.com/tristan-mouchet
tristan-mouchethttps://github.com/tristan-mouchet
on Jul 1, 2026https://github.com/ycode/ycode/issues/414#issue-4786480552
feat: export collection items to CSV #348https://github.com/ycode/ycode/issues/348
tristan-mouchethttps://github.com/tristan-mouchet
Feature requestA new feature requesthttps://github.com/ycode/ycode/issues?q=state%3Aopen%20label%3A%22Feature%20request%22
on Jul 1, 2026https://github.com/ycode/ycode/issues/414#event-27434195647
Sign up for freehttps://github.com/signup?return_to=https://github.com/ycode/ycode/issues/414
Sign in to commenthttps://github.com/login?return_to=https://github.com/ycode/ycode/issues/414
Feature requestA new feature requesthttps://github.com/ycode/ycode/issues?q=state%3Aopen%20label%3A%22Feature%20request%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.