Skip to content

chore: upgrade dependencies #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

harrytran998
Copy link
Member

@harrytran998 harrytran998 commented Feb 24, 2025

Summary by CodeRabbit

  • Chores
    • Re-activated the application startup process.
    • Introduced an automation script for managing dependency updates.
    • Upgraded multiple core libraries to enhance performance, stability, and compatibility.
    • Specified a minimum required runtime version for improved consistency.
  • Style
    • Standardized string formatting across various files to use double quotes.
    • Improved readability in CSS and configuration files through formatting adjustments.
  • Bug Fixes
    • Removed unnecessary comments that could cause confusion in the codebase.

@harrytran998 harrytran998 self-assigned this Feb 24, 2025
Copy link

coderabbitai bot commented Feb 24, 2025

Warning

Rate limit exceeded

@harrytran998 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 25 minutes and 42 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between e12f2b9 and 0b77182.

⛔ Files ignored due to path filters (4)
  • src/app/api/og/[mode]/BeVietnamPro-Bold.ttf is excluded by !**/*.ttf
  • src/app/api/og/[mode]/bvp.bold.woff2 is excluded by !**/*.woff2
  • src/app/favicon.ico is excluded by !**/*.ico
  • src/assets/ellipse.png is excluded by !**/*.png
📒 Files selected for processing (38)
  • deploy/.dockerignore (1 hunks)
  • src/app.config.ts (1 hunks)
  • src/app/(blog)/blog/[slug]/layout.tsx (1 hunks)
  • src/app/(blog)/blog/[slug]/page.tsx (1 hunks)
  • src/app/(blog)/blog/page.tsx (1 hunks)
  • src/app/(blog)/blog/tags/[tag]/page.tsx (1 hunks)
  • src/app/(blog)/blog/tags/page.tsx (1 hunks)
  • src/app/(blog)/layout.tsx (1 hunks)
  • src/app/(marketing)/about-us/page.tsx (1 hunks)
  • src/app/(marketing)/docs/page.tsx (1 hunks)
  • src/app/(marketing)/page.tsx (4 hunks)
  • src/app/(marketing)/show-cases/page.tsx (2 hunks)
  • src/app/api/og/[mode]/route.tsx (1 hunks)
  • src/app/api/search/route.ts (1 hunks)
  • src/app/docs/[...slug]/page.tsx (1 hunks)
  • src/app/global.css (3 hunks)
  • src/app/layout.config.tsx (4 hunks)
  • src/app/layout.tsx (1 hunks)
  • src/app/partnership/[job]/page.tsx (1 hunks)
  • src/app/partnership/page.tsx (1 hunks)
  • src/app/provider.tsx (1 hunks)
  • src/app/rss.xml/route.ts (1 hunks)
  • src/app/sitemap.xml/route.ts (1 hunks)
  • src/assets/css/tailwind.css (1 hunks)
  • src/components/SearchDialog.tsx (1 hunks)
  • src/components/SvgUse.tsx (1 hunks)
  • src/content/docs/okrs-guide/hieu-ve-okrs/meta.json (1 hunks)
  • src/content/docs/okrs-guide/meta.json (1 hunks)
  • src/content/docs/okrs-guide/okrs-nguyen-ban/meta.json (1 hunks)
  • src/content/docs/okrs-guide/theo-doi-va-do-luong/meta.json (1 hunks)
  • src/content/docs/okrs-guide/tong-ket/meta.json (1 hunks)
  • src/content/docs/teams/meta.json (1 hunks)
  • src/hooks/useDomain.tsx (1 hunks)
  • src/modules/docs/source.ts (1 hunks)
  • src/modules/seo/metadata.ts (1 hunks)
  • src/modules/seo/rss.ts (1 hunks)
  • src/utils/modules.ts (1 hunks)
  • src/utils/pathname.ts (1 hunks)

Walkthrough

The pull request updates the package.json file by re-enabling the start script and adding a new upgrade.deps script. It revises multiple dependency and devDependency versions, adds a new dependency (npm-check-updates), and appends an engines section specifying a minimum Bun version. Additionally, various files undergo formatting changes, primarily converting single quotes to double quotes and adjusting whitespace for improved readability, without altering functionality.

Changes

File Summary
package.json - Scripts: Re-enabled the start script and added the upgrade.deps script.
- Dependencies: Updated package versions for @radix-ui/react-tooltip, @techmely/utils, algoliasearch, class-variance-authority, framer-motion, fumadocs-core, fumadocs-mdx, fumadocs-openapi, fumadocs-twoslash, fumadocs-ui, next, react, react-dom, and satori.
- DevDependencies: Updated versions for @biomejs/biome, @dotenvx/dotenvx, @next/bundle-analyzer, @techmely/types, @types/node, @types/react, @types/react-dom, autoprefixer, postcss, tailwindcss, typescript; added npm-check-updates.
- Engines: Added requirement for Bun version >=1.2.2.
app.config.ts - Formatting: Converted string literals from single quotes to double quotes; moved the closing brace of the appConfig object to a new line.
app/(marketing)/page.tsx - Formatting: Reformatted import statements and inline styles to use double quotes; added semicolon to metadata object; removed line breaks in paragraph elements; moved closing parenthesis of HomePage function to a new line.
app/(marketing)/show-cases/page.tsx - Formatting: Moved text "Marketing Show Cases Page" to a new line within the same <div>.
app/global.css - Formatting: Adjusted font-family and src properties for readability; added a newline at the end of the file.
app/layout.config.tsx - Formatting: Converted string literals from single quotes to double quotes; reformatted itemVariants and NavChildren component return statement to single lines.
app/rss.xml/route.ts - Formatting: Reordered lines without altering content or logic.
assets/css/tailwind.css - CSS Variables: Updated values in :root and .dark classes without altering their names or structure.
components/SvgUse.tsx - Comment Removal: Deleted a comment line without changing functional logic.
content/docs/okrs-guide/hieu-ve-okrs/meta.json - Formatting: Added a newline character at the end of the file.
content/docs/okrs-guide/meta.json - Formatting: Added a newline character at the end of the file.
content/docs/okrs-guide/okrs-nguyen-ban/meta.json - Formatting: Added a newline character at the end of the file.
content/docs/okrs-guide/theo-doi-va-do-luong/meta.json - Formatting: Removed line breaks and indentation in the "pages" array declaration.
content/docs/okrs-guide/tong-ket/meta.json - Formatting: Reformatted the "pages" array to a single line without altering content.
content/docs/teams/meta.json - Formatting: Condensed the "pages" array into a single line without changing content.
hooks/useDomain.tsx - Formatting: Adjusted import statement and added semicolons in the useDomain function.
modules/seo/rss.ts - Formatting: Converted string literals to double quotes; added semicolon at the end of the return feed.xml() statement.
scripts/generate-openapi.ts - Formatting: Removed unnecessary blank lines before the import statement and function call.
utils/modules.ts - Formatting: Added semicolons to property declarations in the DocsModule interface and used double quotes for string literals in the docsModules array.
utils/pathname.ts - Formatting: Removed unnecessary blank lines without changing functionality.

Poem

I hopped through scripts with a joyful start,
Upgrading versions—a masterpiece of art.
My whiskers twitch with every updated line,
In the code garden, everything's aligned.
I celebrate each change with a hearty, hoppy cheer,
A rabbit's delight in CodeRabbit Inc.'s upgrade sphere!


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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. (Beta)
  • @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

@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

🧹 Nitpick comments (1)
app/global.css (1)

24-25: Deduplicate Font Names in font-family.
The static analysis tool flagged a potential redundancy with duplicate "Segoe" entries in the font-family declaration. It would be beneficial to review and remove any redundant font names to optimize rendering.

🧰 Tools
🪛 Biome (1.9.4)

[error] 25-25: Duplicate font names are redundant and unnecessary: Segoe

Remove duplicate font names within the property

(lint/suspicious/noDuplicateFontNames)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 11d2ae9 and e12f2b9.

📒 Files selected for processing (20)
  • app.config.ts (1 hunks)
  • app/(marketing)/page.tsx (4 hunks)
  • app/(marketing)/show-cases/page.tsx (1 hunks)
  • app/global.css (3 hunks)
  • app/layout.config.tsx (4 hunks)
  • app/rss.xml/route.ts (1 hunks)
  • assets/css/tailwind.css (1 hunks)
  • components/SvgUse.tsx (0 hunks)
  • content/docs/okrs-guide/hieu-ve-okrs/meta.json (1 hunks)
  • content/docs/okrs-guide/meta.json (1 hunks)
  • content/docs/okrs-guide/okrs-nguyen-ban/meta.json (1 hunks)
  • content/docs/okrs-guide/theo-doi-va-do-luong/meta.json (1 hunks)
  • content/docs/okrs-guide/tong-ket/meta.json (1 hunks)
  • content/docs/teams/meta.json (1 hunks)
  • hooks/useDomain.tsx (1 hunks)
  • modules/seo/rss.ts (1 hunks)
  • package.json (1 hunks)
  • scripts/generate-openapi.ts (1 hunks)
  • utils/modules.ts (1 hunks)
  • utils/pathname.ts (1 hunks)
💤 Files with no reviewable changes (1)
  • components/SvgUse.tsx
✅ Files skipped from review due to trivial changes (16)
  • scripts/generate-openapi.ts
  • content/docs/okrs-guide/hieu-ve-okrs/meta.json
  • content/docs/okrs-guide/theo-doi-va-do-luong/meta.json
  • modules/seo/rss.ts
  • content/docs/teams/meta.json
  • content/docs/okrs-guide/okrs-nguyen-ban/meta.json
  • content/docs/okrs-guide/tong-ket/meta.json
  • content/docs/okrs-guide/meta.json
  • app/(marketing)/show-cases/page.tsx
  • app/layout.config.tsx
  • utils/modules.ts
  • utils/pathname.ts
  • app.config.ts
  • hooks/useDomain.tsx
  • app/rss.xml/route.ts
  • app/(marketing)/page.tsx
🧰 Additional context used
🪛 Biome (1.9.4)
app/global.css

[error] 25-25: Duplicate font names are redundant and unnecessary: Segoe

Remove duplicate font names within the property

(lint/suspicious/noDuplicateFontNames)

🔇 Additional comments (9)
package.json (4)

9-11: Active Scripts and Upgrade Script Added.
Re-enabling the "start" script, renaming the lint script to "lint.format", and adding the "upgrade.deps" script helps streamline dependency upgrades and reflects the current tooling (Biome and ncu).


14-33: Dependency Version Updates Reviewed.
The dependency versions (e.g. @radix-ui/react-tooltip, @techmely/utils, algoliasearch, framer-motion, next, react, etc.) have been upgraded as intended. Given that several major versions (like React and Next) are updated, please ensure that these changes are compatible with the rest of the project.


36-50: DevDependency Enhancements Confirmed.
The devDependencies have been updated correctly—including the new addition of "npm-check-updates". These changes should improve development tooling without affecting runtime behavior.


52-54: Engines Field Added.
Adding the "engines" section with Bun version ">=1.2.2" is a good enforcement of the minimum runtime requirement. Please verify that all deployment environments meet this requirement.

assets/css/tailwind.css (3)

4-38: Light Theme Variable Updates.
The CSS variables under the :root selector appear to have been reformatted and, where applicable, updated to align with the new Tailwind version. Ensure that these color and spacing tokens match the design specifications.


39-68: Dark Mode Variable Adjustments.
The adjustments for the .dark theme—including changes to --muted-foreground, --destructive, and --ring—are in line with the desired dark mode appearance. It is recommended to test these changes across different screens to confirm visual consistency.


70-79: Layer and Utility Enhancements.
The additional @layer base block that applies global styling (such as borders and background/text colors) is well-structured and adheres to Tailwind best practices.

app/global.css (2)

35-36: Improved @font-face Formatting.
The multi-line structure of the src property in the @font-face rule enhances readability. Confirm that the formatting does not impact how browsers interpret the font sources.


53-61: Keyframes Animation Verification.
The @keyframes fade-in rule is correctly formatted. Please verify that this animation is implemented consistently across related components.

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