René's URL Explorer Experiment


Title: feat(tables): add export, import column creation, infinite row pagination by waleedlatif1 · Pull Request #4373 · simstudioai/sim · GitHub

Open Graph Title: feat(tables): add export, import column creation, infinite row pagination by waleedlatif1 · Pull Request #4373 · simstudioai/sim

X Title: feat(tables): add export, import column creation, infinite row pagination by waleedlatif1 · Pull Request #4373 · simstudioai/sim

Description: Summary Export: new /api/table/[tableId]/export route streams full table contents as CSV or JSON; wired into the table header as an Export action. Import enhancements: renamed /import-csv → /import. The dialog now lets users auto-create new columns from unmapped CSV headers (passed via a createColumns form field). Infinite row pagination + new-row fix: original bug — a 1289-row table only loaded 1000 rows and clicking "New row" past 1000 reverted the optimistic insert. Switched the table view to useInfiniteQuery (1000 rows/page), reconciled created rows into the paginated cache (position bumping + totalCount increment), added scroll-driven prefetch when within 600px of the bottom, and pre-drain pending pages before append so the new row's position stays consistent with the cache. Test plan Open a >1000 row table, scroll all the way down — every row should be reachable; loaded count matches header count. Click New row at the bottom of a >1000 row table — optimistic row sticks, persists across invalidate, lands at correct position. Filter / sort change resets pagination cleanly and the count display matches the filtered total. Tables under 1000 rows behave unchanged (no extra fetches, no flicker). Cell edits still optimistically update across the visible window with rollback on error. Export CSV downloads complete table contents. Import CSV with unmapped headers offers to create those columns; importing creates them and inserts rows. Rapid double-click on New row does not fire two creates (drain-loop guard).

Open Graph Description: Summary Export: new /api/table/[tableId]/export route streams full table contents as CSV or JSON; wired into the table header as an Export action. Import enhancements: renamed /import-csv → /impor...

X Description: Summary Export: new /api/table/[tableId]/export route streams full table contents as CSV or JSON; wired into the table header as an Export action. Import enhancements: renamed /import-csv → /impor...

Opengraph URL: https://github.com/simstudioai/sim/pull/4373

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:c3992d39-48f1-4297-318b-00eafbdd27a0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCC0A:11DC7C:CB45DA:115DF5F:6AFB5691
html-safe-nonce14fbc8a78aa6d72f29c0f2cd0ac5295f528ac5ba172cef858298b37005c2d5c2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzBBOjExREM3QzpDQjQ1REE6MTE1REY1Rjo2QUZCNTY5MSIsInZpc2l0b3JfaWQiOiIxMTg3MTMwMjAzNjU0ODA1MTM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4c400bac082a9de11f7f97ac9ff7addce2e6e23ba7b161d99aa5c5b065017fb7
hovercard-subject-tagpull_request:3612449721
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/4373/files
twitter:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40672544?s=400&v=4
og:image:altSummary Export: new /api/table/[tableId]/export route streams full table contents as CSV or JSON; wired into the table header as an Export action. Import enhancements: renamed /import-csv → /impor...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/4373/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F4373%2Ffiles
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%2Fsimstudioai%2Fsim%2Fpull%2F4373%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/4373/files
Reloadhttps://github.com/simstudioai/sim/pull/4373/files
Reloadhttps://github.com/simstudioai/sim/pull/4373/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
waleedlatif1/table-export-importhttps://github.com/simstudioai/sim/tree/waleedlatif1/table-export-import
Conversation 19 https://github.com/simstudioai/sim/pull/4373
Commits 6 https://github.com/simstudioai/sim/pull/4373/commits
Checks 13 https://github.com/simstudioai/sim/pull/4373/checks
Files changed https://github.com/simstudioai/sim/pull/4373/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4373/files
feat(tables): add export, import column creation, infinite row pagination https://github.com/simstudioai/sim/pull/4373/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/4373/files
477fbac feat(tables): add export, import column creation, infinite row pagina… waleedlatif1 May 1, 2026 https://github.com/simstudioai/sim/pull/4373/commits/477fbacca354a70728aa1f5880469106b8d97974
9885bf7 fix(table): route boundary validation through Zod contracts waleedlatif1 May 1, 2026 https://github.com/simstudioai/sim/pull/4373/commits/9885bf70246e90bbead132c12d0aea9e52e16404
6b79524 fix(table): address PR bot review waleedlatif1 May 1, 2026 https://github.com/simstudioai/sim/pull/4373/commits/6b7952437603372b29f4774af44ae83d25186f7a
75d2f29 fix(table): re-throw on infinite-query fetch error in append-row drain waleedlatif1 May 1, 2026 https://github.com/simstudioai/sim/pull/4373/commits/75d2f299e34e4e45ba7ff5f0ab5a33b5e38fc96e
553ae99 fix(table): import TABLE_LIMITS from constants to keep server code ou… waleedlatif1 May 1, 2026 https://github.com/simstudioai/sim/pull/4373/commits/553ae997f382c69c3dab500236ef22be0f3c56c3
63dc3ab fix(table): run batch unique check inside import transaction waleedlatif1 May 1, 2026 https://github.com/simstudioai/sim/pull/4373/commits/63dc3ab7c00a34e6e98dc32b705c9d91deb48a76
Clear filters https://github.com/simstudioai/sim/pull/4373/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4373/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4373/files
route.ts https://github.com/simstudioai/sim/pull/4373/files#diff-7dca5a7f6d60b5808a948942a7193b2820ee38e61436607616eb7e6329958980
route.test.ts https://github.com/simstudioai/sim/pull/4373/files#diff-766e265a1779c0e7d2ee3d0c5396cfaf9094a1dd87d5c307dd49f00d267f2fb8
route.ts https://github.com/simstudioai/sim/pull/4373/files#diff-3948f2e8bbf44ed8af36b5ca1a2032e7d929920e8faa2eba83eff0cdbaa16da2
resource-content.tsx https://github.com/simstudioai/sim/pull/4373/files#diff-80c90fc9e418548394644fd871082cb97350068ea29717e5b8384ff4c3140617
table.tsx https://github.com/simstudioai/sim/pull/4373/files#diff-9875541aafb8fb0ecaac62a8f1c9dce0da8e33bec24295e07450cb9516be8bc7
use-table-data.ts https://github.com/simstudioai/sim/pull/4373/files#diff-400856399a6fbe09c7ab3aa99c65f218d75165ade8eae42d7cb8ae5e3646978f
import-csv-dialog.tsx https://github.com/simstudioai/sim/pull/4373/files#diff-19bc1247a8013aad34d16eceef3d469ea65346466983369e47aad41a043f90ad
table-context-menu.tsx https://github.com/simstudioai/sim/pull/4373/files#diff-d424f0b25e047e416c9b341dd8f61d7c5dfbde74112faae51f7dae8abe72bd28
tables.tsx https://github.com/simstudioai/sim/pull/4373/files#diff-6f863f5398bd7eec36119c2c77deb2483dbe0374d1bb6909d3e6a279d857bbdc
tables.ts https://github.com/simstudioai/sim/pull/4373/files#diff-1d761ed5a7a2ed9ba4435d0f39c5f1f7ac13c177b301c401b38f5a6d731ac8cb
tables.ts https://github.com/simstudioai/sim/pull/4373/files#diff-927ba827479bb6f5c0c9cee9dfe1067112e939610060f6a1e939f232b976257d
import.test.ts https://github.com/simstudioai/sim/pull/4373/files#diff-0ee513c4fdfad36c9fddadd81bf3712e6f29da25c25687e9d69cc71361f5bcdd
import.ts https://github.com/simstudioai/sim/pull/4373/files#diff-cb562762d3e5bbf1b12771d80f70144c6aeaa65833c1d3f61872ffc948506f43
index.ts https://github.com/simstudioai/sim/pull/4373/files#diff-83681c4189e474841453f4c237e09427e4a56ffc804c83912031ad4e405cbe78
service.ts https://github.com/simstudioai/sim/pull/4373/files#diff-691e9b1dc59be0015a1be5ea6189899b241d4e979a8b40e088dd7d722cfaadb6
validation.ts https://github.com/simstudioai/sim/pull/4373/files#diff-4afe0c5257b85a0e6c183bc2a7cd3db262dc445d8f341964364c751f6aa34f04
check-api-validation-contracts.ts https://github.com/simstudioai/sim/pull/4373/files#diff-48ae6a4d0c1f820d5b644522d25742bb29af758bc8350f1a3cf3f8afa0bd00b0
apps/sim/app/api/table/[tableId]/export/route.tshttps://github.com/simstudioai/sim/pull/4373/files#diff-7dca5a7f6d60b5808a948942a7193b2820ee38e61436607616eb7e6329958980
View file https://github.com/simstudioai/sim/blob/63dc3ab7c00a34e6e98dc32b705c9d91deb48a76/apps/sim/app/api/table/%5BtableId%5D/export/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/4373/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/4373/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/4373/files
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.