Skip to content

Downgrade tailwind css and fix suff#45

Merged
Nusab19 merged 11 commits intoContest-Hive:mainfrom
Nusab19:main
Apr 17, 2025
Merged

Downgrade tailwind css and fix suff#45
Nusab19 merged 11 commits intoContest-Hive:mainfrom
Nusab19:main

Conversation

@Nusab19
Copy link
Copy Markdown
Member

@Nusab19 Nusab19 commented Apr 17, 2025

Summary by CodeRabbit

  • Style

    • Replaced invalid or custom CSS classes with standard Tailwind CSS classes for consistent styling and layout.
    • Updated focus and outline styles to use correct Tailwind utilities, improving accessibility and appearance.
    • Modernized and simplified global styles using Tailwind CSS directives and theme variables.
    • Added new utility classes for background textures and underlines.
  • Bug Fixes

    • Corrected maximum width and z-index classes for improved responsive design and stacking order.
    • Fixed contest platform URLs and conditional label rendering.
  • New Features

    • Introduced a comprehensive Tailwind CSS configuration with custom themes, animations, and color palettes.
  • Refactor

    • Improved component prop types and function signatures for better consistency and maintainability.
    • Updated theme default to light mode.
  • Chores

    • Updated, downgraded, or moved dependencies for compatibility with Tailwind CSS v3 and PostCSS.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 17, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update introduces significant improvements to the project's styling system, focusing on migrating to a modern Tailwind CSS setup. The global CSS is overhauled to remove legacy custom properties and keyframes, replacing them with concise Tailwind directives and CSS variable-based theming for light and dark modes. A new, detailed Tailwind configuration file is added, defining custom colors, fonts, border radii, and animations. Numerous component files are updated to use valid Tailwind utility classes, correcting previous custom or invalid class names. Several type annotations and component signatures are adjusted for consistency, and minor content and logic tweaks are applied across the codebase.

Changes

File(s) Change Summary
package.json, postcss.config.mjs, tailwind.config.ts Updated Tailwind and PostCSS dependencies, introduced new Tailwind config, adjusted PostCSS plugin key.
src/styles/globals.css Replaced legacy CSS with Tailwind directives, theme variables, and utility classes; removed custom properties and keyframes.
src/app/layout.tsx Changed default theme from "system" to "light" in ThemeProvider.
src/app/credits/components/imageCards.tsx Updated description for "Safin Sarker" and reformatted JSDoc comment.
src/app/focused/components/FocusedPage.tsx, src/app/not-found.jsx, src/components/CompressedContestTable.tsx, src/components/Contact.tsx, src/components/Stats.tsx, src/components/sub/AnimatedBlob.jsx, src/components/ui/MaxWidthWrapper.tsx Replaced invalid/custom max-width classes with valid Tailwind max-w-screen-* classes.
src/components/Navbar.tsx, src/components/ui/button.tsx, src/components/ui/badge.tsx, src/components/ui/dropdown-menu.tsx, src/components/ui/hover-card.tsx, src/components/ui/input.tsx, src/components/ui/popover.tsx, src/components/ui/select.tsx, src/components/ui/tabs.tsx, src/components/ui/textarea.tsx, src/components/ui/toast.tsx Corrected focus/outline classes (e.g., outline-hiddenoutline-none), z-index classes, and added/adjusted relative positioning.
src/components/mobile/NavMenu.tsx Added z-index and background color to menu button; removed explicit sheet side prop.
src/components/ui/sheet.tsx Shortened animation duration, repositioned close button, increased icon size, removed opacity/transition classes.
src/components/ui/tooltip.tsx Added responsive left margin to tooltip content.
src/components/sub/Contest.tsx, src/components/ContestsTable.tsx, src/components/sub/SelectPerPage.tsx Updated component signatures and prop types for consistency; fixed contest row rendering and conditional logic.
src/components/sub/SelectPlatform.tsx Added modal={false} to DropdownMenu for non-modal dropdown behavior.
src/lib/constants.ts Updated Codeforces and Gym contest URLs to correct paths.
src/lib/helpers/datetime.ts Improved time formatting logic and updated function signatures for optional seconds display.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant UIComponent
    participant TailwindCSS
    participant ThemeProvider

    User->>UIComponent: Interacts with UI (e.g., Navbar, Tables)
    UIComponent->>TailwindCSS: Applies updated utility classes
    UIComponent->>ThemeProvider: Reads theme (now defaults to "light")
    ThemeProvider-->>UIComponent: Provides theme variables (light/dark)
    TailwindCSS-->>UIComponent: Provides styles based on config and theme
    UIComponent-->>User: Renders corrected, themed UI
Loading

Poem

🐇
With Tailwind’s breeze, I hop anew,
Old styles gone, replaced with hue.
Classes fixed, outlines none,
My CSS chores are nearly done!
From light to dark, themes now shine,
Contest tables, tooltips—oh, so fine!
A rabbit’s leap to modern code—how divine!

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.

📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between ce84452 and 1a0b15a.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (33)
  • package.json (2 hunks)
  • postcss.config.mjs (1 hunks)
  • src/app/credits/components/imageCards.tsx (2 hunks)
  • src/app/focused/components/FocusedPage.tsx (1 hunks)
  • src/app/layout.tsx (1 hunks)
  • src/app/not-found.jsx (1 hunks)
  • src/components/CompressedContestTable.tsx (1 hunks)
  • src/components/Contact.tsx (1 hunks)
  • src/components/ContestsTable.tsx (2 hunks)
  • src/components/Navbar.tsx (2 hunks)
  • src/components/Stats.tsx (2 hunks)
  • src/components/mobile/NavMenu.tsx (1 hunks)
  • src/components/sub/AnimatedBlob.jsx (1 hunks)
  • src/components/sub/Contest.tsx (4 hunks)
  • src/components/sub/SelectPerPage.tsx (1 hunks)
  • src/components/sub/SelectPlatform.tsx (1 hunks)
  • src/components/ui/MaxWidthWrapper.tsx (1 hunks)
  • src/components/ui/badge.tsx (1 hunks)
  • src/components/ui/button.tsx (1 hunks)
  • src/components/ui/dropdown-menu.tsx (4 hunks)
  • src/components/ui/hover-card.tsx (1 hunks)
  • src/components/ui/input.tsx (1 hunks)
  • src/components/ui/popover.tsx (1 hunks)
  • src/components/ui/select.tsx (2 hunks)
  • src/components/ui/sheet.tsx (2 hunks)
  • src/components/ui/tabs.tsx (2 hunks)
  • src/components/ui/textarea.tsx (1 hunks)
  • src/components/ui/toast.tsx (3 hunks)
  • src/components/ui/tooltip.tsx (1 hunks)
  • src/lib/constants.ts (1 hunks)
  • src/lib/helpers/datetime.ts (4 hunks)
  • src/styles/globals.css (1 hunks)
  • tailwind.config.ts (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

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.
    • 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.
  • @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.

@Nusab19 Nusab19 merged commit d4be3a0 into Contest-Hive:main Apr 17, 2025
1 check was pending
@coderabbitai coderabbitai bot mentioned this pull request Dec 26, 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