Merged
Conversation
added 8 commits
February 11, 2025 21:49
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Enhance project data retrieval and user notifications This commit updates the project data retrieval methods to use UUIDs consistently across the application, improving data integrity and reducing errors. Additionally, it introduces a toast notification system to inform users about project sync events, enhancing user experience. The layout has been updated to include a Toaster component for displaying notifications. Other minor refactorings and optimizations have been made throughout the codebase to improve maintainability.
chad-syntax
added a commit
that referenced
this pull request
Jun 4, 2025
* start work on prototype * start of prototype, gen types, sdk, tests * added openrouter and prompt tester * start on more robust data schema and api routes * cursor written api endpoint tests * move files around, add placeholders for bullmq, rest services * fix nextjs public folder * slight adjustment to typegen cmd * path fixes for build passing * add supabase github actions, and first migration, delete agent rest api exploration * fix gh actions directory * seeding and migration changes * fucking tests man * add llm logs table * sign in with github auth * add tests to gh actions * try updating cli version for running tests * try latest? * refactored openrouter implementation to work with vault and code verifier per user * add pgTAP tests for new rpc fns * consolidate supabase migration check and tests into one workflow * rename workflow * test prompt running * change app to studio routes, add prompt pages from supabase, add llm logs view, RLS, and RLS tests * start onboarding logic * upgrade tailwind to v4, add onboarding logic * add org and project switcher, adjust client side context, consolidate migration, refactor user_keys into organization_keys * refactor routes * layout and context kinda fixed * adjust prompt schema, adjust openrouter calling, fix routing on some pages * fix ts err for now * openrouter clean up, org page listing users * prompts pages, template extracting, component consolidation * remove uneeded code * prompt editorial workflow fixes * add api tests * move util * shadcn overhaul, colors, and themes * refactor keys so orgs get an sdk api key on creation, allow for users to execute via api key, add api key reveal component to org page * fix prompt config saving, add additional openrouter typing * finish services refactor * progress towards github repo sync * start of sync work that was vibing so it probably doesnt work * refactor migration into using schemas * remove test migration, replace initial schema migration * attempt to pin postgres-version because of permissions error * Refactor GitHub App installation flow Create a pending installation record before redirecting to GitHub. Verify the installation on callback against the pending record and GitHub user installations. On successful verification, activate the installation and create repository records for all accessible repositories linked to the organization. * Create .prettierrc.json * Github App installation record flow working (still need to save and refresh provider tokens in future update, right now it will only work if we install the app directly after logging in before the token expires) Got github webhooks updating the installation record working with a github_webhook service account and role. * Remove supabase declarative schemas, still kinda buggy refactor installation validation to just check for the installation via app REST request rather than user oauth REST request adjust the connecting modal * Refactor: Centralize external URLs in routes utility Consolidate GitHub and OpenRouter URLs into a new `src/utils/routes.ts` utility for improved maintainability and consistency across the codebase. Update relevant services and components to use the new routes object. Pass project UUID during GitHub project connection. Add UI check for incomplete GitHub app installation. * Add GitHub repository sync functionality This provides project-level sync capability with GitHub and improves repository connection handling. Changes include: - Add sync button and action to project page - Enhance repository sync logic - Add unique constraint to active GitHub app installations - Fix installation ID handling - Also add tests for github_app_installations and project_repositories * Enhance project connection and repository handling This update introduces several improvements to the project connection process and repository management. Key changes include: - Added organization UUID to the connectProject function. - Updated the ConnectProjectModal to handle default repository IDs. - Enhanced GitHub service to store repository default branch information. - Improved error handling in prompt version creation and updates. - Refactored code for better readability and maintainability. These changes aim to streamline the integration with GitHub and improve user experience when connecting projects. * Update project_repositories test to include default branch This commit enhances the project_repositories test by adding the repository_default_branch field to the insert statements. The default branch is now set to 'main' for all test cases, ensuring consistency and accuracy in repository data handling during tests. * Refactor GitHub services and update user authentication handling This commit includes significant refactoring of the GitHub services, transitioning from a single GitHubService to multiple specialized services: GitHubAppService, GitHubWebhookService, and GitHubSyncService. Additionally, the user authentication process has been streamlined by replacing the initialize method with a getAuthUser method across various components and services. The connectProject action has been moved, and related imports have been updated accordingly. These changes aim to enhance code organization and improve the overall user experience. * Update environment configuration and enhance template variable handling This commit modifies the environment configuration to load the default `.env` file in the smee proxy and updates the template variable extraction logic to include a `default_value` field for all variables. Additionally, new types and relationships have been added to the Supabase schema for agentsmith events, for logging sync events. Added tests for variable compiling. * Big GitHubSync Service refactor Enhance project data retrieval and user notifications This commit updates the project data retrieval methods to use UUIDs consistently across the application, improving data integrity and reducing errors. Additionally, it introduces a toast notification system to inform users about project sync events, enhancing user experience. The layout has been updated to include a Toaster component for displaying notifications. Other minor refactorings and optimizations have been made throughout the codebase to improve maintainability. * Janky but working version of repo -> agentsmith syncing * complete sync service refactor * add support for global context * add erorr alert for authoring with missing globals * refactor a lot of fe component names, add studio header and hooks * styling refactors * logger refactor * add emoji mode * fix migration ordering * comment out test for now * adjust supabase migrations cicd yml * adjust landing styling --------- Co-authored-by: Chad $yntax <chad@ttpspodcast.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.