Skip to content

fix: improve export fidelity for CSV, Excel, and query results (#69, #70, #72, #73, #76, #79, #80) - #119

Merged
Exotic209093 merged 1 commit into
mainfrom
worktree-wf_6dffebfe-80c-22
Sep 9, 2026
Merged

Exotic209093 merged 1 commit into
mainfrom
worktree-wf_6dffebfe-80c-22

Conversation

@Exotic209093

Copy link
Copy Markdown
Owner

, #72, #73, #76, #79, #80)

- Fix field mapping in ExportModal for accurate column output
- Preserve data types during bulk API export
- Handle special characters in download filenames
- Correct record count in QueryScreen exports
- Add unit tests for queryAll pagination edge cases

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T15:06:17.716947Z 0f484e1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0f484e1e56

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

header: true,
delimiter: ',',
skipEmptyLines: true,
dynamicTyping: true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve text and datetime values when parsing bulk CSV

Enabling dynamicTyping for every column makes Papa Parse infer types solely from CSV contents, without Salesforce field metadata. Consequently, text values such as postal codes or external IDs containing 00123 become numbers and lose leading zeroes, while ISO datetime strings become Date objects; those Date objects are subsequently omitted by flattenRecord because it traverses them with Object.entries. Bulk-query exports can therefore silently corrupt text fields or entirely lose datetime columns, so conversion needs to be schema-aware or the CSV values should remain strings.

Useful? React with 👍 / 👎.

Comment on lines +71 to +75
if (!seen.has(fullKey)) {
seen.add(fullKey);
cols.push(fullKey);
}
collectKeys(v, fullKey, seen, cols);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Flatten snapshot rows before adding dotted columns

For scheduled queries containing relationships, this adds headers such as Account.Name, but runSchedule stores the original nested records and later calls exportRecords(snapshot.records, snapshot.columns, ...); every exporter reads values with record[column]. Since the raw row has record.Account.Name rather than record['Account.Name'], the new dotted columns are blank in downloaded snapshots, while the added parent Account column still serializes the object incorrectly. Flatten the records before storing/exporting them, or resolve dotted paths instead of emitting unmatched headers.

Useful? React with 👍 / 👎.

Exotic209093 added a commit that referenced this pull request Sep 9, 2026
#121)

Auto-merged: diff engine and round-trip conversion fixes (duplicate match keys, nested-object comparison, JSON/Excel round-trip corruption) verified by workflow (tsc, lint passing; test failures pre-existing). Rebased to resolve merge conflict with PR #119.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant