[AIDE-101] App Management - #81
Merged
Merged
Conversation
Make app cards in the apps list open their detail page on click, and turn the count tiles (worktrees, plans, sessions) into links that jump straight to the matching tab via the view query param. Also drop the max-width container constraint on the builds and runs pages so they fill the detail page layout.
Add repositoryId to AgentRun and Build so app-scoped counts and queries filter directly on the repository instead of joining through the worktree and codebase. Backfill existing rows from their worktree or codebase and index the new columns. Consolidate the apps pages' change subscriptions into a shared helper that watches apps, codebases, worktrees, runs, and builds, and remount the detail tabs so they refresh when the app changes.
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.
Summary
Introduces Apps: a product grouping that owns one or more repositories and aggregates their development resources in one place. Each app presents an overview plus repository, worktree, plan, session, and build tabs, all scoped to the repositories assigned to the app.
Changes
App/AppRepositoryPrisma models with a migration, case-insensitive unique app names, and a GraphQL schema (apps.graphql) exposing app CRUD, per-app resource counts, and anappsChangedsubscription. Resolvers reject agent credentials.CodebasesServicenow keeps a repository on disk when its last codebase is removed if an app still assigns it, so assignments survive codebase removal.worktreeOverview,hiddenWorktrees,agentRuns, andbuildsaccept anappIdand filter to repositories assigned to that app; active worktree moves are scoped the same way./appsindex with clickable cards and count tiles that deep-link to their tab, and a new/apps/[appId]detail page with tabs for overview, repositories, worktrees, plans, sessions, and builds, plus an editor dialog (create/edit with repository checkboxes) and a delete confirmation. "New plan/session" links carry the app context into the run composer.AppBuildLauncheron the builds tab lists the app's worktrees (filtered to online, build-capable agents) and starts a build on the selected worktree.execFilebuffering with a streamingcappedGithelper that stops reading git output at the control plane's patch/summary/manifest limits, preventing buffer-overflow failures and runaway memory on large or binary worktrees;mock:dbnow creates the DB file before migrating.Ticket: AIDE-101