Skip to content

feat(card): Save Cards - #695

Merged
ShantKhatri merged 1 commit into
Dev-Card:mainfrom
Harxhit:feat/save-cards
Jul 17, 2026
Merged

feat(card): Save Cards #695
ShantKhatri merged 1 commit into
Dev-Card:mainfrom
Harxhit:feat/save-cards

Conversation

@Harxhit

@Harxhit Harxhit commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds support for saving cards. This PR introduces the saved_cards table, APIs to save and view saved cards, and tests for the new functionality.


Type of Change

  • New feature
  • Tests only

What Changed

  • Added the saved_cards table and Prisma relations.
  • Added APIs to save a card and retrieve a user's saved cards with pagination.
  • Added tests covering the new endpoints and error scenarios.

How to Test

  1. Run database migrations.
  2. Save a card using POST /api/cards/:id/save.
  3. Retrieve saved cards using GET /api/cards/saved?page=1&limit=10.

Checklist

  • My code follows the project's coding style (npm run lint passes).
  • TypeScript compiles without errors (npm run typecheck --workspaces --if-present).
  • I have added or updated tests for the changes I made.
  • All tests pass locally (npm run test --workspaces --if-present).
  • I have updated documentation where necessary.
  • No new console.log or debug statements left in the code.
  • Breaking changes are documented in this PR description.

Proof

Seed

2026-07-15_13-41-08

Migration

2026-07-15_13-42-22

@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

@Harxhit is attempting to deploy a commit to the Prashantkumar Khatri's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown
Contributor

Hi @Harxhit,

Thanks for opening this pull request.

This PR has been automatically classified based on the files modified.

Applied Labels

  • gssoc:approved
  • backend

Primary Review Area

  • backend

Reviewer

@Harxhit has been identified as the primary reviewer for this pull request.

If you have any questions regarding the affected area or implementation details, feel free to reach out to the assigned reviewer.

Thank you for your contribution!

@github-actions github-actions Bot added backend gssoc:approved Required label for every approved PR. Gives the base +50 points and enables contribution tracking. labels Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

CI — All Checks Passed

Backend — PASS

Check Result
Lint PASS
Test PASS
Typecheck PASS

Mobile — SKIP

Check Result
Lint -
Test -

Web — SKIP

Check Result
Build -

Last updated: Wed, 15 Jul 2026 08:14:03 GMT

@Harxhit
Harxhit requested a review from ShantKhatri July 15, 2026 08:14
@Harxhit Harxhit changed the title feat(card): Added saved,get saved cards api and db schema feat(card): Save Cards Jul 15, 2026
@ShantKhatri
ShantKhatri merged commit 964589b into Dev-Card:main Jul 17, 2026
7 of 8 checks passed
@Harxhit Harxhit added level:advanced Complex contribution involving deeper technical work. (+55 pts) quality:exceptional Outstanding contribution with excellent implementation quality. (×1.5 multiplier) type:performance Performance optimization (+15 pts) type:refactor Code refactoring/cleanup (+10 pts) type:feature New feature implementation (+10 pts) labels Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend gssoc:approved Required label for every approved PR. Gives the base +50 points and enables contribution tracking. level:advanced Complex contribution involving deeper technical work. (+55 pts) quality:exceptional Outstanding contribution with excellent implementation quality. (×1.5 multiplier) type:feature New feature implementation (+10 pts) type:performance Performance optimization (+15 pts) type:refactor Code refactoring/cleanup (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants