Skip to content

Feature/admin blogs page#1820

Open
TharinduLiyanage wants to merge 244 commits into
Chameleon-company:masterfrom
TharinduLiyanage:feature/admin-blogs-page
Open

Feature/admin blogs page#1820
TharinduLiyanage wants to merge 244 commits into
Chameleon-company:masterfrom
TharinduLiyanage:feature/admin-blogs-page

Conversation

@TharinduLiyanage
Copy link
Copy Markdown

completed the Admin Blogs page. includes the blogs listing table, add/edit pages, delete option, search, date filter, image upload, and form validation.

AbhiWiz-gif and others added 30 commits July 22, 2025 19:42
…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
…ocations. Added function to display message when search is not found.
s223973381 and others added 30 commits April 16, 2026 05:47
- 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
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…
…_listing_page

feat(blog): rebuild blog listing page with responsive card grid
- Admin (roleId 1) → 201 Created
- Regular user (roleId 2) → 403 Forbidden
- Unauthenticated (no token) → 401 Unauthorized
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.