Skip to content

Conversation

@ericallam
Copy link
Member

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2025

⚠️ No Changeset found

Latest commit: d4e1347

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 19, 2025

Walkthrough

Documentation across three files was updated to reflect a new mode-centric architecture for prismaExtension. The primary file, prismaExtension.mdx, was significantly restructured to explicitly document three modes (legacy, engine-only, modern) with decision trees, feature matrices, use-case guidance, and comprehensive examples. The changes include migration paths, configuration options, schema support details, and deployment guidance. Secondary files (frameworks/prisma.mdx and manual-setup.mdx) were updated to include the required mode parameter in configuration examples.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Potential areas requiring attention:
    • Verify all code examples across files use consistent and correct mode values (legacy, engine-only, modern)
    • Confirm that the mode parameter is marked as required and documented consistently in all files
    • Cross-check that examples in prismaExtension.mdx align with recommended patterns referenced in frameworks/prisma.mdx and manual-setup.mdx
    • Ensure the Before/After migration examples accurately represent the configuration changes users need to make

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The pull request description is entirely missing; no content was provided despite the repository template requiring multiple sections including Checklist, Testing, Changelog, and Screenshots. Add a complete pull request description following the repository template, including the issue reference, testing steps, changelog entry, and any relevant screenshots.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: updating prismaExtension documentation to reflect new mode functionality introduced in version 4.1.1.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ea-branch-96

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: 2

🧹 Nitpick comments (1)
docs/config/extensions/prismaExtension.mdx (1)

189-195: Standardize on "prebuild" or "pre-build" terminology.

The document mixes variants: "prebuild" appears in line 190 ("prebuild": "prisma generate"), while "pre-build" appears in line 341 ("configure a pre-build command"). Choose one variant consistently.

Recommendation: Use prebuild (npm script convention) for code and "pre-build" for descriptive text discussing the build process, or standardize on one throughout. The package.json scripts convention favors prebuild as the script name.

-configure a pre-build command
+configure a prebuild command

Also applies to: 341-341

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1a7ee24 and d4e1347.

⛔ Files ignored due to path filters (1)
  • docs/images/pre-build-command-prisma-generate.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • docs/config/extensions/prismaExtension.mdx (1 hunks)
  • docs/guides/frameworks/prisma.mdx (1 hunks)
  • docs/manual-setup.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/config/extensions/prismaExtension.mdx

[grammar] ~16-~16: Use a hyphen to join words.
Context: ... from previous versions ### Before (pre 4.1.1) ```ts import { prismaExtension }...

(QB_NEW_EN_HYPHEN)


[uncategorized] ~325-~325: The official name of this software platform is spelled with a capital “H”.
Context: ...lf before deploying your project. #### Github Actions If you are deploying your proj...

(GITHUB)


[uncategorized] ~339-~339: The official name of this software platform is spelled with a capital “H”.
Context: ...R_ACCESS_TOKEN }} ``` #### Trigger.dev Github integration If you are using the [Trig...

(GITHUB)


[uncategorized] ~341-~341: The official name of this software platform is spelled with a capital “H”.
Context: ...tion If you are using the Trigger.dev Github integration, you ...

(GITHUB)


[uncategorized] ~341-~341: Do not mix variants of the same word (‘pre-build’ and ‘prebuild’) within a single text.
Context: ...ithub-integration), you can configure a pre-build command to run prisma generate before...

(EN_WORD_COHERENCY)


[uncategorized] ~341-~341: Do not mix variants of the same word (‘pre-build’ and ‘prebuild’) within a single text.
Context: ...oject's settings page and configure the pre-build command to run prisma generate, for e...

(EN_WORD_COHERENCY)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (8)
docs/manual-setup.mdx (1)

314-323: Correctly documents mode parameter addition.

The addition of mode: "legacy" aligns with the broader PR changes and example usage across other files. The configuration is clear and properly integrated.

docs/guides/frameworks/prisma.mdx (1)

87-105: Clear documentation of mode parameter requirement.

The example properly shows mode: "legacy" with helpful documentation directing users to the full Prisma extension documentation. This provides appropriate context for users in the frameworks guide.

docs/config/extensions/prismaExtension.mdx (6)

14-45: Migration guide clearly documents the required mode parameter.

The Before/After examples effectively show the transition path for existing users. The mode requirement is prominently highlighted and examples are consistent across the file.


47-70: Decision tree provides good UX for mode selection.

The mermaid flowchart is clear and helps users quickly identify which mode fits their use case. The color coding and feature bullets reinforce the decision logic.


74-284: Comprehensive per-mode documentation with appropriate examples.

Each mode section clearly documents use cases, features, schema configurations, and tested versions. The documentation provides sufficient detail for users to implement each mode correctly.


347-356: Version compatibility matrix is helpful and clear.

The matrix effectively summarizes which mode to use for each Prisma version range, with appropriate notes about requirements and features. This is valuable reference material.


590-687: Troubleshooting section covers the main error scenarios.

The section addresses common issues (missing schema, version detection, binary targets, TypedSQL, config file errors) with clear diagnostic steps and solutions. This will be helpful for users encountering problems.


691-1005: Five complete examples cover all major use cases.

The examples are well-organized (standard setup, multi-file schema, config file, custom output path, Prisma 7 beta) and include realistic configurations with supporting files (package.json, prisma files, TypeScript). Each example is syntactically correct and shows the recommended patterns.

You can use it for a simple Prisma setup like this:
## Migration from previous versions

### Before (pre 4.1.1)
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Hyphenate compound modifier "pre-4.1.1".

"Pre 4.1.1" should use a hyphen when modifying a noun: "pre-4.1.1".

-### Before (pre 4.1.1)
+### Before (pre-4.1.1)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
### Before (pre 4.1.1)
### Before (pre-4.1.1)
🧰 Tools
🪛 LanguageTool

[grammar] ~16-~16: Use a hyphen to join words.
Context: ... from previous versions ### Before (pre 4.1.1) ```ts import { prismaExtension }...

(QB_NEW_EN_HYPHEN)

🤖 Prompt for AI Agents
In docs/config/extensions/prismaExtension.mdx around line 16, the phrase "Before
(pre 4.1.1)" should hyphenate the compound modifier; update the text to "Before
(pre-4.1.1)" (or otherwise hyphenate any "pre 4.1.1" occurrences on that line)
so the prefix "pre-" correctly modifies the version number.


When using `modern` and `engine-only` modes, you'll need to ensure that you run `prisma generate` yourself before deploying your project.

#### Github Actions
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Capitalize "GitHub" consistently throughout the document.

The platform is officially "GitHub" (not "Github"). This appears in three locations:

  • Line 325: "#### Github Actions"
  • Line 339: "#### Trigger.dev Github integration"
  • Line 341: "[Trigger.dev Github integration]"
-#### Github Actions
+#### GitHub Actions

-#### Trigger.dev Github integration
+#### Trigger.dev GitHub integration

-[Trigger.dev Github integration]
+[Trigger.dev GitHub integration]

Also applies to: 339-339, 341-341

🧰 Tools
🪛 LanguageTool

[uncategorized] ~325-~325: The official name of this software platform is spelled with a capital “H”.
Context: ...lf before deploying your project. #### Github Actions If you are deploying your proj...

(GITHUB)

🤖 Prompt for AI Agents
In docs/config/extensions/prismaExtension.mdx around lines 325, 339, and 341,
replace the incorrect "Github" casing with the official "GitHub" in the headings
and link text; update "#### Github Actions" to "#### GitHub Actions", "####
Trigger.dev Github integration" to "#### Trigger.dev GitHub integration", and
change the link text "[Trigger.dev Github integration]" to "[Trigger.dev GitHub
integration]", ensuring all other occurrences in this file use the same "GitHub"
capitalization for consistency.

@ericallam ericallam merged commit 3af7303 into main Nov 19, 2025
7 checks passed
@ericallam ericallam deleted the ea-branch-96 branch November 19, 2025 11:16
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.

3 participants