Feature/admin blogs page#1820
Open
TharinduLiyanage wants to merge 244 commits into
Open
Conversation
…rrows, pagination dots, and optimized image sizing
…ackend_IshikaMandal_#dbConnection Database connection achieved in PostgreSql
…Zhao#DatabaseMigrationPlan Add MongoDB to PostgreSQL Migration Plan to the next_webapp folder
Designed DB ERD DFD and DB Schema
…ocations. Added function to display message when search is not found.
- Redirect admin users to /admin/dashboard on login, regular users to /profile - Add role guard to AdminLayout: unauthenticated users redirected to /login, non-admin users redirected to /profile - Prevent admin dashboard from rendering before auth check completes
- Fix typo (s//) that broke post-login redirect - Redirect admin (roleId 1) to /admin/dashboard, users to /profile - Remove blocking alert() on successful login - Add 'Don't have an account? Sign up' link below the form
The issue is two things: The signup form is posting to /api/signup but the actual route is /api/auth/signup The middleware isn't matching the signup page route
- Admin (roleId 1) → 201 Created - Regular user (roleId 2) → 403 Forbidden - Unauthenticated (no token) → 401 Unauthorized
Create individual blog page showing full blog content including title, three images, full description, and responsive layout.
…dmin Added use case management section for the admin dashboard
…Yuyang_Yang_Website_Use_Case_Page_Redesign Redesign use case page
…-dashboard-landing Implemented responsive admin dashboard landing page
…_work Blog Detail Page (Main Website)
…into Gallery_Page
Rebuilt the /[locale]/blog page to display blog tiles matching the approved design: cover image, category badge, title, short description, and Read More button in a responsive grid layout. - Add src/components/BlogCard.tsx: reusable card with 16:9 cover image, category pill overlay, line-clamped title and description, and outlined Read More button with hover fill. Full dark mode support. - Rewrite src/app/[locale]/blog/page.tsx with centered title, subtitle, and responsive grid (1 col mobile, 2 cols tablet, 3 cols desktop). Uses 6 hardcoded sample posts until a data source is available. - Update next.config.mjs to allow images.unsplash.com via images.remotePatterns for temporary placeholder images.
Change back to original ones. .env was missing on my local.
…_work feat: add PUT and DELETE endpoints with input validation for use case…
Add Use Case Fetching Again
GALLERY_MANAGEMENT_SECTION
…_listing_page feat(blog): rebuild blog listing page with responsive card grid
Responsive Gallery Page
- Admin (roleId 1) → 201 Created - Regular user (roleId 2) → 403 Forbidden - Unauthenticated (no token) → 401 Unauthorized
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
completed the Admin Blogs page. includes the blogs listing table, add/edit pages, delete option, search, date filter, image upload, and form validation.