-
Notifications
You must be signed in to change notification settings - Fork 38
fix #164: refactor tailwind css #196
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
base: main
Are you sure you want to change the base?
Conversation
|
@Karelaking is attempting to deploy a commit to the Divya Tiwari's projects Team on Vercel. A member of the Team first needs to authorize it. |
✅ Deploy Preview for tiwaridivya25-devconnect ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Thanks for creating a PR for your Issue!
|
|
👋 Hi @Karelaking, Please link an issue using one of the following formats:
Linking issues helps us track work and close issues automatically. Thanks! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors Tailwind CSS classes across 12 files to eliminate deprecated patterns and apply the DRY (Don't Repeat Yourself) principle. It creates 15+ reusable utility classes in index.css to replace hundreds of lines of repeated inline Tailwind classes throughout the codebase.
Changes:
- Removed deprecated Tailwind patterns (appearance-none relative block, invalid light: prefix)
- Created comprehensive DRY utility classes for inputs, buttons, alerts, labels, layouts, and flex patterns in index.css
- Applied new utility classes across 8 page components and 3 shared components
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/index.css | Added 15+ utility classes including input variants, button styles, form labels, alerts, flex patterns, and layout containers |
| src/pages/ResetPasswordPage.tsx | Applied auth-container, auth-card, alert-error/success, form-label, input-light/dark, and btn-primary classes |
| src/pages/ForgotPasswordPage.tsx | Applied auth-container, auth-card, alert classes, form-label, input classes, and inline-flex-gap-2 |
| src/pages/ProfilePage.tsx | Applied form-label, form-label-icon, input-light/dark, alert-error, btn-success, and btn-secondary classes |
| src/pages/CreateEventPage.tsx | Applied form-label, form-label-icon, input-slate, btn-primary-dark, and btn-secondary-dark classes |
| src/pages/CreatePostPage.tsx | Applied back-btn-link utility class |
| src/pages/CreateCommunityPage.tsx | Applied back-btn-link utility class |
| src/pages/CommunityPage.tsx | Applied back-btn-link utility class (with syntax error) |
| src/pages/PostPage.tsx | Applied flex-gap-2 utility class |
| src/components/PostDetail.tsx | Applied flex-center and flex-gap-2 utility classes |
| src/components/MessagingInterface.tsx | Applied input-slate utility class |
| src/components/MessageInput.tsx | Applied input-slate utility class |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
|
👋 Hi @Karelaking, Please link an issue using one of the following formats:
Linking issues helps us track work and close issues automatically. Thanks! 🙌 |
Co-authored-by: Copilot <[email protected]>
|
👋 Hi @Karelaking, Please link an issue using one of the following formats:
Linking issues helps us track work and close issues automatically. Thanks! 🙌 |
…e backend availability
… into fix/refactor
|
👋 Hi @Karelaking, Please link an issue using one of the following formats:
Linking issues helps us track work and close issues automatically. Thanks! 🙌 |
|
i have done, please review it |
Co-authored-by: Copilot <[email protected]>
|
👋 Hi @Karelaking, Please link an issue using one of the following formats:
Linking issues helps us track work and close issues automatically. Thanks! 🙌 |
Co-authored-by: Copilot <[email protected]>
|
👋 Hi @Karelaking, Please link an issue using one of the following formats:
Linking issues helps us track work and close issues automatically. Thanks! 🙌 |
Co-authored-by: Copilot <[email protected]>
|
👋 Hi @Karelaking, Please link an issue using one of the following formats:
Linking issues helps us track work and close issues automatically. Thanks! 🙌 |
Co-authored-by: Copilot <[email protected]>
|
👋 Hi @Karelaking, Please link an issue using one of the following formats:
Linking issues helps us track work and close issues automatically. Thanks! 🙌 |
|
@Karelaking Please resolve the merge conflicts. |
|
👋 Hi @Karelaking, Please link an issue using one of the following formats:
Linking issues helps us track work and close issues automatically. Thanks! 🙌 |
|
@TiwariDivya25 I have fix the conflict, now you can marge it |
📝 Description
Comprehensive refactoring to fix deprecated Tailwind CSS classes and apply DRY (Don't Repeat Yourself) principle across the entire DevConnect project. Created reusable utility classes to eliminate code duplication and improve maintainability.
🎯 Type of Change
🔗 Related Issues
close #164
Part of code quality improvement initiative
📋 Changes Made
appearance-none relative block, invalidlight:prefix)form-label,form-label-icon)auth-container,auth-card)flex-gap-2,inline-flex-gap-2)Files Modified:
src/index.css- Added comprehensive DRY utility classessrc/pages/ResetPasswordPage.tsx- Applied DRY classessrc/pages/ForgotPasswordPage.tsx- Applied DRY classessrc/pages/ProfilePage.tsx- Applied DRY classessrc/pages/CreateEventPage.tsx- Applied DRY classes (9 form labels)src/pages/CreatePostPage.tsx- Applied DRY classessrc/pages/CreateCommunityPage.tsx- Applied DRY classessrc/pages/CommunityPage.tsx- Applied DRY classessrc/pages/PostPage.tsx- Applied DRY classessrc/components/PostDetail.tsx- Applied DRY classessrc/components/MessagingInterface.tsx- Applied DRY classessrc/components/MessageInput.tsx- Applied DRY classes🧪 Testing
Testing Steps:
🎨 Screenshots/Demo
No visual changes - styling remains identical while code quality improved
📦 Dependencies
✅ Checklist
Code Quality
Testing & Functionality
Documentation
Git & Commits
Breaking Changes
📝 Additional Context
Key Improvements:
New Utility Classes Created:
.input-dark,.input-light,.input-slate.btn-primary-dark,.btn-primary-light,.btn-secondary-dark,.btn-secondary-light,.btn-danger,.btn-success.form-label,.form-label-icon.auth-container,.auth-card,.back-btn-link.flex-center,.flex-center-col,.flex-between,.flex-start,.flex-gap-2,.inline-flex-gap-2.alert-error,.alert-success,.alert-info.badge-primary,.badge-secondary.card-dark,.card-light.icon-bg-blue,.icon-bg-green,.icon-bg-cyan🔍 Reviewer Notes
Please verify that:
🚀 Deployment Notes
No special deployment steps required - pure CSS/component refactoring with zero breaking changes