feat: add build server configuration to application dashboard

- Introduced a new component for configuring build servers in the application dashboard.
- Implemented form validation using Zod and integrated API calls for updating build server settings.
- Enhanced server and application schemas to support build server and registry associations.
- Updated UI to display build server options and provide user feedback on updates.
This commit is contained in:
Mauricio Siu
2025-11-29 21:22:35 -06:00
parent cc1620b5fa
commit 78d2e13dc8
13 changed files with 13963 additions and 74 deletions

View File

@@ -204,6 +204,15 @@ export const applications = pgTable("application", {
serverId: text("serverId").references(() => server.serverId, {
onDelete: "cascade",
}),
buildServerId: text("buildServerId").references(() => server.serverId, {
onDelete: "set null",
}),
buildRegistryId: text("buildRegistryId").references(
() => registry.registryId,
{
onDelete: "set null",
},
),
});
export const applicationsRelations = relations(
@@ -247,6 +256,14 @@ export const applicationsRelations = relations(
fields: [applications.serverId],
references: [server.serverId],
}),
buildServer: one(server, {
fields: [applications.buildServerId],
references: [server.serverId],
}),
buildRegistry: one(registry, {
fields: [applications.buildRegistryId],
references: [registry.registryId],
}),
previewDeployments: many(previewDeployments),
}),
);