Skip to content

Comments

Update packages to latest version#81

Merged
yesyash merged 6 commits intoRealDevSquad:developfrom
Hariom01010:update-packages
Jul 10, 2025
Merged

Update packages to latest version#81
yesyash merged 6 commits intoRealDevSquad:developfrom
Hariom01010:update-packages

Conversation

@Hariom01010
Copy link
Contributor

@Hariom01010 Hariom01010 commented Jul 10, 2025

Date: 10 July 2025

Developer Name: @Hariom01010


Issue Ticket Number

Description

This PR updates all the outdated packages to their latest version. All the packages (including Major, Minor and Patch version are updated to their latest version)

  • Updated React to v19
  • Tailwind to v4 using migration utility
  • Storybook to v9 using migration utility
  • Rest Packages were also updated based on the table mentioned in the issue
    It is made ensure that the application, storybook and tests are running as expected without breaking any functionality

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1 image

Application:

image ### Storybook: image

Test Coverage

Screenshot 1 image

Additional Notes

Description by Korbit AI

What change is being made?

Update several package dependencies to their latest versions, streamline Storybook configuration, enhance CSS classes for consistency, and adjust PostCSS plugins setup.

Why are these changes being made?

These updates are part of regular maintenance to ensure dependencies are up-to-date, which enhances security, performance, and compatibility. Updates to Storybook and CSS classes improve the development experience and maintainability. Removing autoprefixer in favor of @tailwindcss/postcss is aligned with best practices for managing CSS preprocessing.

Is this description stale? Ask me to generate a new description by commenting /korbit-generate-pr-description

- update all minor and patch versions to latest version
- update react and storybook to latest releases
- add cursor-pointer to buttons
- tweak margin values such that they match original design
- update storybook preview to include globals.css
@Hariom01010 Hariom01010 self-assigned this Jul 10, 2025
@korbit-ai
Copy link

korbit-ai bot commented Jul 10, 2025

Korbit doesn't automatically review large (3000+ lines changed) pull requests such as this one. If you want me to review anyway, use /korbit-review.

@coderabbitai
Copy link

coderabbitai bot commented Jul 10, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Summary by CodeRabbit

  • Style

    • Updated multiple components to adjust focus outline styles and shadow intensities for a more consistent visual appearance.
    • Improved cursor indicators on interactive elements to enhance usability.
    • Refined spacing and border styles for better layout consistency.
    • Updated and centralized theming and utility CSS, including changes to global styles and custom properties.
  • Chores

    • Upgraded major dependencies, including React 19, Next.js 15.3, Storybook 9, and Tailwind CSS 4.
    • Updated related development tools and libraries to ensure compatibility with the latest versions.
    • Removed the Tailwind CSS configuration file and simplified PostCSS setup.
    • Adjusted Storybook configuration for improved integration and maintenance.

Walkthrough

This update upgrades core dependencies to the latest versions, notably React 19, Next.js 15.3, Tailwind CSS 4, and Storybook 9. It removes the Tailwind configuration file, adapts global and utility CSS to new Tailwind conventions, updates Storybook and PostCSS configs, and revises component class names for compatibility.

Changes

Files/Paths Change Summary
package.json, postcss.config.mjs Upgraded dependencies (React 19, Next.js 15.3, Tailwind 4, Storybook 9, etc.); simplified PostCSS plugins.
tailwind.config.ts Deleted Tailwind CSS config file.
app/globals.css Replaced Tailwind directives with @import, added custom properties, variants, and compatibility layers.
.storybook/main.ts, .storybook/preview.ts, components/Shimmer/*.stories.tsx Updated Storybook config for new version and Next.js integration; adjusted imports.
components/ui/button.tsx, components/ui/input.tsx, components/ui/tabs.tsx, components/ui/dialog.tsx Changed focus outline classes from outline-none to outline-hidden for compatibility.
components/ui/card.tsx, components/ui/table.tsx Updated shadow and border utility classes for Tailwind 4.
components/NavBar.tsx, components/SideBar.tsx, components/TaskHeader.tsx, components/dashboard/DashboardTasksTableTabs.tsx, components/dashboard/DashboardWeeklySummary.tsx, app/teams/page.tsx Added cursor-pointer to interactive elements for clarity.
components/TaskCard.tsx Adjusted horizontal spacing utility class.
components/TaskDetails.tsx, components/TodoForm.tsx Updated shadow, border, margin, and focus classes for Tailwind 4 compatibility.
app/tasks/page.tsx, components/SearchComponent.tsx Changed focus outline utility classes.
app/teams/create/InviteForm.tsx Updated flex shrinking and shadow utility classes.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant UI_Component
    participant TailwindCSS_4
    participant Storybook_9

    User->>UI_Component: Interacts (click, focus, etc.)
    UI_Component->>TailwindCSS_4: Applies updated utility classes (e.g., shadow-xs, outline-hidden)
    User->>Storybook_9: Views component stories
    Storybook_9->>UI_Component: Renders with new Next.js integration and updated addons
Loading

Assessment against linked issues

Objective Addressed Explanation
Update all major frontend dependencies to latest versions (React, Next.js, Tailwind, Storybook, etc.) [#80]
Update component and utility classes for Tailwind CSS 4 compatibility [#80]
Remove obsolete or incompatible configuration files (e.g., Tailwind config) [#80]
Update Storybook configuration for new version and Next.js integration [#80]

Possibly related PRs

Suggested reviewers

  • vinit717
  • yesyash

Poem

🐇✨
Upgrades abound, the code’s refreshed,
With React and Tailwind newly meshed.
Shadows shrink, outlines hide,
Storybook’s along for the ride.
A hop, a skip, the code’s in line—
All thanks to updates, looking fine!
🌱


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

♻️ Duplicate comments (4)
components/ui/button.tsx (1)

8-8: Verify Tailwind v4 compatibility for outline-hidden class.

The change from focus-visible:outline-none to focus-visible:outline-hidden appears to be part of the Tailwind v4 migration. Please ensure this class exists in Tailwind v4 and maintains the same accessibility behavior for focus management.

components/TaskDetails.tsx (1)

54-54: Verify Tailwind v4 compatibility for outline-hidden class.

Multiple instances of focus:outline-none changed to focus:outline-hidden. Please ensure this class exists in Tailwind v4 and maintains the same accessibility behavior for focus management.

Also applies to: 63-63, 113-113

app/tasks/page.tsx (1)

63-63: Same focus outline class concern as other components.

This change mirrors the same potential issue with focus:outline-hidden that needs verification across the codebase.

components/ui/tabs.tsx (1)

32-32: Same focus outline and shadow class concerns.

This combines the same concerns raised in other files regarding focus-visible:outline-hidden and shadow-xs class validity in Tailwind CSS 4.

Also applies to: 47-47

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 48f3dc1 and 95b8837.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (26)
  • .storybook/main.ts (1 hunks)
  • .storybook/preview.ts (1 hunks)
  • app/globals.css (1 hunks)
  • app/tasks/page.tsx (1 hunks)
  • app/teams/create/InviteForm.tsx (5 hunks)
  • app/teams/page.tsx (1 hunks)
  • components/NavBar.tsx (2 hunks)
  • components/SearchComponent.tsx (1 hunks)
  • components/Shimmer/ListShimmer.stories.tsx (1 hunks)
  • components/Shimmer/Shimmer.stories.tsx (1 hunks)
  • components/SideBar.tsx (1 hunks)
  • components/TaskCard.tsx (1 hunks)
  • components/TaskDetails.tsx (4 hunks)
  • components/TaskHeader.tsx (1 hunks)
  • components/TodoForm.tsx (9 hunks)
  • components/dashboard/DashboardTasksTableTabs.tsx (1 hunks)
  • components/dashboard/DashboardWeeklySummary.tsx (1 hunks)
  • components/ui/button.tsx (1 hunks)
  • components/ui/card.tsx (1 hunks)
  • components/ui/dialog.tsx (1 hunks)
  • components/ui/input.tsx (1 hunks)
  • components/ui/table.tsx (1 hunks)
  • components/ui/tabs.tsx (2 hunks)
  • package.json (1 hunks)
  • postcss.config.mjs (1 hunks)
  • tailwind.config.ts (0 hunks)
💤 Files with no reviewable changes (1)
  • tailwind.config.ts
🧰 Additional context used
🧠 Learnings (2)
components/TodoForm.tsx (1)
Learnt from: shubhdevelop
PR: Real-Dev-Squad/todo-frontend#35
File: components/SimmerSkeleton.tsx:0-0
Timestamp: 2025-03-16T10:34:22.088Z
Learning: The shimmer component in the todo app should maintain the app's color palette (white, indigo-50) without making colors configurable, as it's designed specifically for this application.
components/TaskDetails.tsx (1)
Learnt from: Hariom01010
PR: Real-Dev-Squad/todo-frontend#51
File: __mocks__/types.ts:33-34
Timestamp: 2025-07-09T08:59:12.993Z
Learning: In the todo-frontend project, the PATCH task API endpoint payload uses `dueAt` and `startedAt` field names, but these update the `dueDate` and `startDate` fields respectively in the Task object. This is intentional according to the API contract design.
🧬 Code Graph Analysis (2)
components/dashboard/DashboardTasksTableTabs.tsx (1)
components/ui/tabs.tsx (1)
  • TabsTrigger (55-55)
components/TodoForm.tsx (1)
app/constants/Task.ts (1)
  • FORM_MODE (12-16)
🪛 Biome (1.9.4)
components/TaskHeader.tsx

[error] 33-33: Provide an explicit type prop for the button element.

The default type of a button is submit, which causes the submission of a form when placed inside a form element. This is likely not the behaviour that you want inside a React application.
Allowed button types are: submit, button or reset

(lint/a11y/useButtonType)

components/dashboard/DashboardWeeklySummary.tsx

[error] 7-7: Provide an explicit type prop for the button element.

The default type of a button is submit, which causes the submission of a form when placed inside a form element. This is likely not the behaviour that you want inside a React application.
Allowed button types are: submit, button or reset

(lint/a11y/useButtonType)

components/TodoForm.tsx

[error] 64-68: Provide an explicit type prop for the button element.

The default type of a button is submit, which causes the submission of a form when placed inside a form element. This is likely not the behaviour that you want inside a React application.
Allowed button types are: submit, button or reset

(lint/a11y/useButtonType)

🔇 Additional comments (24)
components/ui/card.tsx (1)

11-13: Shadow token reduction looks correct.

Changing shadow-sm to shadow-xs is purely stylistic and matches the global visual-weight reductions elsewhere in the PR. No functional impact detected.

components/SideBar.tsx (1)

32-38: Cursor affordance addition is fine.

cursor-pointer improves UX ​​and the button already has an explicit type='button', so no further action needed.

components/dashboard/DashboardTasksTableTabs.tsx (1)

30-32: LGTM – pointer cursor improves tab affordance.

components/ui/input.tsx (1)

11-11: Confirmed: focus-visible:outline-hidden is the correct Tailwind v4 replacement for outline-none
The outline-hidden utility hides the focus outline visually while still exposing it in forced-colors or high-contrast modes, preserving accessibility. No further changes are needed here.

components/dashboard/DashboardWeeklySummary.tsx (1)

4-4: LGTM: Shadow utility updated for Tailwind v4 compatibility.

The change from shadow-sm to shadow-xs aligns with the Tailwind v4 migration.

components/NavBar.tsx (2)

26-26: LGTM: Shadow utility updated for Tailwind v4 compatibility.

The change from shadow-sm to shadow-xs aligns with the Tailwind v4 migration pattern seen across the codebase.


65-65: Good UX improvement: Added cursor-pointer for better interactivity.

Adding cursor-pointer to the notification button improves user experience by clearly indicating the element is interactive.

components/TaskDetails.tsx (2)

46-46: LGTM: Updated styling for Tailwind v4 compatibility.

The changes from shadow-sm to shadow-xs and border-[1px] to border align with Tailwind v4 migration patterns and simplify the class names.


69-69: Good spacing improvements for better visual hierarchy.

The margin adjustments (mb-4 to mb-6 and mb-4 to my-6) improve the visual spacing and hierarchy within the component layout.

Also applies to: 71-71, 86-86

package.json (2)

40-64: Storybook 9 upgrade looks good, but check removed addons impact

@storybook/addon-essentials and addon-interactions were removed, yet stories still rely on:

  • tags: ['autodocs'] → requires the Docs preset (now in addon-docs, still present ✅)
  • interaction-testing helpers (user-event, within) if any tests exist.

Make sure those capabilities are covered by the new default presets or add back the specific addons.
Also confirm eslint-plugin-storybook@9 matches SB 9 (it does) and that the PostCSS 8/ Tailwind 4 pipeline resolves correctly after adding @tailwindcss/postcss.


24-37: Peer dependencies verified – React 19 is supported

  • Ran pnpm install --strict-peer-dependencies with no unresolved peer‐dep errors.
  • next@15.3.5’s peer range includes ^19.0.0; next-themes and all Radix UI packages likewise declare support for React 19.
  • No duplicate React installs or legacy peer-dep fallbacks detected.

This change is safe to merge.

components/Shimmer/Shimmer.stories.tsx (1)

1-1: Correct import path — nice catch

Switching to @storybook/nextjs aligns this story with the SB 9/Next builder. No further issues spotted.

components/Shimmer/ListShimmer.stories.tsx (1)

1-1: Import updated consistently

Same comment as above—import path is now SB 9 compliant.

components/SearchComponent.tsx (1)

61-61: Confirmed: focus:outline-hidden is valid in Tailwind CSS v4

The focus:outline-hidden utility is supported in Tailwind CSS 4 and is the recommended replacement for focus:outline-none, as it hides the default outline while preserving an accessible outline in forced-colors/high-contrast modes. No changes needed.

app/teams/create/InviteForm.tsx (1)

160-160: Tailwind CSS 4 utility classes are valid

Both updates have been confirmed against the Tailwind CSS 4.1+ documentation:

  • flex-shrink-0shrink-0 is officially supported as a shortened flexbox utility.
  • shadow-smshadow-xs is a valid extra-small shadow utility.

No further changes are required.

.storybook/preview.ts (1)

1-2: LGTM! Storybook configuration properly updated for v9.

The changes correctly reflect the upgrade to Storybook 9 with Next.js integration and the new centralized CSS approach using globals.css.

components/ui/table.tsx (1)

46-46: Verify TableFooter CSS selector change

The update shifts the last pseudo-class from the inner <tr> to the <tfoot>, changing where border-b-0 is applied. Our search found no TableFooter usage outside its own definition, so please validate this in real table layouts (e.g., multiple footers, nested rows, Storybook examples) to ensure no styling regressions.

• File: components/ui/table.tsx, line 46
"border-t bg-muted/50 font-medium last:[&>tr]:border-b-0"

components/TodoForm.tsx (2)

60-60: LGTM! CSS classes properly updated for Tailwind v4.

The shadow and border class changes are consistent with the Tailwind CSS v4 migration.


66-66: LGTM! Focus and spacing classes properly updated for Tailwind v4.

The changes from focus:outline-none to focus:outline-hidden, spacing adjustments, and the addition of cursor-pointer are all consistent with the Tailwind CSS v4 migration.

Also applies to: 70-70, 83-83, 98-98, 123-123, 139-139, 155-155, 171-171, 187-187, 202-202

.storybook/main.ts (1)

9-22: Verify essential Storybook addons removal

Please confirm that removing @storybook/addon-essentials and @storybook/addon-interactions doesn’t break any stories—these packages back controls (argTypes/args), actions, viewport, and interactions. Manually check that no stories rely on:

  • argTypes or args: in their exports
  • action(...) calls
  • userEvent or within() usage

Key story files to review:

  • components/Shimmer/ListShimmer.stories.tsx
  • components/Shimmer/Shimmer.stories.tsx

If any of these use the above features, re-add the corresponding standalone addons (@storybook/addon-controls, @storybook/addon-actions, @storybook/addon-interactions) or migrate to the new Storybook 9 equivalents.

app/globals.css (4)

1-1: LGTM! Properly migrated to Tailwind CSS v4 import syntax.

The single @import 'tailwindcss'; statement correctly replaces the three separate Tailwind directives, consistent with Tailwind CSS v4 requirements.


3-43: LGTM! Well-structured theme configuration for Tailwind v4.

The @custom-variant for dark mode and the comprehensive @theme block with CSS custom properties provide a centralized and maintainable theming approach, properly mapping to the existing CSS variables.


45-61: LGTM! Essential compatibility layer for border color changes.

The compatibility styles properly address the breaking change in Tailwind CSS v4 where the default border color changed from gray to currentcolor. This ensures visual consistency with the previous version.


63-72: LGTM! Modernized utility definition using @Utility directive.

The refactored no-scrollbar utility using the @utility directive with proper nested selectors is consistent with Tailwind CSS v4 syntax and more maintainable than the previous approach.

@Hariom01010 Hariom01010 requested a review from yesyash July 10, 2025 17:55
@yesyash yesyash merged commit d6c95c6 into RealDevSquad:develop Jul 10, 2025
3 checks passed
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.

[Chore]: Update packages to latest versionn

2 participants