Skip to content

fix(plugin-grid,app-shell): a CSV file reaches the import door as CSV text - #13316

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-13315-import-wizard-csv-door
Oct 22, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-13315-import-wizard-csv-door

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #13315
Clause-②: no

Build PR, on the maintainer's ruling A (the option labelled 「A 重写成 CSV 发送 (Recommended)」, recorded on objectui#13315 in comment 6328933548). A CSV file source now reaches the server's CSV import door: the import wizard sends format: 'csv' with sourceRowsToCsv(rows), the cells the preview parsed. The identity import's adapter takes the same change. Neither parser changes: parseDelimited is byte-identical, and objectstack's parseCsvToRows is not touched.

Dispatched by objectstack domain:cli seat 2 on objectui#13315's claim (comment 6327882289), session https://claude.ai/code/session_01AFrKwndmrCLtF5V9hNtrw3. The disclosure ruling on objectstack-ai/objectstack#9387 applies: this PR describes the change at the card's level only.

What changed

  • The request (assembleImportRequest, ImportWizard.tsx). A new csvFile option. With it, the hand-mapped path sends { format: 'csv', csv: sourceRowsToCsv(rows) }, and a named mapping sends CSV text unless it declares sourceFormat: 'json', which the door refuses CSV for (MAPPING_FORMAT_MISMATCH). A csv-declared mapping sends CSV text from any source, as before (console: the import wizard, given a shipped CSV mapping, sends JSON rows that name the csv mapping and fails MAPPING_FORMAT_MISMATCH; the REST door with the same mapping succeeds #13156). An .xlsx sheet and a paste keep JSON rows. The dry-run pre-check, the background job and the sync import all send the one request buildImportRequest assembles.
  • What carries "this is a CSV file" (H1). assembleImportRequest cannot see the source, and no new prop was needed. The wizard keeps one boolean state, csvFile, set where the grid is loaded: the upload step's file path and the initialFile effect answer delimitedFileDelimiter(file.name) !== null, a paste answers false, and reset clears it. delimitedFileDelimiter (importParsers.ts) is the name test parseSpreadsheetFile already picked its text arm with, moved into a named function that both now read, so "a CSV file" means the same thing to the parse and to the request: .csv, .tsv and .txt, the delimited-text inputs the card's item 2 measured as CSV. parseSpreadsheetFile behaves exactly as before.
  • The identity import (identityImport.ts, H2). The adapter batched the request's rows, and a CSV request has none, so it would have thrown. batchIdentityImportRequest now cuts a CSV request at record boundaries (readCsvRequestRecords): each batch of at most 500 rows is posted as the header record plus its data records, joined by CRLF, which for the wizard's text is exactly sourceRowsToCsv of that batch's rows. Each batch's rows are read from the same records, so the one-time-password reveal still names every row by its email or phone. JSON rows are batched as before.

Why the adapter reads the wizard's text back instead of receiving rows: the wizard calls one importRecords(object, request) for every data source and cannot tell the identity adapter from the generic one, which posts the request as it is. Carrying the rows beside the text would double the generic door's payload, and a new parameter on DataSource.importRecords would widen a published interface. The scan splits records the way the door's CSV parse does, keeps each record's bytes as written, and decides no imported value.

Measured (H2, H3)

  • H2, numbering across batches. A one-shot script ran the adapter's batching on a 1203-line file (a quoted comma, a quoted LF, a quoted CRLF, doubled quotes, an export-marked cell, a blank line, and rows whose mapped cells are all empty at preview rows 250 and 500), then objectstack's parseCsvToRows on every batch body, at main abc25a3536 and at fix(rest)!: the CSV export writes a text cell in a form its consumer reads as text, and the CSV import reverses it (#25078) objectstack#25130's head bf8244cb20 (read from git objects, transpiled unchanged). Both refs read the same: every batch body equals sourceRowsToCsv of that batch's rows, the adapter's rows equal the preview's rows, and 0 server rows differ from the preview row at the same renumbered index. One preview row is never read: row 500, the last of batch 1, whose mapped cells are all empty. That is B1 at a batch end; sent as one request, the file keeps it. So numbering stays aligned, and in the identity import B1 holds for the last row of every batch, not only the file's last. The changeset says so.
  • H3, a marked header. On the default path the text is headed by field names, so a header the export marked ('=Region, auto-mapped to region) reaches the server as region. Pinned.

Pins

ImportWizard.csvFileSource-13315.test.tsx drives the real wizard to its real request. A .csv file on the default path sends format: 'csv' with the corrected preview cells, and the dry run sends the same payload. A .tsv or .txt file picked in the upload step is a CSV file too. A marked header still maps. An undeclared named mapping sends CSV text with mappingName. CONTROLS: a json-declared mapping, an .xlsx sheet and a paste send JSON rows.

identityImport.csvBatches-13315.test.tsx covers the batching itself (quoted commas, a quoted line break, doubled quotes, an all-empty row, a header alone refused before any request, JSON rows batched as JSON). It also runs the real wizard and the real adapter on a 1001-row .csv file: three CSV batches cut from the wizard's text, results renumbered 1 to 1001, and a one-time password on row 777 named user777@example.test. CONTROL: a paste goes out as JSON rows.

ImportWizard.csvDoorParity-13315.test.tsx, the measurement test, now pins the shipped route: its B1 case drives the real wizard and asserts the CSV request. Its FILE TEXT cases and its recorded B2 and B3 rows stay, as the record of why the file's own text was not sent and of the shapes the route was accepted with.

Ablation, one-shot, with objectstack's scripts/ablation-replace.mjs on the committed head ba5cc54; each mutation was proven on disk and restored to the HEAD blob:

  • A, the hand-mapped arm ignores csvFile: 6 red (the .csv, .tsv, .txt and marked-header pins, the parity B1 case, the 1001-row identity case), 16 green.
  • B, the identity adapter ignores a CSV request: 2 red (the batching case and the 1001-row case), 4 green.

The shapes the changeset states (B1 to B3)

Stated at user level, per the disclosure ruling. A last row whose mapped cells are all empty is not imported; in the identity import, the same holds for the last row of each 500-row batch. A cell that begins with an apostrophe, continues with + or -, holds only digits, spaces and ( ) + - . , and ends in a tab or a line break keeps the apostrophe, as it did before. A space before a leading apostrophe is trimmed first, so such a cell now imports without the apostrophe.

Acceptance notes

Observations, not filed and not fixed here:

  • parseDelimited's doc comment says trailing whitespace is trimmed, but the code trims both ends of every cell, and B3 rests on the leading half. Not fixed, because the ruling leaves both parsers unchanged. Carrier: none.
  • Once fix(rest)!: the CSV export writes a text cell in a form its consumer reads as text, and the CSV import reverses it (#25078) objectstack#25130 lands, the preview still checks cells as the file spells them (checkImportCell), and matches a named mapping's columns by the header as written (savedMappingToDisplayIndexMap). So a marked select value or a marked header shows as a preview finding or an unmatched column, while the server accepts it. Dormant until that PR lands. Carrier: none.
  • objectstack's parseCsvToRows, read as a function only: a leading blank line becomes the header row, an inner blank line becomes a row, and a repeated header keeps the last column, while its doc comment says the first non-empty line is the header. Not reached from here: this PR never sends the file's own text. Carrier: none.

Gates (local; final head ec515a4 unless a line says otherwise; each exit code captured before any pipe)

dispatch-gates.mjs refuses a non-objectstack tree, so the list is hand-derived from this repository's package.json and AGENTS.md section 9:

  • pnpm --workspace-concurrency=2 --filter "@object-ui/app-shell^..." build (29 packages, plugin-grid included), at ba5cc54: VERDICT command-exit 0.
  • pnpm --filter @object-ui/plugin-grid type-check, at ba5cc54 (no plugin-grid file changed after it): exit 0. tsc -p tsconfig.test.json --listFiles names both 13315 test files.
  • pnpm --filter @object-ui/app-shell type-check: exit 2 at ba5cc54 (TS2322, the new test's endpoint parameter type), fixed in ec515a4, then exit 0. --listFiles names the new test once.
  • pnpm --filter @object-ui/plugin-grid lint and pnpm --filter @object-ui/app-shell lint, at ba5cc54: exit 0, 0 errors. eslint on the changed files at ec515a4: exit 0, warning counts unchanged from the merge base (ImportWizard.tsx 9 and 9, identityImport.ts 0 and 0).
  • pnpm exec vitest run packages/plugin-grid/: Test Files 240 passed (240), Tests 2168 passed (2168).
  • app-shell, the 10 test files that read the import surfaces (identityImport*, importTargetFields, ObjectView.importPredicates, ObjectView.headerFold-12705, the two ExcelImportBar files): Test Files 10 passed (10), Tests 78 passed (78). The full app-shell suite is left to CI's Test shards.
  • check-changeset-presence, check-changeset-no-major, check:new-line-citations, check:control-bytes, check:test-path-roots, check:vi-mock-specifiers, check:unreferenced-sources, check:changeset-claims, check:pending-changeset-literals: each exit 0.
  • NOT MEASURED locally: check:readme-exports exited 1 with "the population COLLAPSED", because 28 packages are unbuilt in this worktree. CI's Repo Gates runs it.

CI at ec515a4: 33 check-runs success (Lint, Type Check, Test and all 16 shards, Test (dist pins), Build & E2E, Bundle Analysis, Repo Gates, the changeset checks, Governed Surface Queue Guard, Line Citation Gate, and the rest), 3 skipped (the coverage matrix, dependabot).

Landing order, unchanged from the card: this PR, then objectstack's .objectui-sha bump, then objectstack-ai/objectstack#25130.


Generated by Claude Code

…and the server's CSV door

Measurement for objectui#13315 item 2, before the wizard sends a CSV file
source to the server's CSV import door. The browser half (decode, parse,
re-spelled CSV, the default path's real request) runs live; the server's
parseCsvToRows is recorded at objectstack main abc25a3536 and at the head of
objectstack-ai/objectstack#25130 (bf8244cb20). Recorded inputs are the ones
whose difference changes an imported value. No behaviour changes.

Claude-Session: https://claude.ai/code/session_01AFrKwndmrCLtF5V9hNtrw3
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 77 chunks) 3225.1 KB 3744.1 KB
Main entry chunk (gzip) 81.2 KB 350 KB
Entry file index-B9Fq2sYR.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (buildIdentity.js) 0.80KB 0.49KB
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 21.41KB 7.90KB
app-shell (runtime-config.js) 24.52KB 8.48KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 45.59KB 12.03KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 20.67KB 6.12KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.74KB 3.94KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.62KB 0.83KB
auth (authStyles.js) 5.27KB 1.86KB
auth (createAuthClient.js) 42.84KB 11.66KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.26KB 8.03KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (commentAuthorship.js) 1.39KB 0.78KB
collaboration (index.js) 1.93KB 0.85KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 617.54KB 150.58KB
core (index.js) 10.18KB 4.04KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 252.96KB 70.67KB
fields (index.js) 294.97KB 75.45KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.40KB 12.01KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 15.35KB 5.51KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.82KB 2.38KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 55.56KB 16.21KB
plugin-charts (index.js) 86.06KB 23.66KB
plugin-chatbot (index.js) 238.47KB 56.30KB
plugin-dashboard (index.js) 147.53KB 39.95KB
plugin-designer (index.js) 233.95KB 50.08KB
plugin-detail (index.js) 267.56KB 71.11KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 186.64KB 48.54KB
plugin-gantt (index.js) 178.46KB 45.13KB
plugin-grid (index.js) 276.74KB 76.89KB
plugin-kanban (index.js) 64.49KB 19.83KB
plugin-list (index.js) 149.81KB 39.28KB
plugin-map (index.js) 27.17KB 9.00KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 46.66KB 13.13KB
plugin-timeline (index.js) 39.31KB 11.88KB
plugin-tree (index.js) 15.27KB 5.40KB
plugin-view (index.js) 94.54KB 24.33KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 129.13KB 42.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.71KB 2.11KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.81KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (product-blocks.js) 0.20KB 0.19KB
types (record-approval-decision.js) 0.20KB 0.20KB
types (record-components.js) 0.20KB 0.19KB
types (record-panels.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

… text

The import wizard sends a CSV file source (.csv, .tsv, .txt: the files
parseSpreadsheetFile reads as delimited text) as format csv with
sourceRowsToCsv(rows), the cells the preview parsed, on the hand-mapped path
and on a named mapping not declared json. A json-declared mapping keeps JSON
rows (the door refuses CSV for it); an .xlsx sheet and a paste are unchanged.
The source kind travels as wizard state set where the grid is loaded, and the
CSV-file test is delimitedFileDelimiter, the predicate parseSpreadsheetFile
now picks its text arm with.

The identity import's adapter takes the same change: a CSV request is cut at
record boundaries into batches of at most 500 rows, each posted as the header
record plus its data records, and each batch's rows are still read to name
every row's identity in the result.

The measurement test now pins the shipped route and keeps the recorded B1-B3
shapes; the changeset states them (objectui#13315, maintainer ruling A).

Claude-Session: https://claude.ai/code/session_01AFrKwndmrCLtF5V9hNtrw3
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 77 chunks) 3225.5 KB 3744.1 KB
Main entry chunk (gzip) 81.2 KB 350 KB
Entry file index-Bo2z3Gef.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (buildIdentity.js) 0.80KB 0.49KB
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 21.41KB 7.90KB
app-shell (runtime-config.js) 24.52KB 8.48KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 45.59KB 12.03KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 20.67KB 6.12KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.74KB 3.94KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.62KB 0.83KB
auth (authStyles.js) 5.27KB 1.86KB
auth (createAuthClient.js) 42.84KB 11.66KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.26KB 8.03KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (commentAuthorship.js) 1.39KB 0.78KB
collaboration (index.js) 1.93KB 0.85KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 617.54KB 150.58KB
core (index.js) 10.18KB 4.04KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 252.96KB 70.67KB
fields (index.js) 294.97KB 75.45KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.40KB 12.01KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 15.35KB 5.51KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.82KB 2.38KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 55.56KB 16.21KB
plugin-charts (index.js) 86.06KB 23.66KB
plugin-chatbot (index.js) 238.47KB 56.30KB
plugin-dashboard (index.js) 147.53KB 39.95KB
plugin-designer (index.js) 233.95KB 50.08KB
plugin-detail (index.js) 267.56KB 71.11KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 186.64KB 48.54KB
plugin-gantt (index.js) 178.46KB 45.13KB
plugin-grid (index.js) 277.00KB 76.99KB
plugin-kanban (index.js) 64.49KB 19.83KB
plugin-list (index.js) 149.81KB 39.28KB
plugin-map (index.js) 27.17KB 9.00KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 46.66KB 13.13KB
plugin-timeline (index.js) 39.31KB 11.88KB
plugin-tree (index.js) 15.27KB 5.40KB
plugin-view (index.js) 94.54KB 24.33KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 129.13KB 42.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.71KB 2.11KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.81KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (product-blocks.js) 0.20KB 0.19KB
types (record-approval-decision.js) 0.20KB 0.20KB
types (record-components.js) 0.20KB 0.19KB
types (record-panels.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

…dapter's authFetch

Claude-Session: https://claude.ai/code/session_01AFrKwndmrCLtF5V9hNtrw3
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 77 chunks) 3225.5 KB 3744.1 KB
Main entry chunk (gzip) 81.2 KB 350 KB
Entry file index-CawMgU6C.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (buildIdentity.js) 0.80KB 0.49KB
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 21.41KB 7.90KB
app-shell (runtime-config.js) 24.52KB 8.48KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 45.59KB 12.03KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 20.67KB 6.12KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.74KB 3.94KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.62KB 0.83KB
auth (authStyles.js) 5.27KB 1.86KB
auth (createAuthClient.js) 42.84KB 11.66KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.26KB 8.03KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (commentAuthorship.js) 1.39KB 0.78KB
collaboration (index.js) 1.93KB 0.85KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 617.54KB 150.58KB
core (index.js) 10.18KB 4.04KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 252.96KB 70.67KB
fields (index.js) 294.97KB 75.45KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.40KB 12.01KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 15.35KB 5.51KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.82KB 2.38KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 55.56KB 16.21KB
plugin-charts (index.js) 86.06KB 23.66KB
plugin-chatbot (index.js) 238.47KB 56.30KB
plugin-dashboard (index.js) 147.53KB 39.95KB
plugin-designer (index.js) 233.95KB 50.08KB
plugin-detail (index.js) 267.56KB 71.11KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 186.64KB 48.54KB
plugin-gantt (index.js) 178.46KB 45.13KB
plugin-grid (index.js) 277.00KB 76.99KB
plugin-kanban (index.js) 64.49KB 19.83KB
plugin-list (index.js) 149.81KB 39.28KB
plugin-map (index.js) 27.17KB 9.00KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 46.66KB 13.13KB
plugin-timeline (index.js) 39.31KB 11.88KB
plugin-tree (index.js) 15.27KB 5.40KB
plugin-view (index.js) 94.54KB 24.33KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 129.13KB 42.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.71KB 2.11KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.81KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (product-blocks.js) 0.20KB 0.19KB
types (record-approval-decision.js) 0.20KB 0.20KB
types (record-components.js) 0.20KB 0.19KB
types (record-panels.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet objectstack-fleet Bot changed the title test(plugin-grid): record CSV parse parity between the import wizard and the server's CSV import door fix(plugin-grid,app-shell): a CSV file reaches the import door as CSV text Oct 22, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对 · ACCEPT

objectstack domain:cli seat 2 (objectstack-ai/objectstack#22648) · os-bill · session session_01AFrKwndmrCLtF5V9hNtrw3 · 2026-10-22T00:42Z · head ec515a44a98458e0ed0fb4cc00c769d8a9af338e · claim 6327882289 → measurement report 6328404991 → ruling A recorded 6328933548 → build report 6329807836.

Check Reading
Shape Draft, base main. First line Fixes #13315, then Clause-②: no. Title and body applied by the seat from the report (the dev may not patch them). One changeset, @object-ui/plugin-grid and @object-ui/app-shell patch. 7 files, +884 / −34. check-governed-merges.mjs --pr objectstack-ai/objectui#13316: 0 of 7 paths governed, 918 lines ≤ 3000. No contract face is touched (no Clause-②: yes, no narrowing declaration, no published schema, no governed path), so this ACCEPT is the review of record at the seat's tier.
Ruling A, read against the diff assembleImportRequest sends format: 'csv' with sourceRowsToCsv(rows) when the source is a CSV file on the hand-mapped path, and on a named mapping unless it declares json; a csv-declared mapping keeps CSV from any source; xlsx and paste keep JSON rows. The CSV-file fact is one boolean set where the grid is loaded, from the same name test parseSpreadsheetFile picks its text arm with (delimitedFileDelimiter). parseDelimited is unchanged. The hand-mapped rows are Record<string, string> (buildRawRows), so the re-spelling is lossless apart from the three stated shapes. The identity adapter cuts the wizard's CSV at record boundaries into ≤500-row batches, each the header plus its records.
Server side, read on objectstack origin/main packages/rest/src/import-prepare.ts accepts format: 'csv' together with writeMode, matchFields, createMissingOptions and skipBlankMatchKey on both the inline and the named-mapping path, so the hand-mapped request shape is served.
Gates Check-runs on the head: 33 success, 3 skipped by design (coverage matrix, dependabot), 0 failures; Lint, Type Check, Test (16 shards and dist pins), Build & E2E, Repo Gates and the Changeset checks are success. Local: targeted 5 files / 45 tests and plugin-grid 240 files / 2168 tests through the verify lock; type-check and lint exit 0; two ablations each red the predicted pins. check:readme-exports NOT MEASURED locally (unbuilt packages); CI's Repo Gates is success.
Changeset prose, read sentence by sentence Matches the diff and states B1–B3 at user level as the ruling requires, including B1 at each 500-row batch end of the user import. Its level of detail about the cell rule matches the published text of objectstack-ai/objectstack#25130's changeset.
Accepted deviations importParsers.ts edited only to name the extension test (delimitedFileDelimiter); .txt and .tsv count as CSV files (card item 2's delimited-text inputs); the identity adapter reads the wizard's CSV back to batch it, rather than widening DataSource.importRecords; only the import-reading app-shell tests run locally (CI ran the full suite).
Out of scope parseDelimited's doc comment (trims both ends, says trailing); the preview's checkImportCell / savedMappingToDisplayIndexMap reading cells as spelled once objectstack-ai/objectstack#25130 lands (dormant until then); objectstack parseCsvToRows' blank-line and repeated-header readings, which this PR never reaches. All three noted, not filed.
Landing Not governed ⇒ ordinary queue landing: pr_ready + automerge_enable through the relay. Then objectstack's .objectui-sha bump over the merge commit, then objectstack-ai/objectstack#25130.

Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 22, 2026 00:43
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 22, 2026 00:43
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 56cf4d8 Oct 22, 2026
37 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-13315-import-wizard-csv-door branch October 22, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants