Changelog
All notable changes to this project will be documented in this file.
Added
- Admin Ad Management: Implemented a new page at
/admin/ads to allow administrators to view and delete any ad on the platform.
- Firestore Security Rules: Created a comprehensive
firestore.rules file to secure the database, implementing role-based access for admin users to manage ads and protecting user data.
Changed
- Admin Dashboard: Updated the "Total Ads" stat card to link directly to the new ad management page.
- Admin Sidebar: Added a new "Ads" navigation link for easy access to the ad management page.
Added
- Redesigned Desktop Footer: Implemented a modern four-column layout for the desktop footer, organizing links into "Quick Links," "Discover," and "Legal" sections.
- Modular Footer: Extracted the copyright notice into its own isolated component (
src/components/footer/copyright.tsx).
Changed
- Refactored Header: Broke down the main header into smaller, modular sub-components for improved maintainability.
- Icon-Only Desktop Search: The desktop search bar now appears as an icon-only button and expands with autofocus upon being clicked.
- Contextual Navigation: The "Messages" link in the header is now hidden for users who are not logged in.
Fixed
- Build Failure: Resolved a critical build error by wrapping the
login and search pages' content in a <Suspense> boundary.
- Authentication Error Handling: Fixed a recurring application crash (
auth/invalid-credential) by properly handling promise rejections in the email sign-in flow.
- Hydration Errors: Eliminated several persistent React hydration errors by ensuring UI components render consistently on both the server and the client.