refactor: clean up project dashboard and API response structure

Removed unused imports and redundant code in the project dashboard component to enhance readability. Updated the API project router to streamline the data structure by eliminating unnecessary domain retrievals, while ensuring essential application and compose details are still included. This refactor improves maintainability and optimizes data handling for the project management interface.
This commit is contained in:
Mauricio Siu
2026-03-01 14:15:47 -06:00
parent 7da69862e1
commit 6c1f2372ed
3 changed files with 4 additions and 135 deletions

View File

@@ -284,11 +284,10 @@ export const projectRouter = createTRPCRouter({
environments: {
with: {
applications: {
with: {
domains: true,
},
columns: {
applicationId: true,
name: true,
applicationStatus: true,
},
},
mariadb: {
@@ -317,11 +316,10 @@ export const projectRouter = createTRPCRouter({
},
},
compose: {
with: {
domains: true,
},
columns: {
composeId: true,
name: true,
composeStatus: true,
},
},
},