Skip to content

[draft] daily release#343

Merged
softmarshmallow merged 5 commits intomainfrom
canary
May 21, 2025
Merged

[draft] daily release#343
softmarshmallow merged 5 commits intomainfrom
canary

Conversation

@softmarshmallow
Copy link
Copy Markdown
Member

@softmarshmallow softmarshmallow commented May 20, 2025

Summary by CodeRabbit

  • Documentation

    • Improved documentation for the editor app directory structure, landing page organization, and sitemap generation.
    • Updated contributing guide with clearer Node.js and package manager setup instructions.
  • New Features

    • Clarified separation of landing page components and pages in the editor app documentation.
  • Bug Fixes

    • Adjusted CSS border color defaults and class names for consistency with Tailwind CSS v4 updates.
    • Updated focus-visible styles and corner rounding for improved accessibility and visual consistency.
  • Refactor

    • Replaced custom icon components with standardized icons from the lucide-react library.
    • Removed unused or redundant icon files and centralized icon exports.
  • Chores

    • Updated and synchronized dependency versions across multiple packages and apps, including downgrading React to 19.0.0 where applicable.
    • Removed unused dependencies and updated configuration for Tailwind CSS and PostCSS.

@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented May 20, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
backgrounds ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 6:27pm
blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 6:27pm
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 6:27pm
grida ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 6:27pm
viewer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 6:27pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
code ⬜️ Ignored (Inspect) May 20, 2025 6:27pm
legacy ⬜️ Ignored (Inspect) May 20, 2025 6:27pm

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2025

Walkthrough

This update includes dependency version adjustments across multiple packages, notably downgrading React to 19.0.0 in several places. Documentation improvements clarify the /editor/app directory structure, the role of the (www) directory, and sitemap generation. Several custom icon components are removed in favor of using the lucide-react library. Tailwind CSS configuration and usage are updated for compatibility with v4.

Changes

Files/Paths Change Summary
AGENTS.md, CONTRIBUTING.md Expanded documentation on /editor/app structure, landing pages, sitemap, and improved environment setup instructions.
apps/backgrounds/package.json, apps/blog/package.json, apps/docs/package.json, apps/viewer/package.json, desktop/package.json, editor/package.json, packages/grida-canvas-pixelgrid/package.json, packages/grida-canvas-react-timeline/package.json, packages/grida-canvas-ruler/package.json, packages/grida-canvas-transparency-grid/package.json, packages/react-p-queue/package.json Updated dependency versions, especially downgrading react and react-dom to 19.0.0; other minor dependency bumps and removals.
apps/viewer/app/globals.css, apps/viewer/postcss.config.mjs, apps/viewer/tailwind.config.ts Updated Tailwind CSS setup for v4 compatibility: changed import method, added border color override, removed custom Tailwind config, and updated PostCSS plugin reference.
apps/viewer/app/page.tsx, apps/viewer/scaffolds/pdf-page-flip/index.tsx Minor CSS class name adjustments for focus and border-radius styling.
editor/app/(www)/(forms)/forms/_sections/features.tsx, editor/app/(www)/(west)/west/page.tsx Replaced custom icon imports with lucide-react icons and updated their usage.
editor/www/icons/index.ts, editor/www/icons/mdi-account-tree.tsx, editor/www/icons/mdi-api.tsx, editor/www/icons/mdi-dashboard-customize.tsx, editor/www/icons/mdi-smart-toy.tsx, editor/www/icons/unicons-analysis.tsx, editor/www/icons/unicons-visual-studio.tsx Removed custom icon component files and their exports.
editor/scaffolds/editor/init.ts Modified sidebar menu structure for form documents, renaming folders and adding a new settings menu item.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant EditorApp
    participant LucideReact
    participant SitemapGen

    User->>EditorApp: Requests landing page
    EditorApp->>LucideReact: Renders icons for features
    EditorApp->>SitemapGen: Generates sitemap.xml for public pages
    SitemapGen-->>EditorApp: Returns sitemap data
    EditorApp-->>User: Serves landing page with updated icons and sitemap
Loading

Possibly related PRs

  • [Ops] add AGENTS.md #337: Added the initial AGENTS.md file introducing the overall project architecture and technologies; this PR builds upon and expands that documentation.

Poem

In the warren of code, we hopped and we pruned,
Old icons retired, new Lucide ones tuned.
Docs now are clearer, the sitemap in view,
Tailwind’s fresh breeze brings a style that’s new.
React rolls back, dependencies align—
A spring-cleaned project, all fluffy and fine!
🐇✨

Note

⚡️ AI Code Reviews for VS Code, Cursor, Windsurf

CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
Learn more here.


Note

⚡️ Faster reviews with caching

CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.
Enjoy the performance boost—your workflow just got faster.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate Unit Tests
  • Create PR with Unit Tests
  • Commit Unit Tests in branch canary
  • Post Copyable Unit Tests in Comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai auto-generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Copy Markdown

@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: 1

🧹 Nitpick comments (4)
CONTRIBUTING.md (2)

8-8: Remove inline comment from code block for clarity
Comments like # clone the repo inside the fenced code block can be moved to prose above the block (e.g., as a list item) so the code snippet focuses purely on the commands.


11-14: Clarify Node.js version and pre-requisites
The new nvm use and corepack enable pnpm steps are essential for environment consistency. To avoid ambiguity:

  • Reference a .nvmrc file or replace nvm use with nvm use [version] or nvm use --lts.
  • Note that nvm must be installed (e.g., link to its installation guide).
  • Optionally mention that Corepack is built into Node.js ≥ 16.9.0, so no extra install is needed.
AGENTS.md (1)

85-87: Use hyphens for compound modifiers in docs. To improve readability and correctness, hyphenate “page-specific” and capitalize sentence starts. For example:

-    - `(www)` contains the landing page, seo-purpose static pages. when to add new webpages, this is the root directory.
-    - `sitemap.ts` contains the sitemap.xml generator. this contains the sitemap for the public pages, usually under `(www)` directory.
-  - `/www` contains the landing page specific components.
+    - `(www)` contains the landing-page–specific, SEO-purpose static pages. When adding new webpages, this is the root directory.
+    - `sitemap.ts` contains the sitemap.xml generator for public pages under the `(www)` directory.
+    - `/www` contains the landing-page–specific components.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~87-~87: When ‘page-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...ectory. - /www contains the landing page specific components. - /components contains ...

(SPECIFIC_HYPHEN)

editor/app/(www)/(west)/west/page.tsx (1)

25-25: Consolidate lucide-react imports
The ChartLineIcon import on its own line can be merged with the existing lucide-react import at line 6 to reduce fragmentation.

Apply:

-import { ArrowRight, GiftIcon, Link2, Percent, Star } from "lucide-react";
-import { ChartLineIcon } from "lucide-react";
+import { ArrowRight, GiftIcon, Link2, Percent, Star, ChartLineIcon } from "lucide-react";
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 10a4304 and e1b43fe.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (28)
  • AGENTS.md (1 hunks)
  • CONTRIBUTING.md (1 hunks)
  • apps/backgrounds/package.json (1 hunks)
  • apps/blog/package.json (1 hunks)
  • apps/docs/package.json (1 hunks)
  • apps/viewer/app/globals.css (1 hunks)
  • apps/viewer/app/page.tsx (1 hunks)
  • apps/viewer/package.json (1 hunks)
  • apps/viewer/postcss.config.mjs (1 hunks)
  • apps/viewer/scaffolds/pdf-page-flip/index.tsx (2 hunks)
  • apps/viewer/tailwind.config.ts (0 hunks)
  • desktop/package.json (1 hunks)
  • editor/app/(www)/(forms)/forms/_sections/features.tsx (2 hunks)
  • editor/app/(www)/(west)/west/page.tsx (2 hunks)
  • editor/package.json (4 hunks)
  • editor/scaffolds/editor/init.ts (2 hunks)
  • editor/www/icons/index.ts (0 hunks)
  • editor/www/icons/mdi-account-tree.tsx (0 hunks)
  • editor/www/icons/mdi-api.tsx (0 hunks)
  • editor/www/icons/mdi-dashboard-customize.tsx (0 hunks)
  • editor/www/icons/mdi-smart-toy.tsx (0 hunks)
  • editor/www/icons/unicons-analysis.tsx (0 hunks)
  • editor/www/icons/unicons-visual-studio.tsx (0 hunks)
  • packages/grida-canvas-pixelgrid/package.json (1 hunks)
  • packages/grida-canvas-react-timeline/package.json (1 hunks)
  • packages/grida-canvas-ruler/package.json (1 hunks)
  • packages/grida-canvas-transparency-grid/package.json (1 hunks)
  • packages/react-p-queue/package.json (1 hunks)
💤 Files with no reviewable changes (8)
  • apps/viewer/tailwind.config.ts
  • editor/www/icons/mdi-account-tree.tsx
  • editor/www/icons/mdi-dashboard-customize.tsx
  • editor/www/icons/unicons-visual-studio.tsx
  • editor/www/icons/mdi-api.tsx
  • editor/www/icons/unicons-analysis.tsx
  • editor/www/icons/mdi-smart-toy.tsx
  • editor/www/icons/index.ts
🧰 Additional context used
🪛 LanguageTool
AGENTS.md

[uncategorized] ~87-~87: When ‘page-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...ectory. - /www contains the landing page specific components. - /components contains ...

(SPECIFIC_HYPHEN)

🔇 Additional comments (28)
desktop/package.json (1)

27-28:

Details

❓ Verification inconclusive

Center React versions at 19.0.0 for desktop
Downgrading react and react-dom to 19.0.0 aligns with other workspaces. Verify there are no lingering references to 19.1.0 and that v19.0.0 supports all required features.

Run this script to confirm:


🏁 Script executed:

#!/bin/bash
# Check for any package.json still pinning react or react-dom to 19.1.0
rg -l '"react(-dom)?"\s*:\s*"19\.1\.0"' -g '*.json'

Length of output: 53


Confirm React version alignment

The grep scan found no remaining 19.1.0 pins in any package.json, so desktop is now consistent at 19.0.0.

• No JSON files reference "react" or "react-dom" at 19.1.0.
• Please manually verify that all React APIs and features in use are supported in v19.0.0.

packages/grida-canvas-react-timeline/package.json (1)

7-7: React devDependency pinned to 19.0.0
This matches the workspace downgrade and keeps consistency.

packages/grida-canvas-ruler/package.json (1)

42-42: Align React devDependency version
Downgraded React to 19.0.0 to maintain parity across packages.

packages/grida-canvas-pixelgrid/package.json (1)

43-43: React devDependency updated to 19.0.0
Consistent version bump across canvas packages.

packages/react-p-queue/package.json (1)

39-39: Standardize React devDependency to 19.0.0
Downgrading React aligns this library with the monorepo's baseline.

packages/grida-canvas-transparency-grid/package.json (1)

49-49:

Details

✅ Verification successful

Align React version in devDependencies. The downgrade to "19.0.0" ensures consistency with the monorepo’s React versions. Please verify that no other package.json file still references a different React version.

You can run this script to confirm:


🏁 Script executed:

#!/bin/bash
# Verify all React versions across package.json files are 19.0.0
rg -H '"react": "([^"]+)"' -g '**/package.json'

Length of output: 979


🏁 Script executed:

#!/bin/bash
set -e
echo "=== packages/grida-canvas-transparency-grid/package.json ==="
rg -n '"react":' -B2 -A2 packages/grida-canvas-transparency-grid/package.json

echo
echo "=== packages/grida-canvas-ruler/package.json ==="
rg -n '"react":' -B2 -A2 packages/grida-canvas-ruler/package.json

Length of output: 987


Consistency check passed: React versions aligned across the monorepo. All package.json files now pin React to "19.0.0" in Dev/Dependencies, and peerDependencies retain the compatible range ^18.0.0 || ^19.0.0. No remaining mismatches detected.

apps/backgrounds/package.json (2)

19-20: Review React and React-DOM version specifiers. Switching to the exact "19.0.0" pins the dependencies and prevents minor updates. Confirm this aligns with the project’s versioning strategy, or consider using a caret (^19.0.0) if you want minor upgrades allowed.


27-27: Add @tailwindcss/postcss plugin. Introducing @tailwindcss/postcss@^4 is required for Tailwind CSS v4 compatibility. Ensure your PostCSS configuration (e.g., postcss.config.js) is updated to include this plugin.

apps/blog/package.json (2)

20-22: Upgrade MDX, clsx, and prism-react-renderer. Bumping @mdx-js/react to ^3.1.0, clsx to ^2.1.1, and prism-react-renderer to ^2.4.1 brings in minor enhancements and fixes. Verify compatibility by running a local build and smoke-testing content rendering.


23-24: Pin React and React-DOM to 19.0.0. Locking to exact versions disallows minor upgrades. Validate this choice against the monorepo’s dependency policy and ensure no version drift exists elsewhere.

apps/viewer/package.json (3)

14-14: Upgrade Lucide React icons. Moving lucide-react from ^0.367.0 to ^0.511.0 may include breaking changes or renamed exports. Search for affected icon imports in your components and update them accordingly.


17-18: Pin React and React-DOM to 19.0.0. Downgrading from 19.1.0 to 19.0.0 aligns this app with the monorepo’s React footprint. Confirm that exact-version pinning matches your release management guidelines.


23-24: Update ESLint, PostCSS, and Tailwind CSS. Adding @eslint/eslintrc@^3, @tailwindcss/postcss@^4, upgrading eslint-config-next to 15.3.2, and bumping tailwindcss to ^4 are needed for Next.js 15 and Tailwind v4 compatibility. Ensure your ESLint config and postcss.config.js/tailwind.config.js reflect these updates and that lint/build pipelines pass without errors.

Also applies to: 29-29, 31-31

editor/scaffolds/editor/init.ts (2)

717-719: Rename from "campaign" to "form" improves clarity and consistency.

This change makes the sidebar folder labeling more intuitive by aligning it with the actual content it contains.


750-758: Good addition of Settings menu item.

Adding a dedicated Settings menu item under the Form folder provides users with a clear access point for form configuration options.

apps/docs/package.json (2)

21-25: Docusaurus packages pinned to exact version.

Using exact versions (removing carets) for Docusaurus packages ensures consistent behavior across environments.


26-28: Support packages updated to latest compatible versions.

These dependency updates ensure compatibility with the other package changes.

apps/viewer/app/page.tsx (1)

16-16: CSS class updated for Tailwind v4 compatibility.

Changed focus-visible:outline-none to focus-visible:outline-hidden to align with Tailwind CSS v4 syntax.

apps/viewer/postcss.config.mjs (1)

4-4:

Details

❓ Verification inconclusive

Updated Tailwind CSS plugin for v4 compatibility.

Changed from tailwindcss to @tailwindcss/postcss to use the correct plugin identifier for Tailwind CSS v4.


🏁 Script executed:

#!/bin/bash
# Verify Tailwind CSS version and related configuration
echo "Checking Tailwind CSS version:"
grep -r "tailwindcss" --include="package.json" apps/viewer | grep -v "node_modules"

echo -e "\nChecking for other PostCSS config files that might need updating:"
fd -t f "postcss.config.{js,mjs,cjs,ts}" -E "**/node_modules/**"

Length of output: 806


🏁 Script executed:

#!/bin/bash
# Find all PostCSS config files in the repo, excluding node_modules
fd --glob "postcss.config.js" \
   --glob "postcss.config.cjs" \
   --glob "postcss.config.mjs" \
   --glob "postcss.config.ts" \
   -E "node_modules"

Length of output: 357


🏁 Script executed:

#!/bin/bash
# Locate all PostCSS configuration files in the repository, excluding node_modules
find . -type f \( \
    -name 'postcss.config.js' -o \
    -name 'postcss.config.cjs' -o \
    -name 'postcss.config.mjs' -o \
    -name 'postcss.config.ts' \
\) -not -path "./node_modules/*"

Length of output: 295


🏁 Script executed:

#!/bin/bash
# Check plugin identifiers in other PostCSS config files
grep -Hn -E "'(tailwindcss|@tailwindcss/postcss)'" ./.legacy/editor/postcss.config.js ./apps/backgrounds/postcss.config.mjs ./editor/postcss.config.mjs || true

Length of output: 166


🏁 Script executed:

#!/bin/bash
# Display contents of other PostCSS config files to verify plugin usage
for file in ./.legacy/editor/postcss.config.js ./apps/backgrounds/postcss.config.mjs ./editor/postcss.config.mjs; do
  echo "=== $file ==="
  sed -n '1,200p' "$file"
  echo
done

Length of output: 1038


🏁 Script executed:

#!/bin/bash
# Display the contents of apps/viewer/postcss.config.mjs to verify plugin syntax
sed -n '1,200p' ./apps/viewer/postcss.config.mjs

Length of output: 194


PostCSS Tailwind Plugin Updated for v4—Please Confirm Legacy Config

  • apps/viewer/postcss.config.mjs now correctly uses @tailwindcss/postcss.
  • Verified apps/backgrounds/postcss.config.mjs and editor/postcss.config.mjs are also on @tailwindcss/postcss.
  • .legacy/editor/postcss.config.js still references the old tailwindcss key.
    • If that project is migrating to Tailwind v4, update its plugin identifier to @tailwindcss/postcss.
    • Otherwise, no action needed there.

No further changes required in apps/viewer.

editor/app/(www)/(west)/west/page.tsx (1)

185-185: Icon replacement appears correct
Using <ChartLineIcon /> for real-time analytics now aligns with the new lucide-react library and removes the local AnalysisIcon.

apps/viewer/scaffolds/pdf-page-flip/index.tsx (2)

47-47: Approve Tailwind border-radius adjustment
Changing rounded to rounded-sm fits the Tailwind v4 styling updates.


367-367: Approve input border-radius adjustment
Updating the input from rounded to rounded-sm maintains consistency with the new base styles.

editor/app/(www)/(forms)/forms/_sections/features.tsx (2)

2-8: Approve icon import migration
Switching from the local @/www/icons module to lucide-react centralizes icon assets and aligns with other parts of the codebase.


19-19: Icon usage updated to lucide-react
All feature cards now correctly use the external icons with className="size-6".

Also applies to: 27-27, 33-33, 40-40, 47-47, 54-54

editor/package.json (1)

48-48: Approve dependency version updates
Bumped @mdx-js/react to ^3.1.0, lucide-react to ^0.511.0, prism-react-renderer to ^2.4.1, and svg-pathdata to ^7.2.0 to stay consistent with other packages.

Also applies to: 156-156, 172-172, 202-202

apps/viewer/app/globals.css (3)

1-1: Approve Tailwind import syntax
Replacing the @tailwind directives with @import 'tailwindcss'; is correct for the new PostCSS plugin configuration.


3-6: Approve custom theme properties
Defining --color-background and --color-foreground under @theme ensures consistent theming across light/dark modes.


16-24: Approve base layer compatibility styles
Adding default border-color rules maintains visual consistency after the Tailwind v4 update.

Comment thread apps/docs/package.json
Comment on lines +29 to +30
"react": "19.0.0",
"react-dom": "19.0.0"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

React downgraded to exact version 19.0.0.

This aligns with the repo-wide React version standardization mentioned in the PR summary.


🏁 Script executed:

#!/bin/bash
# Check for React version consistency across the repository
echo "Checking React versions across the repository:"
fd -t f "package.json" -E "**/node_modules/**" -E "**/.next/**" -x grep -l "\"react\":" {} \; | xargs grep -h "\"react\": " | sort | uniq -c

Length of output: 369


🏁 Script executed:

#!/bin/bash
echo "Listing package.json files with React version '^18.0.0 || ^19.0.0':"
fd -t f "package.json" -E "**/node_modules/**" -E "**/.next/**" -x grep -l '"react": "\^18\.0\.0 \|\| \^19\.0\.0"' {} \;

Length of output: 1270


Inconsistent React version specifiers across repository

The update in apps/docs/package.json to "react": "19.0.0" is correct, but our scan shows many other package.json files still use the range specifier ^18.0.0 || ^19.0.0. For full repo-wide standardization, please update all of them to the exact "19.0.0".

Files needing update (examples):

  • packages/grida-canvas-schema/package.json
  • packages/grida-canvas-io/package.json
  • packages/grida-canvas-react-timeline/package.json
  • …and 20+ more (see script output)

• Run:

grep -R '"react": "\^18\.0\.0 \|\| \^19\.0\.0"' -n .

and replace each occurrence with:

-  "react": "^18.0.0 || ^19.0.0",
+  "react": "19.0.0",
🤖 Prompt for AI Agents
In apps/docs/package.json at lines 29 to 30, the React version is set to the
exact "19.0.0" which is correct. However, to ensure consistency across the
repository, locate all other package.json files that specify React with the
range "^18.0.0 || ^19.0.0" and update those entries to the exact version
"19.0.0". Use the provided grep command to find all occurrences and replace them
accordingly to standardize React versioning repo-wide.

@softmarshmallow softmarshmallow merged commit bcb1b7c into main May 21, 2025
10 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Dec 6, 2025
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