feat: add @ottabase/ottaport data import/export package with admin UI#135
Draft
feat: add @ottabase/ottaport data import/export package with admin UI#135
Conversation
Create new package for CSV/JSON/TSV parsing, field mapping, bulk upserts, and export with filters for OttaORM models. - CSV/TSV parser with quoted field support - JSON array parser with heterogeneous object support - Batched import handler with upsert logic - Export handler with date range, search, and field filters - PortJob model for tracking import/export job history - Format output as CSV, TSV, or JSON - 30 tests covering parsers and import handler Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…andlers, and bulkUpsert on BaseModel Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
…tration, and API routes Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
Create admin pages for the @ottabase/ottaport data import/export feature: - AdminOttaportPage: Main hub with Import/Export/History tabs - OttaportImportWizard: Multi-step wizard (upload → map → preview → execute) - OttaportExportPage: Model selection, filters, preview, and download - OttaportHistoryPage: Import/export job history with filtering - Barrel export index.ts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Use Date.parse() for string values instead of redundant passthrough. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ter integration Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
…ypes Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
…SIZE constant, fix inline styles Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
…inst model, encode Content-Disposition Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
… Hijacking CVE Co-authored-by: thinkdj <688055+thinkdj@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add new package for data import/export functionality
feat: add @ottabase/ottaport data import/export package with admin UI
Feb 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New package for bulk data import/export across OttaORM models — CSV/JSON/TSV parsing, field mapping with auto-match, batched upserts on a unique field, filtered exports, and job history tracking.
@ottabase/ottaportpackageemail). Returns per-batch and aggregate statsPortJobmodel — Fat model tracking import/export history (direction, status, row counts, filename, R2 key, user, duration)portJobsTableschema — SQLite table for job metadata, always-on viaCORE_PACKAGESOttaORM enhancement
Added
BaseModel.bulkUpsert(records, uniqueField, options?)— batched find-then-create/update returning{ created, updated, failed, errors }.TanStack app wiring
/api/admin/ottaport/*(models list, import parse, import execute, export download, export preview, job history)requireAdminAccess({ scope: 'system' })Admin UI (
/admin/ottaport)Config migrations refactor
Extracted
CORE_PACKAGESarray andisCorePackage()helper to DRY the three places that check for always-enabled packages (brandEngine, ottaport).Security fix
Updated storybook catalog entries from
^10.2.3→^10.2.10(resolves to 10.2.13) to patch WebSocket Hijacking CVE.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.