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

Connected account API & Dashboard #279

Draft
wants to merge 29 commits into
base: dev
Choose a base branch
from
Draft

Conversation

fomalhautb
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Sep 25, 2024

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

Name Status Preview Comments Updated (UTC)
stack-backend ❌ Failed (Inspect) Sep 27, 2024 5:47pm
stack-dashboard ❌ Failed (Inspect) Sep 27, 2024 5:47pm
stack-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 5:47pm
stack-partial-prerendering ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 27, 2024 5:47pm

Copy link

zeropath-ai bot commented Sep 26, 2024

Security

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

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs
    • Updated structure for auth method configurations
    • Added connected_account_configs
  • [Feature] Implement new auth method configuration system [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Added support for password, OTP, and OAuth auth methods
    • Introduced auth_method_configs array with type-specific configurations
  • [Refactor] Update project CRUD operations [apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Revised OAuth provider configuration handling
    • Implemented upsert operations for auth method configs
  • [Refactor] Update project data structure in shared package [packages/stack-shared/src/interface/crud/projects.ts]

    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Removed deprecated fields like credential_enabled and magic_link_enabled
  • [Feature] Update client-side components for new auth structure [packages/stack/src/components-page/auth-page.tsx]

    • Modified AuthPage component to use new enabledAuthMethodConfigs
    • Updated rendering logic for different auth methods
  • [Refactor] Update StackApp implementation [packages/stack/src/lib/stack-app.ts]

    • Modified project configuration parsing to use new structure
    • Updated user and project types to reflect new auth configuration
  • [Test] Update E2E tests for new project structure [apps/e2e/tests/backend/endpoints/api/v1/internal/projects.test.ts]

    • Modified test cases to use new project configuration format
    • Added tests for auth method configs and OAuth provider configs

1 similar comment
Copy link

zeropath-ai bot commented Sep 26, 2024

Security

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

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs
    • Updated structure for auth method configurations
    • Added connected_account_configs
  • [Feature] Implement new auth method configuration system [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Added support for password, OTP, and OAuth auth methods
    • Introduced auth_method_configs array with type-specific configurations
  • [Refactor] Update project CRUD operations [apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Revised OAuth provider configuration handling
    • Implemented upsert operations for auth method configs
  • [Refactor] Update project data structure in shared package [packages/stack-shared/src/interface/crud/projects.ts]

    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Removed deprecated fields like credential_enabled and magic_link_enabled
  • [Feature] Update client-side components for new auth structure [packages/stack/src/components-page/auth-page.tsx]

    • Modified AuthPage component to use new enabledAuthMethodConfigs
    • Updated rendering logic for different auth methods
  • [Refactor] Update StackApp implementation [packages/stack/src/lib/stack-app.ts]

    • Modified project configuration parsing to use new structure
    • Updated user and project types to reflect new auth configuration
  • [Test] Update E2E tests for new project structure [apps/e2e/tests/backend/endpoints/api/v1/internal/projects.test.ts]

    • Modified test cases to use new project configuration format
    • Added tests for auth method configs and OAuth provider configs

Copy link

zeropath-ai bot commented Sep 26, 2024

Security

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

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx, apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs
    • Added auth_method_configs and connected_account_configs
    • Updated project creation and update logic to use new structure
  • [Refactor] Modify project schema in shared package [packages/stack-shared/src/interface/crud/projects.ts]

    • Updated projectsCrudAdminReadSchema and projectsCrudClientReadSchema
    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Deprecated credential_enabled and magic_link_enabled fields
  • [Refactor] Update StackApp implementation [packages/stack/src/lib/stack-app.ts]

    • Modified _clientProjectFromCrud and _adminProjectFromCrud methods
    • Updated project config types to reflect new structure
    • Removed deprecated oauthProviders from BaseUser type
  • [Refactor] Update AuthPage and OAuthButtonGroup components [packages/stack/src/components-page/auth-page.tsx, packages/stack/src/components/oauth-button-group.tsx]

    • Modified to use new project configuration structure
    • Updated logic for displaying auth methods and OAuth buttons
  • [Bug Fix] Update OAuthButton component [packages/stack/src/components/oauth-button.tsx]

    • Added fallback logic for provider IDs longer than 10 characters
  • [Refactor] Add migration for UUID provider IDs [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql]

    • Added SQL to update existing records with new random UUIDs
  • [Refactor] Update version numbers and changelogs [Multiple files]

    • Reverted version numbers from 2.6.0 to 2.5.37
    • Removed entries for version 2.6.0 from changelogs

Copy link

zeropath-ai bot commented Sep 26, 2024

Security

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

Changes Detected

  • [Bug Fix] Fixed seed script for OAuth provider configurations [apps/backend/prisma/seed.ts]

    • Updated seed.ts to use random UUIDs for OAuth provider config IDs
    • Modified creation of OAuth provider configs and related entities
  • [Refactor] Updated project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx, apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Restructured OAuth provider configs, auth method configs, and connected account configs
    • Updated CRUD operations to handle new configuration structure
  • [Feature] Added migration for UUID provider IDs [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql]

    • Created new migration to update existing records with random UUIDs
  • [Refactor] Updated project and user interfaces [packages/stack-shared/src/interface/crud/projects.ts, packages/stack/src/lib/stack-app.ts]

    • Modified project configuration schemas and types
    • Updated user and project interfaces to reflect new structure
  • [Refactor] Updated auth components to use new configuration structure [packages/stack/src/components-page/auth-page.tsx, packages/stack/src/components/oauth-button-group.tsx]

    • Modified AuthPage and OAuthButtonGroup to use new auth method configs
    • Updated logic for displaying auth options based on new configuration
  • [Chore] Reverted version numbers and changelogs [multiple files]

    • Reverted version numbers in package.json files
    • Removed entries for version 2.6.0 from CHANGELOG.md files

Copy link

zeropath-ai bot commented Sep 26, 2024

Security

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

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx, apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs, auth_method_configs, and connected_account_configs
    • Updated project creation and update logic to use new configuration structure
    • Modified handling of authentication methods (password, OTP, OAuth)
  • [Feature] Add UUID-based provider IDs [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql, apps/backend/prisma/seed.ts]

    • Created migration to update existing records with random UUIDs
    • Updated seed script to use UUIDs for OAuth provider configurations
  • [Refactor] Update project and user interfaces [packages/stack/src/lib/stack-app.ts]

    • Removed deprecated fields like credentialEnabled and magicLinkEnabled
    • Added new fields for OAuth provider configs, auth method configs, and connected account configs
    • Updated user interface to remove deprecated oauthProviders field
  • [Refactor] Update auth components to use new config structure [packages/stack/src/components-page/auth-page.tsx, packages/stack/src/components/oauth-button-group.tsx]

    • Modified AuthPage and OAuthButtonGroup to use new enabledAuthMethodConfigs
    • Updated logic for displaying credential, magic link, and OAuth options
  • [Refactor] Update project CRUD schemas [packages/stack-shared/src/interface/crud/projects.ts]

    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Removed deprecated fields from project configuration schemas
  • [Chore] Update tests for new project configuration [apps/e2e/tests/backend/endpoints/api/v1/internal/projects.test.ts, apps/e2e/tests/backend/endpoints/api/v1/projects.test.ts]

    • Updated test cases to use new project configuration structure
    • Added tests for creating projects with new auth method configs and OAuth provider configs

Copy link

zeropath-ai bot commented Sep 26, 2024

Security

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

Changes Detected

  • [Bug Fix] Fixed bugs and tests [MULTIPLE FILES]

    • Changes implemented across backend, dashboard, and e2e tests
    • Affected components include project configuration, OAuth providers, and auth methods
    • Improved handling of OAuth provider configurations and auth method configs
  • [Refactor] Updated project configuration structure [apps/backend/src/lib/projects.tsx]

    • Replaced deprecated fields with new configuration structure
    • Added new fields for OAuth provider configs, auth method configs, and connected account configs
    • Improved type safety and consistency in project configuration
  • [Feature] Added UUID-based provider IDs [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql]

    • Implemented migration to update existing records with random UUIDs
    • Improved uniqueness and security of provider IDs
  • [Refactor] Updated CRUD handlers for projects [apps/backend/src/app/api/v1/internal/projects/crud.tsx]

    • Refactored creation and update logic for OAuth providers and auth methods
    • Improved handling of shared and standard OAuth configurations
  • [Refactor] Updated client-side components for auth [packages/stack/src/components-page/auth-page.tsx]

    • Refactored auth page to use new project configuration structure
    • Updated logic for displaying auth methods based on new config
  • [Refactor] Updated OAuth button group and individual buttons [packages/stack/src/components/oauth-button-group.tsx]

    • Adapted components to work with new project configuration structure
    • Improved handling of OAuth provider types and IDs

Copy link

zeropath-ai bot commented Sep 27, 2024

Security

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

Changes Detected

  • [Refactor] Update project configuration structure [apps/backend/src/app/api/v1/internal/projects/crud.tsx, apps/backend/src/app/api/v1/projects/current/crud.tsx]

    • Replaced oauth_providers with oauth_provider_configs
    • Added auth_method_configs and connected_account_configs
    • Updated create and update logic for new configuration structure
  • [Refactor] Modify project schema in shared package [packages/stack-shared/src/interface/crud/projects.ts]

    • Updated projectsCrudAdminReadSchema and projectsCrudClientReadSchema
    • Added new schemas for OAuth provider configs, auth method configs, and connected account configs
    • Deprecated credential_enabled and magic_link_enabled fields
  • [Refactor] Update StackApp implementation [packages/stack/src/lib/stack-app.ts]

    • Modified project and user data structures to use new configuration format
    • Updated methods to work with new OAuth provider, auth method, and connected account configs
  • [Refactor] Update auth components [packages/stack/src/components-page/auth-page.tsx, packages/stack/src/components/oauth-button-group.tsx]

    • Modified to use new project configuration structure
    • Updated logic for displaying auth methods based on new config format
  • [Feature] Add UUID migration for OAuthProviderConfig [apps/backend/prisma/migrations/20240926014352_uuid_provider_id/migration.sql]

    • Added migration to update existing records with new random UUIDs as strings
  • [Refactor] Update e2e tests [apps/e2e/tests/backend/endpoints/api/v1/internal/projects.test.ts, apps/e2e/tests/backend/endpoints/api/v1/projects.test.ts]

    • Modified tests to use new project configuration structure
    • Updated assertions to match new API responses
  • [Chore] Revert version numbers [Multiple package.json and CHANGELOG.md files]

    • Reverted version numbers from 2.6.0 to 2.5.37 across multiple packages
  • [Test] Improved tests

    • Updated test cases to cover new configuration structure and API changes

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