Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact channel APIs #288

Merged
merged 45 commits into from
Oct 14, 2024
Merged

Contact channel APIs #288

merged 45 commits into from
Oct 14, 2024

Conversation

fomalhautb
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Oct 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
stack-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2024 0:05am
stack-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2024 0:05am
stack-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2024 0:05am
stack-partial-prerendering ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 14, 2024 0:05am

@fomalhautb fomalhautb changed the title Contact channel api Contact channel APIs Oct 1, 2024
Copy link

zeropath-ai bot commented Oct 1, 2024

Security

  • No security or compliance vulnerabilities detected
  • Scanned 26 changed file(s)

Changes Detected

  • [Refactor] Update database schema for contact channels [apps/backend/prisma/schema.prisma]

    • Removed OTP contact channel and password identifier
    • Added usedForAuth field to ContactChannel model
    • Updated unique constraints for ContactChannel
  • [Feature] Add new API endpoints for contact channels [apps/backend/src/app/api/v1/contact-channels/]

    • Created CRUD handlers for contact channels
    • Added routes for creating, deleting, and sending verification codes
  • [Refactor] Update user authentication logic [apps/backend/src/app/api/v1/auth/]

    • Modified OTP and password sign-in processes
    • Updated user creation and retrieval methods
  • [Refactor] Modify user CRUD operations [apps/backend/src/app/api/v1/users/crud.tsx]

    • Updated user creation, reading, and updating logic
    • Changed how auth methods and contact channels are handled
  • [Test] Add new tests for contact channel operations [apps/e2e/tests/backend/endpoints/api/v1/contact-channels/]

    • Created tests for creating, deleting, and verifying contact channels
  • [Refactor] Update shared interfaces and schemas [packages/stack-shared/src/interface/crud/]

    • Added new schemas for contact channels
    • Modified user and current user schemas
  • [UI] Update password reset and forgot password components [packages/stack/src/components-page/]

    • Minor styling changes to forgot-password and password-reset forms

Copy link

zeropath-ai bot commented Oct 1, 2024

Security

  • No security or compliance vulnerabilities detected
  • Scanned 26 changed file(s)

Changes Detected

  • [Feature] Added more tests [MULTIPLE FILES]

    • Tests were added across multiple files
    • Specific files or components affected are not specified
    • Improves test coverage of the codebase
  • [Refactor] Updated database schema for contact channels and auth methods [apps/backend/prisma/schema.prisma]

    • Removed OtpAuthMethod.contactChannelId and PasswordAuthMethod.identifier
    • Added ContactChannel.usedForAuth field
    • Updated unique constraints on ContactChannel model
    • Simplified OtpAuthMethod and PasswordAuthMethod models
  • [Refactor] Modified authentication logic to use updated schema [apps/backend/src/app/api/v1/auth/]

    • Updated sign-in and verification code handlers
    • Adjusted queries to use new ContactChannel structure
    • Modified error handling for authentication processes
  • [Feature] Implemented CRUD operations for contact channels [apps/backend/src/app/api/v1/contact-channels/]

    • Added routes for creating, reading, updating, and deleting contact channels
    • Implemented server-side logic for contact channel management
    • Created new API endpoints for contact channel operations
  • [Refactor] Updated user management logic [apps/backend/src/app/api/v1/users/crud.tsx]

    • Modified user creation and update processes
    • Adjusted how contact channels and auth methods are handled
    • Updated response structures for user-related operations
  • [Refactor] Updated e2e tests to reflect schema and API changes [apps/e2e/tests/]

    • Modified existing tests to work with new schema
    • Added new tests for contact channel operations
    • Updated expected response structures in various test cases

Copy link

github-actions bot commented Oct 1, 2024

Copy link

github-actions bot commented Oct 1, 2024

Copy link

Copy link

Copy link

@fomalhautb fomalhautb merged commit 18d75fb into dev Oct 14, 2024
13 checks passed
@fomalhautb fomalhautb deleted the contact-channel-api branch October 14, 2024 00:12
jshimko added a commit to jshimko/stack that referenced this pull request Oct 14, 2024
* dev: (32 commits)
  fix team name overflow (stack-auth#281)
  Contact channel APIs (stack-auth#288)
  removed client id unique constraint (stack-auth#299)
  Require newline at the end of each file
  ensureTeamExist -> ensureTeamExists
  Replace typo in function name (ensureUserExist -> ensureUserExists)
  Fix component width
  Consistent app url
  Improve version alert message
  chore: update package versions
  Add otel spans for sent emails
  JWKS endpoint now uses base64url
  Update README.md
  Version alerter now uses HTTPS
  chore: update package versions
  Update version alerter URL
  Alerts when running outdated versions
  Auto detect https for cookies (stack-auth#296)
  Add newsletter link
  chore: update package versions
  ...

# Conflicts:
#	packages/stack/src/lib/cookie.ts
#	pnpm-lock.yaml
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.

3 participants