Skip to content

fix(site): DR-7903 remove Optimize section from pricing page#7721

Closed
ArthurGamby wants to merge 1 commit intomainfrom
dr-7903-remove-optimize-section-pricing
Closed

fix(site): DR-7903 remove Optimize section from pricing page#7721
ArthurGamby wants to merge 1 commit intomainfrom
dr-7903-remove-optimize-section-pricing

Conversation

@ArthurGamby
Copy link
Copy Markdown
Contributor

@ArthurGamby ArthurGamby commented Mar 27, 2026

Summary

  • Removes the Database optimizations section (containing the "Query insights" row) from the comparison table on the pricing page
  • Change is in comparisonSections in pricing-data.ts

Linear

https://linear.app/prisma-company/issue/DR-7903/remove-optimize-section-from-the-pricing-page

Test plan

  • Open the Vercel preview link for this PR
  • Navigate to /pricing
  • Scroll down to the Compare plans table
  • Confirm the Database optimizations section (Query insights row) is no longer present

Summary by CodeRabbit

  • Chores
    • Refined pricing comparison sections and FAQ content formatting to enhance consistency and readability across the pricing page.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 27, 2026

Walkthrough

Reformatted type definitions and function signatures for improved readability, consolidated FAQ string literals with quote style normalization, and updated pricing comparison data by removing the "Database optimizations" section entry and restructuring the "Cache tag invalidations" row.

Changes

Cohort / File(s) Summary
Type and Function Formatting
apps/site/src/app/pricing/pricing-data.ts
Consolidated Symbol union type from multi-line to single-line declaration and reformatted formatAmountForAllCurrencies function signature and map expression to single-line format without behavioral changes.
Pricing Data Structure Updates
apps/site/src/app/pricing/pricing-data.ts
Removed entire "Database optimizations" section entry from comparisonSections and reformatted "Cache tag invalidations" row array structure in exported constant.
FAQ Content String Normalization
apps/site/src/app/pricing/pricing-data.ts
Converted multiple FAQ answer HTML strings from double-quoted literals with escaped double quotes (class=\"...\") to single-quoted literals with unescaped double quotes (class="..."), including one case with escaped apostrophe.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ 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 accurately reflects the main change: removing the 'Database optimizations' section from the pricing page, which is the primary objective of this PR.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

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

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview, Comment Mar 27, 2026 2:12pm
docs Ready Ready Preview, Comment Mar 27, 2026 2:12pm
eclipse Ready Ready Preview, Comment Mar 27, 2026 2:12pm
site Ready Ready Preview, Comment Mar 27, 2026 2:12pm

Request Review

@argos-ci
Copy link
Copy Markdown

argos-ci bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ✅ No changes detected - Mar 27, 2026, 2:22 PM

@ArthurGamby ArthurGamby marked this pull request as ready for review March 27, 2026 14:16
Copy link
Copy Markdown
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.

🧹 Nitpick comments (1)
apps/site/src/app/pricing/pricing-data.ts (1)

160-197: Add a small regression test for removed comparison sections.

To prevent accidental reintroduction, add a test asserting that comparisonSections does not include "Database optimizations" and that expected section titles remain present.

✅ Example test shape
+import { comparisonSections } from "./pricing-data";
+
+describe("pricing comparison sections", () => {
+  it('does not include "Database optimizations"', () => {
+    const titles = comparisonSections.map((s) => s.title);
+    expect(titles).not.toContain("Database optimizations");
+  });
+});
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/site/src/app/pricing/pricing-data.ts` around lines 160 - 197, Add a
regression test for the exported constant comparisonSections that asserts the
array of section titles does not include "Database optimizations" and that the
expected titles in the diff ("Managed Connection Pool", "Global Cache", "Data
management", "Platform") are present; locate the constant comparisonSections in
the module and write a unit test that imports it, maps comparisonSections to
their title strings, checks titleList.includes for each expected title, and
asserts titleList.includes("Database optimizations") is false (or uses a
negative assertion) to fail if the removed section is reintroduced.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@apps/site/src/app/pricing/pricing-data.ts`:
- Around line 160-197: Add a regression test for the exported constant
comparisonSections that asserts the array of section titles does not include
"Database optimizations" and that the expected titles in the diff ("Managed
Connection Pool", "Global Cache", "Data management", "Platform") are present;
locate the constant comparisonSections in the module and write a unit test that
imports it, maps comparisonSections to their title strings, checks
titleList.includes for each expected title, and asserts
titleList.includes("Database optimizations") is false (or uses a negative
assertion) to fail if the removed section is reintroduced.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 634eea67-b002-45bf-adba-18616b726ac0

📥 Commits

Reviewing files that changed from the base of the PR and between 6f79795 and b6d5cb3.

📒 Files selected for processing (1)
  • apps/site/src/app/pricing/pricing-data.ts

@ArthurGamby
Copy link
Copy Markdown
Contributor Author

Wrong repo — this ticket is for the website repo, not web.

@ArthurGamby ArthurGamby deleted the dr-7903-remove-optimize-section-pricing branch March 27, 2026 14:41
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