Closed cstrnt closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git โ๏ธ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
abby-docs | โ Ready (Inspect) | Visit Preview | ๐ฌ Add feedback | Aug 25, 2024 7:11pm |
[!CAUTION]
Review failed
The pull request is closed.
The changes encompass updates to dependencies, significant modifications to the Prisma schema, the introduction of new route handlers and components for managing GitHub integrations, enhancements to authentication and authorization processes, and the integration of OpenAI for feature flag removal. Additionally, TypeScript configurations were adjusted to optimize module resolution, and new service functionalities were implemented for better handling of integrations and project access.
Files | Change Summary |
---|---|
apps/web/package.json | Updated versions of dependencies including @prisma/client , octokit , added memoize and openai . |
apps/web/prisma/schema.prisma | Modified Project model to include a new integrations field; introduced a new Integration model and IntegrationType enum. |
apps/web/src/api/helpers.ts | Introduced session management functionalities: getHonoSession for retrieving user sessions and authMiddleware for enforcing authentication. |
apps/web/src/api/index.ts | Added a new route for integrations: makeIntegrationsRoute . |
apps/web/src/api/routes/integrations.ts | Implemented route handler for GitHub integrations with GET endpoints for /github and /github/setup . |
apps/web/src/components/AddFeatureFlagModal.tsx | Refactored formatting of the invalidate method call for better readability. |
apps/web/src/components/FlagPage.tsx | Updated type inference for query results and introduced a new mutation for creating pull requests for flag removal. |
apps/web/src/components/settings/Integrations.tsx | Introduced a component for managing GitHub integrations, allowing users to select and save repository preferences. |
apps/web/src/components/ui/select.tsx | Enhanced Select component with new scroll buttons and improved layout for better usability. |
apps/web/src/env/schema.mjs | Added optional configuration properties for GitHub and OpenAI integration. |
apps/web/src/pages/projects/[projectId]/settings.tsx | Added a new "Integrations" tab in settings for managing integrations and improved data fetching logic. |
apps/web/src/server/common/auth.ts | Added a function to verify user access to a project. |
apps/web/src/server/common/github-app.ts | Implemented interactions with the GitHub API, including repository retrieval functionality. |
apps/web/src/server/common/integrations.ts | Introduced schema for validating GitHub integration settings using zod . |
apps/web/src/server/services/AiFlagRemovalService.ts | Developed a service for removing feature flags from code snippets using OpenAI API. |
apps/web/src/server/services/IntegrationService.ts | Established a namespace for integration processes with a placeholder for a createIntegration method. |
apps/web/src/server/trpc/router/flags.ts | Enhanced flagRouter with new queries and mutations for feature flags and GitHub integrations. |
apps/web/src/server/trpc/router/project.ts | Added methods for retrieving and updating GitHub integrations related to projects. |
apps/web/tsconfig.json | Changed moduleResolution from "node" to "Bundler" . |
sequenceDiagram
participant User
participant API
participant GitHub
participant OpenAI
participant Database
User->>API: Request integration setup
API->>Database: Validate project access
Database-->>API: Access validated
API->>GitHub: Generate GitHub URL
GitHub-->>API: URL returned
API->>User: Provide GitHub URL for integration
User->>API: Initiate remove flag process
API->>Database: Validate flag existence
Database-->>API: Flag exists
API->>OpenAI: Request code refactoring
OpenAI-->>API: Refactored code returned
API->>Database: Update codebase with refactored code
Database-->>API: Code updated
API->>User: Notify flag removal success
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
This stack of pull requests is managed by Graphite. Learn more about stacking.
Join @cstrnt and the rest of your teammates on Graphite
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores