Skip to content

Conversation

dabisrat
Copy link

@dabisrat dabisrat commented Sep 23, 2025

Summary by CodeRabbit

  • Documentation
    • Fixed typos, grammar, and capitalization across Client, React, UT API, Concepts (Auth/Security, Regions & ACL), File Routes, and Uploading Files pages.
    • Corrected headings (“Parameters”), phrases (“Go to Definition”), and region name (“San Francisco”).
    • Updated Expo useImageUploader docs: removed onInsufficientPermissions from OpenImagePickerOptions.
    • Corrected type in Error Handling docs: cause?: unknown.
    • Standardized terminology (UploadThing, client-side) and identifiers.

Copy link

changeset-bot bot commented Sep 23, 2025

⚠️ No Changeset found

Latest commit: f84feb2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Sep 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
legacy-docs-uploadthing Ignored Ignored Sep 23, 2025 3:06am

Copy link

vercel bot commented Sep 23, 2025

@dabisrat is attempting to deploy a commit to the Ping Labs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

coderabbitai bot commented Sep 23, 2025

Walkthrough

Documentation updates across multiple pages correcting typos, grammar, and terminology. The Expo API reference removes the onInsufficientPermissions option from OpenImagePickerOptions. The error-handling docs correct a type from “unkown” to “unknown.” No code or runtime behavior changes included.

Changes

Cohort / File(s) Summary of Changes
API Reference — Typo fixes
docs/src/app/(docs)/api-reference/client/page.mdx, docs/src/app/(docs)/api-reference/react/page.mdx, docs/src/app/(docs)/api-reference/ut-api/page.mdx
Spelling fixes (e.g., “Go to Definition”, “initialization”); no API changes.
Expo API — Options update + typos
docs/src/app/(docs)/api-reference/expo/page.mdx
Corrected headings; removed onInsufficientPermissions from OpenImagePickerOptions; other structure retained.
Concepts — Error handling type fix
docs/src/app/(docs)/concepts/error-handling/page.mdx
Corrected exported type field to cause?: unknown.
Docs — Wording and terminology
docs/src/app/(docs)/concepts/auth-security/page.mdx, docs/src/app/(docs)/concepts/regions-acl/page.mdx, docs/src/app/(docs)/file-routes/page.mdx, docs/src/app/(docs)/uploading-files/page.mdx
Grammar, spelling, and terminology corrections (e.g., “publicly”, region spelling, capitalization, phrasing). No API changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

📚 documentation

Suggested reviewers

  • juliusmarminge
  • markflorkowski

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "fix: fix typos in the docs" accurately reflects the PR's primary purpose—correcting documentation across multiple files—so it is relevant and concise for reviewers, though it redundantly repeats "fix" and is slightly generic.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/src/app/(docs)/api-reference/expo/page.mdx (1)

152-165: Fix mismatched names in the Document picker section.

  • The “Returns” property is named openImagePicker but should be openDocumentPicker.
  • The snippet types the options as OpenImagePickerOptions; this should be a document‑specific options type (or reference the same generic shape, but the name should not mention “Image”).
  • The example passes onInsufficientPermissions and references “Photos,” which doesn’t match document picking.

Apply this diff:

@@
-          openDocumentPicker({
-            input, // Matches the input schema from the FileRouter endpoint
-            onInsufficientPermissions: () => {
-              Alert.alert(
-                "No Permissions",
-                "You need to grant permission to your Photos to use this",
-                [
-                  { text: "Dismiss" },
-                  { text: "Open Settings", onPress: openSettings },
-                ],
-              );
-            },
-          });
+          openDocumentPicker({
+            input, // Matches the input schema from the FileRouter endpoint
+          });
@@
-  <Property
-    name="openImagePicker"
-    type="(opts: OpenImagePickerOptions) => Promise<void>"
-  >
+  <Property
+    name="openDocumentPicker"
+    type="(opts: OpenDocumentPickerOptions) => Promise<void>"
+  >
@@
-    type OpenImagePickerOptions = {
+    type OpenDocumentPickerOptions = {
       input: TInput // Matches the input schema from the FileRouter endpoint
       /**
        * Callback to run if the user cancels the picker.
        */
       onCancel?: () => void
     }

Also applies to: 191-206

🧹 Nitpick comments (8)
docs/src/app/(docs)/api-reference/react/page.mdx (4)

326-329: Grammar: “lets” (no apostrophe).

Use “lets” instead of “let’s”.

Apply this diff:

- A `react-dropzone` powered dropzone that let's you drag and drop files to
+ A `react-dropzone` powered dropzone that lets you drag and drop files to

375-376: Duplicate words: “upload to upload to”.

Remove the duplicate phrase.

- The name/slug of the [route](/file-routes) you want to upload to upload to
+ The name/slug of the [route](/file-routes) you want to upload to

246-260: Consistency: “server‑side” vs “serverside”.

Hyphenate for consistency with other pages.

- Callback function that runs **after** the serverside
+ Callback function that runs **after** the server-side

185-208: API docs consistency: onUploadBegin param shape.

Example uses a string argument (name), while props specify ({ file: string }). Align either the example or the type.

Also applies to: 285-288

docs/src/app/(docs)/api-reference/client/page.mdx (1)

12-13: Minor grammar: “working with files”.

Add “with”.

-The UploadThing Client module provides utilities for working files in your
+The UploadThing Client module provides utilities for working with files in your
docs/src/app/(docs)/uploading-files/page.mdx (2)

18-26: Consistency: “Client‑side uploads” capitalization/hyphenation.

Standardize heading and occurrences to “Client‑side uploads”.

-## Client Side Uploads
+## Client-side uploads

122-129: Code sample correctness: let vs const.

h is mutated; use let to avoid confusion.

-function djb2(s: string) {
-  const h = 5381;
+function djb2(s: string) {
+  let h = 5381;
docs/src/app/(docs)/api-reference/expo/page.mdx (1)

156-158: Copy: refer to “Files” for document picker.

“Photos” is misleading for the document picker flow.

Apply this diff:

-                "You need to grant permission to your Photos to use this",
+                "You need to grant permission to your Files to use this",
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 18f98a7 and f84feb2.

📒 Files selected for processing (9)
  • docs/src/app/(docs)/api-reference/client/page.mdx (1 hunks)
  • docs/src/app/(docs)/api-reference/expo/page.mdx (1 hunks)
  • docs/src/app/(docs)/api-reference/react/page.mdx (3 hunks)
  • docs/src/app/(docs)/api-reference/ut-api/page.mdx (1 hunks)
  • docs/src/app/(docs)/concepts/auth-security/page.mdx (1 hunks)
  • docs/src/app/(docs)/concepts/error-handling/page.mdx (1 hunks)
  • docs/src/app/(docs)/concepts/regions-acl/page.mdx (1 hunks)
  • docs/src/app/(docs)/file-routes/page.mdx (6 hunks)
  • docs/src/app/(docs)/uploading-files/page.mdx (2 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2024-10-08T16:10:15.532Z
Learnt from: markflorkowski
PR: pingdotgg/uploadthing#978
File: examples/minimal-appdir/src/server/uploadthing.ts:62-62
Timestamp: 2024-10-08T16:10:15.532Z
Learning: In the `onUploadComplete` handler in `examples/minimal-appdir/src/server/uploadthing.ts`, the return value `{ foo: "bar" }` is intentionally a placeholder for user-defined logic and may represent database returns or other computed values.

Applied to files:

  • docs/src/app/(docs)/file-routes/page.mdx
  • docs/src/app/(docs)/uploading-files/page.mdx
📚 Learning: 2024-10-08T16:10:15.532Z
Learnt from: markflorkowski
PR: pingdotgg/uploadthing#978
File: examples/minimal-appdir/src/server/uploadthing.ts:41-43
Timestamp: 2024-10-08T16:10:15.532Z
Learning: In the `examples/minimal-appdir/src/server/uploadthing.ts` and other example files, the commented-out header validation code is intentional and serves as an example for users.

Applied to files:

  • docs/src/app/(docs)/file-routes/page.mdx
🔇 Additional comments (18)
docs/src/app/(docs)/api-reference/react/page.mdx (3)

226-229: Typo fix LGTM: “Go to Definition”.

Good catch; improves editor UX clarity.


385-388: Typo fix LGTM: “Go to Definition”.

Consistent with client docs.


517-520: Typo fix LGTM: “Go to Definition”.

Consistent wording across sections.

docs/src/app/(docs)/concepts/regions-acl/page.mdx (1)

32-32: Spelling fix LGTM: “San Francisco”.

Accurate region name.

docs/src/app/(docs)/api-reference/client/page.mdx (1)

51-54: Typo fix LGTM: “Go to Definition”.

Matches React and hook docs.

docs/src/app/(docs)/concepts/auth-security/page.mdx (1)

19-20: Spelling fix LGTM: “publicly”.

Clearer, correct adverb.

docs/src/app/(docs)/api-reference/ut-api/page.mdx (1)

27-28: Spelling fix LGTM: “initialization”.

Improves professionalism.

docs/src/app/(docs)/uploading-files/page.mdx (2)

38-43: Grammar fix LGTM.

Reads smoothly now.


524-525: Spelling fix LGTM: “registering”.

Accurate phrasing.

docs/src/app/(docs)/concepts/error-handling/page.mdx (1)

102-104: Type fix LGTM: cause?: unknown.

Correct TS type; avoids misspelling.

docs/src/app/(docs)/file-routes/page.mdx (6)

71-74: Grammar fix LGTM: “allows”.

Improves readability.


176-177: Clarity fix LGTM.

Error flow phrasing is clearer.


201-202: Consistency fix LGTM: “UploadThing server won’t”.

Terminology and hyphenation aligned.


241-242: Typo fix LGTM: “identifier”.

Corrects spelling.


258-259: Comment clarity LGTM.

UTFiles symbol behavior described correctly.


288-289: Grammar fix LGTM: “be passed”.

Accurate tense/voice.

docs/src/app/(docs)/api-reference/expo/page.mdx (2)

174-174: Typo fix looks good.

"Parameters" header correction is correct.


61-75: Align docs with actual OpenImagePickerOptions — remove or make permissions callback optional.

Docs show onInsufficientPermissions as required in both the example and the OpenImagePickerOptions type. Confirm whether the public API in @uploadthing/expo still requires this callback; if it does not, remove it from the example and the type; if it does, mark it optional (onInsufficientPermissions?: () => void) to avoid breaking consumers.

Location: docs/src/app/(docs)/api-reference/expo/page.mdx — example (lines 61–75) and type (lines 108–120).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant