Skip to content

ENG-712: Accept JSON uploads in Nova + fix file-size display#1047

Merged
ved015 merged 1 commit into
mainfrom
mahesh/eng-712-json-upload-nova
Jun 4, 2026
Merged

ENG-712: Accept JSON uploads in Nova + fix file-size display#1047
ved015 merged 1 commit into
mainfrom
mahesh/eng-712-json-upload-nova

Conversation

@MaheshtheDev
Copy link
Copy Markdown
Member

  • Accept .json / application/json files in the add-document uploader.
  • Show file sizes in B/KB/MB instead of always '0.00 MB' for small files.

- Accept .json / application/json files in the add-document uploader.
- Show file sizes in B/KB/MB instead of always '0.00 MB' for small files.
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Jun 4, 2026

ENG-712

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jun 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
supermemory-app 004714a Commit Preview URL

Branch Preview URL
Jun 04 2026, 08:18 AM

Copy link
Copy Markdown
Member Author


How to use the Graphite Merge Queue

Add the label Main to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
supermemory-mcp 004714a Jun 04 2026, 08:17 AM

@MaheshtheDev MaheshtheDev marked this pull request as ready for review June 4, 2026 08:18
@graphite-app graphite-app Bot requested a review from Dhravya June 4, 2026 08:18
@claude
Copy link
Copy Markdown

claude Bot commented Jun 4, 2026

Claude finished @MaheshtheDev's task in 51s —— View job


Review Complete

  • Gather context and understand the changes
  • Review code for bugs, security issues, and logic errors
  • Submit review

Summary: Reviewed PR for JSON upload support and file-size display fix. No bugs, security issues, or logic errors found. The implementation is clean and consistent with existing patterns. Submitted review with score 10/10.

Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

Overview: Adds JSON file upload support and fixes file size display to show human-readable units instead of always showing MB.

Issues found: None — this looks good to ship.

The implementation is clean:

  • JSON support correctly adds both the .json extension to the allowed set and the application/json MIME type check, consistent with existing patterns
  • formatFileSize() handles edge cases properly (bytes < 1024 shown as B, correct unit progression, bounds-checking on array index, appropriate decimal precision)

Score: 10/10

@ved015 ved015 merged commit fdd966f into main Jun 4, 2026
11 checks passed
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.

2 participants