René's URL Explorer Experiment


Title: feat: export collection items to CSV · Issue #348 · ycode/ycode · GitHub

Open Graph Title: feat: export collection items to CSV · Issue #348 · ycode/ycode

X Title: feat: export collection items to CSV · Issue #348 · ycode/ycode

Description: Feature request Add the ability to export a collection's items to a CSV file from the CMS, mirroring the behavior that existed in the legacy Ycode app. We already support importing collections from CSV — this adds the missing export side...

Open Graph Description: Feature request Add the ability to export a collection's items to a CSV file from the CMS, mirroring the behavior that existed in the legacy Ycode app. We already support importing collections from...

X Description: Feature request Add the ability to export a collection's items to a CSV file from the CMS, mirroring the behavior that existed in the legacy Ycode app. We already support importing collections ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: export collection items to CSV","articleBody":"## Feature request\n\nAdd the ability to export a collection's items to a CSV file from the CMS, mirroring the behavior that existed in the legacy Ycode app. We already support **importing** collections from CSV — this adds the missing export side.\n\n## Problem\n\nToday collections can only be imported (`CSVImportDialog`), never exported. There's no way for a user to pull their CMS data out as a CSV — for backup, migration, editing in a spreadsheet, or re-importing elsewhere. The legacy app had this and it's a frequently expected CMS capability.\n\n## How it worked in the legacy app\n\nFor reference, the legacy (Laravel/Vue) implementation:\n\n- An **Export** button in the collection data toolbar (`DataType.vue`), labelled `Export {n}` where `n` reflects the number of selected items.\n- Button is disabled when the collection has no items, and shows a loading spinner while the export runs.\n- It exported either **all items** or, if rows were checked, **only the selected items**.\n- Backend (`CollectionController::exportData`) resolved the full collection (no pagination), built the CSV, stored it temporarily on disk, scheduled deletion after 10 minutes, and returned a `{ name, url }` for download (`downloadExport`).\n- CSV columns used the field display names as headers.\n- **Built-in audit columns were excluded**: `Updated date`, `Created by`, `Updated by`, `Status` (Created date was kept).\n- Value flattening per field type:\n  - **Reference** → the referenced item's name field value\n  - **Multi reference** → name field values joined by `; `\n  - **Link** → the URL string\n\n## Proposed solution\n\nImplement the same flow natively in the Next.js app, reusing what we already have:\n\n- Add an **Export** action in the CMS collection toolbar/UI (`app/(builder)/ycode/components/CMS.tsx`), with optional \"export selected vs. all\" behavior based on checked items.\n- Reuse the existing CSV helpers in `lib/csv-utils.ts` — `rowsToCSV()` and `downloadCSV()` — already used by the redirects settings export, so no new CSV-writing code is needed.\n- Build rows from collection fields + items, applying the same value-flattening rules (reference → name, multi-reference → joined names, link → URL, rich_text → HTML or plain text).\n- Exclude built-in audit columns (`Updated date`, `Created by`, `Updated by`, `Status`) to match legacy output.\n- Name the file after the collection (e.g. `blog.csv`).\n\nSince the export can be generated client-side from already-loaded collection data (or via a thin repository/route fetch for the full set), we likely don't need the legacy's temp-file/storage dance — `downloadCSV()` triggers the browser download directly.\n\n## Open questions\n\n- Export **all items** always, or respect current filters/sorting and selection (selected-only)?\n- For large collections, do we fetch the full set server-side (new route/repository call) or rely on already-loaded paginated data?\n- How should `rich_text` be serialized — HTML, plain text, or raw TipTap JSON? (Import accepts HTML, so HTML round-trips best.)\n- Should asset fields (image/video/etc.) export the public URL?\n\n## Context\n\nWe already ship the import counterpart (`CSVImportDialog`, `collectionImportRepository`, import API routes). This closes the loop. Building blocks (`rowsToCSV`, `downloadCSV`, collection field metadata) already exist in the codebase.","author":{"url":"https://github.com/tristan-mouchet","@type":"Person","name":"tristan-mouchet"},"datePublished":"2026-06-11T13:25:48Z","url":"https://github.com/ycode/ycode/issues/348"}

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:bb98a150-bf05-e8fd-6f67-e545d47d659d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBE5A:1314C9:682B57:8BE2CB:6AFE29C8
html-safe-noncee82557ee5ffc98bbdeab7d036bca8115b3625c1f46f6f2e186164919f78411a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTVBOjEzMTRDOTo2ODJCNTc6OEJFMkNCOjZBRkUyOUM4IiwidmlzaXRvcl9pZCI6IjQ1MzU1NDk0Nzc1MzkxMjc3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacab507cf15c0ab30db26ae3df95c8300804774a61f6e3d0cdc4edd42a91742c75
hovercard-subject-tagissue:4640895101
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/348/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e08d863f3aa365e50c91cbf489c576f1a88ee30082506e49907762c1dbeb3486/ycode/ycode/issues/348
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e08d863f3aa365e50c91cbf489c576f1a88ee30082506e49907762c1dbeb3486/ycode/ycode/issues/348
og:image:altFeature request Add the ability to export a collection's items to a CSV file from the CMS, mirroring the behavior that existed in the legacy Ycode app. We already support importing collections from...
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/348#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fycode%2Fycode%2Fissues%2F348
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%2F348
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/348
Reloadhttps://github.com/ycode/ycode/issues/348
Reloadhttps://github.com/ycode/ycode/issues/348
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/348
New issuehttps://github.com/login?return_to=https://github.com/ycode/ycode/issues/348
feat: export collection items to CSVhttps://github.com/ycode/ycode/issues/348#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 Jun 11, 2026https://github.com/ycode/ycode/issues/348#issue-4640895101
tristan-mouchethttps://github.com/tristan-mouchet
on Jun 11, 2026https://github.com/ycode/ycode/issues/348#event-26627369798
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 Jun 11, 2026https://github.com/ycode/ycode/issues/348#event-26627369884
tristan-mouchethttps://github.com/tristan-mouchet
on Jul 3, 2026https://github.com/ycode/ycode/issues/348#event-27527616563
Sign up for freehttps://github.com/signup?return_to=https://github.com/ycode/ycode/issues/348
Sign in to commenthttps://github.com/login?return_to=https://github.com/ycode/ycode/issues/348
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.