Skip to content

Chad/prototype#1

Merged
chad-syntax merged 69 commits intomainfrom
chad/prototype
May 20, 2025
Merged

Chad/prototype#1
chad-syntax merged 69 commits intomainfrom
chad/prototype

Conversation

@chad-syntax
Copy link
Copy Markdown
Owner

No description provided.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 21, 2025

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

Name Status Preview Comments Updated (UTC)
agent-smith ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 20, 2025 4:55pm

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 chad-syntax marked this pull request as ready for review May 20, 2025 16:56
@chad-syntax chad-syntax merged commit 9f0dcba into main May 20, 2025
3 checks passed
@chad-syntax chad-syntax deleted the chad/prototype branch May 20, 2025 16:58
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>
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