Skip to content

Refactor post classification and implement consistent pagination#11

Merged
hussein-m-kandil merged 31 commits intomainfrom
dev
Aug 6, 2025
Merged

Refactor post classification and implement consistent pagination#11
hussein-m-kandil merged 31 commits intomainfrom
dev

Conversation

@hussein-m-kandil
Copy link
Copy Markdown
Owner

Description

This pull request introduces a broad set of improvements across the blog API, focusing on post classification, pagination, and general code consistency.

Key Changes

  • 🔖 Replaced post classification from Category to Tag, including all related schema and logic updates.

  • 📦 Updated Prisma and its client package to the latest versions, and applied security fixes via npm audit fix.

  • 📚 Introduced consistent and flexible pagination support across:

    • Users
    • Posts
    • Votes
    • Images
    • Comments
  • 🔍 Improved category/tag normalization and filtering, including partial matching and duplication checks.

  • 🧠 Enhanced post services and vote handling logic to improve performance and response clarity.

  • 🔁 Refactored helper functions, path aliases, and types for cleaner and more maintainable code.

  • 🔢 Added support for comment/vote counters and more descriptive post data in API responses.

  • 🔨 Fixed bugs and broken tests resulting from schema changes.

These changes improve the structure, usability, and maintainability of the API, and prepare the codebase for future scalability.

@hussein-m-kandil hussein-m-kandil merged commit 1c0fab2 into main Aug 6, 2025
1 check passed
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